355 lines
9.5 KiB
CSS
355 lines
9.5 KiB
CSS
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
@import "shadcn/tailwind.css";
|
|
@import "./markdown/index.css";
|
|
|
|
@font-face {
|
|
font-family: "Public Sans";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 100 900;
|
|
src: url("./fonts/public-sans/public-sans-latin-wght-normal.woff2")
|
|
format("woff2-variations");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Inter";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 100 900;
|
|
src: url("./fonts/inter/inter-latin-wght-normal.woff2")
|
|
format("woff2-variations");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Source Serif 4";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 200 900;
|
|
src: url("./fonts/source-serif-4/source-serif-4-latin-wght-normal.woff2")
|
|
format("woff2-variations");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "JetBrains Mono";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 100 800;
|
|
src: url("./fonts/jetbrains-mono/jetbrains-mono-latin-wght-normal.woff2")
|
|
format("woff2-variations");
|
|
}
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme inline {
|
|
--font-heading: var(--font-sans), sans-serif;
|
|
--font-mono: "JetBrains Mono", ui-monospace, monospace;
|
|
--font-sans: "Public Sans", system-ui, sans-serif;
|
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
--color-sidebar: var(--sidebar);
|
|
--color-chart-5: var(--chart-5);
|
|
--color-chart-4: var(--chart-4);
|
|
--color-chart-3: var(--chart-3);
|
|
--color-chart-2: var(--chart-2);
|
|
--color-chart-1: var(--chart-1);
|
|
--color-ring: var(--ring);
|
|
--color-input: var(--input);
|
|
--color-border: var(--border);
|
|
--color-destructive: var(--destructive);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-primary-foreground-alt: var(--primary-foreground-alt);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-card: var(--card);
|
|
--color-foreground: var(--foreground);
|
|
--color-background: var(--background);
|
|
--radius-sm: calc(var(--radius) * 0.6);
|
|
--radius-md: calc(var(--radius) * 0.8);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) * 1.4);
|
|
--radius-2xl: calc(var(--radius) * 1.8);
|
|
--radius-3xl: calc(var(--radius) * 2.2);
|
|
--radius-4xl: calc(var(--radius) * 2.6);
|
|
--radius-full: calc(var(--radius) * 9999);
|
|
}
|
|
|
|
:root {
|
|
--ui-safe-area-top: env(safe-area-inset-top, 0px);
|
|
--ui-safe-area-right: env(safe-area-inset-right, 0px);
|
|
--ui-safe-area-bottom: env(safe-area-inset-bottom, 0px);
|
|
--ui-safe-area-left: env(safe-area-inset-left, 0px);
|
|
--ui-density: 1;
|
|
--ui-border-width: 1px;
|
|
--ui-shadow-strength: 0;
|
|
--ui-font-scale: 1;
|
|
--ui-heading-weight: 600;
|
|
--ui-motion: 1;
|
|
--background: oklch(1 0 0);
|
|
--foreground: oklch(0.145 0 0);
|
|
--card: oklch(1 0 0);
|
|
--card-foreground: oklch(0.145 0 0);
|
|
--popover: oklch(1 0 0);
|
|
--popover-foreground: oklch(0.145 0 0);
|
|
--primary: oklch(0.24 0 0);
|
|
--primary-foreground: oklch(0.985 0 0);
|
|
--primary-foreground-alt: oklch(0.42 0 0);
|
|
--secondary: oklch(0.967 0.001 286.375);
|
|
--secondary-foreground: oklch(0.21 0.006 285.885);
|
|
--muted: oklch(0.97 0 0);
|
|
--muted-foreground: oklch(0.556 0 0);
|
|
--accent: oklch(0.97 0 0);
|
|
--accent-foreground: oklch(0.205 0 0);
|
|
--destructive: oklch(0.577 0.245 27.325);
|
|
--border: oklch(0.922 0 0);
|
|
--input: oklch(0.922 0 0);
|
|
--ring: oklch(0.55 0 0);
|
|
--chart-1: oklch(0.855 0.138 181.071);
|
|
--chart-2: oklch(0.704 0.14 182.503);
|
|
--chart-3: oklch(0.6 0.118 184.704);
|
|
--chart-4: oklch(0.511 0.096 186.391);
|
|
--chart-5: oklch(0.437 0.078 188.216);
|
|
--radius: 0.625rem;
|
|
--sidebar: oklch(0.985 0 0);
|
|
--sidebar-foreground: oklch(0.145 0 0);
|
|
--sidebar-primary: oklch(0.3 0 0);
|
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
--sidebar-accent: oklch(0.97 0 0);
|
|
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
--sidebar-border: oklch(0.922 0 0);
|
|
--sidebar-ring: oklch(0.708 0 0);
|
|
}
|
|
|
|
.dark {
|
|
--background: oklch(0.145 0 0);
|
|
--foreground: oklch(0.985 0 0);
|
|
--card: oklch(0.225 0 0);
|
|
--card-foreground: oklch(0.985 0 0);
|
|
--popover: oklch(0.205 0 0);
|
|
--popover-foreground: oklch(0.985 0 0);
|
|
--primary: oklch(0.82 0 0);
|
|
--primary-foreground: oklch(0.18 0 0);
|
|
--primary-foreground-alt: oklch(0.72 0 0);
|
|
--secondary: oklch(0.274 0.006 286.033);
|
|
--secondary-foreground: oklch(0.985 0 0);
|
|
--muted: oklch(0.269 0 0);
|
|
--muted-foreground: oklch(0.708 0 0);
|
|
--accent: oklch(0.269 0 0);
|
|
--accent-foreground: oklch(0.985 0 0);
|
|
--destructive: oklch(0.704 0.191 22.216);
|
|
--border: oklch(1 0 0 / 10%);
|
|
--input: oklch(1 0 0 / 15%);
|
|
--ring: oklch(0.556 0 0);
|
|
--chart-1: oklch(0.855 0.138 181.071);
|
|
--chart-2: oklch(0.704 0.14 182.503);
|
|
--chart-3: oklch(0.6 0.118 184.704);
|
|
--chart-4: oklch(0.511 0.096 186.391);
|
|
--chart-5: oklch(0.437 0.078 188.216);
|
|
--sidebar: oklch(0.19 0 0);
|
|
--sidebar-foreground: oklch(0.985 0 0);
|
|
--sidebar-primary: oklch(0.78 0 0);
|
|
--sidebar-primary-foreground: oklch(0.18 0 0);
|
|
--sidebar-accent: oklch(0.269 0 0);
|
|
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
--sidebar-border: oklch(1 0 0 / 10%);
|
|
--sidebar-ring: oklch(0.556 0 0);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
|
|
:where(button, [role="button"]) {
|
|
cursor: pointer;
|
|
}
|
|
|
|
:where(
|
|
button,
|
|
a,
|
|
input,
|
|
textarea,
|
|
select,
|
|
summary,
|
|
[role="button"],
|
|
[tabindex]:not([tabindex="-1"])
|
|
) {
|
|
transition: background-color 140ms ease;
|
|
}
|
|
|
|
:where(
|
|
button,
|
|
a,
|
|
input,
|
|
textarea,
|
|
select,
|
|
summary,
|
|
[role="button"],
|
|
[tabindex]:not([tabindex="-1"])
|
|
):focus,
|
|
:where(
|
|
button,
|
|
a,
|
|
input,
|
|
textarea,
|
|
select,
|
|
summary,
|
|
[role="button"],
|
|
[tabindex]:not([tabindex="-1"])
|
|
):focus-visible {
|
|
outline: none !important;
|
|
}
|
|
|
|
:where(
|
|
button,
|
|
a,
|
|
input,
|
|
textarea,
|
|
select,
|
|
summary,
|
|
[role="button"],
|
|
[tabindex]:not([tabindex="-1"])
|
|
):focus-visible {
|
|
background-color: color-mix(in oklch, var(--accent) 80%, white 20%);
|
|
}
|
|
|
|
.dark
|
|
:where(
|
|
button,
|
|
a,
|
|
input,
|
|
textarea,
|
|
select,
|
|
summary,
|
|
[role="button"],
|
|
[tabindex]:not([tabindex="-1"])
|
|
):focus-visible {
|
|
background-color: color-mix(in oklch, var(--accent) 84%, white 16%);
|
|
}
|
|
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
}
|
|
html {
|
|
font-family: var(--font-sans);
|
|
font-size: calc(16px * var(--ui-font-scale));
|
|
}
|
|
|
|
html[data-font="system"] {
|
|
--font-sans:
|
|
system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
}
|
|
|
|
html[data-font="inter"] {
|
|
--font-sans: "Inter", system-ui, sans-serif;
|
|
}
|
|
|
|
html[data-font="source-serif-4"] {
|
|
--font-sans: "Source Serif 4", Georgia, serif;
|
|
}
|
|
|
|
html[data-font="jetbrains-mono"] {
|
|
--font-sans: "JetBrains Mono", ui-monospace, monospace;
|
|
}
|
|
}
|
|
|
|
:where(
|
|
[data-slot="button"],
|
|
[data-slot="toggle"],
|
|
[data-slot="input"],
|
|
[data-slot="textarea"],
|
|
[data-slot="native-select"],
|
|
[data-slot="select-trigger"],
|
|
[data-slot="select-content"],
|
|
[data-slot="dropdown-menu-content"],
|
|
[data-slot="dropdown-menu-sub-content"],
|
|
[data-slot="context-menu-content"],
|
|
[data-slot="context-menu-sub-content"],
|
|
[data-slot="menubar-content"],
|
|
[data-slot="menubar-sub-content"],
|
|
[data-slot="combobox-content"],
|
|
[data-slot="input-group"],
|
|
[data-slot="card"],
|
|
[data-slot="item"]
|
|
) {
|
|
border-width: var(--ui-border-width);
|
|
transition-duration: calc(140ms * var(--ui-motion));
|
|
}
|
|
|
|
:where([data-slot="button"], [data-slot="toggle"])[data-size="default"],
|
|
[data-slot="input"],
|
|
[data-slot="select-trigger"][data-size="default"] {
|
|
height: calc(2rem * var(--ui-density));
|
|
}
|
|
|
|
:where([data-slot="button"], [data-slot="toggle"]):not([data-size^="icon"]) {
|
|
padding-inline: calc(0.625rem * var(--ui-density));
|
|
}
|
|
|
|
[data-slot="item"] {
|
|
padding: calc(0.625rem * var(--ui-density)) calc(0.75rem * var(--ui-density));
|
|
}
|
|
[data-slot="card"] {
|
|
box-shadow: 0 calc(0.4rem * var(--ui-shadow-strength))
|
|
calc(1.8rem * var(--ui-shadow-strength))
|
|
rgb(0 0 0 / calc(0.12 * var(--ui-shadow-strength)));
|
|
}
|
|
:where(h1, h2, h3, [data-slot="card-title"], [data-slot="item-title"]) {
|
|
font-weight: var(--ui-heading-weight);
|
|
}
|
|
|
|
@layer base {
|
|
::selection {
|
|
background: var(--color-primary, var(--primary));
|
|
color: var(--color-primary-foreground, var(--primary-foreground));
|
|
}
|
|
::-moz-selection {
|
|
background: var(--color-primary, var(--primary));
|
|
color: var(--color-primary-foreground, var(--primary-foreground));
|
|
}
|
|
|
|
.selection-foreground {
|
|
::selection {
|
|
@apply bg-foreground/65 text-background;
|
|
}
|
|
::-moz-selection {
|
|
@apply bg-foreground/65 text-background;
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes loading-line-wobble {
|
|
0%,
|
|
100% {
|
|
transform: translateX(-95%);
|
|
}
|
|
50% {
|
|
transform: translateX(95%);
|
|
}
|
|
}
|
|
|
|
.loading-line-wobble {
|
|
width: 100%;
|
|
animation: loading-line-wobble 1.75s ease-in-out infinite;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.loading-line-wobble {
|
|
width: 35%;
|
|
margin-inline: auto;
|
|
animation: none;
|
|
}
|
|
}
|