ArcaneJaspr Codex
Documentation
Colors
Reference for background, text, and border color enums
Live Demo
Background colors
surface
surfaceVariant
accent
success
warning
error
Text color swatches
Aa primary
Aa muted
Aa accent
Aa success
Aa error

Colors#

These enums provide semantic color values that adapt to the current theme.

Background#

Background color presets.

Core Backgrounds#

ValueCSS VariableDescription
transparenttransparentTransparent background
background--arcane-backgroundPage background
backgroundSecondary --arcane-background-secondary Secondary background
backgroundTertiary --arcane-background-tertiary Tertiary background

Surface & Card#

ValueCSS VariableDescription
surface--arcane-surfaceSurface background
surfaceVariant --arcane-surface-variant Alternate surface
card--arcane-cardCard background
cardHover--arcane-card-hoverCard hover state
cardAlt--arcane-card-altAlternate card

Interactive#

ValueCSS VariableDescription
input--arcane-inputInput field background
navbar--arcane-navbarNavigation bar

Semantic#

ValueCSS VariableDescription
primary--arcane-primaryPrimary brand
secondary--arcane-secondarySecondary brand
tertiary--arcane-tertiaryTertiary brand
accent--arcane-accentAccent color
accentContainer --arcane-accent-container Accent container

Status#

ValueCSS VariableDescription
success--arcane-successSuccess state
successContainer --arcane-success-container Success container
warning--arcane-warningWarning state
error--arcane-errorError state
info--arcane-infoInfo state

Special#

ValueCSS VariableDescription
overlayOverlay colorModal/dialog overlay
tooltip--arcane-tooltipTooltip background
code --arcane-code-background Code block background
white #ffffff Pure white
black #000000 Pure black
muted--arcane-mutedMuted background
brandPrimaryBrand colorBrand primary
brandSecondaryBrand colorBrand secondary
destructive--arcane-errorDestructive actions

Glass Effects#

ValueCSS OutputDescription
glassTint rgba(255, 255, 255, 0.05) Subtle glass tint
glassHeader rgba(255, 255, 255, 0.03) Glass header effect
glassOverlay rgba(255, 255, 255, 0.08) Glass overlay effect

Usage#

ArcaneDiv(
  styles: const ArcaneStyleData(
    background: Background.surface,
    padding: PaddingPreset.lg,
    borderRadius: Radius.lg,
  ),
  children: [...],
)

TextColor#

Text color presets.

Primary Text#

ValueCSS VariableDescription
primary--arcane-textPrimary text
secondary--arcane-text-secondarySecondary text
muted--arcane-mutedMuted text
mutedForeground --arcane-muted-foreground Muted foreground
subtle--arcane-text-subtleSubtle text
faint--arcane-text-faintFaint text

Semantic Text#

ValueCSS VariableDescription
accent--arcane-accentAccent colored text
accentForeground --arcane-accent-foreground Text on accent
success--arcane-successSuccess text
successForeground --arcane-success-foreground Text on success
warning--arcane-warningWarning text
warningForeground --arcane-warning-foreground Text on warning
error--arcane-errorError text
errorForeground --arcane-error-foreground Text on error
info--arcane-infoInfo text
infoForeground --arcane-info-foreground Text on info

On-Surface Text#

ValueCSS VariableDescription
onPrimary--arcane-on-primaryText on primary
onSecondary --arcane-on-secondary Text on secondary
onBackground --arcane-on-background Text on background
onSurface--arcane-on-surfaceText on surface
onSurfaceVariant --arcane-on-surface-variant Text on surface variant
cardForeground --arcane-card-foreground Text on card
inputForeground --arcane-input-foreground Text in input
tooltipForeground --arcane-tooltip-foreground Text in tooltip

Fixed Colors#

ValueCSS OutputDescription
white #ffffff Pure white
black #000000 Pure black
inheritinheritInherit from parent

Brand Colors#

ValueDescription
brandPrimaryBrand primary color
brandMain brand color
brandSecondaryBrand secondary color

Neon Colors (Gaming)#

ValueCSS VariableDescription
neonPink--arcane-neon-pinkNeon pink
neonCyan--arcane-neon-cyanNeon cyan
neonPurple--arcane-neon-purpleNeon purple
neonGreen--arcane-neon-greenNeon green
neonOrange--arcane-neon-orangeNeon orange

Special#

ValueDescription
starRating star color

Usage#

ArcaneText(
  'Error message',
  styles: const ArcaneStyleData(
    textColor: TextColor.error,
  ),
)

// Accent link
ArcaneLink(
  href: '/docs',
  styles: const ArcaneStyleData(
    textColor: TextColor.accent,
  ),
  child: ArcaneText('Learn more'),
)

BorderColor#

Border color presets.

ValueCSS VariableDescription
standard--arcane-borderDefault border
subtle--arcane-border-subtleSubtle border
mediumMedium opacityMedium visibility
lightLight opacityLight visibility
ring--arcane-ringFocus ring
accent--arcane-accentAccent border
success--arcane-successSuccess border
warning--arcane-warningWarning border
error--arcane-errorError border
info--arcane-infoInfo border
transparenttransparentNo border
outline--arcane-outlineOutline color
outlineVariant --arcane-outline-variant Outline variant

NeonColor#

Neon/gaming color palette.

ValueCSS VariableDescription
pink--arcane-neon-pinkNeon pink
cyan--arcane-neon-cyanNeon cyan
purple--arcane-neon-purpleNeon purple
green--arcane-neon-greenNeon green
orange--arcane-neon-orangeNeon orange

GameColor#

Game-themed brand colors.

ValueCSS VariableDescription
minecraft--arcane-minecraftMinecraft green
rust--arcane-rustRust orange
ark--arcane-arkARK blue
valheim--arcane-valheimValheim gold
cs2--arcane-cs2CS2 orange
terraria--arcane-terrariaTerraria green

Color Class#

For custom colors, use the Color class:

// From ARGB
final color = Color.fromARGB(255, 16, 185, 129);

// From RGBO
final colorWithOpacity = Color.fromRGBO(16, 185, 129, 0.5);

// Properties
color.alpha    // Alpha component
color.red      // Red component
color.green    // Green component
color.blue     // Blue component
color.opacity  // Opacity (0.0 - 1.0)

// CSS output
color.css      // "rgba(16, 185, 129, 1)"
color.hex      // "#10b981"

// Modifications
color.withOpacity(0.5)
color.withAlpha(128)
color.lighten(0.1)
color.darken(0.1)
color.spin(30)  // Hue rotation

// Luminance
color.computeLuminance()

Colors Palette#

Predefined color palettes are available:

Gray Scales#

Colors.gray50   // Lightest gray
Colors.gray100
Colors.gray200
Colors.gray300
Colors.gray400
Colors.gray500
Colors.gray600
Colors.gray700
Colors.gray800
Colors.gray900
Colors.gray950  // Darkest gray

Similar palettes exist for:

  • slate - Blue-tinted grays
  • zinc - Neutral grays (Supabase default)

Primary Colors#

Each has 50-950 variants:

  • red
  • orange
  • amber
  • yellow
  • lime
  • green
  • emerald
  • teal
  • cyan
  • sky
  • blue
  • indigo
  • violet
  • purple
  • fuchsia
  • pink
  • rose

Usage#

ArcaneDiv(
  styles: ArcaneStyleData(
    raw: {
      'background': Colors.emerald500.css,
      'color': Colors.white.css,
    },
  ),
  children: [...],
)