CandiPalette class
Semantic color palette for the Candi theme.
Provides a complete set of colors for building UIs with consistent visual hierarchy and accessibility.
Color Categories
- Backgrounds: bg, surface, elevated
- Text: text, textSubtle, textMuted
- Borders: border, borderStrong, divider
- Accent: accent, accentSubtle, onAccent
- Secondary: secondary, secondarySubtle, onSecondary
- Status: success, warning, error, info (with
on*variants) - Interactive: link, disabled, focusRing, hover, active
- Overlays: overlay, scrim, shadowColor
- Inverse: inverseSurface, inverseText
Convenience Aliases
Common naming patterns from other design systems:
Properties
- accent → CandiColor
-
Primary accent color for buttons and interactive elements.
final
- accentOutline → CandiColor
-
The accentOutline color.
final
- accentSoft → CandiColor
-
The accentSoft color.
final
- accentStrong → CandiColor
-
The accentStrong color.
final
- accentSubtle → CandiColor
-
Subtle accent for hover states and backgrounds.
final
- active → CandiColor
-
Active/pressed state overlay color.
final
- background → CandiColor
-
Alias for bg. Alternative naming convention.
no setter
- bg → CandiColor
-
Page background color.
final
- blue → CandiColor
-
Primitive blue color.
final
- blueOutline → CandiColor
-
Blue outline/border color.
final
- blueSoft → CandiColor
-
Soft blue foreground.
final
- blueStrong → CandiColor
-
Strong/dark blue variant.
final
- blueSubtle → CandiColor
-
Subtle blue background tint.
final
- border → CandiColor
-
Default border color.
final
- borderStrong → CandiColor
-
Emphasized border color.
final
- cyan → CandiColor
-
Primitive cyan color.
final
- cyanOutline → CandiColor
-
Cyan outline/border color.
final
- cyanSoft → CandiColor
-
Soft cyan foreground.
final
- cyanStrong → CandiColor
-
Strong/dark cyan variant.
final
- cyanSubtle → CandiColor
-
Subtle cyan background tint.
final
- disabled → CandiColor
-
Disabled element color.
final
- divider → CandiColor
-
Divider/separator line color.
final
- elevated → CandiColor
-
Elevated surface (modals, popups) background color.
final
- error → CandiColor
-
Error state color (coral red).
final
- errorOutline → CandiColor
-
The errorOutline color.
final
- errorSoft → CandiColor
-
The errorSoft color.
final
- errorStrong → CandiColor
-
The errorStrong color.
final
- errorSubtle → CandiColor
-
The errorSubtle color.
final
- focusRing → CandiColor
-
Focus ring/outline color with opacity.
final
- gold → CandiColor
-
Primitive gold color.
final
- goldOutline → CandiColor
-
Gold outline/border color.
final
- goldSoft → CandiColor
-
Soft gold foreground.
final
- goldStrong → CandiColor
-
Strong/dark gold variant.
final
- goldSubtle → CandiColor
-
Subtle gold background tint.
final
- green → CandiColor
-
Primitive green color.
final
- greenOutline → CandiColor
-
Green outline/border color.
final
- greenSoft → CandiColor
-
Soft green foreground.
final
- greenStrong → CandiColor
-
Strong/dark green variant.
final
- greenSubtle → CandiColor
-
Subtle green background tint.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hover → CandiColor
-
Hover state overlay color.
final
- info → CandiColor
-
Informational state color (blue).
final
- infoOutline → CandiColor
-
The infoOutline color.
final
- infoSoft → CandiColor
-
The infoSoft color.
final
- infoStrong → CandiColor
-
The infoStrong color.
final
- infoSubtle → CandiColor
-
The infoSubtle color.
final
- inverseSurface → CandiColor
-
Inverse surface for contrast elements.
final
- inverseText → CandiColor
-
Text color on inverse surfaces.
final
- link → CandiColor
-
Hyperlink color.
final
- magenta → CandiColor
-
Primitive magenta color.
final
- magentaOutline → CandiColor
-
Magenta outline/border color.
final
- magentaSoft → CandiColor
-
Soft magenta foreground.
final
- magentaStrong → CandiColor
-
Strong/dark magenta variant.
final
- magentaSubtle → CandiColor
-
Subtle magenta background tint.
final
- muted → CandiColor
-
Alias for textMuted. Common in design systems.
no setter
- onAccent → CandiColor
-
Text color on accent backgrounds.
final
- onBlue → CandiColor
-
Text color on blue backgrounds.
final
- onCyan → CandiColor
-
Text color on cyan backgrounds.
final
- onError → CandiColor
-
Text color on error backgrounds.
final
- onGold → CandiColor
-
Text color on gold backgrounds.
final
- onGreen → CandiColor
-
Text color on green backgrounds.
final
- onInfo → CandiColor
-
Text color on info backgrounds.
final
- onMagenta → CandiColor
-
Text color on magenta backgrounds.
final
- onPink → CandiColor
-
Text color on pink backgrounds.
final
- onPrimary → CandiColor
-
Alias for onAccent. Text on primary backgrounds.
no setter
- onRed → CandiColor
-
Text color on red backgrounds.
final
- onSecondary → CandiColor
-
Text color on secondary backgrounds.
final
- onSilver → CandiColor
-
Text color on silver backgrounds.
final
- onSuccess → CandiColor
-
Text color on success backgrounds.
final
- onTeal → CandiColor
-
Text color on teal backgrounds.
final
- onWarning → CandiColor
-
Text color on warning backgrounds.
final
- onYellow → CandiColor
-
Text color on yellow backgrounds.
final
- overlay → CandiColor
-
Overlay color for modals (semi-transparent).
final
- pink → CandiColor
-
Primitive pink color.
final
- pinkOutline → CandiColor
-
Pink outline/border color.
final
- pinkSoft → CandiColor
-
Soft pink foreground.
final
- pinkStrong → CandiColor
-
Strong/dark pink variant.
final
- pinkSubtle → CandiColor
-
Subtle pink background tint.
final
- primary → CandiColor
-
Alias for accent. Maps to Material's primary concept.
no setter
- primarySubtle → CandiColor
-
Alias for accentSubtle. Subtle primary variant.
no setter
- red → CandiColor
-
Primitive red color.
final
- redOutline → CandiColor
-
Red outline/border color.
final
- redSoft → CandiColor
-
Soft red foreground.
final
- redStrong → CandiColor
-
Strong/dark red variant.
final
- redSubtle → CandiColor
-
Subtle red background tint.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrim → CandiColor
-
Scrim color for dimming backgrounds.
final
- secondary → CandiColor
-
Secondary action color (terracotta).
final
- secondaryOutline → CandiColor
-
The secondaryOutline color.
final
- secondarySoft → CandiColor
-
The secondarySoft color.
final
- secondaryStrong → CandiColor
-
The secondaryStrong color.
final
- secondarySubtle → CandiColor
-
Subtle secondary for backgrounds.
final
- shadowColor → CandiColor
-
Shadow color with transparency.
final
- silver → CandiColor
-
Primitive silver color.
final
- silverOutline → CandiColor
-
Silver outline/border color.
final
- silverSoft → CandiColor
-
Soft silver foreground.
final
- silverStrong → CandiColor
-
Strong/dark silver variant.
final
- silverSubtle → CandiColor
-
Subtle silver background tint.
final
- subtle → CandiColor
-
Alias for textSubtle. Common in design systems.
no setter
- success → CandiColor
-
Success state color (green).
final
- successOutline → CandiColor
-
The successOutline color.
final
- successSoft → CandiColor
-
The successSoft color.
final
- successStrong → CandiColor
-
The successStrong color.
final
- successSubtle → CandiColor
-
The successSubtle color.
final
- surface → CandiColor
-
Card and section background color.
final
- teal → CandiColor
-
Primitive teal color.
final
- tealOutline → CandiColor
-
Teal outline/border color.
final
- tealSoft → CandiColor
-
Soft teal foreground.
final
- tealStrong → CandiColor
-
Strong/dark teal variant.
final
- tealSubtle → CandiColor
-
Subtle teal background tint.
final
- terminalBlack → CandiColor
-
Terminal ANSI black color.
final
- terminalBlue → CandiColor
-
Terminal ANSI blue color.
final
- terminalCyan → CandiColor
-
Terminal ANSI cyan color.
final
- terminalGreen → CandiColor
-
Terminal ANSI green color.
final
- terminalMagenta → CandiColor
-
Terminal ANSI magenta color.
final
- terminalRed → CandiColor
-
Terminal ANSI red color.
final
- terminalWhite → CandiColor
-
Terminal ANSI white color.
final
- terminalYellow → CandiColor
-
Terminal ANSI yellow color.
final
- text → CandiColor
-
Primary text color.
final
- textMuted → CandiColor
-
Tertiary/muted text color for less important content.
final
- textSubtle → CandiColor
-
Secondary/subdued text color.
final
- warning → CandiColor
-
Warning state color (amber).
final
- warningOutline → CandiColor
-
The warningOutline color.
final
- warningSoft → CandiColor
-
The warningSoft color.
final
- warningStrong → CandiColor
-
The warningStrong color.
final
- warningSubtle → CandiColor
-
The warningSubtle color.
final
- yellow → CandiColor
-
Primitive yellow color.
final
- yellowOutline → CandiColor
-
Yellow outline/border color.
final
- yellowSoft → CandiColor
-
Soft yellow foreground.
final
- yellowStrong → CandiColor
-
Strong/dark yellow variant.
final
- yellowSubtle → CandiColor
-
Subtle yellow background tint.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toColorScheme(
{Brightness? brightness}) → ColorScheme - Creates a ColorScheme from this palette.
-
toString(
) → String -
A string representation of this object.
inherited
-
toThemeData(
{bool useMaterial3 = true}) → ThemeData - Creates a complete ThemeData from this palette.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited