preline-theme-generator
Skill này làm gì
Skill này giúp agent của bạn tạo theme màu sáng và tối cho hệ thống thiết kế Preline. Nó dành cho người muốn màu website khớp với thương hiệu hoặc một cảm xúc nhất định.
Khi nào nên dùng
- ✓Khi bạn muốn một theme Preline mới được xây từ màu chính của thương hiệu.
- ✓Khi bạn muốn xem theme sẽ trông thế nào trước khi lưu bất kỳ file nào.
- ✓Khi bạn yêu cầu agent xem lại và sửa các thiết lập màu của một theme đã tạo.
Liên kết skill
https://github.com/htmlstreamofficial/preline/blob/main/skills/theme-generator/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể tạo một theme Preline khớp với màu thương hiệu của chúng tôi, một màu xanh lá đậm, với cả phiên bản sáng và tối không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent biến yêu cầu của bạn thành các thiết lập rõ ràng, chạy một bộ sinh cục bộ đi kèm để tạo CSS của theme, và kiểm tra kết quả theo một danh sách trước khi hoàn thành.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có cần tải gói xuống để chạy không?
Không. Nó dùng các script cục bộ đi kèm và không tải gói từ mạng.
Nó có ghi đè file hiện có của tôi không?
Skill được thiết kế để chỉ tạo hoặc sửa file theme mới.
Nó chỉ dành cho Preline thôi à?
Có. Nó dành cho theme Preline và không dành cho công việc CSS nói chung.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #13881
- Giấy phép
- —
- Cập nhật
- 30/8/2026
Bình luận
- …
Thêm skill từ kho mã này
Skill tương tự
canvas
394kCho phép agent của bạn hiện một widget trực quan được lưu trữ trên bảng Mac đã kết nối, rồi ẩn bảng hoặc chuyển nó sang trang khác.
control-ui
394kGiúp agent của bạn sắp xếp và khắc phục sự cố Control UI của OpenClaw, gồm các phiên, bảng điều khiển và Gateway đã kết nối.
diagram-maker
394kGiúp agent của bạn vẽ sơ đồ rõ ràng dạng SVG, HTML hoặc Excalidraw có thể sửa, cho quy trình, kiến trúc hệ thống và bản phác bảng trắng.