Skip to content
Myr

classes.ts

This file

Path

apps/web/src/features/shared/classes.ts

20 lines · 888 bytes · TypeScript

Last changed by

Finish the Control room: every page passes axe and a keyboard walk in both schemesoscabrielbefore adoption3fd50a5

History of this file

Take it

Fold every page's project events once, keep Markdown off the first load, and cache what never changesoscabrielbefore adoption38e5215

lines 1–10why, one step back
1/**
2 * The class strings many views share, in a module with no view of its own,3 * so a route that needs one never pulls a view (and what that view4 * imports) into the code every page loads.5 */67/** A section's heading, the "title" step of the type scale. */8export const SECTION = "text-lg font-semibold tracking-[-0.01em]";910/** The mono face for names a terminal prints: ids, kinds, territories. */

Finish the Control room: every page passes axe and a keyboard walk in both schemesoscabrielbefore adoption3fd50a5

line 11why, one step back
11export const ID = "font-mono text-mono";

Fold every page's project events once, keep Markdown off the first load, and cache what never changesoscabrielbefore adoption38e5215

lines 12–13why, one step back
12
13/** Text that is code: an id, a path, a SHA, a command's name; it wraps anywhere. */

Finish the Control room: every page passes axe and a keyboard walk in both schemesoscabrielbefore adoption3fd50a5

line 14why, one step back
14export const CODE = "font-mono text-mono [overflow-wrap:anywhere]";

Fold every page's project events once, keep Markdown off the first load, and cache what never changesoscabrielbefore adoption38e5215

lines 15–19why, one step back
15
16/** A link in running text: underlined in the rule colour, darker on hover. */17export const LINK = "decoration-rule underline hover:decoration-current";1819/** A field's label: small, muted, above or beside its value. */

Finish the Control room: every page passes axe and a keyboard walk in both schemesoscabrielbefore adoption3fd50a5

line 20why, one step back
20export const LABEL = "text-muted-foreground text-label font-medium";