The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Add color tokens
Tim Wilsona53c99293b4f
diff --git a/apps/web/app/app.dub.co/embed/referrals/page-client.tsx b/apps/web/app/app.dub.co/embed/referrals/page-client.tsxindex 3e1acec18e..e4a7266cbb 100644--- a/apps/web/app/app.dub.co/embed/referrals/page-client.tsx+++ b/apps/web/app/app.dub.co/embed/referrals/page-client.tsx@@ -59,7 +59,7 @@ export function ReferralsEmbedPageClient({}><div className="p-5">- <div className="relative flex flex-col overflow-hidden rounded-lg border border-neutral-300 p-4 md:p-6">+ <div className="border-border-default relative flex flex-col overflow-hidden rounded-lg border p-4 md:p-6"><HeroBackground logo={program.logo} color={program.brandColor} /><span className="flex items-center gap-2 text-sm text-neutral-500"><MoneyBill className="size-4" />diff --git a/apps/web/styles/globals.css b/apps/web/styles/globals.cssindex dcd44c3291..8d08cebaa9 100644--- a/apps/web/styles/globals.css+++ b/apps/web/styles/globals.css@@ -1,3 +1,5 @@+@import "../../../packages/tailwind-config/themes.css";+@tailwind base;@tailwind components;@tailwind utilities;diff --git a/packages/tailwind-config/tailwind.config.ts b/packages/tailwind-config/tailwind.config.tsindex 4317a3c746..173b6ec2c9 100644--- a/packages/tailwind-config/tailwind.config.ts+++ b/packages/tailwind-config/tailwind.config.ts@@ -203,6 +203,35 @@ const config: Config = {800: "#846358",900: "#43302b",},++ // Light/dark mode colors++ "bg-emphasis": "var(--bg-emphasis)",+ "bg-default": "var(--bg-default)",+ "bg-subtle": "var(--bg-subtle)",+ "bg-muted": "var(--bg-muted)",+ "bg-inverted": "var(--bg-inverted)",++ "bg-info": "var(--bg-info)",+ "bg-success": "var(--bg-success)",+ "bg-attention": "var(--bg-attention)",+ "bg-error": "var(--bg-error)",++ "border-emphasis": "var(--border-emphasis)",+ "border-default": "var(--border-default)",+ "border-muted": "var(--border-muted)",+ "border-subtle": "var(--border-subtle)",++ "content-inverted": "var(--content-inverted)",+ "content-muted": "var(--content-muted)",+ "content-subtle": "var(--content-subtle)",+ "content-default": "var(--content-default)",+ "content-emphasis": "var(--content-emphasis)",++ "content-info": "var(--content-info)",+ "content-success": "var(--content-success)",+ "content-attention": "var(--content-attention)",+ "content-error": "var(--content-error)",},dropShadow: {"card-hover": ["0 8px 12px #222A350d", "0 32px 80px #2f30370f"],diff --git a/packages/tailwind-config/themes.css b/packages/tailwind-config/themes.cssnew file mode 100644index 0000000000..3352850cd6--- /dev/null+++ b/packages/tailwind-config/themes.css@@ -0,0 +1,58 @@+:root,+.light {+ --bg-default: theme("colors.white");+ --bg-muted: theme("colors.neutral.50");+ --bg-subtle: theme("colors.neutral.100");+ --bg-emphasis: theme("colors.neutral.200");+ --bg-muted-inverted: theme("colors.neutral.900");++ --bg-info: theme("colors.blue.200");+ --bg-success: theme("colors.green.100");+ --bg-attention: theme("colors.orange.100");+ --bg-error: theme("colors.red.100");++ --border-emphasis: theme("colors.neutral.400");+ --border-default: theme("colors.neutral.300");+ --border-muted: theme("colors.neutral.100");+ --border-subtle: theme("colors.neutral.200");++ --content-inverted: theme("colors.white");+ --content-muted: theme("colors.neutral.400");+ --content-subtle: theme("colors.neutral.500");+ --content-default: theme("colors.neutral.700");+ --content-emphasis: theme("colors.neutral.900");++ --content-info: theme("colors.blue.700");+ --content-success: theme("colors.green.700");+ --content-attention: theme("colors.orange.700");+ --content-error: theme("colors.red.700");+}++.dark {+ --bg-default: theme("colors.black");+ --bg-muted: theme("colors.neutral.900");+ --bg-subtle: theme("colors.neutral.800");+ --bg-emphasis: theme("colors.neutral.700");+ --bg-muted-inverted: theme("colors.neutral.50");++ --bg-info: theme("colors.blue.700");+ --bg-success: theme("colors.green.700");+ --bg-attention: theme("colors.orange.700");+ --bg-error: theme("colors.red.700");++ --border-muted: theme("colors.neutral.800");+ --border-subtle: theme("colors.neutral.700");+ --border-default: theme("colors.neutral.600");+ --border-emphasis: theme("colors.neutral.500");++ --content-inverted: theme("colors.black");+ --content-muted: theme("colors.neutral.600");+ --content-subtle: theme("colors.neutral.400");+ --content-default: theme("colors.neutral.300");+ --content-emphasis: theme("colors.neutral.50");++ --content-info: theme("colors.blue.200");+ --content-success: theme("colors.green.100");+ --content-attention: theme("colors.orange.100");+ --content-error: theme("colors.red.100");+}