Files
mastery/apps/web/src/index.css
T
2026-09-30 12:37:06 -04:00

121 lines
2.9 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 0 0% 98%;
--foreground: 220 20% 15%;
--primary: 220 30% 20%;
--primary-foreground: 0 0% 98%;
--secondary: 45 85% 55%;
--secondary-foreground: 220 20% 15%;
--muted: 220 15% 92%;
--muted-foreground: 220 10% 40%;
--accent: 45 85% 55%;
--accent-foreground: 220 20% 15%;
--card: 0 0% 100%;
--card-foreground: 220 20% 15%;
--popover: 0 0% 100%;
--popover-foreground: 220 20% 15%;
--border: 220 15% 85%;
--input: 220 15% 85%;
--ring: 45 85% 55%;
--radius: 0.5rem;
--destructive: 0 84% 60%;
--destructive-foreground: 0 0% 98%;
--sidebar-background: 0 0% 98%;
--sidebar-foreground: 240 5.3% 26.1%;
--sidebar-primary: 240 5.9% 10%;
--sidebar-primary-foreground: 0 0% 98%;
--sidebar-accent: 240 4.8% 95.9%;
--sidebar-accent-foreground: 240 5.9% 10%;
--sidebar-border: 220 13% 91%;
--sidebar-ring: 217.2 91.2% 59.8%;
}
.dark {
--background: 220 25% 10%;
--foreground: 0 0% 95%;
--primary: 220 30% 25%;
--primary-foreground: 0 0% 98%;
--secondary: 45 85% 55%;
--secondary-foreground: 220 20% 15%;
--muted: 220 15% 18%;
--muted-foreground: 220 10% 65%;
--accent: 45 85% 55%;
--accent-foreground: 220 20% 15%;
--card: 220 20% 15%;
--card-foreground: 0 0% 95%;
--popover: 220 20% 15%;
--popover-foreground: 0 0% 95%;
--border: 220 15% 25%;
--input: 220 15% 25%;
--ring: 45 85% 55%;
--destructive: 0 84% 60%;
--destructive-foreground: 0 0% 98%;
--sidebar-background: 240 5.9% 10%;
--sidebar-foreground: 240 4.8% 95.9%;
--sidebar-primary: 224.3 76.3% 48%;
--sidebar-primary-foreground: 0 0% 100%;
--sidebar-accent: 240 3.7% 15.9%;
--sidebar-accent-foreground: 240 4.8% 95.9%;
--sidebar-border: 240 3.7% 15.9%;
--sidebar-ring: 217.2 91.2% 59.8%;
}
* {
border-color: hsl(var(--border));
}
html {
scroll-behavior: smooth;
}
body {
font-family: "DM Sans", sans-serif;
background-color: hsl(var(--background));
color: hsl(var(--foreground));
overflow-x: clip;
line-height: 1.625;
font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Playfair Display", serif;
text-wrap: balance;
line-height: 1.2;
letter-spacing: -0.02em;
}
h1 {
font-size: clamp(2.5rem, 5vw, 4.5rem);
font-weight: 700;
}
h2 {
font-size: clamp(2rem, 4vw, 3rem);
font-weight: 600;
}
h3 {
font-size: clamp(1.5rem, 3vw, 2rem);
font-weight: 600;
}
p {
max-width: 65ch;
}
}
@layer utilities {
.transition-smooth {
transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.transition-fast {
transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
}