Cosmo
Celestial color on translucent panels with geometric type and quiet light.
Palettes
Cosmo
Color tokens
Astral- --background
- #f8f7ff
- --foreground
- #29204b
- --card
- color-mix(in srgb, #f8f7ff, white 75%)
- --card-foreground
- var(--foreground)
- --popover
- var(--card)
- --popover-foreground
- var(--foreground)
- --primary
- #6446aa
- --primary-foreground
- #ffffff
- --secondary
- color-mix(in srgb, #6446aa, white 90%)
- --secondary-foreground
- var(--foreground)
- --muted
- var(--secondary)
- --muted-foreground
- color-mix(in srgb, #29204b, white 30%)
- --accent
- color-mix(in srgb, #a66bd7, white 84%)
- --accent-foreground
- var(--foreground)
- --destructive
- #a93642
- --border
- color-mix(in srgb, #29204b, transparent 78%)
- --input
- var(--border)
- --ring
- #6446aa
- --chart-1
- var(--primary)
- --chart-2
- #a66bd7
- --chart-3
- #7390a0
- --chart-4
- #8a9d82
- --chart-5
- #a68b80
- --sidebar
- var(--card)
- --sidebar-foreground
- var(--foreground)
- --sidebar-primary
- var(--primary)
- --sidebar-primary-foreground
- var(--primary-foreground)
- --sidebar-accent
- var(--accent)
- --sidebar-accent-foreground
- var(--foreground)
- --sidebar-border
- var(--border)
- --sidebar-ring
- var(--ring)
Astral CSS
/* Cosmo / Astral: semantic colors; geometry belongs to the theme. */
:root[data-elements-theme="cosmo"][data-elements-palette="astral"] {
--background: #f8f7ff;
--foreground: #29204b;
--card: color-mix(in srgb, #f8f7ff, white 75%);
--card-foreground: var(--foreground);
--popover: var(--card);
--popover-foreground: var(--foreground);
--primary: #6446aa;
--primary-foreground: #ffffff;
--secondary: color-mix(in srgb, #6446aa, white 90%);
--secondary-foreground: var(--foreground);
--muted: var(--secondary);
--muted-foreground: color-mix(in srgb, #29204b, white 30%);
--accent: color-mix(in srgb, #a66bd7, white 84%);
--accent-foreground: var(--foreground);
--destructive: #a93642;
--border: color-mix(in srgb, #29204b, transparent 78%);
--input: var(--border);
--ring: #6446aa;
--chart-1: var(--primary);
--chart-2: #a66bd7;
--chart-3: #7390a0;
--chart-4: #8a9d82;
--chart-5: #a68b80;
--sidebar: var(--card);
--sidebar-foreground: var(--foreground);
--sidebar-primary: var(--primary);
--sidebar-primary-foreground: var(--primary-foreground);
--sidebar-accent: var(--accent);
--sidebar-accent-foreground: var(--foreground);
--sidebar-border: var(--border);
--sidebar-ring: var(--ring);
}
:root[data-elements-theme="cosmo"][data-elements-palette="astral"].dark {
--background: #141127;
--foreground: #f6f4f3;
--card: color-mix(in srgb, #141127, white 6%);
--card-foreground: var(--foreground);
--popover: var(--card);
--popover-foreground: var(--foreground);
--primary: #d8c0ff;
--primary-foreground: #141127;
--secondary: color-mix(in srgb, #141127, #d8c0ff 17%);
--secondary-foreground: var(--foreground);
--muted: var(--secondary);
--muted-foreground: color-mix(in srgb, #f6f4f3, #141127 30%);
--accent: color-mix(in srgb, #141127, #a67ef5 22%);
--accent-foreground: var(--foreground);
--destructive: #ff9aa3;
--border: color-mix(in srgb, #f6f4f3, transparent 72%);
--input: var(--border);
--ring: #d8c0ff;
--chart-1: var(--primary);
--chart-2: #a67ef5;
--chart-3: #a1bfd1;
--chart-4: #b0ca9d;
--chart-5: #d1ad9f;
--sidebar: var(--card);
--sidebar-foreground: var(--foreground);
--sidebar-primary: var(--primary);
--sidebar-primary-foreground: var(--primary-foreground);
--sidebar-accent: var(--accent);
--sidebar-accent-foreground: var(--foreground);
--sidebar-border: var(--border);
--sidebar-ring: var(--ring);
}
Design formula
- Spacing
- 4px base unit
- Control heights
- 24 / 28 / 32 / 36px
- Base radius
- 16px base; 12px controls and 20px panels
- Typography
- Geometric sans headings and mono labels
- States
- Hover, focus, active, disabled, invalid
- Primitives
- Semantic HTML and Base UI
Use this theme
@import "tailwindcss";
@import "@jnpll/elements-ui/themes.css";
@source "../../node_modules/@jnpll/elements-ui/dist";<html data-elements-theme="cosmo" data-elements-palette="astral">
<!-- application -->
</html>