peppa/apps/web/app/app.css
2026-11-16 10:07:26 +05:00

122 lines
4.4 KiB
CSS

@import "tailwindcss";
/* Theme tokens (shadcn/ui naming): light in :root, dark — the default — in .dark (PEP-38). */
@custom-variant dark (&:where(.dark, .dark *));
:root {
--radius: 0.625rem;
--background: oklch(0.985 0.002 265);
--foreground: oklch(0.21 0.02 265);
--card: oklch(1 0 0);
--card-foreground: oklch(0.21 0.02 265);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.21 0.02 265);
--primary: oklch(0.6 0.21 355);
--primary-foreground: oklch(0.99 0 0);
--secondary: oklch(0.955 0.005 265);
--secondary-foreground: oklch(0.25 0.02 265);
--muted: oklch(0.955 0.005 265);
--muted-foreground: oklch(0.5 0.02 265);
--accent: oklch(0.94 0.008 265);
--accent-foreground: oklch(0.21 0.02 265);
--destructive: oklch(0.58 0.22 27);
--border: oklch(0.9 0.006 265);
--input: oklch(0.88 0.008 265);
--ring: oklch(0.6 0.21 355);
--sidebar: oklch(0.97 0.004 265);
--ok: oklch(0.55 0.15 150);
--warn: oklch(0.62 0.15 65);
--info: oklch(0.55 0.15 245);
--danger: var(--destructive);
color-scheme: light;
}
.dark {
--background: oklch(0.16 0.012 265);
--foreground: oklch(0.95 0.006 265);
--card: oklch(0.195 0.014 265);
--card-foreground: oklch(0.95 0.006 265);
--popover: oklch(0.2 0.014 265);
--popover-foreground: oklch(0.95 0.006 265);
--primary: oklch(0.72 0.19 352);
--primary-foreground: oklch(0.17 0.03 352);
--secondary: oklch(0.25 0.014 265);
--secondary-foreground: oklch(0.93 0.006 265);
--muted: oklch(0.235 0.014 265);
--muted-foreground: oklch(0.69 0.018 265);
--accent: oklch(0.26 0.016 265);
--accent-foreground: oklch(0.96 0.006 265);
--destructive: oklch(0.66 0.2 25);
--border: oklch(1 0 0 / 9%);
--input: oklch(1 0 0 / 13%);
--ring: oklch(0.72 0.19 352);
--sidebar: oklch(0.135 0.011 265);
--ok: oklch(0.76 0.16 152);
--warn: oklch(0.8 0.14 75);
--info: oklch(0.74 0.12 240);
color-scheme: dark;
}
@theme inline {
--font-sans: var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif;
--font-mono: var(--font-geist-mono), ui-monospace, "SF Mono", Menlo, monospace;
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-sidebar: var(--sidebar);
--color-ok: var(--ok);
--color-warn: var(--warn);
--color-info: var(--info);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground font-sans antialiased;
font-size: 15px;
line-height: 1.5;
}
::selection {
@apply bg-primary/30;
}
}
/* PEP-70: pug mascot — breathing while asleep, a curious head tilt and a blinking cursor when agents ask. */
@media (prefers-reduced-motion: no-preference) {
.pug-sleep .pug-body { animation: pug-breathe 3.2s ease-in-out infinite; }
.pug-sleep .pug-zzz { animation: pug-zzz 3.2s ease-in-out infinite; }
.pug-alert .pug-head { animation: pug-tilt 2.4s ease-in-out infinite; }
.pug-alert .pug-cursor { animation: pug-blink 1s steps(1) infinite; }
}
@keyframes pug-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02, 0.985); } }
@keyframes pug-zzz { 0%, 100% { opacity: 0.25; transform: translateY(2px); } 50% { opacity: 0.6; transform: translateY(-2px); } }
@keyframes pug-tilt { 0%, 60%, 100% { transform: rotate(0deg); } 70% { transform: rotate(-7deg); } 85% { transform: rotate(4deg); } }
@keyframes pug-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
/* PEP-137: the live site runs `next dev` before launch; its «N Issue» pill and error overlay are
developer tools — a product person must never see them. Errors go to Bugsink (ErrorReporter). */
nextjs-portal {
display: none !important;
}