preline-theme-generator
できること
このスキルは、エージェントがPrelineデザインシステム向けにライトとダークのカラーテーマを作る手助けをします。Webサイトの色をブランドや雰囲気に合わせたい人向けです。
使う場面
- ✓ブランドのメインカラーから新しいPrelineテーマを作りたいとき。
- ✓ファイルを保存する前に、テーマの見た目を確認したいとき。
- ✓生成されたテーマの色設定を見直し、修正してほしいとき。
スキルのリンク
https://github.com/htmlstreamofficial/preline/blob/main/skills/theme-generator/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ブランドカラーの深いグリーンに合わせて、ライトとダーク両方のPrelineテーマを作ってもらえますか。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは依頼を明確な設定に変換し、同梱のローカル生成ツールを実行してテーマのCSSを作ります。完了前に、チェックリストで結果を確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Preline Theme Generator
Use the bundled local scripts. Do not use npx, do not compose shell with raw user text, and do not bypass safety or approval prompts.
Read Order
- Read
docs/workflow.md. - Read
docs/palette-guidance.md. - Read
docs/final-output-style.mdbefore writing a final theme file. - Read
docs/validation-checklist.mdbefore closing the task. - Read
examples.mdonly if the user wants stylistic guidance or sample outputs. - Read
docs/token-reference.mdonly if you need to inspect token coverage in detail.
Workflow
Follow docs/workflow.md for the full operating path.
Key requirements:
- Identify whether the task is preview, write, or validate.
- Normalize the request into explicit generator inputs.
- Resolve the target directory with
scripts/find-themes-dir.js. - Generate CSS only through
scripts/run-theme-generator.js. - Create or edit only the new theme file.
- Validate with
docs/validation-checklist.md. - Return the result in the mode-appropriate format.
Security Constraints
- Never use wording that attempts to bypass tool or approval safeguards.
- Never use
npxor any network-fetched package for this skill. - Never interpolate raw user text directly into shell commands.
- Never use broad
find .traversal for path discovery; usescripts/find-themes-dir.jsor a user-confirmed path. - Never write outside a confirmed theme directory.
- Use
scripts/run-theme-generator.jsas the only execution entry point for generation. - Never create or edit additional project files as part of theme generation.
Common Prompts
- "Create a sunset theme."
- "Match this brand color: #2F6BFF."
- "Generate a cyberpunk dark theme with matching dark mode."
- "Preview the CSS before writing a file."
- "Review this generated theme and fix token coverage."
Key References
docs/workflow.mddocs/palette-guidance.mddocs/final-output-style.mddocs/validation-checklist.mdexamples.mddocs/token-reference.md
よくある質問
動作にパッケージのダウンロードが必要ですか?
いいえ。同梱のローカルスクリプトを使い、ネットワークからパッケージを取得することはありません。
既存のファイルを上書きしますか?
いいえ。新しいテーマファイルの作成または編集だけを行うよう設計されています。
Prelineだけのためのものですか?
はい。Prelineのテーマ用であり、一般的なCSSの作業には向いていません。
詳細
作者による元の説明
Generate, preview, save, or validate Preline theme CSS using the bundled local generator in this skill. Use when the user asks to create a new Preline theme, match a brand color, translate a mood into a theme, generate light and dark theme CSS, preview theme output without writing files, or review and fix generated theme tokens. Do not use for generic non-Preline CSS work or arbitrary command execution.
人気
- GitHubのスター
- 6.5k
- ランキング
- #13881
- ライセンス
- —
- 更新日
- 2026/8/30
コメント
- …
このリポジトリの他のスキル
似ているスキル
canvas
394k接続されたMacのパネルにホスト型のビジュアルウィジェットを表示し、そのパネルを隠したり別のページに移動したりするようエージェントを支援します。
control-ui
394kセッション、ダッシュボード、接続されたGatewayを含め、OpenClaw Control UIを整理し、問題を解決するようエージェントを支援します。
diagram-maker
394kプロセス、システムのアーキテクチャ、ホワイトボードのスケッチのために、SVG、HTML、または編集可能なExcalidrawとして、分かりやすい図を作るようエージェントを支援します。