design-system-validator

Solid

Validate design system compliance in code and detect token usage violations

Web & Frontend 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Design System Validator Skill ## Purpose Validate that code adheres to design system specifications, checking token usage, component props, and style consistency. ## Capabilities - Check design token usage in CSS/SCSS - Validate component prop usage - Detect hard-coded values that should use tokens - Ensure naming convention compliance - Generate compliance reports - Integrate with linting tools ## Target Processes - design-system.js - component-library.js ## Integration Points - ESLint plugins for design systems - Stylelint for CSS validation - Custom AST analyzers - Token documentation ## Input Schema ```json { "type": "object", "properties": { "scanPath": { "type": "string", "description": "Path to code to validate" }, "tokenDefinitions": { "type": "string", "description": "Path to design token definitions" }, "rules": { "type": "object", "properties": { "enforceTokenColors": { "type": "boolean", "default": true }, "enforceTokenSpacing": { "type": "boolean", "default": true }, "enforceTokenTypography": { "type": "boolean", "default": true }, "allowHardcodedValues": { "type": "array", "items": { "type": "string" } } } }, "fileTypes": { "type": "array", "items": { "type": "string" }, "default": ["css", "scss", "tsx", "jsx"] }, "severity": { "type": "string", "enum": ["error", "warning", "info"], "default": "warning"...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills