cybercore-css
v0.4.0
Published
A pure CSS cyberpunk design system inspired by Cyberpunk 2077. Zero JavaScript, framework-agnostic, 2026+ optimized.
Maintainers
Readme
CYBERCORE CSS
A pure CSS cyberpunk design framework: neon components, glitch effects, design tokens and 150+ SVG icons in one stylesheet. No JavaScript, no build step, any framework.
Live demo and docs · Components · Effects · Utilities · Icons · Theming
- Pure CSS. The package ships a stylesheet, its Sass sources and icon definitions. Zero JavaScript, zero runtime dependencies.
- Drop-in. One
<link>tag andcyber-*classes on plain HTML. Works with React, Vue, Svelte, Astro, Rails, Django or nothing at all. - Themeable. Every colour, size, duration and glow is a CSS custom property. Override one token and the whole system follows.
- Overridable. Everything sits in cascade layers, so your own CSS wins without
!important. - Accessible. Visible focus rings, WCAG AA contrast, reduced motion, high contrast and forced colours are handled in the framework.
- Stable names.
cyber-*classes and tokens are public API: they are not renamed or removed outside a major release. - AI-ready. One-file class reference for coding agents:
llms.txt.
Install
CDN
Pin the version, so a new release never changes your page under you:
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/cybercore.min.css"
/>The same file is on unpkg: https://unpkg.com/[email protected]/dist/cybercore.min.css. The getting started page prints this tag with a Subresource Integrity hash if you want one.
npm
npm install cybercore-css// any entry file your bundler reads
import 'cybercore-css';With Sass:
// Vite, webpack and other bundlers that read package exports
@use 'cybercore-css';
// or the core (layers, tokens, themes, reset) plus only the modules a page uses
@use 'cybercore-css/scss/core';
@use 'cybercore-css/scss/components/buttons';
@use 'cybercore-css/scss/effects/glitch';// Plain Sass CLI: sass --pkg-importer=node
@use 'pkg:cybercore-css';Fonts (optional)
The framework bundles no fonts and falls back to system fonts. For the look in the screenshots, load Orbitron, Rajdhani, Exo 2 and JetBrains Mono:
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Rajdhani:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>Quick start
A complete page. Save it as index.html and open it:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Deck status</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/cybercore.min.css"
/>
</head>
<body>
<main class="cyber-p-lg">
<h1 class="cyber-glitch" data-text="System online">System online</h1>
<div class="cyber-card">
<div class="cyber-card__header">
<span class="cyber-card__title">Uplink</span>
</div>
<div
class="cyber-progress cyber-mb-md"
role="progressbar"
aria-label="Uplink"
aria-valuenow="82"
aria-valuemin="0"
aria-valuemax="100"
>
<div class="cyber-progress__bar" style="width: 82%"></div>
</div>
<div class="cyber-flex cyber-flex-wrap cyber-items-center cyber-gap-sm">
<button class="cyber-btn" type="button">Run diagnostics</button>
<button class="cyber-btn cyber-btn--magenta" type="button">Purge</button>
<span class="cyber-badge cyber-badge--green">Online</span>
</div>
</div>
</main>
</body>
</html>Every class is cyber-<block>, cyber-<block>__<element> or cyber-<block>--<modifier>. Colour modifiers are the same everywhere: --magenta (danger), --yellow (warning), --green (success); cyan is the default.
Components
Each one has a page in the demo with live variants, markup to copy, and the ARIA attributes and keys it expects.
| Group | What is in it | | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Actions | Buttons, Dropdown | | Forms | Inputs (text, textarea, select, checkbox, radio, range, field, input group), Switch | | Content | Cards, Tables, Terminal, HUD, Accordion | | Feedback | Alerts, Toast, Badges, Progress, Spinner, Skeleton, Tooltip | | Navigation | Nav, Tabs, Breadcrumb, Pagination | | Overlays | Modal |
Effects: cyber-glitch (text glitch), cyber-neon-border (animated glow frame), cyber-scanlines, cyber-noise, cyber-datastream. All are decorative, never block clicks, and stand still under reduced motion.
Utilities: display, flex, grid, spacing, text, accessibility and animation helpers on the same tokens as the components, in the stylesheet. Ten more families (position, sizing, layout, backgrounds, borders, shadows, filters, transforms, transitions, interactivity) ship as Sass modules you load on demand. Reference: docs/UTILITIES.md.
Icons: 150+ stroke icons in ten categories and four variants (outline, solid, duotone, glitch), as tree-shakeable SVG strings:
import { renderIcon } from 'cybercore-css/icons';
const svg = renderIcon('terminal', { size: 24, 'aria-label': 'Open terminal' });The framework ships no script. Most components need none; a few (tabs, modal, dropdown, toast, the mobile nav) need the page to toggle an attribute or a class, and their demo pages show the few lines.
Theming
Tokens are CSS custom properties on :root. Override them in your own stylesheet, globally or on any subtree:
:root {
--cyber-cyan-500: #00ffaa; /* retints the whole cyan scale and everything accent-coloured */
--glow-intensity: 0.5; /* dim every glow at once */
--font-display: 'Orbitron', sans-serif;
}
.sidebar {
--space-md: 1rem;
}Switch the accent with an attribute, on the page or on one section:
<html data-theme="magenta">
<section data-theme="acid">…</section>
</html>Built-in themes: cyan (default), magenta, acid, amber. data-contrast="high" and data-motion="reduce" force the high-contrast and reduced-motion behaviour that the framework otherwise takes from the user's system settings.
The framework's styles live in cascade layers (reset, base, theme, components, utilities), so any rule you write outside a layer wins, whatever its specificity:
.cyber-btn {
letter-spacing: 0.2em;
}Cybercore is dark by design: there is no light palette. All tokens, live: Theming and tokens.
Accessibility
Cybercore CSS aims at WCAG 2.2 level AA for what a stylesheet controls:
- Contrast. Text meets 4.5:1 and large text, control boundaries and focus rings meet 3:1, in every colour variant.
- Focus. Every interactive component shows a visible
:focus-visiblering that the cut corners and overlays never clip. - Reduced motion. Under
prefers-reduced-motion: reducetransitions become instant and glitch, flicker, scanline and loading animations stop. Nothing flashes more than three times a second. - High contrast and forced colours.
prefers-contrast: moreraises text and border contrast and dims glows; Windows forced-colors mode keeps controls and states visible. - No colour-only meaning. States are carried by text, shape or position as well as colour.
- Semantics stay yours. The framework styles native elements and ARIA attributes (
aria-selected,aria-expanded,aria-current,aria-disabled) and each demo page documents the roles and keys a component expects. A stylesheet cannot add them for you.
Found a contrast, focus or motion problem? That is a bug: please open an issue.
Browser support
| Browser | Version | | --------------- | ------- | | Chrome and Edge | 111+ | | Firefox | 121+ | | Safari | 16.2+ |
The floor comes from cascade layers, color-mix() and :has(). Newer features (@starting-style, :user-invalid, popover) are used only as enhancements with a working fallback.
AI agents
This project is maintained by developerz.ai. Its maintainer agent triages issues, reviews every pull request, merges every pull request once its author marks it ready and CI passes, watches project health daily (CI, the demo site, npm and the CDN), and opens release pull requests. The policy is in .dz/maintainer/maintainer.yml. Breaking changes and major releases stay with the owner.
- Using Cybercore CSS in your project? Point your agent at
llms.txt, the class and token reference in one file. Paste this into your project'sCLAUDE.md/AGENTS.md:## Cybercore CSS UI is styled with the cybercore-css framework (`cyber-*` classes, `--cyber-*` tokens). Before writing markup read https://github.com/sebyx07/cybercore-css/blob/main/llms.txt and use only classes listed there. - Working on this repo?
CLAUDE.mdholds the agent instructions (AGENTS.mdpoints at the same file): commands, layout, invariants, how to verify a change. Design rules are insrc/scss/CLAUDE.md; Claude Code skills and reviewer agents live in.claude/.
Contributing
Bug reports and pull requests are welcome, small ones included. CONTRIBUTING.md has the setup, the checks and how pull requests get merged; CHANGELOG.md has what changed; security reports go through SECURITY.md.
bin/setup # install
bin/dev # demo site with hot reload
bin/check # the same gate CI runsContributors
Thank you to everyone who has sent a fix or a feature:
- @mountainash: optional utility styles in the demo (#3)
- @chadol27: centred the icon spin animation (#5)
- @ctrisciuzzi:
cyber-input-groupand its addon (#6),cyber-nav__linkfix (#7)
Related
- cybercore-charts: zero-dependency SVG charts in the same cyberpunk look, built to sit next to these components. Demo.


