Something is a shadcn/ui theme built around a purple primary color (#8a239a) with pink accents (#9a236e). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the purple primary (#8a239a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #000000black |
| Foreground | #070308black | #f9f6f9whitesmoke |
| Card | #fbf8fcghostwhite | #030303black |
| Card foreground | #030104black | #fbf9fbsnow |
| Popover | #fbf8fcghostwhite | #030303black |
| Popover foreground | #030104black | #fbf9fbsnow |
| Primary | #8a239adarkmagenta | #8a239adarkmagenta |
| Primary foreground | #fbf3fcghostwhite | #fbf3fcghostwhite |
| Secondary | #4e239arebeccapurple | #4e239arebeccapurple |
| Secondary foreground | #f6f3fcghostwhite | #f6f3fcghostwhite |
| Muted | #eeebf5lavender | #0e0a14black |
| Muted foreground | #4a4356darkslategray | #b0a9bcdarkgray |
| Accent | #9a236epurple | #9a236epurple |
| Accent foreground | #fcf3f9lavenderblush | #fcf3f9lavenderblush |
| Destructive | #7d1307maroon | #f23b26orangered |
| Destructive foreground | #fbc2bclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8a239adarkmagenta | #8a239adarkmagenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 6.94:1 | AA |
| Secondary button | 9.41:1 | AAA |
| Muted text | 7.99:1 | AAA |
| Accent | 6.81:1 | AA |
| Destructive | 6.86:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 6.94:1 | AA |
| Secondary button | 9.41:1 | AAA |
| Muted text | 8.60:1 | AAA |
| Accent | 6.81:1 | AA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Something in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 321.601);
--foreground: oklch(0.108 0.022 323.194);
--muted: oklch(0.945 0.014 302.71);
--muted-foreground: oklch(0.398 0.032 301.71);
--popover: oklch(0.983 0.006 321.609);
--popover-foreground: oklch(0.086 0.017 323.194);
--card: oklch(0.983 0.006 321.609);
--card-foreground: oklch(0.086 0.017 323.194);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.472 0.193 321.903);
--primary-foreground: oklch(0.972 0.015 321.637);
--secondary: oklch(0.393 0.178 293.03);
--secondary-foreground: oklch(0.968 0.013 302.72);
--accent: oklch(0.474 0.171 346.864);
--accent-foreground: oklch(0.972 0.013 339.005);
--destructive: oklch(0.382 0.142 30.574);
--destructive-foreground: oklch(0.863 0.067 25.806);
--ring: oklch(0.472 0.193 321.903);
--chart-1: oklch(0.472 0.193 321.903);
--chart-2: oklch(0.393 0.178 293.03);
--chart-3: oklch(0.474 0.171 346.864);
--chart-4: oklch(0.415 0.189 292.884);
--chart-5: oklch(0.475 0.199 321.838);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.005 321.608);
--muted: oklch(0.157 0.021 300.817);
--muted-foreground: oklch(0.747 0.027 302.377);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.984 0.004 321.603);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.984 0.004 321.603);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.472 0.193 321.903);
--primary-foreground: oklch(0.972 0.015 321.637);
--secondary: oklch(0.393 0.178 293.03);
--secondary-foreground: oklch(0.968 0.013 302.72);
--accent: oklch(0.474 0.171 346.864);
--accent-foreground: oklch(0.972 0.013 339.005);
--destructive: oklch(0.631 0.222 30.418);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.472 0.193 321.903);
--chart-1: oklch(0.472 0.193 321.903);
--chart-2: oklch(0.393 0.178 293.03);
--chart-3: oklch(0.474 0.171 346.864);
--chart-4: oklch(0.415 0.189 292.884);
--chart-5: oklch(0.475 0.199 321.838);
}