Skip to content

Document every Carbon component in the design system - #375

Merged
athNdev merged 1 commit into
mainfrom
docs/design-system-exhaustive
Nov 7, 2026
Merged

athNdev merged 1 commit into
mainfrom
docs/design-system-exhaustive

Conversation

@athNdev

@athNdev athNdev commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Summary

Rewrite docs/design-system/index.html as an exhaustive technical reference instead of a marketing page.

  • All 19 exports from web/carbon-panel/src/lib/components/carbon/index.ts now have a section with a prop table, defaults, a static demonstration and behaviour notes. Each is tagged tokenised, literal palette or mixed so the remaining migration work is visible.
  • Colour is now complete role tables for both themes (surfaces, text, actions, status, button states, 11 tag pairs, chart ramp, sidebar, skeletons) instead of eight swatches.
  • Typography, space, elevation and motion document the real scale, control heights, focus ring, shadow values, durations, easings and both reduced-motion paths.
  • New composition section records the rules that cause repeated defects (single gutter, scrollbar gutter, scroll-strip, overlay portalling).
  • Copy is dry and technical; no slogans.

Regression coverage

scripts/test_design_system_page.py now parses the export list and asserts each component has an id="c-…" section containing its name and a prop table, so the page cannot drift back to a partial inventory. The inventory is recorded as knowledge/invariants/design-system-inventory.md.

Verification

  • python -m unittest scripts.test_design_system_page scripts.test_website scripts.test_landing_page — 19 tests pass.
  • python scripts/build_website.py and python scripts/check_website.py — 27 pages valid, social metadata unchanged.
  • python scripts/check_brand_assets.py — pass.
  • go run ./cmd/knowledge-lint -root . — 36 concepts, indexes current.
  • Layout checked in headless Chrome at 360, 768 and 1440 CSS px: scrollWidth == clientWidth, no horizontal overflow; light and dark previews inspected.
  • Both changelog copies remain byte-identical.

Rewrite the design-system page as a technical reference: complete
light and dark token tables, the product type scale, control geometry,
elevation and motion contracts, and a section with a prop table and
behaviour notes for all nineteen exports from carbon/index.ts.

Add a regression test that derives the component list from the export
file, and record the inventory invariant in the knowledge base.
@athNdev
athNdev merged commit d4fa711 into main Nov 7, 2026
12 checks passed
@athNdev
athNdev deleted the docs/design-system-exhaustive branch November 7, 2026 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant