Skill library

Agent skill Frontend

Epicenter Styling

Establish reusable styling and design decisions across web screens.

  • Design systems
  • UI styling

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add https://github.com/EpicenterHQ/epicenter/tree/main/.agents/skills/styling --skill styling --agent claude-code --yes

Check this file in your project.claude/skills/styling/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/EpicenterHQ/epicenter/tree/main/.agents/skills/styling --skill styling

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use a Svelte UI with Tailwind and a local preview. The native overflow pattern was tested with Svelte 5.60.0 and Tailwind 4.3.5. Epicenter-specific overrides also require its sibling ui-design reference files.

View operation manual

What this skill helps with

  • Establish reusable styling and design decisions across web screens.

Good for

  • Design tokens and shared styles
Skill name
styling
Scenario
Keep a fixed toolbar above an independently scrolling Svelte panel
Deliverable
A scrollable list under a stable toolbar, with native disabled behavior for an empty group.
Skill name
styling

Define a component task with an observable result

A request with an unclear outcome

Set the remaining-height panel to h-full and guard its empty action in JavaScript.

The panel can overflow its toolbar and the empty action still appears interactive.

A workflow with observable results

  1. Trace the height chain
  2. Constrain the scroll panel
  3. Scroll the list and test empty actions

Epicenter Styling operation manual

Trace nested flex sizing, then verify the list and native disabled states in a narrow browser view.

Replace the bracketed details with your own project and target.

  1. Trace the height chain

    Measure toolbar, panel and scrolling list.

    Prompt · Step 1
    Use the Epicenter `styling` skill on [Svelte panel]. Identify the height-constrained ancestor, toolbar and element expected to scroll. At a narrow viewport, reproduce the overflow with the longest realistic item. Record each relevant flex child and identify where h-full consumes a full parent height.
  2. Constrain the scroll panel

    Let the parent flex child shrink and the list scroll.

    Prompt · Step 2
    Use Epicenter `styling` to update [approved panel]. Add flex-1, min-h-0 and overflow-hidden at the bounded flex child and overflow-y-auto to the actual list. If the list itself is the flex child, use its native overflow-y-auto pattern. Add native disabled to empty actions and retain enabled and group-disabled styles as applicable.
  3. Scroll the list and test empty actions

    Keep the toolbar in view and inspect keyboard reachability.

    • The list scrolls independently and the toolbar is still visible.
    • Native disabled removes activation from empty group controls.
    Prompt · Step 3
    Use Epicenter `styling` to verify [local panel] at the problem width. Scroll the list and confirm the toolbar stays in place and the page has no horizontal overflow. Tab through actions and check that empty group controls are natively disabled and the enabled action works. Inspect the captured screenshot before reporting.

Find the relevant rule

Point the assistant to the installed Skill and a specific issue.

The list grows past its toolbarReference
Command or reference
SKILL.md · Flex Column Scroll Trap
Examples
Check flex-1, min-h-0 and the bounded overflow element.

Epicenter Styling troubleshooting

Where does cn() come from?

Epicenter’s app uses `@epicenter/ui/utils`. In other Svelte repos, use the project’s own utility if present. The native scrolling rules also work without cn().