Skip to content
Back to skills

Designing Components

ASecurity

Use this skill when you need to design a component

  • 486 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added February 7, 2026
design

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add aiskillstore/marketplace --skill designing-components --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Designing Components?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Designing Components
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aiskillstore-designing-components/badge)](https://www.skillsdirectory.com/skills/aiskillstore-designing-components)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: designing-components
description: Use this skill when you need to design a component
---

# Instructions

- Follow the rules below to design a component:

## Rules

- Create a seperate css file to style the component
- Use the tailwind `apply` directive to style the component
- Use the `@layer components` directive to style the component
- For tailwind 4.1 context, read the following docs:
  - `.claude/context/tailwind/tw-v4-theme-variable.md` to get the design principles
  - `.claude/context/tailwind/tw-v4-custom-styles.md` to get the custom styles
  - `.claude/context/tailwind/tw-v4-function-and-directives.md` to get the functions and directives
  - `.claude/context/tailwind/tw-v4-detecting-classes-in-source-files.md` to get the detecting classes in source files
  - `.claude/context/tailwind/tw-v4-upgrade-guide.md` to get the upgrade guide
- Use nested classes in `@layer components` for styling parents and children elements
- Use @utility directives to add custom utilities to the component
- Use @variant directives to add custom variants to the component
- Create a new component in `srs/components` root directory
- Never touch the files in `srs/components/ui` directory

Files in this skill

  • SKILL.md1.2 KB
  • skill-report.json11.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in design →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.