Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Component Styling?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/najuaircrack-component-styling)
---
name: component-styling
description: "Style an existing component through its supported variants, slots, and interaction state indicators."
license: MIT
---
# Component styling
Scopeway guidance for adapting a component already owned by the project.
1. Read the component source, its public variants and slots, and an unchanged caller. Check where the design tokens resolve and which element actually receives focus, disabled state, and event handlers.
2. Keep placement and width in the caller. Use the component's variants or public slots for visual roles such as a compact control or an icon aligned with text. Use a shared variant for a named role the product can reuse. Record one real caller that should retain the default.
3. Check the combined states that can coexist. A selected toggle can still have keyboard focus. A pending action can still need an accessible name and a stable width. Use the native state, ARIA state, or primitive-owned data attribute the component actually exposes.
4. Read the computed styles in a real caller before increasing selector specificity. If a theme or consumer override wins unexpectedly, fix its owning token or slot. Keep focus indicators visible against the selected surface and any clipping ancestor.
**Example.** For the compact export control in a report toolbar, let the toolbar set its row layout. Use the control's compact size variant and existing icon slot. Check the long label, keyboard focus while hovered, and visible progress with the action disabled. Open a second toolbar that uses the shared control and check its existing size and state behavior.