Something went wrong. Try again.
A free, open-source, self-hosted place to write a novel.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150/* * Fablewright's layer on top of Digital Rust. * * Everything here is derived from the pinned palette: no new hue enters the * system. These tokens name roles that the specification has no word for yet, * because they belong to this product's one idea: the heat in the prose is the * save state. */:root { /* * Heat. The design direction rations the warm colour to three jobs: unsaved * words, the one primary action, and where you are. These two values are that * first job. They are text colours, so the warm words read as lit ink and * never as a highlighter fill behind the cursor. */ --dr-text-heat-hot: var(--bright-stack-overglow); /* unsaved: a lit ember */ --dr-text-heat-warm: var(--dim-stack-overglow); /* sent, not yet confirmed */ --dr-heat-cool-ms: 60ms; /* one short cooling step, not a slow fade */
/* A cooling word passes through the warm stop and settles at ink. */ --dr-text-heat-rest: var(--dr-text-primary);
/* * The scrim behind a dialog. Two dialogs need it and neither should invent a * share, because a backdrop that differs between dialogs reads as a bug. */ --fw-backdrop: rgba(0, 0, 0, 0.65);
--fw-prose-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
/* * Prose leading from Golden Ratio Typography. At the 19px cap the model reads * the measure as 70 characters in Literata and returns a 1.868 line height; * Lexend reads 68 characters and 1.856. The x-height-corrected values (2.18 * and 2.25) overshoot because both faces have a high x-height, so the base is * used. The Lexend selector below carries its own 1.86. */ --fw-prose-leading: 1.87;
/* * The manuscript's measure: about 66 characters, derived from the prose size. * * `ch` was the obvious unit and the wrong one. It measures the advance of `0`, * and a digit is wider than the average letter, so `66ch` rendered about 74 * characters in Literata and 82 in Lexend. The multiplier is the average * advance of the shipped faces at the prose size, about 0.51em, so the column * is set from the prose size rather than from the element that holds it. Both * faces land at about 65 characters. * * Multiplying `--fw-prose-size` rather than writing `33em` keeps the column the * same width everywhere: the read-through's chrome, the hints and the stream * previews all resolve to one edge, whatever their own type size. */ --fw-measure: calc(var(--fw-prose-size) * 33); /* Room for the caret and selection inside the measure, at the prose size. */ --fw-measure-pad: clamp(1.25rem, 5vw, 3rem);
/* * Layers that float over the writing surface. The find bar is at 20, so a * drawer or panel is above it: covering the prose is its job, and a bar * painted through a panel looks like two surfaces fighting. */ --fw-z-overlay: 30;
/* * The chrome's disclosure is the one layer above every panel and the drawer. * Equal z-indexes let the later DOM win, which puts the menu under the drawer * and leaves its items unclickable. */ --fw-z-menu: 40;
/* Modals and dialogs sit above the chrome disclosure and any drawer. */ --fw-z-modal: 50;
/* * The smallest type the product uses. Digital Rust stops its scale at * `--dr-text-xs` (12px), but dense chrome needs a step below it: a find-bar * label, a result's chapter, a stat label. Nine-pixel uppercase is not * legible at arm's length. This is the floor, and nothing renders smaller. */ --fw-text-2xs: 0.75rem;
/* * The smallest space the product uses. The chrome, a menu and a tight stack * all need a gap under `--dr-space-xs`, and it is 0.25rem for the same reason * `--fw-text-2xs` matches `--dr-text-xs`: the floor of the scale is still the * floor when the scale is not quite fine enough. */ --dr-space-2xs: 0.25rem;
/* Spatial canvas surfaces and wire connectors use the pinned Digital Rust stops. */ --fw-radius-surface: 6px; --fw-radius-card: 5px; --fw-wire-color: var(--dr-border-color); --fw-wire-active: var(--dr-accent); --fw-shadow-card: 2px 2px 0 0 var(--dr-shadow-color), var(--dr-shadow-inner-highlight);
/* * How far a peripheral widget may recede. A faded widget still carries text, * so each floor is a contrast decision. Secondary ink holds 4.6:1 against the * dark page at 0.56; Safe Mode needs a higher floor because its ink is dark * on a light page, and the same percentage costs more contrast. */ --fw-fade-rail: 0.62; /* Muted and heading ink cannot carry small labels through the rail fade. */ --fw-rail-label-ink: var(--dr-text-secondary); --fw-fade-head-titles: 0.78; --fw-fade-head-actions: 0.62; --fw-fade-dock: 0.62; --fw-fade-stream: 0.52;
/* The tick on a checked box, as a data URI so it inherits no external asset. */ --dr-check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F7EAE8' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M3 8.5 L6.5 12 L13 4.5'/%3E%3C/svg%3E");}
:root[data-font='lexend'] { /* * The account's alternate prose face. Only the body role moves: headings, * chrome and readouts keep their own faces, so the floor still reads as * itself around the words. */ --dr-font-body: 'Lexend', 'Gill Sans', 'Trebuchet MS', sans-serif; --fw-prose-leading: 1.86;}
:root[data-scheme='safe-mode'] { /* On a lit page the ember darkens instead of brightening, so it still reads as heat rather than as a wash. Both are pinned palette stops and both clear 4.5:1 on Ghost Pixel. */ --dr-text-heat-hot: var(--data-rot); --dr-text-heat-warm: var(--dr-warning);
--fw-fade-rail: 0.8; --fw-fade-head-titles: 0.88; --fw-fade-head-actions: 0.8; --fw-fade-dock: 0.8;}
@media (prefers-color-scheme: light) { :root:not([data-scheme]) { --dr-text-heat-hot: var(--data-rot); --dr-text-heat-warm: var(--dr-warning);
--fw-fade-rail: 0.8; --fw-fade-head-titles: 0.88; --fw-fade-head-actions: 0.8; --fw-fade-dock: 0.8; }}