haxtheweb/hax-psu/hax-design-system
Claude Code and agent skill by haxtheweb/hax-psu
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Apply the DDD (Design, Develop, Destroy) design system and manage SimpleColors legacy usage. Use when styling components, auditing CSS for DDD compliance, migrating from SimpleColors, or creating new themes in the HAX ecosystem.
Install
npx vskill@latest install haxtheweb/hax-psu/hax-design-systemSKILL.md
The same SKILL.md was published earlier as haxtheweb/haxcms-php/hax-design-system.
HAX Design System
Apply the DDD (Design, Develop, Destroy) design system and manage SimpleColors legacy usage.
When to Use
- Styling a new or existing web component
- Auditing CSS for DDD compliance
- Migrating SimpleColors usage to DDD tokens
- Creating or updating HAXcms themes
- Ensuring dark mode compliance across components
How It Works
- Import DDD: Always import
import '@haxtheweb/d-d-d/d-d-d.js'and extendDDDdirectly (neverDDD(LitElement)). - Use DDD Tokens: Apply DDD CSS custom properties for all styling:
--ddd-font-primary,--ddd-font-secondary,--ddd-font-navigationfor typography--ddd-font-size-*(6xs, 5xs, 4xs, 3xs, xxs, xs, s, ms, m, ml, l, xl, xxl, 3xl, 4xl; type1-s/m/l) for font sizes--ddd-font-weight-*(light, regular, medium, bold, black) for weights--ddd-spacing-*(0-30, 4px steps) for margins, padding, gaps--ddd-radius-*(0, xs, sm, md, lg, xl, rounded, circle) for border radius--ddd-theme-default-*,--ddd-primary-*(0-25) and--ddd-accent-*(0-14) for colors; components read--ddd-theme-primary/--ddd-theme-accent--ddd-border-*(xs-lg) for borders,--ddd-boxShadow-*for elevation,--ddd-icon-*for icon sizes--ddd-breakpoint-*for responsive breakpoints (write the px literally in@media)
- SimpleColors Fallback: Use SimpleColors only when DDD does not provide the needed color variation. 19 hues with 12 shades each (1-12);
default-themevariables flip in dark mode,fixed-themevariables do not. - Audit: Verify token usage, consistency across breakpoints, accessibility contrast, and performance (minimal custom CSS beyond tokens).
- Dark Mode: Check dark mode compliance when auditing elements. Ensure color combinations maintain proper contrast ratios.
Implementation Patterns
SimpleColors Migration
When encountering legacy SimpleColors usage:
- Identify the SimpleColors variable being used
- Check if DDD provides an equivalent token
- Replace with DDD token if available
- Document remaining SimpleColors dependencies
- Plan gradual migration to DDD tokens
References
- For complete DDD token reference:
references/ddd-tokens.md - For SimpleColors to DDD mapping:
references/simplecolors-migration.md - Both are generated from the webcomponents source by
scripts/generate-ddd-references.js; re-run it after DDD or SimpleColors change rather than editing them by hand.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.well-known/agent-skills/hax-design-system/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/haxtheweb/hax-psu/hax-design-system)