CodexTheme enum
Color themes for Codex stylesheet.
Each theme defines a primary accent color and supporting light-mode surfaces.
Values
- green → const CodexTheme
-
Emerald green - #10b981 Light mode: Bold mint surfaces
const CodexTheme(color: 0xFF10b981, lightSecondary: 0xFFd1fae5, lightAccent: 0xFFa7f3d0, lightBorder: 0xFF6ee7b7) - red → const CodexTheme
-
Bright red - #ef4444 Light mode: Bold coral/rose surfaces
const CodexTheme(color: 0xFFef4444, lightSecondary: 0xFFfee2e2, lightAccent: 0xFFfecaca, lightBorder: 0xFFfca5a5) - blue → const CodexTheme
-
Electric blue - #3b82f6 Light mode: Bold sky blue surfaces
const CodexTheme(color: 0xFF3b82f6, lightSecondary: 0xFFdbeafe, lightAccent: 0xFFbfdbfe, lightBorder: 0xFF93c5fd) - purple → const CodexTheme
-
Vibrant purple - #8b5cf6 Light mode: Bold lavender surfaces
const CodexTheme(color: 0xFF8b5cf6, lightSecondary: 0xFFede9fe, lightAccent: 0xFFddd6fe, lightBorder: 0xFFc4b5fd) - cyan → const CodexTheme
-
Neon cyan - #22d3ee Light mode: Bold aqua surfaces
const CodexTheme(color: 0xFF22d3ee, lightSecondary: 0xFFcffafe, lightAccent: 0xFFa5f3fc, lightBorder: 0xFF67e8f9) - pink → const CodexTheme
-
Hot pink - #ec4899 Light mode: Bold pink surfaces
const CodexTheme(color: 0xFFec4899, lightSecondary: 0xFFfce7f3, lightAccent: 0xFFfbcfe8, lightBorder: 0xFFf9a8d4) - orange → const CodexTheme
-
Bright orange - #f97316 Light mode: Bold peach/amber surfaces
const CodexTheme(color: 0xFFf97316, lightSecondary: 0xFFffedd5, lightAccent: 0xFFfed7aa, lightBorder: 0xFFfdba74) - rainbow → const CodexTheme
-
Rainbow RGB spin - cycles through all colors. Uses cyan as the base color, with CSS animation override.
const CodexTheme(color: 0xFF22d3ee, lightSecondary: 0xFFcffafe, lightAccent: 0xFFa5f3fc, lightBorder: 0xFF67e8f9)
Properties
- color → int
-
The primary accent color for this theme.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- lightAccent → int
-
Light mode accent surface color (hover states, interactive).
final
- lightBorder → int
-
Light mode border color.
final
- lightSecondary → int
-
Light mode secondary surface color (cards, elevated surfaces).
final
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
CodexTheme> - A constant List of the values in this enum, in order of their declaration.