Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/tsrs-playground. A browser playground for the tsrs TypeScript compiler, powered by WebAssembly
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119/* --------------------------------------------------------------------------- * Palette. Two accents, each with a job: * --c-ts TypeScript blue — everything you wrote (source tabs, source panel) * --c-rs Compiler cyan — everything tsrs did (prompt, output tabs, timing) * ------------------------------------------------------------------------- */:root { color-scheme: light;
--c-field: #e8edf2; --c-panel: #ffffff; --c-panel-alt: #f1f5f9; --c-line: #d6dee7; --c-line-soft: #e5eaf1;
--c-ink: #0d141c; --c-ink-2: #59677a; --c-ink-3: #8695a5;
--c-ts: #2f6fbe; --c-rs: #0089ac; --c-rs-rgb: 0 137 172; --c-alert: #cb2b3a; --c-ok: #0f8a57; --c-heart: #ec4899;
--c-fill: rgb(13 20 28 / 6%); --c-fill-strong: rgb(13 20 28 / 10%);
--font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; --un-default-border-color: var(--c-line);}
html.dark { color-scheme: dark;
--c-field: #0b0f14; --c-panel: #141a22; --c-panel-alt: #10161d; --c-line: #232c37; --c-line-soft: #1b232c;
--c-ink: #e4ebf2; --c-ink-2: #8b99a9; --c-ink-3: #5e6c7b;
--c-ts: #63a4ea; --c-rs: #2fc6e8; --c-rs-rgb: 47 198 232; --c-alert: #ff7a85; --c-ok: #3dd68c;
--c-fill: rgb(255 255 255 / 7%); --c-fill-strong: rgb(255 255 255 / 12%);}
html,body,#app { height: 100dvh;}
html { overflow: hidden;}
body { margin: 0; background-color: var(--c-field); color: var(--c-ink); font-family: var(--font-mono); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;}
/* Every interactive surface gets a visible ring. Outlines follow border-radius. */:where(a, button, select, input, summary, [tabindex]):focus-visible { outline: 2px solid var(--c-rs); outline-offset: 2px;}
::selection { background-color: rgb(var(--c-rs-rgb) / 22%);}
/* Thin scrollbars on our own surfaces only — Monaco manages its own. */.thin-scroll { scrollbar-width: thin; scrollbar-color: var(--c-line) transparent;}
.thin-scroll::-webkit-scrollbar { width: 8px; height: 8px;}
.thin-scroll::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background-color: var(--c-line); background-clip: content-box;}
.thin-scroll::-webkit-scrollbar-thumb:hover { background-color: var(--c-ink-3);}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }}