Skip to content

feat: add color checking capability - #1

Closed
ghost wants to merge 1 commit into
mainfrom
unknown repository
Closed

ghost wants to merge 1 commit into
mainfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Jan 9, 2026

Copy link
Copy Markdown

This PR adds color checking capability to interfacectl, following the same pattern as font validation.

Changes

  • Add allowedColors to contract schema and types
  • Implement color extraction from CSS files and components
  • Add color validation in compliance checks
  • Update CLI to report color violations
  • Fix parseColorValue to only accept known CSS named colors
  • Add color tests to test suites
  • Update test fixtures with allowedColors

Testing

  • All existing tests pass
  • New color extraction and validation tests added
  • Tested against surfaces-monorepo with successful validation

- Add allowedColors to contract schema and types
- Implement color extraction from CSS files and components
- Add color validation in compliance checks
- Update CLI to report color violations
- Fix parseColorValue to only accept known CSS named colors
- Add color tests to test suites
- Update test fixtures with allowedColors
@ghost ghost closed this by deleting the head repository Jan 9, 2026
This pull request was closed.
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.

0 participants