#[non_exhaustive]pub enum Semantic {
Show 22 variants
Canvas,
Surface,
SurfaceElevated,
Control,
Border,
Ink,
InkMuted,
Accent,
AccentHover,
AccentPressed,
OnAccent,
FocusRing,
Success,
Warning,
Danger,
Scrim,
Chart1,
Chart2,
Chart3,
Chart4,
Chart5,
ChartGrid,
}Expand description
Semantic color roles. Widgets refer to roles, never to raw colors, so every component follows the active theme.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Canvas
bg-000: the canvas behind everything.
Surface
bg-100: panels and sidebars.
SurfaceElevated
bg-200: cards.
Control
bg-300: control fills.
Border
border: hairlines and control outlines.
Ink
ink: primary text and icons.
InkMuted
ink-muted: secondary text, captions and placeholders.
Accent
accent: primary actions and selection.
AccentHover
accent-hover: accent fill while hovered.
AccentPressed
accent-pressed: accent fill while pressed.
OnAccent
on-accent: text and icons drawn on an accent fill.
FocusRing
focus-ring: keyboard focus indicator.
Success
success: positive status.
Warning
warning: cautionary status.
Danger
danger: errors and destructive actions.
Scrim
scrim: the dimmed backdrop behind dialogs and sheets, the same in every theme.
Chart1
chart-1: the first series of a chart, the theme’s accent.
Chart2
chart-2: the second series of a chart.
Chart3
chart-3: the third series of a chart.
Chart4
chart-4: the fourth series of a chart.
Chart5
chart-5: the fifth series of a chart.
ChartGrid
chart-grid: the gridlines of a chart.