Color System
Examples and documentation for the color system component
Global Color System
This demonstrates the global color system that provides consistent color themes across all UI components. Colors work seamlessly with the sizing system for flexible component styling.
Brand Colors
Primary brand color for main actions and branding.
Accent color for secondary actions and highlights.
Secondary color for less prominent elements.
Status Colors
Success color for positive actions and confirmations.
Warning color for cautionary messages and actions.
Danger color for destructive actions and errors.
Info color for informational messages and actions.
Neutral Colors
Gray color for neutral and muted elements.
Muted color for subtle and background elements.
Light color for subtle backgrounds and borders.
White color for clean, minimal designs.
Theme Colors
Updates color for system notifications and updates.
Inbox color for messaging and communication features.
Rosy color for warm, friendly interfaces.
Sea color for calm, professional interfaces.
Color Variants
Different variants of the primary color:
Different variants of the success color:
Size + Color Combinations
Small card with primary color showing how sizes and colors work together.
Large card with success color demonstrating the flexibility of the system.
Extra large card with warning color showing maximum emphasis.
Code Examples
Basic Color Usage
<x-ui.card color="primary">...</x-ui.card>
<x-ui.button color="success">...</x-ui.button>
<x-ui.badge color="warning">...</x-ui.badge>
Color + Size Combinations
<x-ui.card color="primary" size="lg">...</x-ui.card>
<x-ui.button color="success" size="sm">...</x-ui.button>
<x-ui.badge color="warning" size="xl">...</x-ui.badge>
Color + Variant Combinations
<x-ui.button color="primary" variant="outline">...</x-ui.button>
<x-ui.badge color="success" variant="filled">...</x-ui.badge>
<x-ui.card color="warning" variant="solid">...</x-ui.card>
Available Color Themes
primary, accent, secondary
success, warning, danger, info
gray, muted, light, white, black
updates, inbox, rosy, sea, trend
facebook, twitter, instagram, linkedin
blue, pink, create, rss, github