スキル一覧に戻る
BinkyTwin

ui-theme

by BinkyTwin

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

SKILL.md


name: ui-theme description: Design system et palette de couleurs du projet. Utiliser pour tout styling, creation de composants UI, ou quand des couleurs sont mentionnees. allowed-tools: Read, Grep, Glob

UI Theme Skill

Regle Absolue

INTERDIT d'utiliser des couleurs hors des tokens definis.

INTERDIT

<div className="bg-purple-500">        // Couleur arbitraire
<div className="bg-blue-600">          // Couleur arbitraire
<div style={{ color: '#abc123' }}>     // Hex direct
<div className="text-violet-400">      // Violet = interdit

AUTORISE

<div className="bg-background">        // Token
<div className="bg-primary">           // Token
<div className="text-foreground">      // Token
<div className="border-border">        // Token

Palette Dark Mode

TokenValeurUsage
--background#0f1419Fond principal
--foreground#e7e9eaTexte principal
--card#16202aCartes, panels
--primary#f97316Boutons, accents (orange)
--secondary#1d2d3dElements secondaires
--muted#2d3d4dFonds subtils
--muted-foreground#8b98a5Texte secondaire
--border#2f3336Bordures
--destructive#ef4444Erreurs

Classes Tailwind Valides

Fonds

  • bg-background - Fond page
  • bg-card - Fond carte
  • bg-primary - Fond bouton principal
  • bg-secondary - Fond secondaire
  • bg-muted - Fond subtil
  • bg-destructive - Fond erreur

Texte

  • text-foreground - Texte principal
  • text-muted-foreground - Texte secondaire
  • text-primary - Texte accent
  • text-destructive - Texte erreur

Bordures

  • border-border - Bordure standard
  • border-primary - Bordure accent

Configuration Tailwind

// tailwind.config.js
module.exports = {
  darkMode: 'class',
  theme: {
    extend: {
      colors: {
        background: 'var(--background)',
        foreground: 'var(--foreground)',
        card: 'var(--card)',
        primary: 'var(--primary)',
        secondary: 'var(--secondary)',
        muted: 'var(--muted)',
        'muted-foreground': 'var(--muted-foreground)',
        border: 'var(--border)',
        destructive: 'var(--destructive)',
      }
    }
  }
}

CSS Variables (globals.css)

:root {
  --background: #0f1419;
  --foreground: #e7e9ea;
  --card: #16202a;
  --primary: #f97316;
  --secondary: #1d2d3d;
  --muted: #2d3d4d;
  --muted-foreground: #8b98a5;
  --border: #2f3336;
  --destructive: #ef4444;
}

Highlights (Exception pour surlignage)

.highlight-yellow { background-color: rgba(255, 235, 59, 0.35); }
.highlight-green  { background-color: rgba(76, 175, 80, 0.35); }
.highlight-blue   { background-color: rgba(33, 150, 243, 0.35); }
.highlight-red    { background-color: rgba(244, 67, 54, 0.35); }
.highlight-orange { background-color: rgba(255, 152, 0, 0.35); }

Verification Avant Commit

Rechercher dans le code :

grep -r "purple\|violet\|blue-[0-9]" --include="*.jsx" --include="*.tsx"
grep -r "#[0-9a-f]\{3,6\}" --include="*.jsx" --include="*.tsx"

Si resultats -> corriger avant commit.

Composants UI Standards

Bouton Principal

<button className="bg-primary text-white px-4 py-2 rounded-lg hover:bg-primary/90">
  Action
</button>

Card

<div className="bg-card border border-border rounded-lg p-4">
  <h3 className="text-foreground font-semibold">Titre</h3>
  <p className="text-muted-foreground">Description</p>
</div>

Input

<input
  className="bg-background border border-border rounded-lg px-3 py-2 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none"
  placeholder="Entrer du texte..."
/>

スコア

総合スコア

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

レビュー

💬

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