Swell is a shadcn/ui theme built around a purple primary color (#de85ea) with teal accents (#85eade). The light mode uses a neutral background (#fefbfe). Dark mode keeps the purple primary (#de85ea) on a neutral background (#030204).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #030204black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fefbfewhite | #030204black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fefbfewhite | #030204black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #de85eaviolet | #de85eaviolet |
| Primary foreground | #2f0934midnightblue | #2f0934midnightblue |
| Secondary | #eade85khaki | #eade85khaki |
| Secondary foreground | #342f09black | #342f09black |
| Muted | #e7e4d0gainsboro | #2f2d18darkslategray |
| Muted foreground | #4d4b3ddarkslategray | #c2c0b2silver |
| Accent | #85eadeaquamarine | #85eadeaquamarine |
| Accent foreground | #09342fdarkslategray | #09342fdarkslategray |
| Destructive | #951a0fdarkred | #ed5345tomato |
| Destructive foreground | #fbdddamistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #de85eaviolet | #de85eaviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 20.41:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 9.85:1 | AAA |
| Muted text | 6.88:1 | AA |
| Accent | 9.62:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 20.73:1 | AAA |
| Text on card | 20.73:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 9.85:1 | AAA |
| Muted text | 7.61:1 | AAA |
| Accent | 9.62:1 | AAA |
| Destructive | 5.92:1 | AA |
Paste this into your globals.css to use Swell in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 322.131);
--foreground: oklch(0 0 0);
--muted: oklch(0.916 0.028 100.778);
--muted-foreground: oklch(0.411 0.024 101.133);
--popover: oklch(0.991 0.005 322.131);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.005 322.131);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.747 0.169 322.75);
--primary-foreground: oklch(0.231 0.088 322.805);
--secondary: oklch(0.892 0.112 101.776);
--secondary-foreground: oklch(0.303 0.055 101.646);
--accent: oklch(0.873 0.097 185.901);
--accent-foreground: oklch(0.296 0.047 183.689);
--destructive: oklch(0.433 0.159 29.995);
--destructive-foreground: oklch(0.921 0.034 23.981);
--ring: oklch(0.747 0.169 322.75);
--chart-1: oklch(0.747 0.169 322.75);
--chart-2: oklch(0.892 0.112 101.776);
--chart-3: oklch(0.873 0.097 185.901);
--chart-4: oklch(0.903 0.101 101.689);
--chart-5: oklch(0.746 0.175 322.766);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.013 323.338);
--foreground: oklch(1 0 180);
--muted: oklch(0.293 0.035 101.733);
--muted-foreground: oklch(0.807 0.02 100.703);
--popover: oklch(0.087 0.013 323.338);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.087 0.013 323.338);
--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.747 0.169 322.75);
--primary-foreground: oklch(0.231 0.088 322.805);
--secondary: oklch(0.892 0.112 101.776);
--secondary-foreground: oklch(0.303 0.055 101.646);
--accent: oklch(0.873 0.097 185.901);
--accent-foreground: oklch(0.296 0.047 183.689);
--destructive: oklch(0.649 0.191 28.636);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.747 0.169 322.75);
--chart-1: oklch(0.747 0.169 322.75);
--chart-2: oklch(0.892 0.112 101.776);
--chart-3: oklch(0.873 0.097 185.901);
--chart-4: oklch(0.903 0.101 101.689);
--chart-5: oklch(0.746 0.175 322.766);
}