@import "tailwindcss"; @import "tw-animate-css"; @import "shadcn/tailwind.css"; @import "~/typeset.css"; @import "@fontsource-variable/inter/opsz.css"; @import "@fontsource-variable/jetbrains-mono"; @custom-variant dark (&:is(.dark *)); /* shadcn/typeset preset for rendered Markdown in transcripts and run copy: the size inherits from the surrounding component so prose stays on the type scale. */ .typeset-chat { --typeset-font-body: var(--font-sans); --typeset-leading: 1.6; --typeset-flow: 0.75em; } /* A code span that links, such as a loop name or a source line, shows the link's underline. */ .typeset-chat :where(a > code) { text-decoration: inherit; } /* Catppuccin Latte, a light fallback; the app ships the `.dark` palette. */ :root { --background: #eff1f5; /* base */ --foreground: #4c4f69; /* text */ --card: #e6e9ef; /* mantle */ --card-foreground: #4c4f69; --popover: #eff1f5; --popover-foreground: #4c4f69; --primary: #8839ef; /* mauve */ --primary-foreground: #eff1f5; --secondary: #ccd0da; /* surface0 */ --secondary-foreground: #4c4f69; --muted: #ccd0da; --muted-foreground: #6c6f85; /* subtext0 */ --faint: #9ca0b0; /* overlay0 */ --accent: #bcc0cc; /* surface1 */ --accent-foreground: #4c4f69; --destructive: #d20f39; /* red */ --border: rgb(76 79 105 / 12%); --input: rgb(76 79 105 / 18%); --ring: #8839ef; --overlay: rgb(76 79 105 / 40%); --chart-1: #209fb5; /* sapphire */ --chart-2: oklch(0.769 0.188 70.08); --chart-3: oklch(0.666 0.179 58.318); --chart-4: oklch(0.555 0.163 48.998); --chart-5: oklch(0.473 0.137 46.201); /* A sapphire ramp, light to dark, for loops in the order they run; waiting is surface2. */ --loop-1: #5aaec2; --loop-2: #2f95ab; --loop-3: #1f7a90; --loop-4: #175f73; --loop-5: #0f4556; --loop-waiting: #acb0be; --radius: 0.5rem; --sidebar: #e6e9ef; --sidebar-foreground: #5c5f77; /* subtext1 */ --sidebar-primary: #8839ef; --sidebar-primary-foreground: #eff1f5; --sidebar-accent: #ccd0da; --sidebar-accent-foreground: #4c4f69; --sidebar-border: rgb(76 79 105 / 10%); --sidebar-ring: #8839ef; --run-active: #1e66f5; /* blue */ --run-waiting: #fe640b; /* peach */ --run-failed: #d20f39; /* red */ --run-succeeded: #40a02b; /* green */ --run-canceled: #9ca0b0; /* overlay0 */ --needs-you: #fe640b; /* peach */ --warning: #df8e1d; /* yellow */ } /* Catppuccin Mocha. Mantle is the page and the cards, base the work panel, surface0 what floats above it. Secondary text is subtext0; overlay0 is too faint for text and marks graphics only. */ .dark { color-scheme: dark; --background: #1e1e2e; /* base */ --foreground: #cdd6f4; /* text */ --card: #181825; /* mantle */ --card-foreground: #cdd6f4; --popover: #313244; /* surface0 */ --popover-foreground: #cdd6f4; --primary: #cba6f7; /* mauve */ --primary-foreground: #11111b; /* crust */ --secondary: #313244; /* surface0 */ --secondary-foreground: #cdd6f4; --muted: #313244; /* surface0 */ --muted-foreground: #a6adc8; /* subtext0 */ --faint: #6c7086; /* overlay0 */ --accent: #45475a; /* surface1 */ --accent-foreground: #cdd6f4; --destructive: #f38ba8; /* red */ --border: rgb(255 255 255 / 7%); --input: rgb(255 255 255 / 10%); --ring: #cba6f7; /* mauve */ --overlay: rgb(17 17 27 / 72%); /* crust */ --sidebar: #181825; /* mantle */ --sidebar-foreground: #bac2de; /* subtext1 */ --sidebar-primary: #cba6f7; --sidebar-primary-foreground: #11111b; --sidebar-accent: #313244; /* surface0 */ --sidebar-accent-foreground: #cdd6f4; --sidebar-border: rgb(255 255 255 / 6%); --sidebar-ring: #cba6f7; --run-active: #89b4fa; /* blue */ --run-waiting: #fab387; /* peach */ --run-failed: #f38ba8; /* red */ --run-succeeded: #a6e3a1; /* green */ --run-canceled: #6c7086; /* overlay0 */ --needs-you: #fab387; /* peach */ --warning: #f9e2af; /* yellow */ --chart-1: #74c7ec; /* sapphire, the one hue for a single data series */ --loop-1: #a8e0f7; --loop-2: #74c7ec; --loop-3: #3fa6d8; --loop-4: #2b85bf; --loop-5: #2a649c; --loop-waiting: #585b70; /* surface2 */ } /* One type scale: 12 captions and meta, 13 body, 14 emphasised UI, 16 section titles, 20 screen headings. Other sizes do not exist, so an off-scale utility generates nothing. */ @theme { --text-*: initial; --text-xs: 0.75rem; --text-xs--line-height: 1rem; --text-sm: 0.8125rem; --text-sm--line-height: 1.25rem; --text-md: 0.875rem; --text-md--line-height: 1.25rem; --text-lg: 1rem; --text-lg--line-height: 1.5rem; --text-xl: 1.25rem; --text-xl--line-height: 1.75rem; --text-xl--letter-spacing: -0.01em; /* One line of the reader's 14px prose at the typeset leading, for 12px text beside it. */ --leading-reader: 1.4rem; --shadow-raised: 0 8px 24px -6px rgb(0 0 0 / 50%), 0 2px 6px -2px rgb(0 0 0 / 35%); /* Motion decelerates hard and settles: arrivals and state changes share one curve. */ --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1); } /* Motion durations: fast for small state marks and fades, base for panels and the sheet, view for the drawer-to-page transition. Reduced motion sets them all to zero. */ :root { --duration-fast: 150ms; --duration-base: 200ms; --duration-view: 250ms; } @media (prefers-reduced-motion: reduce) { :root { --duration-fast: 0ms; --duration-base: 0ms; --duration-view: 0ms; } ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } } /* A running mark's tile is bright for its 130ms step, fades over the next two, and stays dim for the rest of the 1.3s cycle. */ @keyframes usine-mark-running { 0%, 10% { fill-opacity: 1; } 30%, 100% { fill-opacity: 0.2; } } @media (prefers-reduced-motion: no-preference) { [data-slot="usine-mark"][data-running] rect { fill-opacity: 0.2; animation: usine-mark-running 1.3s linear calc(var(--tile) * 130ms) infinite; } } /* A Base UI Collapsible panel that grows and fades open from its measured height and closes faster. Base UI returns the height to auto once open, so content inside can still grow. */ @utility collapsible-motion { height: var(--collapsible-panel-height); overflow: hidden; transition: height var(--duration-base) var(--ease-out-expo), opacity var(--duration-base) var(--ease-out-expo); &[data-starting-style], &[data-ending-style] { height: 0; opacity: 0; } &[data-ending-style] { transition-duration: var(--duration-fast); } } /* Code copied from a file reads as written: `==` and `=>` stay two characters. */ @utility ligatures-none { font-variant-ligatures: none; } /* Opening the Run page from the drawer: the Run's title and state line glide into place while the rest of the screen cross-fades. */ ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: var(--duration-view); animation-timing-function: var(--ease-out-expo); } /* The title wraps differently in the drawer and on the page: its snapshots keep their own size and cross-fade as they move, instead of stretching to the other box. */ ::view-transition-old(run-title), ::view-transition-new(run-title), ::view-transition-old(run-state), ::view-transition-new(run-state) { inline-size: auto; block-size: auto; } @theme inline { --font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif; --font-heading: "Inter Variable", ui-sans-serif, system-ui, sans-serif; --font-mono: "JetBrains Mono Variable", ui-monospace, monospace; --color-run-active: var(--run-active); --color-run-waiting: var(--run-waiting); --color-run-failed: var(--run-failed); --color-run-succeeded: var(--run-succeeded); --color-run-canceled: var(--run-canceled); --color-needs-you: var(--needs-you); --color-warning: var(--warning); --color-faint: var(--faint); --color-overlay: var(--overlay); --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-loop-1: var(--loop-1); --color-loop-2: var(--loop-2); --color-loop-3: var(--loop-3); --color-loop-4: var(--loop-4); --color-loop-5: var(--loop-5); --color-loop-waiting: var(--loop-waiting); --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: 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: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-xl: 10px; --radius-2xl: 12px; --radius-3xl: 16px; --radius-4xl: 20px; } @layer base { * { @apply border-border outline-ring/50; scrollbar-width: thin; } html { @apply font-sans; scrollbar-color: var(--accent) transparent; } body { @apply bg-sidebar text-sm text-foreground antialiased; caret-color: var(--primary); } ::selection { background-color: color-mix(in oklab, var(--primary) 32%, transparent); color: var(--foreground); } } @media (width < 40rem), (pointer: coarse) { [data-slot="configuration"] :is(input, select, textarea) { font-size: var(--text-lg); } [data-slot="configuration"] :is(input:not([type="checkbox"]):not([type="radio"]), select, [data-slot="button"], a) { min-height: 44px; } [data-slot="configuration"] button:has(> svg:only-child) { min-width: 44px; } }