Agent skill

Theming Components Skill: Design Tokens and Themes

The theming-components skill gives an AI coding agent a seven category design token system with light and dark themes, RTL support through logical properties and WCAG contrast checks.

Install
git clone https://github.com/ancoleman/ai-design-components.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the theming-components skill?

The theming-components skill is the styling layer of the ai-design-components repository. It defines seven token categories, a three tier colour hierarchy, theme switching through a data-theme attribute, RTL support with CSS logical properties and accessibility rules for contrast and reduced motion. Other component skills in the repo reference it for their styling.

Its SKILL.md calls design tokens the single source of truth for visual decisions. The skill sits inside a collection of 76 skills, and its description says every component skill in that collection refers back to it for styling.

The seven token categories

  • Colour, in three tiers: primitive scales, semantic roles such as primary, and component level tokens.
  • Spacing, on a 4px base scale.
  • Typography, borders and radius, shadows, motion and z-index.

Component tokens follow one naming pattern, --{component}-{property}-{variant}-{state}, for example --button-bg-primary-hover. Because every component reads tokens, a theme file can change the whole interface without touching component code.

Themes, RTL and accessibility

  • Themes switch through a data-theme attribute on the html element, with light, dark, high contrast and custom brand examples.
  • CSS logical properties such as margin-inline-start let layouts flip for right-to-left languages.
  • Contrast targets are 4.5:1 for normal text and 3:1 for large text and UI components, plus a reduced motion rule.

Who the theming-components skill is for

Best for

  • Setting up light and dark mode with CSS custom properties.
  • Giving a component set one shared token naming scheme.
  • Exporting tokens to other platforms through Style Dictionary.

Not for

Use it with UiChemy

These tokens are plain CSS custom properties, which suits the HTML and CSS that UiChemy Composer writes inside Elementor or Gutenberg. For a Figma-first flow, UiChemy Figma to WordPress converts the design. Click Get Started on uichemy.com. See also design-token.