スキル一覧に戻る
Swoking

symfony-skcss-component

by Swoking

Claude Code plugin pour projets Symfony StarterKit

0🍴 0📅 2026年1月19日
GitHubで見るManusで実行

SKILL.md


name: symfony-sk:css-component description: Create CSS/SCSS styles for components. Use for visual styling. allowed-tools: Read, Write, Edit, Glob, Grep

CSS Component Skill

Mission

Create CSS/SCSS styles for UI components.


Location

front/public/site/css/<feature>/<name>.css (or .scss)


Template - CSS

/* Feature Component Styles */

.feature-component {
    /* Layout */
    display: flex;
    flex-direction: column;
    gap: 1rem;

    /* Spacing */
    padding: 1.5rem;
    margin-bottom: 1rem;

    /* Visual */
    background-color: var(--bg-color, #fff);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-component__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature-component__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color, #333);
}

.feature-component__body {
    flex: 1;
}

.feature-component__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* States */
.feature-component--loading {
    opacity: 0.6;
    pointer-events: none;
}

.feature-component--error {
    border-color: var(--error-color, #dc3545);
}

Template - SCSS

// Feature Component Styles

$component-padding: 1.5rem;
$component-radius: 0.5rem;

.feature-component {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: $component-padding;
    background-color: var(--bg-color, #fff);
    border-radius: $component-radius;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    &__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    &__title {
        font-size: 1.25rem;
        font-weight: 600;
    }

    &__body {
        flex: 1;
    }

    &__footer {
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    // States
    &--loading {
        opacity: 0.6;
        pointer-events: none;
    }

    &--error {
        border-color: var(--error-color, #dc3545);
    }
}

BEM Convention

  • Block: .feature-component
  • Element: .feature-component__header
  • Modifier: .feature-component--loading

CSS Variables

Use CSS variables for theming:

.feature-component {
    --bg-color: #fff;
    --text-color: #333;
    --accent-color: #007bff;
}

[data-theme="dark"] .feature-component {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
}

Checklist

  • BEM naming convention
  • CSS variables for theming
  • States (loading, error, active)
  • Responsive if needed

スコア

総合スコア

50/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
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です