Understand the color system and its application in your theme.
accentColor
is specified directly on the ThemeProvider component:
Gray
Gold
Bronze
Brown
Yellow
Amber
Orange
Tomato
Red
Ruby
Crimson
Pink
Plum
Purple
Violet
Iris
Indigo
Blue
Cyan
Teal
Jade
Green
Grass
Lime
Mint
Sky
indigo
color scale:
grayColor
directly on the ThemeProvider component:
Gray
Mauve
Slate
Sage
Olive
Sand
slate
color scale:
accentColor
prop on the components can be used to override the theme accent. Nested components will automatically inherit the new accent color.
accentColor
overrideaccentColor
overridevar(--propel-red-1)
, var(--propel-red-2)
, and so on up to var(--propel-red-12)
.
accentColor
prop will intelligently change the focus and selection colors to avoid a mismatch of conflicting hues:
var(--propel-focus-1)
, var(--propel-focus-2)
, and so on up to var(--propel-focus-12)
.
Most of the components use var(--propel-focus-8)
for the focus outline color.
panelBackground
prop controls whether paneled elements use a solid or a translucent background color.
crimson
, jade
, and indigo
as red
, green
, and blue
, respectively.
In this case, you can remap Propel Themes tokens in place of one another and reclaim the color names you want to use:
red
color in Propel Themes components and tokens would now reference the original ruby
scale.