Implement support for an optional omitted frontmatter configuration key in DESIGN.md, allowing design system authors to explicitly declare token categories that are intentionally skipped or absent (Issue #78).
* Update Parser: Add 'omitted' to the known schema keys and types. Implement frontmatter parsing supporting both bare strings (e.g. - spacing) and object mappings with reasons (e.g. section: rounded, reason: "No rounded corners").
* Update Model: Forward the parsed omitted sections to the compiled DesignSystemState. Add optional rule property to linter Findings.
* Implement Omission Validation & Suppression:
- Create omittedRule to validate the omitted configuration, warning on unknown or redundant sections (if tokens exist for a section listed in omitted).
- Update missing-sections and missing-typography rules to skip warnings if the targets are explicitly listed as omitted.
- Register the new rule in the default linter list.
* Test Coverage: Add test suites verifying frontmatter parsing, model mapping, linter warnings (declared-omission, redundant-omission, unknown-omission), and rule suppressions.
* Docs: Document the omitted frontmatter key in README.md and spec.mdx, update active rule counts, and regenerate docs/spec.md.
---------
Co-authored-by: David East <deast@google.com>
Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Sudarshan sunil hadmode <sudarshan.deve@gmail.com>
* feat: data-driven Color and Dimension type definitions (fixes#97)
* fix(export): align export test expectations with structured error formats
* fix(ts): eliminate duplicate typeDefinitions identifiers and properties for clean CI compilation
---------
Co-authored-by: David East <deast@google.com>
The linter already supports oklch, oklab, lab, lch, rgb, hsl, hwb,
named colors, color-mix, and 8-digit hex alpha. But the spec, README,
and error messages all said only hex was accepted. This was blocking
adoption for teams using modern CSS color spaces (Issue #53).
Update the Color type definition in the spec, the token types table in
the README, the spec.mdx source, and the linter error message to
reflect the full range of supported formats.
Closes#53
Consolidates packages/linter into packages/cli as a single @google/design.md package with two entry points: a CLI binary and a programmatic linter API.
Adds four commands: lint, diff, export (--format tailwind|dtcg), and spec. Implements W3C DTCG token export with Terrazzo conformance testing. Decomposes linter into pluggable rule modules. Renames Diagnostic→Finding across the public API. Includes 24-check packaging verification script.