Rag is a shadcn/ui theme built around a deep red primary color (#2c0d0c) with deep indigo accents (#0d0c2c). The light mode uses a neutral background (#fdf7f6). Dark mode keeps the deep red primary (#2c0d0c) on a neutral background (#040202).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f6snow | #040202black |
| Foreground | #040101black | #ffffffwhite |
| Card | #fdf7f6snow | #040202black |
| Card foreground | #040101black | #ffffffwhite |
| Popover | #fdf7f6snow | #040202black |
| Popover foreground | #040101black | #ffffffwhite |
| Primary | #2c0d0cblack | #2c0d0cblack |
| Primary foreground | #de8e8cdarksalmon | #de8e8cdarksalmon |
| Secondary | #0c2c0dblack | #0c2c0dblack |
| Secondary foreground | #3cc841limegreen | #3cc841limegreen |
| Muted | #e5f1e5beige | #0e1a0fblack |
| Muted foreground | #576058dimgray | #9fa89fdarkgray |
| Accent | #0d0c2cblack | #0d0c2cblack |
| Accent foreground | #8e8cdemediumpurple | #8e8cdemediumpurple |
| Destructive | #60200bmaroon | #d84818chocolate |
| Destructive foreground | #f5bba8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2c0d0cblack | #2c0d0cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 6.91:1 | AA |
| Muted text | 5.58:1 | AA |
| Accent | 6.27:1 | AA |
| Destructive | 7.32:1 | AAA |
| Text on background | 20.74:1 | AAA |
| Text on card | 20.74:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 6.91:1 | AA |
| Muted text | 7.28:1 | AAA |
| Accent | 6.27:1 | AA |
| Destructive | 4.33:1 | AA Large |
Paste this into your globals.css to use Rag in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 19.71);
--foreground: oklch(0.084 0.012 23.141);
--muted: oklch(0.945 0.02 146.358);
--muted-foreground: oklch(0.48 0.018 146.207);
--popover: oklch(0.98 0.007 19.71);
--popover-foreground: oklch(0.084 0.012 23.141);
--card: oklch(0.98 0.007 19.71);
--card-foreground: oklch(0.084 0.012 23.141);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.211 0.051 24.387);
--primary-foreground: oklch(0.729 0.098 21.892);
--secondary: oklch(0.26 0.065 143.973);
--secondary-foreground: oklch(0.732 0.212 143.459);
--accent: oklch(0.18 0.062 279.734);
--accent-foreground: oklch(0.675 0.121 284.186);
--destructive: oklch(0.34 0.099 37.77);
--destructive-foreground: oklch(0.84 0.073 39.226);
--ring: oklch(0.211 0.051 24.387);
--chart-1: oklch(0.211 0.051 24.387);
--chart-2: oklch(0.26 0.065 143.973);
--chart-3: oklch(0.18 0.062 279.734);
--chart-4: oklch(0.301 0.079 143.828);
--chart-5: oklch(0.211 0.053 24.717);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.009 21.89);
--foreground: oklch(1 0 180);
--muted: oklch(0.204 0.028 145.24);
--muted-foreground: oklch(0.721 0.016 146.342);
--popover: oklch(0.086 0.009 21.89);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.086 0.009 21.89);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.211 0.051 24.387);
--primary-foreground: oklch(0.729 0.098 21.892);
--secondary: oklch(0.26 0.065 143.973);
--secondary-foreground: oklch(0.732 0.212 143.459);
--accent: oklch(0.18 0.062 279.734);
--accent-foreground: oklch(0.675 0.121 284.186);
--destructive: oklch(0.598 0.188 36.887);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.211 0.051 24.387);
--chart-1: oklch(0.211 0.051 24.387);
--chart-2: oklch(0.26 0.065 143.973);
--chart-3: oklch(0.18 0.062 279.734);
--chart-4: oklch(0.301 0.079 143.828);
--chart-5: oklch(0.211 0.053 24.717);
}