Files
zhimingge/app/globals.css
T
dekun 6265e56a7f Redesign UI with zen cards, split AI panel, and PWA install support.
Learn uses 64-gua card grid; liuyao/bazi/combined use two input cards plus sticky right AI panel; add manifest, service worker, and install prompt.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-10 23:24:55 +08:00

126 lines
2.4 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 60 9% 98%;
--foreground: 0 0% 32%;
--card: 60 9% 98%;
--card-foreground: 0 0% 32%;
--popover: 60 9% 98%;
--popover-foreground: 0 0% 32%;
--primary: 0 0% 32%;
--primary-foreground: 60 9.1% 97.8%;
--secondary: 60 5% 96%;
--secondary-foreground: 0 0% 32%;
--muted: 60 4.8% 95.9%;
--muted-foreground: 25 5.3% 44.7%;
--accent: 20 5.9% 94%;
--accent-foreground: 24 9.8% 10%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 60 9.1% 97.8%;
--border: 20 5.9% 90%;
--input: 24 6% 85%;
--ring: 0 0% 32%;
--radius: 0.5rem;
}
.dark {
--background: 24 10% 10%;
--foreground: 60 9.1% 97.8%;
--card: 24 10% 10%;
--card-foreground: 60 9.1% 97.8%;
--popover: 24 10% 10%;
--popover-foreground: 60 9.1% 97.8%;
--primary: 60 9.1% 97.8%;
--primary-foreground: 0 0% 32%;
--secondary: 0 0% 20%;
--secondary-foreground: 60 9.1% 97.8%;
--muted: 24 10% 10%;
--muted-foreground: 24 5.4% 66%;
--accent: 0 0% 20%;
--accent-foreground: 60 9.1% 97.8%;
--destructive: 0 74% 42%;
--destructive-foreground: 60 9.1% 97.8%;
--border: 30 6% 25%;
--input: 33 5% 32%;
--ring: 20 6% 90%;
}
}
@layer base {
* {
@apply border-border;
}
body {
@apply gap flex flex-col bg-background text-foreground zen-bg;
}
body {
font-family: 'LXGW WenKai Screen';
font-weight: normal;
}
body,
html {
@apply h-full;
}
footer {
padding-bottom: max(env(safe-area-inset-bottom), 8px);
}
}
@layer utilities {
.gap {
@apply gap-4 sm:gap-6;
}
}
@layer utilities {
::-webkit-scrollbar {
--bar-width: 5px;
width: var(--bar-width);
height: var(--bar-width);
}
::-webkit-scrollbar-thumb {
@apply rounded-md bg-border;
}
.zen-bg {
background-image:
radial-gradient(ellipse 80% 50% at 50% -20%, hsl(40 20% 90% / 0.5), transparent),
radial-gradient(circle at 100% 100%, hsl(30 15% 92% / 0.4), transparent 40%);
}
.dark .zen-bg {
background-image:
radial-gradient(ellipse 80% 50% at 50% -20%, hsl(30 10% 20% / 0.5), transparent),
radial-gradient(circle at 100% 100%, hsl(25 8% 15% / 0.4), transparent 40%);
}
.zen-card-glow {
background: radial-gradient(circle, hsl(var(--primary) / 0.06) 0%, transparent 70%);
}
}