187 lines
5.1 KiB
CSS
187 lines
5.1 KiB
CSS
@import "tailwindcss";
|
|
@import "katex/dist/katex.min.css";
|
|
|
|
/* include utility classes in streamdown */
|
|
@source '../node_modules/streamdown/dist/index.js';
|
|
|
|
/* custom variant for setting dark mode programmatically */
|
|
@custom-variant dark (&:is(.dark, .dark *));
|
|
|
|
/* include plugins */
|
|
@plugin "tailwindcss-animate";
|
|
@plugin "@tailwindcss/typography";
|
|
|
|
/* define design tokens (light mode) */
|
|
:root {
|
|
--font-geist: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
|
|
"Helvetica Neue", Arial, sans-serif;
|
|
--font-geist-mono: "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas,
|
|
"Liberation Mono", "Courier New", monospace;
|
|
--background: hsl(0 0% 100%);
|
|
--foreground: hsl(240 10% 3.9%);
|
|
--card: hsl(0 0% 100%);
|
|
--card-foreground: hsl(240 10% 3.9%);
|
|
--popover: hsl(0 0% 100%);
|
|
--popover-foreground: hsl(240 10% 3.9%);
|
|
--primary: hsl(240 5.9% 10%);
|
|
--primary-foreground: hsl(0 0% 98%);
|
|
--secondary: hsl(240 4.8% 95.9%);
|
|
--secondary-foreground: hsl(240 5.9% 10%);
|
|
--muted: hsl(240 4.8% 95.9%);
|
|
--muted-foreground: hsl(240 3.8% 46.1%);
|
|
--accent: hsl(240 4.8% 95.9%);
|
|
--accent-foreground: hsl(240 5.9% 10%);
|
|
--destructive: hsl(0 84.2% 60.2%);
|
|
--destructive-foreground: hsl(0 0% 98%);
|
|
--border: hsl(240 5.9% 90%);
|
|
--input: hsl(240 5.9% 90%);
|
|
--ring: hsl(240 10% 3.9%);
|
|
--chart-1: hsl(12 76% 61%);
|
|
--chart-2: hsl(173 58% 39%);
|
|
--chart-3: hsl(197 37% 24%);
|
|
--chart-4: hsl(43 74% 66%);
|
|
--chart-5: hsl(27 87% 67%);
|
|
--sidebar-background: hsl(0 0% 98%);
|
|
--sidebar-foreground: hsl(240 5.3% 26.1%);
|
|
--sidebar-primary: hsl(240 5.9% 10%);
|
|
--sidebar-primary-foreground: hsl(0 0% 98%);
|
|
--sidebar-accent: hsl(240 4.8% 95.9%);
|
|
--sidebar-accent-foreground: hsl(240 5.9% 10%);
|
|
--sidebar-border: hsl(220 13% 91%);
|
|
--sidebar-ring: hsl(217.2 91.2% 59.8%);
|
|
/* border radius unit */
|
|
--radius: 0.5rem;
|
|
--sidebar: hsl(0 0% 98%);
|
|
}
|
|
|
|
/* define design tokens (dark mode) */
|
|
.dark {
|
|
--background: hsl(240 10% 3.9%);
|
|
--foreground: hsl(0 0% 98%);
|
|
--card: hsl(240 10% 3.9%);
|
|
--card-foreground: hsl(0 0% 98%);
|
|
--popover: hsl(240 10% 3.9%);
|
|
--popover-foreground: hsl(0 0% 98%);
|
|
--primary: hsl(0 0% 98%);
|
|
--primary-foreground: hsl(240 5.9% 10%);
|
|
--secondary: hsl(240 3.7% 15.9%);
|
|
--secondary-foreground: hsl(0 0% 98%);
|
|
--muted: hsl(240 3.7% 15.9%);
|
|
--muted-foreground: hsl(240 5% 64.9%);
|
|
--accent: hsl(240 3.7% 15.9%);
|
|
--accent-foreground: hsl(0 0% 98%);
|
|
--destructive: hsl(0 62.8% 30.6%);
|
|
--destructive-foreground: hsl(0 0% 98%);
|
|
--border: hsl(240 3.7% 15.9%);
|
|
--input: hsl(240 3.7% 15.9%);
|
|
--ring: hsl(240 4.9% 83.9%);
|
|
--chart-1: hsl(220 70% 50%);
|
|
--chart-2: hsl(160 60% 45%);
|
|
--chart-3: hsl(30 80% 55%);
|
|
--chart-4: hsl(280 65% 60%);
|
|
--chart-5: hsl(340 75% 55%);
|
|
--sidebar-background: hsl(240 5.9% 10%);
|
|
--sidebar-foreground: hsl(240 4.8% 95.9%);
|
|
--sidebar-primary: hsl(224.3 76.3% 48%);
|
|
--sidebar-primary-foreground: hsl(0 0% 100%);
|
|
--sidebar-accent: hsl(240 3.7% 15.9%);
|
|
--sidebar-accent-foreground: hsl(240 4.8% 95.9%);
|
|
--sidebar-border: hsl(240 3.7% 15.9%);
|
|
--sidebar-ring: hsl(217.2 91.2% 59.8%);
|
|
--sidebar: hsl(240 5.9% 10%);
|
|
}
|
|
|
|
/* define theme */
|
|
@theme {
|
|
--font-sans: var(--font-geist);
|
|
--font-mono: var(--font-geist-mono);
|
|
|
|
--breakpoint-toast-mobile: 600px;
|
|
|
|
--radius-lg: var(--radius);
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
--radius-sm: calc(var(--radius) - 4px);
|
|
|
|
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
--animate-caret-blink: caret-blink 1.25s ease-out infinite;
|
|
|
|
@keyframes accordion-down {
|
|
from {
|
|
height: 0;
|
|
}
|
|
to {
|
|
height: var(--radix-accordion-content-height);
|
|
}
|
|
}
|
|
|
|
@keyframes accordion-up {
|
|
from {
|
|
height: var(--radix-accordion-content-height);
|
|
}
|
|
to {
|
|
height: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes caret-blink {
|
|
0%,
|
|
70%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
20%,
|
|
50% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* utility classes */
|
|
@utility container {
|
|
margin-inline: auto;
|
|
padding-inline: 2rem;
|
|
@media (width >= --theme(--breakpoint-sm)) {
|
|
max-width: none;
|
|
}
|
|
@media (width >= 1400px) {
|
|
max-width: 1400px;
|
|
}
|
|
}
|
|
|
|
/*
|
|
The default border color has changed to `currentColor` in Tailwind CSS v4,
|
|
so we've added these compatibility styles to make sure everything still
|
|
looks the same as it did with Tailwind CSS v3.
|
|
|
|
If we ever want to remove these styles, we need to add an explicit border
|
|
color utility to any element that depends on these defaults.
|
|
*/
|
|
@layer base {
|
|
*,
|
|
::after,
|
|
::before,
|
|
::backdrop,
|
|
::file-selector-button {
|
|
border-color: var(--border, currentColor);
|
|
}
|
|
}
|
|
|
|
@layer utilities {
|
|
.step {
|
|
counter-increment: step;
|
|
}
|
|
|
|
.step:before {
|
|
@apply absolute inline-flex h-9 w-9 items-center justify-center rounded-full border-4 border-white bg-zinc-100 text-center font-mono text-base font-medium text-zinc-700 -indent-px;
|
|
@apply ml-[-50px] mt-[-4px];
|
|
content: counter(step);
|
|
}
|
|
|
|
.pattern-grid-lg {
|
|
background-image: linear-gradient(to right, currentColor 1px, transparent 1px),
|
|
linear-gradient(to bottom, currentColor 1px, transparent 1px);
|
|
background-size: 40px 40px;
|
|
}
|
|
}
|