Socialist is a shadcn/ui theme built around a vivid light orange primary color (#fdcbaf) with vivid light blue accents (#afe2fd). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the vivid light orange primary (#fdcbaf) on a neutral background (#040202).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf9f7snow | #040202black |
| Foreground | #0d0602black | #fdfcfbsnow |
| Card | #fdf9f7snow | #040202black |
| Card foreground | #0d0602black | #fdfcfbsnow |
| Popover | #fdf9f7snow | #040202black |
| Popover foreground | #0d0602black | #fdfcfbsnow |
| Primary | #fdcbafpeachpuff | #fdcbafpeachpuff |
| Primary foreground | #772c03saddlebrown | #772c03saddlebrown |
| Secondary | #afe2fdpaleturquoise | #afe2fdpaleturquoise |
| Secondary foreground | #034f77teal | #034f77teal |
| Muted | #e8eceelavender | #111517black |
| Muted foreground | #5b666bdimgray | #949ea4darkgray |
| Accent | #afe2fdpaleturquoise | #afe2fdpaleturquoise |
| Accent foreground | #034f77teal | #034f77teal |
| Destructive | #761805maroon | #eb2f0aorangered |
| Destructive foreground | #fcbdb1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fdcbafpeachpuff | #fdcbafpeachpuff |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 6.32:1 | AA |
| Muted text | 4.94:1 | AA |
| Accent | 6.32:1 | AA |
| Destructive | 6.89:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 6.32:1 | AA |
| Muted text | 6.70:1 | AA |
| Accent | 6.32:1 | AA |
| Destructive | 4.24:1 | AA Large |
Paste this into your globals.css to use Socialist in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.005 50.593);
--foreground: oklch(0.132 0.02 60.938);
--muted: oklch(0.939 0.005 230.735);
--muted-foreground: oklch(0.503 0.016 231.114);
--popover: oklch(0.985 0.005 50.593);
--popover-foreground: oklch(0.132 0.02 60.938);
--card: oklch(0.985 0.005 50.593);
--card-foreground: oklch(0.132 0.02 60.938);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.878 0.068 49.748);
--primary-foreground: oklch(0.397 0.116 42.806);
--secondary: oklch(0.886 0.064 231.912);
--secondary-foreground: oklch(0.408 0.094 241.176);
--accent: oklch(0.886 0.064 231.912);
--accent-foreground: oklch(0.408 0.094 241.176);
--destructive: oklch(0.37 0.131 32.9);
--destructive-foreground: oklch(0.853 0.075 31.477);
--ring: oklch(0.878 0.068 49.748);
--chart-1: oklch(0.878 0.068 49.748);
--chart-2: oklch(0.886 0.064 231.912);
--chart-3: oklch(0.886 0.064 231.912);
--chart-4: oklch(0.907 0.052 231.597);
--chart-5: oklch(0.878 0.07 49.72);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.091 0.007 56.162);
--foreground: oklch(0.992 0.002 50.638);
--muted: oklch(0.194 0.008 231.249);
--muted-foreground: oklch(0.693 0.014 230.955);
--popover: oklch(0.091 0.007 56.162);
--popover-foreground: oklch(0.992 0.002 50.638);
--card: oklch(0.091 0.007 56.162);
--card-foreground: oklch(0.992 0.002 50.638);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.878 0.068 49.748);
--primary-foreground: oklch(0.397 0.116 42.806);
--secondary: oklch(0.886 0.064 231.912);
--secondary-foreground: oklch(0.408 0.094 241.176);
--accent: oklch(0.886 0.064 231.912);
--accent-foreground: oklch(0.408 0.094 241.176);
--destructive: oklch(0.609 0.225 32.134);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.878 0.068 49.748);
--chart-1: oklch(0.878 0.068 49.748);
--chart-2: oklch(0.886 0.064 231.912);
--chart-3: oklch(0.886 0.064 231.912);
--chart-4: oklch(0.907 0.052 231.597);
--chart-5: oklch(0.878 0.07 49.72);
}