Theme Reference
Design tokens powering the @blastx/ui component library. All tokens adapt automatically between light and dark mode via CSS custom properties.
Colors
Color tokens defined as OKLCH values. Use the Tailwind utility classes (e.g., bg-primary, text-muted-foreground).
background
var(--background)
foreground
var(--foreground)
card
var(--card)
card-foreground
var(--card-foreground)
popover
var(--popover)
popover-foreground
var(--popover-foreground)
primary
var(--primary)
primary-foreground
var(--primary-foreground)
secondary
var(--secondary)
secondary-foreground
var(--secondary-foreground)
tertiary
var(--tertiary)
tertiary-foreground
var(--tertiary-foreground)
accent
var(--accent)
accent-foreground
var(--accent-foreground)
muted
var(--muted)
muted-foreground
var(--muted-foreground)
success
var(--success)
success-foreground
var(--success-foreground)
warning
var(--warning)
warning-foreground
var(--warning-foreground)
destructive
var(--destructive)
destructive-foreground
var(--destructive-foreground)
border
var(--border)
input
var(--input)
ring
var(--ring)
Chart Colors
Dedicated palette for data visualization.
chart-1
var(--chart-1)
chart-2
var(--chart-2)
chart-3
var(--chart-3)
chart-4
var(--chart-4)
chart-5
var(--chart-5)
Border Radius
Base radius is 0.75rem (12px). All radius tokens derive from this base value.
--radius-sm
calc(var(--radius) - 4px)
--radius-md
calc(var(--radius) - 2px)
--radius-lg
var(--radius)
--radius-xl
calc(var(--radius) + 4px)
Typography
The theme uses Geist font family via CSS custom properties.
font-sans (--font-geist-sans)
The quick brown fox jumps over the lazy dog.
font-mono (--font-geist-mono)
The quick brown fox jumps over the lazy dog.
Gradients
Brand gradient utility classes available in the theme.
.gradient-brand
Primary brand gradient
.gradient-blue-purple
Blue to purple
.gradient-cyan-pink
Cyan to primary
Usage
/* Import the theme in your globals.css */
@import "tailwindcss";
@import "@blastx/ui/theme.css";
/* Then use Tailwind utility classes */
<div className="bg-primary text-primary-foreground rounded-lg">
Styled with theme tokens
</div>
<div className="bg-card border border-border text-card-foreground">
Card surface
</div>
<p className="text-muted-foreground">
De-emphasized text
</p>