Cosmic
A deep-space theme: violet-on-midnight, nebula accents, and luminous type for AI, astronomy, and dark-first product UIs.
Build something people love.
A live preview of this theme — every color, font, radius, and shadow you see is rendered straight from its tokens.
Color system
Click any swatch to copy. Contrast graded against WCAG.
Typography
Body sample. Sora carries running text — readable paragraphs, comfortable measure, and a rhythm that holds up across long pages of content and UI.
Radius, shadow & fonts
Components
Real UI rendered with this theme's tokens.
A surface for grouping content, with the theme's border, radius, and shadow.
Principles, guidelines & component specs
Do's & don'ts, spacing, motion, iconography, accessibility, and exact component specs — all in the design.md too.
Do
- •Use luminous violet against deep midnight surfaces.
- •Make the light mode intentional even though it is dark-first.
Don't
- •Don't add warm hues that break the cool atmosphere.
- •Don't over-brighten the surfaces.
- •Slow, drifting motion evokes deep space.
Hover to feel this theme's base transition.
Lucide · 1.5px stroke · 1rem. Outline icons with a consistent stroke width; size icons to match adjacent text and align them optically.
- Never use color as the only signal — pair it with text, an icon, or a shape.
- Every interactive element must be keyboard reachable and show a visible focus ring.
- Honor prefers-reduced-motion: reduce by disabling non-essential animation.
- Keep a logical heading order and give every form control a label.
Button
| Background | var(--primary) |
| Text | var(--primary-foreground) |
| Radius | 0.875rem |
| Padding | 0 1.2rem |
| Height | 2.7rem |
| Weight | 600 |
Badge
| Background | var(--accent) / var(--primary) |
| Text | var(--accent-foreground) / var(--primary-foreground) |
| Radius | 9999px |
| Padding | 0.15rem 0.55rem |
| Font size | 0.72rem |
| Weight | 600 |
Use for status, counts, and short labels. Keep to one or two words.
Alert
| Radius | 1.313rem |
| Padding | 1rem 1.25rem |
| Border | 1px solid var(--border) |
Always pair the color with an icon and a text label — never rely on color alone.
Form field
| Background | var(--background) |
| Border | 1px solid var(--input) |
| Radius | 0.875rem |
| Height | 2.7rem |
| Padding | 0.5rem 0.75rem |
Label sits above the field; helper or error text sits below.
Card
| Background | var(--card) |
| Text | var(--card-foreground) |
| Border | 1px solid var(--border) |
| Radius | 1.125rem |
| Padding | 1.5rem |
| Shadow | 0 0 32px -6px rgba(167,139,250,0.30) |
The design brief
Cosmic is a deep-space design system: luminous violet on midnight surfaces with nebula accents. It is dark-first, atmospheric, and tuned for AI and astronomy brands.
Principles
- Midnight surfaces with a luminous violet primary feel deep and calm.
- Nebula accents add atmosphere without breaking focus.
- Generous radii and soft glow give a spacious, modern feel.
When to use
Use Cosmic for AI products, astronomy/science apps, and dark-first dashboards. Avoid it where a bright, daytime light mode is the primary surface.
Signature details
- Violet
#7c3aedprimary on midnight#0a0a14. - Sora + JetBrains Mono, 0.875rem radius, soft glow.
Use this with your AI
Download or copy the design.md and paste it into Claude, Cursor, or v0 — it tells the agent exactly which colors, fonts, radii, and shadows to use, so your site comes out looking like this.
Export tokens
Drop straight into your codebase.
:root {
--radius: 0.875rem;
--background: #fbfaff;
--foreground: #16142e;
--card: #ffffff;
--card-foreground: #16142e;
--popover: #ffffff;
--popover-foreground: #16142e;
--primary: #7c3aed;
--primary-foreground: #ffffff;
--secondary: #f2f0fe;
--secondary-foreground: #16142e;
--muted: #f0eefa;
--muted-foreground: #5d567c;
--accent: #ede9fe;
--accent-foreground: #5b21b6;
--destructive: #dc2626;
--destructive-foreground: #ffffff;
--border: #e6e2f5;
--input: #e6e2f5;
--ring: #7c3aed;
--shadow-sm: 0 1px 2px rgba(10,10,20,0.40);
--shadow-md: 0 0 32px -6px rgba(167,139,250,0.30);
--shadow-lg: 0 0 64px -10px rgba(124,58,237,0.35);
--font-sans: 'Sora', ui-sans-serif, system-ui, sans-serif;
--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
--ease-standard: cubic-bezier(0.4,0,0.2,1);
--ease-emphasized: cubic-bezier(0.16,1,0.3,1);
--duration-base: 280ms;
}
.dark {
--background: #0a0a14;
--foreground: #e6e3f5;
--card: #121222;
--card-foreground: #e6e3f5;
--popover: #121222;
--popover-foreground: #e6e3f5;
--primary: #a78bfa;
--primary-foreground: #1e1b4b;
--secondary: #191931;
--secondary-foreground: #e6e3f5;
--muted: #191931;
--muted-foreground: #9b94bd;
--accent: #2a2456;
--accent-foreground: #ddd6fe;
--destructive: #fb7185;
--destructive-foreground: #450a0a;
--border: #23234a;
--input: #23234a;
--ring: #a78bfa;
}More designs
Bauhaus
A geometric theme: primary red-blue-yellow, hard edges, and grotesk type for bold, design-forward marketing and portfolios.
Holographic
An iridescent glass theme: violet-to-aqua sheen, frosted surfaces, and soft glow for futuristic, premium product UIs.
Synthwave
A neon sunset theme: hot-pink and violet over deep night, retro glow, and bold type for music, gaming, and night-mode apps.