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-system

SKILL.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

  1. Import DDD: Always import import '@haxtheweb/d-d-d/d-d-d.js' and extend DDD directly (never DDD(LitElement)).
  2. Use DDD Tokens: Apply DDD CSS custom properties for all styling:
  • --ddd-font-primary, --ddd-font-secondary, --ddd-font-navigation for 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)
  1. SimpleColors Fallback: Use SimpleColors only when DDD does not provide the needed color variation. 19 hues with 12 shades each (1-12); default-theme variables flip in dark mode, fixed-theme variables do not.
  2. Audit: Verify token usage, consistency across breakpoints, accessibility contrast, and performance (minimal custom CSS beyond tokens).
  3. Dark Mode: Check dark mode compliance when auditing elements. Ensure color combinations maintain proper contrast ratios.

Implementation Patterns

css
:host {
display: block;
font-family: var(--ddd-font-primary);
color: var(--ddd-theme-default-coalyGray);
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:

  1. Identify the SimpleColors variable being used
  2. Check if DDD provides an equivalent token
  3. Replace with DDD token if available
  4. Document remaining SimpleColors dependencies
  5. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/haxtheweb/hax-psu/hax-design-system/badge)](https://verified-skill.com/skills/haxtheweb/hax-psu/hax-design-system)

Something wrong with this skill or its page? Tell us.