@kung-fu/terminal
v0.1.0
Published
terminal — the x51.dev terminal / CRT aesthetic as a CSS framework (JetBrains Mono type, phosphor glow, scanlines, shell-style components)
Readme
terminal
The x51.dev terminal / CRT aesthetic, packaged as a single CSS framework. It's the exact theme that dresses every page of x51.dev — JetBrains Mono on an olive ground, a faint phosphor text-glow, CRT scanlines, inverse-video links, and a kit of shell-style listing components.
Live style guide: https://x51.dev/terminal/
Installation
Via NPM
npm install @kung-fu/terminal<link rel="stylesheet" href="path/to/terminal.css">Via CDN
<link rel="stylesheet" href="https://unpkg.com/@kung-fu/terminal/dist/terminal.min.css">Usage
terminal.css themes <body> wholesale — link it and the whole page takes on the
aesthetic. No build step, no JS.
Fonts
The type is JetBrains Mono (SIL OFL-1.1), a free, open-licensed monospace face.
terminal.css references it via an @font-face whose src points at site-absolute
/fonts/jetbrains-mono-*.woff2 URLs. The package itself ships only CSS — no font data —
so on your own site, provide JetBrains Mono however you like:
- self-host the woff2 at
/fonts/(the OFL permits redistribution; keep theOFL.txtwith it), or - pull it from a package such as
@fontsource/jetbrains-mono, or - override the
@font-faceto point at your own copy.
Without it, the stack falls back to the platform monospace and the layout still holds — so the framework works with zero font setup; you just won't get the exact JetBrains Mono shapes.
What's in it
A terminal palette plus a set of shell-flavoured components:
| Class | Renders as |
|---|---|
| .prompt / .cmd | a shell prompt line (PS1 recedes, the command pops) |
| ul.ls | an ls -l directory listing (mode · name · description) |
| ul.ps + .ps-header | a ps aux process table |
| ul.systemctl + .systemctl-header | a systemctl list-units table |
| ul.bbs / ul.mutt / ul.fm | BBS board · mutt mailbox · FM tuner listings |
| main.doc | man-page layout (section headings, indented body) |
| .cursor | a blinking block cursor |
| table.outline, pre, pre code.shell | dashed tables, code blocks, $-prefixed shell |
The body also gets the CRT scanline overlay and phosphor glow automatically.
The x51 labs wordmark and brand SVGs are x51.dev-specific branding and are deliberately not part of this package — only the reusable
terminal.cssframework is published.
Palette
| Token | Hex | Role |
|---|---|---|
| Ground | #464F41 | background |
| Ink | #EFF7D3 | text / headings |
| Dim | #BAC7A7 | secondary text |
| Faint | #889E81 | metadata / rules |
| Inactive | #5C6952 | disabled state |
Source of truth
This package is a thin publish wrapper. The CSS is authored and previewed in the x51.dev
guide at x51.dev/sites/terminal/css/terminal.css; prepublishOnly harvests it into
dist/ (plus a minified build) at publish time.
License
GPL-3.0-only — see LICENSE file for details.
