/ama-styling:styling-best-practicesfrom ama-styling
Guides token-first development using CSS custom properties and Otter extensions. Helps find design tokens, apply naming conventions, and avoid hardcoded values in UI components.
Ships in ama-styling. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ALWAYS use design tokens (CSS custom properties) instead of hardcoded values for colors, spacing, typography, border-radius, shadows, and animation durations.
find_design_token MCP tool to discover available tokens.Ask for:
/* ❌ BAD */
.card { background: #ffffff; padding: 16px; border-radius: 8px; }
/* ✅ GOOD */
.card { background: var(--colors-surface); padding: var(--spacing-md); border-radius: var(--shape-corner-medium); }
Use find_design_token with the CSS property and a semantic description of the need.
If no results, try broader terms or use list_design_tokens to browse by category.
| Extension | Purpose | Example |
|---|---|---|
o3rPrivate: true | Internal token, not exposed to CMS | Implementation details |
o3rScope: '<selector>' | Scope CSS property to a selector instead of :root | Component-specific tokens |
o3rExpectOverride: true | Token designed to be overridden (theming/rules engine) | Brand colors |
o3rImportant: true | Generates with !important (use sparingly) | Legacy CSS specificity battles |
o3rUnit: '<unit>' | Converts unitless value to a CSS unit (px, rem, em, %, vw, vh, ms, s) | Figma-extracted raw numbers |
o3rRatio: <number> | Applies a multiplier to numeric value | Derived spacing/type scales |
o3rMetadata: {...} | CMS metadata (tags, label, category, component) | Design system portal discoverability |
colors-primary, not colorsPrimary{category}-{subcategory}-{variant}-{state}colors-*, spacing-*, typography-*, shape-*, elevation-*, motion-*colors-primary, not blue-500; spacing-md, not size-3Skip tokens for: one-off layout values, z-index layering, @keyframes intermediate values, structural CSS (display, position, overflow), content-coupled dimensions (max-width: 65ch).
Halt and ask for clarification if:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub amadeusitgroup/otter --plugin ama-styling2 skills in this plugin
Other plugins' skills for the same job