https://github.com/gitstq/designkit-cli
๐จ DesignKit-CLI: Lightweight Design Token Generator & AI UI Style Engine โ Generate, preview, and export design systems with zero dependencies. Interactive TUI, multi-format export (CSS/JSON/Tailwind/SCSS/DTCG), color palette generation, AI prompt templates optimized for GLM-5.1/GPT/Claude.
https://github.com/gitstq/designkit-cli
Last synced: 3 days ago
JSON representation
๐จ DesignKit-CLI: Lightweight Design Token Generator & AI UI Style Engine โ Generate, preview, and export design systems with zero dependencies. Interactive TUI, multi-format export (CSS/JSON/Tailwind/SCSS/DTCG), color palette generation, AI prompt templates optimized for GLM-5.1/GPT/Claude.
- Host: GitHub
- URL: https://github.com/gitstq/designkit-cli
- Owner: gitstq
- License: mit
- Created: 2026-06-08T07:52:02.000Z (16 days ago)
- Default Branch: main
- Last Pushed: 2026-06-08T07:56:35.000Z (16 days ago)
- Last Synced: 2026-06-08T09:25:33.897Z (16 days ago)
- Language: Python
- Size: 37.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Lightweight Design Token Generator & AI UI Style Engine
Generate, preview, and export complete design systems โ zero dependencies, maximum creativity.
Features โข
Quick Start โข
Usage โข
Export โข
AI Prompts โข
Philosophy
> **๐ก What is DesignKit-CLI?** A zero-dependency Python CLI tool that lets you generate beautiful design systems from simple theme presets. Choose from 7 carefully crafted design themes, customize every parameter, preview in your terminal, and export to CSS/JSON/Tailwind/SCSS/DTCG format. Plus โ it generates optimized **AI system prompts** for GLM-5.1, GPT, and Claude, so your AI coding tools produce consistent, professional UI code every time.
---
## โจ Key Features
### ๐จ **7 Theme Presets**
From Minimal to Brutalist, Warm to Neon โ each with perfectly balanced colors, typography, and spacing.
### ๐๏ธ **Color Intelligence**
Automatic palette generation (50โ950 scale), complementary/analogous/triadic schemes, WCAG contrast checking.
### ๐ค **Typography Engine**
Modular type scales with 5 font pairings, line-height optimization, and weight recommendations.
### ๐ฅ๏ธ **Interactive TUI**
Beautiful Rich-powered terminal interface for live theme preview and design exploration.
### ๐ฆ **Multi-Format Export**
CSS Custom Properties, JSON, Tailwind Config, SCSS Variables, DTCG (Design Tokens Format) โ one command, all formats.
### ๐ค **AI Prompt Generator**
Generate system prompts optimized for **GLM-5.1**, GPT-4o, and Claude โ your AI will follow your design system perfectly.
---
## ๐ Quick Start
```bash
# Install (no dependencies needed for core)
pip install designkit-cli
# Or run directly without install
git clone https://github.com/gitstq/designkit-cli.git
cd designkit-cli
pip install -e .
# For TUI preview (optional):
pip install rich
# ๐ Try these commands right now:
designkit list # See all 7 themes
designkit preview --theme minimal # Preview a theme
designkit export --theme minimal --format css # Export tokens
designkit palette "#6366f1" # Generate color palette
designkit prompt --theme neon --model glm # Generate AI prompt
```
**Requirements**: Python 3.8+ (core: zero dependencies; TUI: Rich library optional)
---
## ๐ Usage Guide
### `designkit list` โ Browse themes
```bash
designkit list
```
Lists all 7 built-in design themes with descriptions:
- `minimal` โ Clean, whitespace-driven
- `brutalist` โ Bold, high-contrast
- `warm` โ Soft, earthy, approachable
- `neon` โ Vibrant, dark-mode-first
- `corporate` โ Professional, data-dense
- `playful` โ Fun, colorful, rounded
- `nature` โ Organic, calm, green
### `designkit preview` โ Preview in terminal
```bash
# Preview all themes sequentially
designkit preview
# Preview a specific theme
designkit preview --theme neon
```
> **๐ Pro Tip:** Install `rich` for a beautiful, color-rich TUI experience with live color swatches, typography tables, spacing bars, and simulated component previews.
### `designkit export` โ Export design tokens
```bash
designkit export --theme minimal --format css # CSS custom properties
designkit export --theme minimal --format json # Structured JSON
designkit export --theme minimal --format tailwind # Tailwind config
designkit export --theme minimal --format scss # SCSS variables
designkit export --theme minimal --format dtcg # W3C Design Tokens
# Export all themes at once:
designkit export --format css
# Specify output path:
designkit export --theme playful --format css --output ./my-theme.css
```
### `designkit palette` โ Color wizardry
```bash
# Generate full palette from any hex color
designkit palette "#6366f1"
# Short form also works
designkit palette ff6b6b
```
Output includes: 11-step primary palette, neutral gray palette, complementary color, analogous colors, triadic scheme, and foreground text contrast analysis.
### `designkit prompt` โ AI system prompt generation
```bash
# Generate GLM-5.1 optimized prompt (default)
designkit prompt --theme minimal --model glm
# Generate for GPT-4o
designkit prompt --theme neon --model openai
# Generate for Claude
designkit prompt --theme warm --model claude
# Generate a component-specific prompt
designkit prompt --theme minimal --model glm --component "Card" --framework React
```
The generated prompts include complete design system context (colors, typography, spacing, motion, visual density) โ ensuring your AI always produces code that matches your chosen design language.
---
## ๐ฆ Export Formats
| Format | File Ext | Description | Use Case |
|--------|----------|-------------|----------|
| **CSS** | `.css` | CSS Custom Properties (`--dk-*`) | Any web project |
| **JSON** | `.json` | Structured nested tokens | Programmatic use |
| **Tailwind** | `.config.js` | Tailwind CSS `extend` config | Tailwind projects |
| **SCSS** | `.scss` | SCSS variables & maps | Sass projects |
| **DTCG** | `.tokens.json` | W3C Design Tokens Format | Design tool interop |
---
## ๐ก Design Philosophy & Roadmap
### Design Principles
DesignKit-CLI was born from a simple observation: **AI-generated interfaces all look the same**. Whether it's GPT-4o, GLM-5.1, or Claude โ without explicit design guidance, AI outputs generic, cookie-cutter UIs.
Inspired by the vision behind [taste-skill](https://github.com/Leonxlnx/taste-skill) (37K+ stars on GitHub), DesignKit-CLI takes a more comprehensive approach:
1. **๐ฏ Tokens over Instructions** โ Instead of just telling AI "make it look good," we provide precise numerical design tokens
2. **๐ Live Preview** โ See your design system come to life in the terminal before committing to code
3. **๐ Multi-Format** โ Export to the format your project actually uses (CSS, Tailwind, SCSS, etc.)
4. **๐ค AI-Native** โ Purpose-built for the AI-assisted development era, with prompt templates for every major model
5. **๐ง Zero Dependencies** โ Core functionality works with just Python standard library
### Roadmap
- [ ] **Custom Theme Builder** โ Interactive CLI wizard for creating themes from scratch
- [ ] **Component Library** โ Pre-built design system component CSS (buttons, cards, forms, nav)
- [ ] **Figma Plugin Support** โ Import/export tokens from Figma
- [ ] **Web UI** โ Simple web-based theme designer
- [ ] **Dark Mode Toggle** โ Auto-generate both light and dark token sets
- [ ] **More AI Models** โ DeepSeek, Qwen, Gemini prompt templates
- [ ] **i18n** โ RTL language support tokens
---
## ๐ค Contributing
We welcome contributions! Here's how to get involved:
1. ๐ด **Fork** the repository
2. ๐ฟ **Create** a feature branch (`git checkout -b feature/amazing`)
3. ๐ป **Commit** your changes (`git commit -m 'feat: add amazing feature'`)
4. ๐ค **Push** to the branch (`git push origin feature/amazing`)
5. ๐ **Open** a Pull Request
Please follow [Angular Commit Convention](https://www.conventionalcommits.org/) for commit messages.
**Issues**: Found a bug? Have an idea? [Open an issue](https://github.com/gitstq/designkit-cli/issues)
---
## ๐ License
This project is licensed under the **MIT License** โ see the [LICENSE](./LICENSE) file for details.
---
Built with โค๏ธ by the DesignKit Team ยท Inspired by taste-skill
๐ฌ๐ง English ยท ๐จ๐ณ ็ฎไฝไธญๆ ยท ๐ญ๐ฐ ็น้ซไธญๆ