Colors
Each of the five semantic colors generates seven derived shades, while neutral keeps its nine-step scale. Light and dark modes share both.
Global Color Variables
Each row shows an independently preserved base color and its derived band. The five semantic colors provide 35 derived swatches and neutral provides nine, for 44 in total. Select a swatch to see its value and CSS variable.
Primary
Base#007aff--leaf-color-primary--leaf-color-primary-light-3rgba(77, 162, 255, 1)Success
Base#4bb418--leaf-color-success--leaf-color-success-light-3rgba(129, 203, 93, 1)Danger
Base#ff4d4f--leaf-color-danger--leaf-color-danger-light-3rgba(255, 130, 132, 1)Warning
Base#e69f12--leaf-color-warning--leaf-color-warning-light-3rgba(238, 188, 89, 1)Info
Base#1677ff--leaf-color-info--leaf-color-info-light-3rgba(92, 160, 255, 1)Neutral
Base#707070--leaf-color-neutral--leaf-color-neutral-500#8c8c8cChange Base Colors
Configure the primary base with theme.primaryColor, and the other five with theme.tokens. Update these JS values through ConfigProvider to regenerate the scales; changing DOM styles does not trigger JS theme recalculation.
The example uses the light appearance and sets tokens.mutedSurfaceColor to rgb(244,243,239). The outer canvas of a layered Card uses this surface, while inner Card content and clean controls keep the content surface. Explicit component overrides take precedence.
All on*Color values default to white. Set the corresponding value to #000000 for black text and choose suitable foreground/background pairs for your application.