Current is a shadcn/ui theme built around a violet primary color (#8321c4) with teal accents (#21c483). The light mode uses a neutral background (#faf8fc). Dark mode keeps the violet primary (#8321c4) on a neutral background (#060208).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #060208black |
| Foreground | #0b0411black | #faf9fbghostwhite |
| Card | #faf8fcghostwhite | #060208black |
| Card foreground | #0b0411black | #faf9fbghostwhite |
| Popover | #faf8fcghostwhite | #060208black |
| Popover foreground | #0b0411black | #faf9fbghostwhite |
| Primary | #8321c4darkorchid | #8321c4darkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c48321darkgoldenrod | #c48321darkgoldenrod |
| Secondary foreground | #160f04black | #160f04black |
| Muted | #e0dcd7gainsboro | #28251fblack |
| Muted foreground | #645f59dimgray | #a6a29bdarkgray |
| Accent | #21c483mediumseagreen | #21c483mediumseagreen |
| Accent foreground | #04160fblack | #04160fblack |
| Destructive | #701e01maroon | #fe5f25tomato |
| Destructive foreground | #ffbca4lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8321c4darkorchid | #8321c4darkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 5.99:1 | AA |
| Muted text | 4.63:1 | AA |
| Accent | 8.26:1 | AAA |
| Destructive | 6.93:1 | AA |
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 5.99:1 | AA |
| Muted text | 6.03:1 | AA |
| Accent | 8.26:1 | AAA |
| Destructive | 6.86:1 | AA |
Paste this into your globals.css to use Current in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.007 312.307);
--foreground: oklch(0.129 0.034 312.473);
--muted: oklch(0.896 0.008 78.284);
--muted-foreground: oklch(0.489 0.012 78.213);
--popover: oklch(0.981 0.007 312.307);
--popover-foreground: oklch(0.129 0.034 312.473);
--card: oklch(0.981 0.007 312.307);
--card-foreground: oklch(0.129 0.034 312.473);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.493 0.23 306.307);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.662 0.132 71.273);
--secondary-foreground: oklch(0.172 0.026 79.754);
--accent: oklch(0.727 0.158 159.71);
--accent-foreground: oklch(0.18 0.03 166.016);
--destructive: oklch(0.365 0.12 37.59);
--destructive-foreground: oklch(0.85 0.084 40.85);
--ring: oklch(0.493 0.23 306.307);
--chart-1: oklch(0.493 0.23 306.307);
--chart-2: oklch(0.662 0.132 71.273);
--chart-3: oklch(0.727 0.158 159.71);
--chart-4: oklch(0.694 0.138 71.175);
--chart-5: oklch(0.495 0.235 305.9);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.023 314.206);
--foreground: oklch(0.983 0.003 312.336);
--muted: oklch(0.265 0.011 78.116);
--muted-foreground: oklch(0.713 0.011 78.257);
--popover: oklch(0.103 0.023 314.206);
--popover-foreground: oklch(0.983 0.003 312.336);
--card: oklch(0.103 0.023 314.206);
--card-foreground: oklch(0.983 0.003 312.336);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.493 0.23 306.307);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.662 0.132 71.273);
--secondary-foreground: oklch(0.172 0.026 79.754);
--accent: oklch(0.727 0.158 159.71);
--accent-foreground: oklch(0.18 0.03 166.016);
--destructive: oklch(0.686 0.205 38.303);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.493 0.23 306.307);
--chart-1: oklch(0.493 0.23 306.307);
--chart-2: oklch(0.662 0.132 71.273);
--chart-3: oklch(0.727 0.158 159.71);
--chart-4: oklch(0.694 0.138 71.175);
--chart-5: oklch(0.495 0.235 305.9);
}