Volatility is a shadcn/ui theme built around a light red primary color (#f6eeee) with light indigo accents (#eeeef6). The light mode uses a neutral background (#fefbfb). Dark mode keeps the light red primary (#f6eeee) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #080202black | #f9f5f5whitesmoke |
| Card | #fefbfbsnow | #000000black |
| Card foreground | #080202black | #f9f5f5whitesmoke |
| Popover | #fefbfbsnow | #000000black |
| Popover foreground | #080202black | #f9f5f5whitesmoke |
| Primary | #f6eeeelinen | #f6eeeelinen |
| Primary foreground | #753e3esaddlebrown | #753e3esaddlebrown |
| Secondary | #eef6eehoneydew | #eef6eehoneydew |
| Secondary foreground | #1a321ablack | #1a321ablack |
| Muted | #d8e4d8gainsboro | #1b271bblack |
| Muted foreground | #495049darkslategray | #afb6afdarkgray |
| Accent | #eeeef6whitesmoke | #eeeef6whitesmoke |
| Accent foreground | #3e3e75darkslateblue | #3e3e75darkslateblue |
| Destructive | #9d3e07saddlebrown | #f67023chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6eeeelinen | #f6eeeelinen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 12.60:1 | AAA |
| Muted text | 6.32:1 | AA |
| Accent | 8.48:1 | AAA |
| Destructive | 6.75:1 | AA |
| Text on background | 19.40:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 12.60:1 | AAA |
| Muted text | 7.47:1 | AAA |
| Accent | 8.48:1 | AAA |
| Destructive | 7.25:1 | AAA |
Paste this into your globals.css to use Volatility in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 17.222);
--foreground: oklch(0.105 0.016 20.215);
--muted: oklch(0.906 0.02 145.404);
--muted-foreground: oklch(0.423 0.016 145.288);
--popover: oklch(0.99 0.004 17.222);
--popover-foreground: oklch(0.105 0.016 20.215);
--card: oklch(0.99 0.004 17.222);
--card-foreground: oklch(0.105 0.016 20.215);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.956 0.009 17.306);
--primary-foreground: oklch(0.431 0.077 20.766);
--secondary: oklch(0.966 0.013 145.471);
--secondary-foreground: oklch(0.291 0.052 144.102);
--accent: oklch(0.952 0.011 286.198);
--accent-foreground: oklch(0.391 0.092 281.268);
--destructive: oklch(0.487 0.139 43.487);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.956 0.009 17.306);
--chart-1: oklch(0.956 0.009 17.306);
--chart-2: oklch(0.966 0.013 145.471);
--chart-3: oklch(0.952 0.011 286.198);
--chart-4: oklch(0.986 0.005 145.535);
--chart-5: oklch(0.956 0.009 17.32);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.974 0.004 17.227);
--muted: oklch(0.258 0.028 144.722);
--muted-foreground: oklch(0.769 0.014 145.441);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.974 0.004 17.227);
--card: oklch(0 0 0);
--card-foreground: oklch(0.974 0.004 17.227);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.956 0.009 17.306);
--primary-foreground: oklch(0.431 0.077 20.766);
--secondary: oklch(0.966 0.013 145.471);
--secondary-foreground: oklch(0.291 0.052 144.102);
--accent: oklch(0.952 0.011 286.198);
--accent-foreground: oklch(0.391 0.092 281.268);
--destructive: oklch(0.697 0.184 45.538);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.956 0.009 17.306);
--chart-1: oklch(0.956 0.009 17.306);
--chart-2: oklch(0.966 0.013 145.471);
--chart-3: oklch(0.952 0.011 286.198);
--chart-4: oklch(0.986 0.005 145.535);
--chart-5: oklch(0.956 0.009 17.32);
}