An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          




DesignKit-CLI


Lightweight Design Token Generator & AI UI Style Engine

Generate, preview, and export complete design systems โ€” zero dependencies, maximum creativity.


English
็ฎ€ไฝ“ไธญๆ–‡
็น้ซ”ไธญๆ–‡


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 ยท ๐Ÿ‡จ๐Ÿ‡ณ ็ฎ€ไฝ“ไธญๆ–‡ ยท ๐Ÿ‡ญ๐Ÿ‡ฐ ็น้ซ”ไธญๆ–‡