CLAUDE.md
CLAUDE.mdCLAUDE.mdroot
Quality
82/100
Scores the file, not the repository.Length
363 words
9 headings · 1 code blocksRepository
0
— · pushed 104 days agoLast changed
3 days ago
First indexed 3 days ago.1# CLAUDE.md23This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.45## Build Commands67```bash8npm run build:css # Compile SCSS → expanded cyberpunk.css9npm run build:css:min # Compile SCSS → minified cyberpunk.min.css10npm run scss:watch # Watch SCSS and auto-compile to minified11npm run lint:css # Stylelint all SCSS files12npm test # Jest unit tests (--runInBand)13npm run test:watch # Jest in watch mode14npm run test:coverage # Jest with coverage report15npm run test:e2e # Playwright end-to-end tests16npm run pug:watch # Watch/compile Pug templates to HTML17```1819Coverage thresholds are enforced at 70–80% globally (branches/functions/lines/statements).2021## Architecture2223### SCSS Entry Point24`scss/cyberpunk.scss` composes all partials via Sass `@use` in this load order:25261. **Core** — `_fonts.scss`, `_variables.scss`, `_mixins.scss`272. **Base** — `_reset.scss`, `_base.scss`, `_colors.scss`, `_typography.scss`283. **Components** — `_buttons.scss`, `_components.scss`, `_modal.scss`, `_toast.scss`, `_navbar.scss`, `_windows.scss`, `_netgraph.scss`294. **Effects/layout** — `_crt.scss`, `_layout.scss`, `_code.scss`, `_terminal.scss`, `_hex.scss`3031### Design Token Layer (`scss/_variables.scss`)32All variables are declared with `!default` so consumers can override before importing. Covers color palette, breakpoints (XS 360px → XL 1300px), spacing scale (xxs 0.25rem → xxl 4rem), typography, z-index levels, transitions, and per-component variables.3334### Theme System (`scss/_colors.scss`)35Two built-in palettes: `cyberpunk` (default) and `matrix`. Access colors via the `cp-color($key)` function. The `theme-variables()` mixin switches CSS custom properties at `:root`. Utility classes `.bg-*` and `.txt-*` are auto-generated from the active palette.3637### Key Mixins (`scss/_mixins.scss`)38- `retro-border()` — CRT-style glowing border39- `retro-glow-text()` — neon text glow40- `crt-scanlines` — scanline overlay41- `grid-bg()` — retro grid background4243### JavaScript Modules (`scripts/`)44Each file is a standalone ES module with a matching Jest test suite in `tests/`. `init.js` is the entry point and is excluded from coverage. Modules: `buttons`, `modals`, `toasts`, `navbar`, `hexviewer`, `netgraph`, `netgraph-markup` (HTML / `text/cp-netgraph` → topology), `sfx`. The `netgraph` module renders a large default viewBox (`1200×560`), optional directed arrow markers (`arrows`), and packet animation along `source` → `target` edges. Optional **`netgraph-vis.js`** wraps **vis-network** (npm dependency) for interactive layouts; it is not imported from `init.js`—load via `import('./scripts/netgraph-vis.js')`. See `docs/modules/netgraph.html`.4546### Output Files47Compiled CSS is committed to the repo root (`cyberpunk.css`, `cyberpunk.min.css`, and their source maps). Always rebuild after editing SCSS.48
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bagisto/bagistoCLAUDE.md · 28k | CLAUDE.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| livewire/livewireCLAUDE.md · 24k | CLAUDE.md | setupbuildteststyle+4 | 100/100 | 3 days ago | |
| dotCMS/corecore-web/CLAUDE.md · 949 | CLAUDE.md | teststylearchtesting-strategy+3 | 100/100 | 3 days ago | |
| nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.4k | CLAUDE.md | setupbuildstylearch+2 | 100/100 | 3 days ago | |
| microsoft/playwrightCLAUDE.md · 94k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| filamentphp/filamentCLAUDE.md · 32k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| Adit-Jain-srm/NightmareNetCLAUDE.md · 45 | CLAUDE.md | buildtestlint-formatstyle+6 | 100/100 | 3 days ago | |
| dotCMS/coreCLAUDE.md · 949 | CLAUDE.md | setupbuildteststyle+7 | 99/100 | today |
