Cosmic Night UI — Design System
The Cosmic Night theme — a cohesive shadcn/ui design system (measured tokens).
This is a static, crawlable rendering for search & AI engines. The interactive version — filters, live decode console, copy & export — is at https://mozaika.design/ds/cosmic-night-ui.
Tokens
Cosmic Night UI's decoded design system: background #0F0F1A, text #E2E2F5, accent #A48FFF, link #A48FFF, primary #A48FFF; type scale h1 36px / h2 24px / body 14px; 4px spacing base; 8px base radius. The single interactive/action color is #A48FFF — used only on interactive or must-notice elements (buttons, links, key highlights), never on large fills.
Color roles
| Role | Value |
|---|---|
| bg | #0F0F1A |
| surface | #1B1B27 |
| border | #2E2E3A |
| text | #E2E2F5 |
| text_muted | #9191A1 |
| primary | #A48FFF |
| accent | #A48FFF |
| link | #A48FFF |
| button_bg | #A48FFF |
| button_text | #0F0F1A |
Using these colors
- Action color
#A48FFF— the single interactive color; only on things you click or must notice, never large fills. primary,accent,link,button_bgare all#A48FFF— one role, not several (the action color).- accent
#A48FFF— THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed.
Typography
- Heading: Inter
- Body: Inter
- h1: 36px
- h2: 24px
- body: 14px
Spacing
- base unit: 4px
- scale: 2px, 4px, 6px, 8px, 12px, 16px, 24px, 32px
Radii
- base: 8px
- button: 8px
Export: DESIGN.md
# Cosmic Night UI — Design System > dark, modern, medium, react The Cosmic Night theme — a cohesive shadcn/ui design system (measured tokens). ## Colors | Role | Value | |------|-------| | bg | `#0F0F1A` | | surface | `#1B1B27` | | border | `#2E2E3A` | | text | `#E2E2F5` | | text_muted | `#9191A1` | | primary | `#A48FFF` | | accent | `#A48FFF` | | link | `#A48FFF` | | button_bg | `#A48FFF` | | button_text | `#0F0F1A` | **Using these colors** - **Action color** `#A48FFF` — the single interactive color; it appears only on things you click or must notice (buttons, key highlights), never on large fills or backgrounds. - `primary`, `accent`, `link`, `button_bg` are all `#A48FFF` — one role, not several (your action color). - **accent** `#A48FFF` — THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed. ## Typography - Heading: **Inter** - Body: **Inter** - h1: 36px - h2: 24px - body: 14px > **Fonts —** Inter — free, on Google. ## Spacing - base unit: 4px - scale: 2px, 4px, 6px, 8px, 12px, 16px, 24px, 32px ## Radius - base: 8px - button: 8px ## Primary button - bg `#A48FFF` · text `#0F0F1A` · radius 8px ## How to apply Paste the Tailwind `@theme` (or CSS variables) as your base, then build each section to its spec — verify every color, radius, and font against these tokens. --- > **Decoded with Mozaika** — measured live, not guessed. Full decoded design system + one-command install: mozaika.design/ds/cosmic-night-ui
Export: Tailwind v4 (@theme)
@theme {
/* action color #A48FFF — the one interactive color; buttons/links/emphasis only, never large fills. */
--color-bg: #0F0F1A;
--color-surface: #1B1B27;
--color-border: #2E2E3A;
--color-text: #E2E2F5;
--color-text-muted: #9191A1;
--color-primary: #A48FFF; /* primary brand / action color. */
--color-accent: #A48FFF; /* THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed. */
--color-link: #A48FFF; /* inline text links — shares the action color. */
--color-button-bg: #A48FFF; /* primary-button fill — the main call-to-action color. */
--color-button-text: #0F0F1A;
/* fonts: Inter — free, on Google. */
--font-heading: "Inter", system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-body: "Inter", system-ui, -apple-system, 'Segoe UI', sans-serif;
--text-h1: 36px;
--text-h2: 24px;
--text-body: 14px;
--radius-base: 8px;
--radius-button: 8px;
--spacing-1: 2px;
--spacing-2: 4px;
--spacing-3: 6px;
--spacing-4: 8px;
--spacing-5: 12px;
--spacing-6: 16px;
--spacing-7: 24px;
--spacing-8: 32px;
}Export: CSS variables
:root {
/* action color #A48FFF — the one interactive color; buttons/links/emphasis only, never large fills. */
--bg: #0F0F1A;
--surface: #1B1B27;
--border: #2E2E3A;
--text: #E2E2F5;
--text-muted: #9191A1;
--primary: #A48FFF; /* primary brand / action color. */
--accent: #A48FFF; /* THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed. */
--link: #A48FFF; /* inline text links — shares the action color. */
--button-bg: #A48FFF; /* primary-button fill — the main call-to-action color. */
--button-text: #0F0F1A;
--font-heading: "Inter", system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-body: "Inter", system-ui, -apple-system, 'Segoe UI', sans-serif;
--radius: 8px;
--radius-button: 8px;
}
/* fonts: Inter — free, on Google. */