Files
stylguide/CLAUDE.md
wlkns-dev 8c1a4164db Version 2.5
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 22:46:42 +01:00

3.2 KiB

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Repository state

This is a design-guide project, not an application: there is no build, lint or test tooling and no package manifest (plain HTML/CSS/JS files, open them directly in a browser). It is a git repository (branch main, remote on git.wlkns.org). The primary deliverable is STYLEGUIDE.md, a German-language design guide ("Styleguide für Apps und Websites") that defines a shared visual language (dark/light themes, orange accent, Inter typography, rounded components). Its values were derived from the UI of Nexus 0.1.7, loosely modelled on llm-arena.

The guide is meant to be the shared design foundation for all of the owner's apps and websites; other projects refer to it, and it is to be extended over time. README.md follows the owner's "pragmatic README" template (honest purpose, status, warnings, usage); sections of that template that do not apply to a docs-only repo (install, build) are omitted.

Working on STYLEGUIDE.md

  • Write in German, in the document's existing factual tone. Keep the product name spelling "neXus" (the X is the accent-coloured letter; this is specific to that product, not a general rule).
  • The document deliberately separates three kinds of statements. Preserve this distinction when editing:
    • Ausgangsbasis: documented values taken from Nexus (colors, radii, spacing, type sizes).
    • Empfehlung: marked recommendations for other products, not yet verified anywhere.
    • Offener Punkt: explicitly unresolved issues, e.g. verification of finished views (sections 4 and 12). Light-theme --accent has only 2.51:1 on white, so text/links/primary buttons must use --accent-strong. Do not claim accessibility conformance or that any app already implements the guide.
  • Color tokens (section 3) are the single source of truth for hex values, mirrored in tokens.css (dark = fallback, light via prefers-color-scheme and data-theme). Change both together. theme.js is the reference theme switcher that sets data-theme. Contrast ratios in section 4 are computed from the opaque token values, so recompute them if any color token changes.
  • Styles (section 3, "Stile") only override accent tokens (data-accent in tokens.css); a new style needs the same contrast checks as Orange/Blue.
  • components.css holds the component styles (guide section 8, no page layouts) and builds on tokens.css; change it together with the guide. reference.html renders every token and component from tokens.css/components.css/theme.js; update it when tokens or components change, and check it in dark/light and both styles (headless: chromium --headless --screenshot --blink-settings=preferredColorScheme=0|1).
  • demo/ is a small no-build example app ("Merkzettel") that consumes ../tokens.css and ../theme.js; its app.css contains only app-specific layout, components come from ../components.css. The tooltip/dialog JS is still duplicated between reference.html and demo/app.js.
  • Version and date are in the header line ("Version 2.5 · Stand: 16.11.2026"; the README status line repeats the version); update it when making substantive changes.