Skip to content
Back to skills

Conventions Css

ASecurity

Apply when writing styles. Ensures consistency with design system and project patterns.

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 8, 2026
tools

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill conventions-css --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Conventions Css?

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

Security grade badge for Conventions Css
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-conventions-css/badge)](https://www.skillsdirectory.com/skills/majiayu000-conventions-css)

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: conventions-css
description: Apply when writing styles. Ensures consistency with design system and project patterns.
---

# CSS Conventions

## No Utility Frameworks

No Tailwind, no utility classes, no CSS-in-JS. Custom CSS only.

## Scoping Rules

- **Atoms:** Unscoped `<style>` — allows design token inheritance
- **Everything else:** `<style scoped>`

## Design Tokens

CSS custom properties exclusively. Never hardcode colors, spacing, typography.

```css
.base-input {
  padding: var(--input-padding);
  border-color: var(--input-border-color);
  font-family: var(--input-font-family);
}
```

## Color System

- Semantic: `--color-primary-{100-400}`, `--color-error-{100-400}`
- Named: `--color-blue-{100-400}`, `--color-amber-{100-400}`
- Contextual: `--text-primary`, `--input-focus-border`

## Native CSS Nesting

```css
.base-input {
  &:focus {
    border-color: var(--input-focus-border);
  }
  &:disabled {
    opacity: var(--input-disabled-opacity);
  }
}
```

## Inline Styles

Only for truly dynamic values (calculated at runtime). Otherwise use CSS custom properties.

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.

Comments

Loading comments…

Newsletter

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