Repulsive is a shadcn/ui theme built around a light red primary color (#f7eae9) with light teal accents (#e9f6f7). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#f7eae9) on a red-tinted background (#100505).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #100505black |
| Foreground | #080302black | #fcf8f8snow |
| Card | #ffffffwhite | #100505black |
| Card foreground | #080302black | #fcf8f8snow |
| Popover | #ffffffwhite | #100505black |
| Popover foreground | #080302black | #fcf8f8snow |
| Primary | #f7eae9linen | #f7eae9linen |
| Primary foreground | #7e3430saddlebrown | #7e3430saddlebrown |
| Secondary | #e9f6f7aliceblue | #e9f6f7aliceblue |
| Secondary foreground | #143234darkslategray | #143234darkslategray |
| Muted | #e9ececlavender | #131616black |
| Muted foreground | #626464dimgray | #9b9c9ddarkgray |
| Accent | #e9f6f7aliceblue | #e9f6f7aliceblue |
| Accent foreground | #143234darkslategray | #143234darkslategray |
| Destructive | #670704maroon | #f7241dcrimson |
| Destructive foreground | #fca4a1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f7eae9linen | #f7eae9linen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 12.35:1 | AAA |
| Muted text | 5.01:1 | AA |
| Accent | 12.35:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 12.35:1 | AAA |
| Muted text | 6.62:1 | AA |
| Accent | 12.35:1 | AAA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Repulsive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.106 0.016 25.005);
--muted: oklch(0.941 0.003 200.846);
--muted-foreground: oklch(0.503 0.002 200.832);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.106 0.016 25.005);
--card: oklch(1 0 180);
--card-foreground: oklch(0.106 0.016 25.005);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.946 0.014 21.083);
--primary-foreground: oklch(0.425 0.104 25.485);
--secondary: oklch(0.963 0.014 200.717);
--secondary-foreground: oklch(0.295 0.036 199.983);
--accent: oklch(0.963 0.014 200.717);
--accent-foreground: oklch(0.295 0.036 199.983);
--destructive: oklch(0.328 0.128 29.332);
--destructive-foreground: oklch(0.806 0.104 21.782);
--ring: oklch(0.946 0.014 21.083);
--chart-1: oklch(0.946 0.014 21.083);
--chart-2: oklch(0.963 0.014 200.717);
--chart-3: oklch(0.963 0.014 200.717);
--chart-4: oklch(0.982 0.007 200.803);
--chart-5: oklch(0.945 0.015 21.097);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.135 0.022 24.86);
--foreground: oklch(0.983 0.004 20.936);
--muted: oklch(0.196 0.005 200.601);
--muted-foreground: oklch(0.693 0.002 200.851);
--popover: oklch(0.135 0.022 24.86);
--popover-foreground: oklch(0.983 0.004 20.936);
--card: oklch(0.135 0.022 24.86);
--card-foreground: oklch(0.983 0.004 20.936);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.946 0.014 21.083);
--primary-foreground: oklch(0.425 0.104 25.485);
--secondary: oklch(0.963 0.014 200.717);
--secondary-foreground: oklch(0.295 0.036 199.983);
--accent: oklch(0.963 0.014 200.717);
--accent-foreground: oklch(0.295 0.036 199.983);
--destructive: oklch(0.624 0.24 28.855);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.946 0.014 21.083);
--chart-1: oklch(0.946 0.014 21.083);
--chart-2: oklch(0.963 0.014 200.717);
--chart-3: oklch(0.963 0.014 200.717);
--chart-4: oklch(0.982 0.007 200.803);
--chart-5: oklch(0.945 0.015 21.097);
}