Extra-large is a shadcn/ui theme built around a vivid deep blue primary color (#040e67) with vivid deep violet accents (#2c0467). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid deep blue primary (#040e67) on a blue-tinted background (#04050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #04050bblack |
| Foreground | #020308black | #f8f9fcghostwhite |
| Card | #f7f7fdghostwhite | #06060fblack |
| Card foreground | #010104black | #fcfcfdwhite |
| Popover | #f7f7fdghostwhite | #06060fblack |
| Popover foreground | #010104black | #fcfcfdwhite |
| Primary | #040e67midnightblue | #040e67midnightblue |
| Primary foreground | #a1abfclightsteelblue | #a1abfclightsteelblue |
| Secondary | #044067midnightblue | #044067midnightblue |
| Secondary foreground | #a1d8fclightblue | #a1d8fclightblue |
| Muted | #dbe5ebgainsboro | #141e24black |
| Muted foreground | #49535bdarkslategray | #a4afb6darkgray |
| Accent | #2c0467midnightblue | #2c0467midnightblue |
| Accent foreground | #c6a1fcplum | #c6a1fcplum |
| Destructive | #bf3203firebrick | #f13f04orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #040e67midnightblue | #040e67midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.97:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 6.12:1 | AA |
| Accent | 7.51:1 | AAA |
| Destructive | 5.72:1 | AA |
| Text on background | 19.34:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 7.58:1 | AAA |
| Accent | 7.51:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Extra-large in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 281.228);
--foreground: oklch(0.097 0.02 274.463);
--muted: oklch(0.915 0.014 236.661);
--muted-foreground: oklch(0.437 0.018 237.068);
--popover: oklch(0.979 0.007 281.168);
--popover-foreground: oklch(0.077 0.016 274.463);
--card: oklch(0.979 0.007 281.168);
--card-foreground: oklch(0.077 0.016 274.463);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.251 0.149 265.66);
--primary-foreground: oklch(0.764 0.117 278.397);
--secondary: oklch(0.358 0.088 245.532);
--secondary-foreground: oklch(0.856 0.075 237.967);
--accent: oklch(0.271 0.148 290.175);
--accent-foreground: oklch(0.776 0.131 301.846);
--destructive: oklch(0.532 0.184 35.267);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.251 0.149 265.66);
--chart-1: oklch(0.251 0.149 265.66);
--chart-2: oklch(0.358 0.088 245.532);
--chart-3: oklch(0.271 0.148 290.175);
--chart-4: oklch(0.391 0.098 245.99);
--chart-5: oklch(0.25 0.153 265.039);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.017 276.801);
--foreground: oklch(0.981 0.004 281.219);
--muted: oklch(0.227 0.02 237.928);
--muted-foreground: oklch(0.748 0.016 236.747);
--popover: oklch(0.129 0.02 276.997);
--popover-foreground: oklch(0.991 0.002 281.253);
--card: oklch(0.129 0.02 276.997);
--card-foreground: oklch(0.991 0.002 281.253);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.251 0.149 265.66);
--primary-foreground: oklch(0.764 0.117 278.397);
--secondary: oklch(0.358 0.088 245.532);
--secondary-foreground: oklch(0.856 0.075 237.967);
--accent: oklch(0.271 0.148 290.175);
--accent-foreground: oklch(0.776 0.131 301.846);
--destructive: oklch(0.631 0.221 34.855);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.251 0.149 265.66);
--chart-1: oklch(0.251 0.149 265.66);
--chart-2: oklch(0.358 0.088 245.532);
--chart-3: oklch(0.271 0.148 290.175);
--chart-4: oklch(0.391 0.098 245.99);
--chart-5: oklch(0.25 0.153 265.039);
}