Back to skills
SKILL.md
Conventions Css
ASecurityApply when writing styles. Ensures consistency with design system and project patterns.
- 754 stars
- 0 votes
- 0 copies
- 3 views
- Added February 8, 2026
Security analysis
100/100npx -y skills add majiayu000/claude-skill-registry --skill conventions-css --agent claude-codeAre you the author of Conventions Css?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/majiayu000-conventions-css)---
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
Related skills
View all in tools →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.