name: Digital Rust description: A warm, tech-dystopian colour scheme built on one rust-to-void ramp and rendered as chunky hardware panels in a failing server rack. colors:
Primary rust ramp (light to dark) #
ghost-pixel: "#F7EAE8" phosphor-smoke: "#EFD5D1" phantom-current: "#E7C0BA" corrupted-cache: "#DFABA3" copper-trace: "#D7968C" fatal-error: "#CF8175" rouge-signal: "#C76C5E" amber-alert: "#BF5747" amber-alert-text: "#CB6353" firewall-breach: "#B74230" digital-rust: "#AF2E1A" kernel-panic: "#9D2917" data-rot: "#8C2414" bricked-board: "#7A2012" dark-packet: "#691B0F" daemon-blood: "#57170D" bad-sector: "#46120A" core-meltdown: "#340D07" null-pointer: "#230905" event-horizon: "#110402"
Accent colours: six failure families, each with base, dim, and bright #
memory-leek: "#8FA667" dim-memory-leek: "#627247" bright-memory-leek: "#94A577" stack-overglow: "#D4A759" dim-stack-overglow: "#A07E43" bright-stack-overglow: "#D3AE6E" blue-screen: "#8791B0" dim-blue-screen: "#60677C" bright-blue-screen: "#999EAF" fractured-shell: "#BA5A7D" dim-fractured-shell: "#87405A" bright-fractured-shell: "#BA6B88" dead-thread: "#6FA5A0" dim-dead-thread: "#4C726E" bright-dead-thread: "#7FA5A1" thermal-throttle: "#D78556" dim-thermal-throttle: "#AC6D4A" bright-thermal-throttle: "#D6926B" typography: display: fontFamily: ""Rajdhani", "Saira SemiCondensed", "Trebuchet MS", sans-serif" fontSize: "clamp(2rem, 5vw, 4rem)" fontWeight: 700 lineHeight: 1.1 letterSpacing: "0.15em" headline: fontFamily: ""Rajdhani", "Saira SemiCondensed", "Trebuchet MS", sans-serif" fontSize: "1.75rem" fontWeight: 700 lineHeight: 1.1 letterSpacing: "0.1em" title: fontFamily: ""Rajdhani", "Saira SemiCondensed", "Trebuchet MS", sans-serif" fontSize: "0.875rem" fontWeight: 700 lineHeight: 1.1 letterSpacing: "0.05em" body: fontFamily: ""Zilla Slab", "Bitter", "Source Serif 4", Georgia, serif" fontSize: "1rem" fontWeight: 500 lineHeight: 1.6 label: fontFamily: ""Rajdhani", "Saira SemiCondensed", "Trebuchet MS", sans-serif" fontSize: "0.75rem" fontWeight: 700 lineHeight: 1.1 letterSpacing: "0.05em" mono: fontFamily: ""IBM Plex Mono", "Space Mono", ui-monospace, "Fira Code", monospace" fontSize: "0.875rem" fontWeight: 400 lineHeight: 1.6 rounded: sm: "2px" md: "4px" lg: "6px" spacing: xs: "0.25rem" sm: "0.5rem" md: "1rem" lg: "1.5rem" xl: "2.5rem" 2xl: "4rem" 3xl: "6rem" components: button-ghost: backgroundColor: "transparent" textColor: "{colors.phosphor-smoke}" rounded: "{rounded.md}" padding: "0.5rem 1.5rem" button-primary: backgroundColor: "{colors.digital-rust}" textColor: "{colors.ghost-pixel}" rounded: "{rounded.md}" padding: "0.5rem 1.5rem" button-error: backgroundColor: "transparent" textColor: "{colors.amber-alert-text}" rounded: "{rounded.md}" padding: "0.5rem 1.5rem" input-well: backgroundColor: "{colors.event-horizon}" textColor: "{colors.ghost-pixel}" rounded: "{rounded.md}" padding: "0.5rem 0.75rem" card-panel: backgroundColor: "{colors.core-meltdown}" textColor: "{colors.ghost-pixel}" rounded: "{rounded.md}" padding: "1.5rem" badge: backgroundColor: "transparent" textColor: "{colors.ghost-pixel}" rounded: "{rounded.md}" padding: "0.2rem 0.6rem" terminal: backgroundColor: "{colors.event-horizon}" textColor: "{colors.ghost-pixel}" rounded: "{rounded.lg}" padding: "1.5rem" code-block: backgroundColor: "{colors.event-horizon}" textColor: "{colors.ghost-pixel}" rounded: "{rounded.md}" padding: "1.5rem" #
Design System: Digital Rust #
Overview #
Creative North Star: "The Corroded Mainframe"
A server room where every surface has oxidized, but the machines still hum. The walls are rust. The screens still glow. Failure is the texture, not the state.
Digital Rust is a dark-mode-only system built around one rust-to-void ramp. Nineteen named stops bleed from near-white to near-black, and every stop is a hardware-failure metaphor. The ramp is the structural spine and the entire neutral scale. Six accent families carry system-failure names (Memory Leek, Stack Overglow, Dead Thread, Blue Screen, Fractured Shell, Thermal Throttle) and enter the interface surgically, never as a rainbow. Surfaces carry structural noise and scanline overlays, and a flat, noiseless ambient background is a design failure. Borders are walls: a 2px control wall on interactive elements, a 2px container wall on everything else, and 4px on page chrome only. Shadows are offset solids with zero blur. Corners never exceed 6px. Every component reads as a physical panel in a failing server rack: brutalist, tactile, press-and-release.
The system rejects the cold blue-purple dark theme family (Dracula, Nord, Tokyo Night, One Dark), sterile "pro" themes with grey surfaces and blue accents, flat noiseless dark backgrounds, vapourwave and neon retro-futurism, blurred shadows, hairline decorative borders, and pure black #000 anywhere. The hostility lives in the atmosphere, not in the readability. Ghost Pixel on Event Horizon measures 17.17:1.
Two documents are canonical, and this record must stay consistent with them. The Digital Rust Syntax Highlighting Specification owns the palette, the token classification, the editor chrome, and the terminals. The Digital Rust UI Specification owns the surfaces, the elevation, the interaction physics, and the component definitions. Where this record and a specification disagree, the specification wins. An implementation is a projection of the specification, and an intentional deviation must be documented in the implementation.
Key Characteristics:
- One hue family. The 19-stop rust ramp is the structural spine and the only neutral scale.
- Physical interaction. Offset solid shadows, an inner-highlight bevel on everything raised, and a full hover-then-press cycle at 150ms.
- Structural texture. SVG noise at 2% opacity and a 4px scanline overlay cover every ambient surface. Interactive text surfaces are exempt.
- Walls, not hairlines. Interactive elements carry a 2px control wall. A 4px border belongs to page chrome only.
- Failure-named accents in six families, each with a dim and a bright variant.
- A radius ceiling of 6px. The default is 4px, machined parts use 2px, and only badges may be pills.
Colors #
The rust ramp is the product. It carries every neutral value in the system, and the six accent families are the language that runs on it.
Primary #
- Ghost Pixel (
#F7EAE8): The default text colour, the code foreground, and the fallback for an unrecognized token. It measures 17.17:1 on Event Horizon. - Phosphor Smoke (
#EFD5D1): Secondary text. Supporting copy, inactive tab and sidebar text, tooltip text, and the 50% mix that serves as muted and placeholder text. - Phantom Current (
#E7C0BA): Links, footer text, shell prompts, active line numbers, and the deleted text in a diff. - Fatal Error (
#CF8175): The voice of the system. This is the only heading colour, and it also carries keywords, storage modifiers, shell flags, and panel titles. Despite the name, it is an identity colour and not an error colour. - Amber Alert (
#BF5747) and Amber Alert Text (#CB6353): Diagnostic danger. Amber Alert fills error borders, error markers, and the 15% diff-deletion tint. Amber Alert Text is the text-safe variant, and it is the only one permitted for error text on base and elevated surfaces. - Digital Rust (
#AF2E1A): The brand anchor. The logo, the primary buttons, the checked states, the active links, and ANSI red. If the system uses one colour, it is this one. - Dark Packet (
#691B0F): The container border colour, in both modes. Every card, panel, code block and toast carries it at 2px, and page chrome carries it at 4px. - Rouge Signal (
#C76C5E): The dark control wall. A control identifies itself by its wall, so the wall clears 3:1 against every dark surface. Firewall Breach is the first ramp stop that clears 3:1 on a dark panel, at 3.18:1, so it is the floor. Safe Mode uses Dark Packet for the same role, where it measures 10.14:1. - Event Horizon (
#110402): The base surface, the input well, and the code background. It is the darkest point of the ramp, and no surface goes darker.
Secondary #
- Memory Leek (
#8FA667): Strings, regex literals, success states, ANSI green, and the 15% diff-addition tint. - Stack Overglow (
#D4A759): Functions, macros, warnings, the text cursor, the focus ring, modified indicators, ANSI yellow, and the warning wavy underline. - Dead Thread (
#6FA5A0): Classes, types, attributes and decorators, markup tags, information states, ANSI cyan, and the 10% diff-modification tint.
Tertiary #
- Thermal Throttle (
#D78556): Numbers, numeric units, CSS colour values, and ANSI orange. - Blue Screen (
#8791B0): Diff headers, hunk metadata, ANSI blue, and the one cool reference in the system. - Fractured Shell (
#BA5A7D): ANSI magenta, and a reserved accent for extended use and optional rainbow brackets.
Accent variants #
Every accent family ships three values. The dim variant carries comments, built-ins, units, regex operators, and other quiet material. The base variant carries the main role. The bright variant carries constants, booleans, null-like values, macro names, and the ANSI bright slots.
Neutral #
The rust ramp is the neutral scale. There is no separate grey ramp. The semantic surface tokens map onto it:
| Token | Dark | Safe Mode | Role |
|---|---|---|---|
--dr-surface-base |
Event Horizon | Ghost Pixel | Page background, input wells, code blocks |
--dr-surface-secondary |
Null Pointer | Phosphor Smoke | Editor chrome: tab bars, gutters, sidebars |
--dr-surface-elevated |
Core Meltdown | Phantom Current | Cards, menus, modals, filled hovers |
--dr-surface-highlight |
Bad Sector | Corrupted Cache | Hover fills, active list items, shadow colour, ANSI bright black |
--dr-surface-active |
#5A1810 |
Copper Trace | Scrollbar drag, pressed wells |
The pressed state uses #5A1810, an unnamed mid-rust between Daemon Blood and Dark Packet. It is internal, and it never appears in the portable palette.
Semantic tokens #
Component code references the semantic --dr-* layer and never a raw palette value. The layer lives in tokens.css.
| Token | Dark | Safe Mode | Role |
|---|---|---|---|
--dr-text-primary |
Ghost Pixel | Event Horizon | Default text |
--dr-text-secondary |
Phosphor Smoke | Bad Sector | Supporting text |
--dr-text-link |
Phantom Current | Kernel Panic | Links |
--dr-text-link-hover |
Fatal Error | Data Rot | Link hover |
--dr-text-link-visited |
Corrupted Cache | Bricked Board | Visited links |
--dr-text-on-accent |
Ghost Pixel | Ghost Pixel | Text on a Digital Rust fill |
--dr-text-quiet |
Phantom Current | #664C49 |
Prompts, removed diff lines, footer copy |
--dr-accent |
Digital Rust | Digital Rust | The primary brand accent |
--dr-accent-hover |
Firewall Breach | Firewall Breach | The primary hover fill. Ghost Pixel on it passes AA at 4.66:1. A raw Amber Alert fill does not pass. |
--dr-success |
Memory Leek | #455925 |
Success borders, text, and fills |
--dr-warning |
Stack Overglow | #6C4D06 |
Warning borders, text, and fills |
--dr-danger |
Amber Alert | #8D362A |
Error borders and fills |
--dr-danger-text |
Amber Alert Text | #8D362A |
AA-compliant error text |
--dr-info |
Dead Thread | #2B5A56 |
Informational accents |
--dr-machined-fill |
Ghost Pixel | Ghost Pixel | The light part of a machined control: a thumb, a check mark |
--dr-machined-track |
Bad Sector | Bad Sector | The dark rail of a toggle. It holds in both modes |
--dr-machined-rail |
Event Horizon | Event Horizon | The recessed rail of a slider. It holds in both modes |
--dr-surface-hot |
Bricked Board | Bricked Board | A hot panel: a toast, a status bar |
--dr-on-hot-success |
#9AB867 |
#9AB867 |
Success text on Bricked Board |
--dr-on-hot-warning |
#D9A540 |
#D9A540 |
Warning text on Bricked Board |
--dr-on-hot-danger |
#FF8E7B |
#FF8E7B |
Error text on Bricked Board |
--dr-on-hot-info |
#73BAB4 |
#73BAB4 |
Information text on Bricked Board |
--dr-border-color |
Rouge Signal | Dark Packet | The 2px wall on an interactive control |
--dr-border-color-container |
Dark Packet | Dark Packet | The 2px wall on a container |
--dr-border-color-strong |
Daemon Blood | Copper Trace | The container wall on hover |
--dr-border-color-warm |
Stack Overglow | #533900 |
The warm rule on a prose block |
--dr-border-color-hover |
Firewall Breach | Digital Rust | The control wall on hover |
--dr-border-color-invalid |
Amber Alert | #8D362A |
Invalid controls |
--dr-focus-ring |
Stack Overglow | Digital Rust | Focus indicator |
Named Rules #
The One Hue Rule. The 19-stop main ramp occupies one warm hue family. Six accent families are admitted, but the surface never leaves the rust-to-void gradient. If a background or a border colour is not one of the 19 ramp stops or one of the six accent families, it does not belong in the system.
The Priority Stack Rule. Error scopes override everything. Warning scopes override non-error styles. Language overrides come next, then semantic tokens, then the base syntax colours. If a token is both an error and another role, the error style takes full precedence and no blend occurs.
The Black Is Forbidden Rule. #000000 is prohibited in shadows, borders, backgrounds, and scrims. The nearest near-black is Event Horizon (#110402). Shadows, overlays, and vignettes use warm-tinted transparencies of the brand colour. Pure black reads as a colder material.
The White Is Forbidden Rule. #FFFFFF is prohibited in shadows, borders, backgrounds, and scrims. The lightest value in the system is Ghost Pixel (#F7EAE8). The rule mirrors The Black Is Forbidden Rule, and it governs Safe Mode. The browser canvas also obeys it: set the background of the root element, so an overscroll does not show a pure white page.
The Flat Surface Failure Rule. A flat ambient surface with no texture overlay is a design defect. Every ambient surface carries the SVG noise texture at 0.02 opacity and a 4px scanline overlay. Interactive text surfaces (inputs, text areas, editable code regions) are exempt, because texture inside a text field fights the text. prefers-reduced-motion: reduce silences both overlays. In Safe Mode the noise stays and the scanline band is replaced by a rust scorch at the rim of the viewport, because a scanline draws the gap between two lit rows and it stripes the text plane on a light field.
The Inverted Well Rule. In Safe Mode a well is the lightest surface in its panel, because a well cannot sit above its panel in a light theme. The 2px control wall and the inner lowlight do the recess work. The rule carries the same instruction as The Recessed Well Rule: a well never rises on hover.
Typography #
The system defines three typographic roles, and the role matters more than the face. Display, headings, and labels use a condensed technical sans with a mechanical, engineered feel. Body and content use a warm slab serif that stays comfortable over long sessions. Readouts use a monospace with tabular numerals. The named faces below are tested examples and not a constraint: any family with equivalent character and metrics keeps the system intact.
Display and heading font: Rajdhani (with Saira SemiCondensed and Trebuchet MS as fallbacks) Body font: Zilla Slab (with Bitter, Source Serif 4, and Georgia as fallbacks) Mono font: IBM Plex Mono (with Space Mono, Fira Code, and Cascadia Code as fallbacks)
Character: A condensed technical face reads like embossed server labels when it is set in all-caps with wide tracking. A warm slab serif carries body copy in sentence case and keeps long sessions comfortable. IBM Plex Mono supplies readouts with tabular numerals and an engineering voice. The pairing is technical-display plus warm-body, never decorative plus decorative.
Hierarchy #
- Display (Rajdhani 700, clamp(2rem, 5vw, 4rem), line-height 1.1, tracking 0.15em, all-caps): The h1, once per page. The tracking is wide so the line reads like embossed lettering on a server panel. A brand-colour glow and a chromatic split ride on the text-shadow.
- Headline (Rajdhani 700, 1.75rem, line-height 1.1, tracking 0.1em, all-caps): Section titles. Fatal Error, with a 4px Digital Rust left rule. The left rule is page chrome.
- Title (Rajdhani 700, 0.875rem, tracking 0.05em, all-caps): Card headers, code-block titles, panel labels, and field labels. The workhorse label voice.
- Body (Zilla Slab 500, 1rem, line-height 1.6, 65 to 75ch): Running text, documentation, and the text inside an input or a text area. Body copy is never all-caps.
- Label (Rajdhani 700, 0.75rem, tracking 0.05em, all-caps): Badges, tags, and version stamps. A badge uses 0.08em tracking.
- Mono (IBM Plex Mono 400, 0.875rem, line-height 1.6): Code blocks, terminal output, hex values, status bars, and any content where character alignment matters. Hyphenation is off.
The base layer enables common, discretionary, and contextual ligatures, oldstyle and tabular numerals, kerning, and optical sizing. Code and readouts disable hyphenation.
Named Rules #
The One Heading Colour Rule. Fatal Error (#CF8175) is the only colour for a heading of any level. Not white, not Ghost Pixel, not an accent. Every heading speaks in the same warm-copper voice. In Safe Mode the heading takes #75322A, which is the keyword value. The rule does not change. Only the value does.
The All-Caps Ceiling Rule. Rajdhani headings and labels are set in all-caps with wide tracking. That is a restricted choice for short strings: titles, labels, and badges. Body copy is never all-caps.
Layout #
The site is a single centred column with a 1400px maximum width. The body carries a 2.5rem gutter (--dr-space-xl), and the gutter drops to 0.5rem below 480px.
The specification route uses a two-column shell: a sticky table-of-contents rail between 250px and 320px wide, and the document column. The shell has a 1600px maximum width, a gap of clamp(1.25rem, 3vw, 3rem), and padding of clamp(1.25rem, 3vw, 3.5rem). Below 1100px the shell becomes one column and the table of contents becomes a toggle. Below 640px the action row inside the specification header stacks.
The playground is a full-height application view. It uses 100vh, a 1600px maximum width, and a 1.5rem gutter. The editor splits into two equal panels side by side, and the panels stack below 768px. The body gutter is removed while this page is shown.
Section rhythm is generous. A section title sits 4rem (--dr-space-2xl) below the previous section. A page header closes with a 4px Dark Packet rule and the footer opens with a 2px rule. The spacing scale is 0.25rem, 0.5rem, 1rem, 1.5rem, 2.5rem, 4rem, and 6rem.
Grids use repeat(auto-fit, minmax(<minimum>, 1fr)) with gaps between 1rem and 2.5rem. Component grids use minimums between 220px and 300px. The code grid uses minmax(min(100%, 420px), 1fr), so a narrow viewport receives one full-width column.
The reading measure stays between 65ch and 75ch. Section copy is capped at 70ch.
Breakpoints are 480px (small mobile), 640px (specification action row), 768px (tablet and playground stacking), and 1100px (specification shell).
Elevation & Depth #
Depth is material, not ambient. Every structural shadow is an offset solid in Bad Sector, with zero blur and a down-right direction, because light in this system always comes from the top left. The offset carries both roles at once: it states the elevation of a panel, and it drives the interaction feedback. There are no ambient or blurred shadows anywhere.
Shadow Vocabulary #
- Offset Small (
2px 2px 0 0 Bad Sector): Resting interactive elements: buttons, checkboxes, toggles, cards. - Offset Medium (
3px 3px 0 0 Bad Sector): Raised containers: menus, toasts, callouts, terminals, code blocks. - Offset Large (
4px 4px 0 0 Bad Sector): The highest layer: modals, lightboxes, the specification document. - Hover Medium (
4px 4px 0 0 Bad Sector): The hover state for an element that rests at offset small. - Active (
0 0 0 0 Bad Sector): The pressed state. The offset collapses and the element sits flush. - Glow Small (
0 0 10px rgba(175, 46, 26, 0.4)): Radiated heat on a hovered primary button or a focused accent. - Glow Medium (
0 0 20px rgba(175, 46, 26, 0.4)): Hero-level emphasis only, such as a lightbox image. - Inner Highlight (
inset 0 1px 0 rgba(255, 255, 255, 0.1)): The top-edge bevel on every raised or interactive element. It stacks under the offset shadow, and the two travel together. - Inner Lowlight (
inset 0 -1px 0 rgba(17, 4, 2, 0.6)): The bottom-edge shade on wells, toggle thumbs, and slider thumbs. It pairs with the inner highlight on machined parts.
Named Rules #
The No Blur Rule. The blur radius is zero for every structural shadow. The glow shadows are the only blur in the system, and they simulate radiated heat and not material depth. Safe Mode omits both glow values, because emitted light reads as a smudge on a lit page.
The Bevel Rule. The inner highlight accompanies every offset shadow on an interactive or elevated element. An element with an offset shadow and no inner highlight is unfinished.
The Press-And-Release Rule. Every pressable element implements the full cycle. Rest carries the offset. Hover grows the offset by 2px per axis and lifts the element translate(-2px, -2px). Active collapses the offset and drives the element translate(2px, 2px) into the surface. The transition runs at 150ms with the default ease. The shadow offset and the translation always share a magnitude and a direction.
The Recessed Well Rule. Inputs and editable regions sit below the panel and not above it. A well uses Event Horizon, the control wall, and no offset shadow. A well never rises on hover and never carries texture. It responds through border colour: the control wall at rest, one step further from the surface on hover, and the hover wall plus the focus ring on focus. Legibility outranks atmosphere inside a text field. In Safe Mode the well inverts and The Inverted Well Rule applies.
Shapes #
The radius scale has three steps and a ceiling. Small is 2px and belongs to machined parts: checkboxes, toggle thumbs, slider thumbs, menu items, inline code chips, and legend chips. Medium is 4px and is the default: buttons, inputs, cards, callouts, toasts, modals, tabs, and code blocks. Large is 6px and belongs to the largest framed surfaces: terminals, the table-of-contents panel, the specification document, and the live demonstration panel. Nothing rounds past 6px. Only a badge may take a full pill radius, and a pill button is forbidden.
Borders are walls. An interactive element carries a 2px control wall. A 4px Dark Packet border belongs to page and site chrome only: page headers and the left rules on section titles and specification prose blocks. A subtle divider uses 1px Bad Sector. The focus ring is 2px, at a 2px offset, in the --dr-focus-ring colour: Stack Overglow on dark and Digital Rust in Safe Mode. Both clear 3:1 against every surface in their mode. Hairline decorative borders do not exist in this system, and a 1px border never shares an element with a wide soft shadow.
The core system uses no clip-path cuts. A cut-corner polygon is a per-site flourish and not part of the shared language.
Circular and angular geometry appears only as machinery: the three window dots on the terminal, the gutter markers (a circle for an error or a breakpoint, a diamond for a warning, a square for information, a dot for a hint), and the block cursor at 0.6em by 1.2em. Icons are text glyphs, such as ✓, ✗, ⚠, ℹ, and », and not an icon font.
Components #
The full component definitions live in the Digital Rust UI Specification, which is canonical. The entries below cover the components that the showcase site renders.
Buttons #
A hardware panel switch: thick edge, hard shadow, a light-catching bevel, and full physical travel. The padding is 0.5rem 1.5rem, the radius is 4px, and the label is Rajdhani at 600, uppercase, with 0.05em tracking. Labels are short verbs or a verb plus an object, never "OK" or "Submit". One primary button per view.
- Ghost (default): A transparent background, Phosphor Smoke text, a 2px control wall, and offset small. On hover it fills Core Meltdown, moves the text to Ghost Pixel, moves the wall one step further from the surface, and lifts.
- Primary: A Digital Rust background, Ghost Pixel text, and offset medium. On hover it fills Firewall Breach and adds the small glow. Never use raw Amber Alert as the hover fill, because Ghost Pixel on it fails AA.
- Success, warning, and error: Memory Leek, Stack Overglow, and Amber Alert borders. The error variant uses Amber Alert Text for the label and Firewall Breach for the hover fill. The success and warning variants fill with their own colour on hover and switch the text to Event Horizon.
- Disabled: A Bad Sector background, muted text, no shadow, no transform, and
cursor: not-allowed. A dead switch does not click. - Focus: A 2px Stack Overglow outline at a 2px offset, in addition to the resting shadow.
Inputs, Text Areas, and Switches #
Wells sit below the panel. An Event Horizon background, the control wall, a 4px radius, 0.5rem 0.75rem of padding, no shadow, and no hover lift. The wall moves one step further from the surface on hover, and the focus ring appears on focus. Placeholder text is muted and italic. An invalid control takes an Amber Alert border and an Amber Alert Text message.
A checkbox is a 16px square with a 2px radius. It runs the full press cycle, then fills Digital Rust with a Ghost Pixel check mark when it is checked. A toggle slides a Ghost Pixel thumb with a 2px radius along a railed track, and the track does not translate. A slider uses a 4px Event Horizon rail with a 1px Bad Sector border, a Digital Rust fill, and a 16px square thumb that lifts on hover-drag and presses on drag.
Tabs, Menus, and Status Bars #
A tab bar sits on Core Meltdown with a 2px container wall bottom border. A tab takes a 2px radius on its top corners only. An inactive tab is Phosphor Smoke on Event Horizon. The active tab takes a Null Pointer background, Ghost Pixel text, and a 2px outline in the wall one step out from the surface (--dr-border-color-hover) that overlaps the bar border: the active tab is the one still receiving power. The bar and the active tab sit one ramp step apart, so the fill alone does not mark the active tab. The outline carries that job, and it must clear 3:1 against the bar. Use Firewall Breach on the dark theme and Digital Rust in Safe Mode. Digital Rust measures 2.68:1 on Core Meltdown, so it cannot carry the outline there. An unsaved state shows a Stack Overglow dot or a "● MOD" label.
A menu and a list box are Core Meltdown panels with the 2px container wall, a 4px radius, offset medium, and the inner highlight. An item is Phosphor Smoke with a 2px radius. The hovered or selected item takes a --dr-surface-highlight fill and --dr-text-primary text. A separator is a full-bleed --dr-border-subtle line. A menu is a solid panel bolted over the page, and it never blurs what is behind it.
A status bar uses Bricked Board with Ghost Pixel text, the 2px container wall as a top border, and mono text at 0.75rem. An item responds to hover with Phantom Current text only. A status item never lifts.
Modals and Lightboxes #
The highest layer. A Core Meltdown background, the 2px container wall, a 4px radius, offset large, and the inner highlight. The title is Fatal Error in Rajdhani, uppercase. The backdrop is a warm scrim at rgba(17, 4, 2, 0.7), never black and never blurred. The action row carries at most one primary button. A modal enters with a fade of 150ms at most. Scale, spring, and bounce are forbidden.
The image lightbox follows the same rules with a near-opaque Event Horizon backdrop, and its navigation buttons ride the press cycle. Below 768px the previous and next buttons hide.
Toasts and Callouts #
A toast uses Bricked Board, a hotter panel than Core Meltdown, because a notice radiates residual heat: Ghost Pixel text, the 2px container wall, a 4px radius, offset medium, and the inner highlight. The semantic state adds a 3px left accent in Memory Leek, Stack Overglow, Amber Alert, or Dead Thread.
A callout uses Core Meltdown with the same frame and a 3px left accent in Dead Thread for a note, Stack Overglow for a warning, or Amber Alert for an error. The accent also colours the callout title.
The 3px left accent is a deliberate exception to the no-accent-stripe rule. It exists so that a semantic block is identifiable at scroll speed. No other left or right accent stripe is permitted above 1px.
Badges, Tooltips, and Colour Chips #
A badge is a status chip: a 4px radius, 0.2rem 0.6rem of padding, Rajdhani 700, uppercase, 0.08em tracking, and 0.75rem. Success uses Memory Leek text on a 15% Memory Leek tint with a 30% border. Information uses Dead Thread at the same strengths. Error uses Amber Alert Text on a 10% Amber Alert tint with a 25% border. Warning uses Stack Overglow at 15% and 30%. A badge is a static rivet: no press cycle and no shadow. Only a badge may be a pill.
A tooltip uses Core Meltdown with the 2px container wall, a 4px radius, offset medium, the inner highlight, and Phosphor Smoke text at 0.875rem. There is no arrow stem. The shadow alone states which surface the tooltip floats above.
A colour chip in the palette display is a 120px swatch with no border at rest and a 2px Bad Sector border on hover, and it rides the press cycle like a card. Text on a swatch uses whichever palette endpoint, Ghost Pixel or Event Horizon, has the higher contrast against the swatch.
Cards, Panels, and Code Blocks #
A card and a panel use Core Meltdown, the 2px container wall, a 4px radius, offset small or medium, the inner highlight, and 1rem to 1.5rem of internal padding. A hovered card lifts and grows its offset.
A code block is the signature content surface: an Event Horizon background, the 2px container wall, offset medium, and the inner highlight. On hover the wall moves to --dr-border-color-strong. The header bar is Core Meltdown with a 1px Bad Sector underline, a Fatal Error title in Rajdhani, and a bordered language chip. The code area is IBM Plex Mono at 0.875rem with a 1.6 line height, and the font drops to 0.75rem below 768px. Hyphenation is off.
Terminal #
The interactive metaphor for the brand. An Event Horizon background, the 2px container wall, a 6px radius, offset medium, and the inner highlight. A Core Meltdown bar carries three Digital Rust dots in the top-left corner. The prompt is Phantom Current, the command text is Ghost Pixel, and the output is Phosphor Smoke indented by 2rem. The cursor is a Stack Overglow block at 0.6em by 1.2em that blinks. Each line enters with a 150ms translate from -10px, and the animation is suppressed under prefers-reduced-motion.
Diff and Diagnostics #
A diff addition uses Ghost Pixel text on a 15% Memory Leek tint with a Memory Leek marker. A deletion uses Phantom Current on a 15% Amber Alert tint with an Amber Alert marker. A modification uses a 10% Dead Thread tint and a Dead Thread marker. Diff headers and hunk metadata use Blue Screen, file paths use Stack Overglow, and commit hashes use Dim Stack Overglow. A word-level change uses a 25% tint.
A diagnostic never relies on colour alone. An error takes Amber Alert with a wavy underline and an icon. A warning takes Stack Overglow with a wavy underline and an icon. Spelling takes a dotted Amber Alert underline, and a link always takes a solid underline. An inlay hint is Phosphor Smoke at 50% on a 20% Bad Sector fill, italic, and never brighter than the code it annotates.
Tables #
A table header row is Rajdhani 700, uppercase, 0.75rem, --dr-heading text, with the 2px container wall as a bottom border. A body cell uses the body face and --dr-text-primary. A row separator is --dr-border-subtle, and the last row drops its separator. A hovered row takes a --dr-surface-highlight fill. Zebra striping is forbidden, because the scanline overlay already bands the page and double banding reads as interference.
Editor Chrome #
The mini editor demonstrates the editor definitions from the syntax specification. Null Pointer chrome, an Event Horizon editing surface, Bad Sector inactive line numbers, Phantom Current for the active line, a Core Meltdown active tab, and an Event Horizon inactive tab. The gutter uses the editor marker geometry, and the status bar follows the panel rules.
Navigation and Links #
A link is Phantom Current with a 1px underline at a 3px offset. Hover moves the colour to Fatal Error and the underline to 2px. A visited link is Corrupted Cache, and an active link is Digital Rust. The focus ring is 2px Stack Overglow at a 2px offset. A lead-link list separates its items with a middot in Phosphor Smoke at 50% opacity, and a group label is a Fatal Error Rajdhani label followed by a Digital Rust ».
The skip link sits off-screen until it takes focus. It then appears at the top with a Digital Rust background, Ghost Pixel text, and the button frame.
Scrollbars #
A scrollbar is thin, between 8px and 10px. The track is transparent. The thumb is --dr-scrollbar-thumb (Rouge Signal) at rest and --dr-scrollbar-thumb-hover (Firewall Breach) on hover, so both clear 3:1 against the page; --dr-surface-active on drag, with a 2px radius. A scrollbar never glows, never widens past 12px, and never hides on idle, because the position of the view is a readability concern.
Motion #
Three durations exist: 150ms for a state change, 250ms for a border or panel transition, and 400ms for the terminal line entry and the indeterminate loading pulse. The default ease is cubic-bezier(0.4, 0, 0.2, 1). A glow and a scanline are static, and nothing pulses for decoration. Under prefers-reduced-motion: reduce, every transform, transition, the cursor blink, and both texture overlays are suppressed, and every state colour remains.
Do's and Don'ts #
Do: #
- Do use the rust ramp as the only neutral scale. There is no separate grey ramp.
- Do reference the semantic
--dr-*tokens from component code and never a raw palette value. - Do enforce WCAG 2.1 AA on all text, and use Amber Alert Text for error text on a base or elevated surface.
- Do stack the inner highlight under every offset shadow on a raised or interactive element.
- Do run the full press cycle on every pressable element: rest offset, hover lift, active collapse.
- Do keep wells dark and recessed. Depth inside a well comes from darkness and not from elevation.
- Do cover every ambient surface with the noise texture and the scanline overlay.
- Do keep every wall at 2px: a control reads
--dr-border-colorand a container reads--dr-border-color-container. Reserve 4px walls for page chrome. - Do keep a radius between 2px and 6px, and reserve a pill for a badge.
- Do name a new accent after a system failure, in the same shape as the existing families.
- Do carry semantics in the underline style: solid for a link, wavy for an error or a warning, dotted for spelling.
- Do give a modal exactly one primary action, and use Bricked Board for a toast and a status bar.
- Do keep a badge or diagnostic tint between 10% and 15% opacity, so the tint carries meaning without competing with the ramp.
- Do suppress motion, the cursor blink, and both texture overlays under
prefers-reduced-motion: reduce. - Do keep a touch target at 24×24px or larger. The 2px press travel does not count toward the target.
- Do provide both modes. Read the saved preference first, then
prefers-color-scheme, then the dark theme, and resolve the mode before the first paint. - Do keep a hot panel dark in Safe Mode, and use the on-hot text values on it.
- Do layer a Safe Mode badge tint over Ghost Pixel and not over its panel.
Don't: #
- Don't use pure black
#000in a background, border, shadow, or scrim. Use Event Horizon or a warm-tinted transparency. - Don't blur a shadow. The small and medium glows are the only blur, and they simulate heat.
- Don't use Dracula, Nord, Tokyo Night, One Dark, or any cold blue-purple dark material.
- Don't leave an ambient surface flat and noiseless.
- Don't introduce a colour outside the 19 ramp stops and the six accent families.
- Don't use Fatal Error for body text or link text.
- Don't use raw Amber Alert as text on a base or elevated surface, and never as a primary-button hover fill.
- Don't set body copy in all-caps.
- Don't force a mode on a reader. A reader who needs a light interface must reach Safe Mode, and a reader who needs a dark interface must keep the dark theme.
- Don't use
#FFFFFFin a Safe Mode background, border, shadow, or scrim. Ghost Pixel is the light point. - Don't paint a mode by changing a selector. Change a value.
- Don't render a syntax colour on a raised panel in Safe Mode. The quiet roles fall below 4.5:1 there.
- Don't use a left or right accent stripe above 1px. The left rule on a section title or a specification prose block and the 3px semantic accent on a toast or a callout are the deliberate exceptions.
- Don't round a component past 6px, and never give a button a pill radius.
- Don't give a well an offset shadow or a hover lift.
- Don't apply the press cycle to a passive surface such as a badge, a heading, or a table row.
- Don't place two primary buttons in one view.
- Don't zebra-stripe a table.
- Don't animate a modal or a toast with scale, spring, or bounce.
- Don't remove a focus outline without a replacement.
- Don't let colour carry a state alone.