← スキル一覧に戻る

css-scss-human-made
by humanmade
Human Made coding standards and engineering philosphy, as Claude skills
⭐ 0🍴 0📅 2026年1月13日
SKILL.md
name: css-scss-human-made description: Human Made CSS and SCSS standards. Apply when writing styles, reviewing CSS/SCSS, or working on theme styling. Covers BEM naming, CSS custom properties, theme.json integration, and Stylelint configuration.
Human Made CSS/SCSS Standards
Naming Conventions
Use BEM-like naming:
- Block:
.user-card - Element:
.user-card__title - Modifier:
.user-card--featured
.user-card {
padding: 1rem;
&__title {
font-size: 1.25rem;
}
&__content {
margin-top: 0.5rem;
}
&--featured {
border: 2px solid var(--wp--preset--color--primary);
}
}
CSS Custom Properties
- Use CSS custom properties via
theme.jsontokens where possible - Reference WordPress preset values:
var(--wp--preset--color--primary) - Define component-specific properties at the component level
.component {
--component-spacing: 1rem;
padding: var(--component-spacing);
}
theme.json Integration
For WordPress themes, prefer theme.json for:
- Color palettes
- Typography scales
- Spacing presets
- Layout settings
Reference in CSS:
.element {
color: var(--wp--preset--color--contrast);
font-size: var(--wp--preset--font-size--medium);
padding: var(--wp--preset--spacing--40);
}
SCSS Guidelines
- Use nesting sparingly (max 3 levels deep)
- Extract repeated values into variables
- Use mixins for repeated patterns
- Prefer
@useover@importfor module loading
Class Naming
- Use kebab-case:
.my-component-name - Avoid IDs for styling
- Avoid overly generic names: prefer
.article-cardover.card - Prefix utility classes if used:
.u-visually-hidden
Linting
Projects use Stylelint:
- Config file:
.stylelintrc.jsor.stylelintrc.json - Run with:
npm run lint:cssornpx stylelint "**/*.scss"
スコア
総合スコア
45/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です