Social Violet Velvet is a shadcn/ui theme built around a light violet primary color (#b39fe5) with light green accents (#9fe5b3). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the light violet primary (#b39fe5) on a violet-tinted background (#06040c).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #06040cblack |
| Foreground | #000000black | #f7f7f8whitesmoke |
| Card | #f9f7fdghostwhite | #080510black |
| Card foreground | #000000black | #faf9fasnow |
| Popover | #fcfbfewhite | #06040cblack |
| Popover foreground | #000000black | #f7f7f8whitesmoke |
| Primary | #b39fe5lightsteelblue | #b39fe5lightsteelblue |
| Primary foreground | #1f1240midnightblue | #1f1240midnightblue |
| Secondary | #e5b39fburlywood | #e5b39fburlywood |
| Secondary foreground | #401f12black | #401f12black |
| Muted | #ece6e4linen | #1b1513black |
| Muted foreground | #60534ddimgray | #b2a49fdarkgray |
| Accent | #9fe5b3palegreen | #9fe5b3palegreen |
| Accent foreground | #12401fdarkgreen | #12401fdarkgreen |
| Destructive | #b03a07firebrick | #f66223chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e4e3e8gainsboro | #18171cblack |
| Input | #e4e3e8gainsboro | #18171cblack |
| Ring | #b39fe5lightsteelblue | #b39fe5lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.34:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.06:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 7.47:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.68:1 | AA |
Paste this into your globals.css to use Social Violet Velvet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 299.231);
--foreground: oklch(0 0 0);
--muted: oklch(0.93 0.008 43.056);
--muted-foreground: oklch(0.453 0.02 42.792);
--popover: oklch(0.989 0.004 299.231);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.979 0.008 299.157);
--card-foreground: oklch(0 0 0);
--border: oklch(0.918 0.007 299.173);
--input: oklch(0.918 0.007 299.173);
--primary: oklch(0.745 0.101 296.896);
--primary-foreground: oklch(0.229 0.084 291.39);
--secondary: oklch(0.806 0.065 42.606);
--secondary-foreground: oklch(0.281 0.056 41.796);
--accent: oklch(0.861 0.099 152.852);
--accent-foreground: oklch(0.331 0.077 149.474);
--destructive: oklch(0.515 0.162 38.609);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.745 0.101 296.896);
--chart-1: oklch(0.745 0.101 296.896);
--chart-2: oklch(0.806 0.065 42.606);
--chart-3: oklch(0.861 0.099 152.852);
--chart-4: oklch(0.83 0.056 42.668);
--chart-5: oklch(0.742 0.106 296.748);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.023 299.194);
--foreground: oklch(0.976 0.002 299.268);
--muted: oklch(0.203 0.011 42.728);
--muted-foreground: oklch(0.729 0.018 42.926);
--popover: oklch(0.115 0.023 299.194);
--popover-foreground: oklch(0.976 0.002 299.268);
--card: oklch(0.127 0.027 298.101);
--card-foreground: oklch(0.984 0.001 299.28);
--border: oklch(0.208 0.01 298.461);
--input: oklch(0.208 0.01 298.461);
--primary: oklch(0.745 0.101 296.896);
--primary-foreground: oklch(0.229 0.084 291.39);
--secondary: oklch(0.806 0.065 42.606);
--secondary-foreground: oklch(0.281 0.056 41.796);
--accent: oklch(0.861 0.099 152.852);
--accent-foreground: oklch(0.331 0.077 149.474);
--destructive: oklch(0.678 0.195 40.453);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.745 0.101 296.896);
--chart-1: oklch(0.745 0.101 296.896);
--chart-2: oklch(0.806 0.065 42.606);
--chart-3: oklch(0.861 0.099 152.852);
--chart-4: oklch(0.83 0.056 42.668);
--chart-5: oklch(0.742 0.106 296.748);
}