Ordinary is a shadcn/ui theme built around a light violet primary color (#f2e8f8) with light green accents (#edf8e8). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the light violet primary (#f2e8f8) on a violet-tinted background (#0c060e).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #0c060eblack |
| Foreground | #100415black | #fdfcfdwhite |
| Card | #fdfbfdsnow | #0c060eblack |
| Card foreground | #100415black | #fdfcfdwhite |
| Popover | #fdfbfdsnow | #0c060eblack |
| Popover foreground | #100415black | #fdfcfdwhite |
| Primary | #f2e8f8lavender | #f2e8f8lavender |
| Primary foreground | #662a84rebeccapurple | #662a84rebeccapurple |
| Secondary | #edf8e8honeydew | #edf8e8honeydew |
| Secondary foreground | #1e3611darkgreen | #1e3611darkgreen |
| Muted | #f1f7edhoneydew | #0b1208black |
| Muted foreground | #555c51dimgray | #a7aea3darkgray |
| Accent | #edf8e8honeydew | #edf8e8honeydew |
| Accent foreground | #1e3611darkgreen | #1e3611darkgreen |
| Destructive | #6f2206maroon | #ed480corangered |
| Destructive foreground | #fbc1adlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2e8f8lavender | #f2e8f8lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 12.03:1 | AAA |
| Muted text | 6.34:1 | AA |
| Accent | 12.03:1 | AAA |
| Destructive | 6.96:1 | AA |
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 12.03:1 | AAA |
| Muted text | 8.37:1 | AAA |
| Accent | 12.03:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Ordinary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 314.812);
--foreground: oklch(0.141 0.043 314.311);
--muted: oklch(0.969 0.014 134.901);
--muted-foreground: oklch(0.465 0.019 135.03);
--popover: oklch(0.991 0.003 314.812);
--popover-foreground: oklch(0.141 0.043 314.311);
--card: oklch(0.991 0.003 314.812);
--card-foreground: oklch(0.141 0.043 314.311);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.943 0.024 314.703);
--primary-foreground: oklch(0.412 0.15 312.315);
--secondary: oklch(0.966 0.024 134.95);
--secondary-foreground: oklch(0.304 0.068 136.513);
--accent: oklch(0.966 0.024 134.95);
--accent-foreground: oklch(0.304 0.068 136.513);
--destructive: oklch(0.37 0.115 37.876);
--destructive-foreground: oklch(0.858 0.072 40.892);
--ring: oklch(0.943 0.024 314.703);
--chart-1: oklch(0.943 0.024 314.703);
--chart-2: oklch(0.966 0.024 134.95);
--chart-3: oklch(0.966 0.024 134.95);
--chart-4: oklch(0.983 0.012 134.887);
--chart-5: oklch(0.943 0.025 314.696);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.022 314.961);
--foreground: oklch(0.991 0.002 314.816);
--muted: oklch(0.17 0.022 135.271);
--muted-foreground: oklch(0.741 0.017 134.939);
--popover: oklch(0.136 0.022 314.961);
--popover-foreground: oklch(0.991 0.002 314.816);
--card: oklch(0.136 0.022 314.961);
--card-foreground: oklch(0.991 0.002 314.816);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.943 0.024 314.703);
--primary-foreground: oklch(0.412 0.15 312.315);
--secondary: oklch(0.966 0.024 134.95);
--secondary-foreground: oklch(0.304 0.068 136.513);
--accent: oklch(0.966 0.024 134.95);
--accent-foreground: oklch(0.304 0.068 136.513);
--destructive: oklch(0.634 0.21 36.514);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.943 0.024 314.703);
--chart-1: oklch(0.943 0.024 314.703);
--chart-2: oklch(0.966 0.024 134.95);
--chart-3: oklch(0.966 0.024 134.95);
--chart-4: oklch(0.983 0.012 134.887);
--chart-5: oklch(0.943 0.025 314.696);
}