HAX Design System
SkillMediaApply the DDD (Design, Develop, Deliver) 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.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the HAX Design System skill
What this skill tells your AI
The instructions your AI receives, as published by haxtheweb/haxcms-php in .well-known/agent-skills/hax-design-system/SKILL.md and read by ahel’s review.
Apply the DDD (Design, Develop, Deliver) 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-secondaryfor typography--ddd-font-size-*(xs, s, ms, m, ml, l, xl, xxl) for font sizes--ddd-font-weight-*(light, regular, medium, bold) for weights--ddd-spacing-*(0-32) for margins, padding, gaps--ddd-radius-*(xs, s, m, l, xl) for border radius--ddd-primary-*,--ddd-accent-*,--ddd-text-*,--ddd-border-*for colors--ddd-breakpoint-*for responsive breakpoints
- SimpleColors Fallback: Use SimpleColors only when DDD does not provide the needed color variation. The 12 base colors with 25 shades each (0-24) are available for legacy support.
- 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
:host {
display: block;
font-family: var(--ddd-font-primary);
color: var(--ddd-text-primary);
margin: var(--ddd-spacing-4);
}
.component-header {
font-size: var(--ddd-font-size-l);
font-weight: var(--ddd-font-weight-medium);
margin-bottom: var(--ddd-spacing-3);
}
@media (max-width: 768px) {
:host {
margin: var(--ddd-spacing-2);
}
.component-header {
font-size: var(--ddd-font-size-m);
}
}
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
Signals
- GitHub stars
- 129
- Forks
- 57
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
hax-design-system- Source
- github.com/haxtheweb/haxcms-php