Skip to content

Override built-in scheme colors and how to add extra semantic colors #206

Closed Answered by rydmike
laterdayi asked this question in Q&A
Discussion options

You must be logged in to vote

First question - Built-in theme color overrides

There are different ways you can override the built-in FlexColorScheme scheme colors. The simplest way is to just give a color to a specific color in FlexColorScheme. We can use example 4 as a simple demo.

In example 4 "All themes" https://docs.flexcolorscheme.com/tutorial4 user can dynamically change app theme to any of the built-in schemes and a few custom made ones, try it here https://rydmike.com/flexcolorscheme/allthemes-latest/.

If we in this app want to override one of the colors in all the built-in color schemes, it is actually quite easy to do.

We can demo it by modifying the example to for all selected themes make e.g. the tertiary

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@romanr
Comment options

@rydmike
Comment options

Answer selected by rydmike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question This issue is a usage question and will be moved to the Discussions section.
3 participants
Converted from issue

This discussion was converted from issue #205 on October 19, 2023 11:27.