@dedesfr/prompter 0.9.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +105 -77
- package/dist/cli/index.js +25 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +35 -9
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/login.d.ts +4 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +56 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logout.d.ts +4 -0
- package/dist/commands/logout.d.ts.map +1 -0
- package/dist/commands/logout.js +14 -0
- package/dist/commands/logout.js.map +1 -0
- package/dist/commands/update.d.ts +0 -2
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +19 -48
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/whoami.d.ts +4 -0
- package/dist/commands/whoami.d.ts.map +1 -0
- package/dist/commands/whoami.js +42 -0
- package/dist/commands/whoami.js.map +1 -0
- package/dist/core/auth-store.d.ts +10 -0
- package/dist/core/auth-store.d.ts.map +1 -0
- package/dist/core/auth-store.js +39 -0
- package/dist/core/auth-store.js.map +1 -0
- package/dist/core/config.d.ts +0 -7
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +0 -128
- package/dist/core/config.js.map +1 -1
- package/dist/core/registry.d.ts +18 -0
- package/dist/core/registry.d.ts.map +1 -0
- package/dist/core/registry.js +94 -0
- package/dist/core/registry.js.map +1 -0
- package/package.json +7 -1
- package/AGENTS.md +0 -123
- package/CLAUDE.md +0 -17
- package/build.js +0 -20
- package/convex-setup.md +0 -403
- package/dist/core/prompt-templates.d.ts +0 -23
- package/dist/core/prompt-templates.d.ts.map +0 -1
- package/dist/core/prompt-templates.js +0 -3485
- package/dist/core/prompt-templates.js.map +0 -1
- package/prompt/ai-humanizer.md +0 -45
- package/prompt/api-contract-generator.md +0 -234
- package/prompt/apply.md +0 -17
- package/prompt/archive.md +0 -21
- package/prompt/design-system.md +0 -210
- package/prompt/document-explainer.md +0 -149
- package/prompt/epic-generator.md +0 -198
- package/prompt/epic-single.md +0 -47
- package/prompt/erd-generator.md +0 -130
- package/prompt/fsd-generator.md +0 -157
- package/prompt/prd-agent-generator.md +0 -147
- package/prompt/prd-generator.md +0 -195
- package/prompt/product-brief.md +0 -289
- package/prompt/proposal.md +0 -22
- package/prompt/qa-test-scenario.md +0 -133
- package/prompt/skill-creator.md +0 -350
- package/prompt/story-generator.md +0 -278
- package/prompt/story-single.md +0 -70
- package/prompt/tdd-generator.md +0 -294
- package/prompt/tdd-lite-generator.md +0 -224
- package/prompt/wireframe-generator.md +0 -219
- package/skills/ai-context-generator/SKILL.md +0 -54
- package/skills/ai-context-generator/references/AGENTS.template.md +0 -83
- package/skills/ai-context-generator/references/CLAUDE.template.md +0 -39
- package/skills/ai-context-generator/references/behavioral-guidelines.md +0 -71
- package/skills/ai-context-generator/references/discovery-checklist.md +0 -40
- package/skills/ai-context-generator/references/examples/AGENTS.good.md +0 -103
- package/skills/ai-context-generator/references/extraction-checklist.md +0 -23
- package/skills/ai-context-generator/references/overlays/laravel.md +0 -44
- package/skills/ai-humanizer/SKILL.md +0 -50
- package/skills/api-contract-generator/SKILL.md +0 -243
- package/skills/apply/SKILL.md +0 -23
- package/skills/archive/SKILL.md +0 -27
- package/skills/cerebro/SKILL.md +0 -187
- package/skills/cerebro/references/agents.md +0 -213
- package/skills/code-review/SKILL.md +0 -373
- package/skills/code-review/assets/report-template-agent.md +0 -212
- package/skills/code-review/assets/report-template-compact.md +0 -81
- package/skills/code-review/assets/report-template-full.md +0 -264
- package/skills/code-review/assets/report-template-human.md +0 -168
- package/skills/code-review/references/universal-patterns.md +0 -495
- package/skills/design-md/README.md +0 -34
- package/skills/design-md/SKILL.md +0 -172
- package/skills/design-md/examples/DESIGN.md +0 -154
- package/skills/design-system/SKILL.md +0 -216
- package/skills/design-system-generator/SKILL.md +0 -324
- package/skills/design-system-generator/assets/design-system-template.md +0 -348
- package/skills/design-system-generator/references/extraction-patterns.md +0 -321
- package/skills/doc-builder/SKILL.md +0 -115
- package/skills/doc-builder/references/ui-patterns.md +0 -394
- package/skills/document-explainer/SKILL.md +0 -155
- package/skills/document-translator/SKILL.md +0 -58
- package/skills/enhance/SKILL.md +0 -47
- package/skills/enhance-prompt/README.md +0 -34
- package/skills/enhance-prompt/SKILL.md +0 -204
- package/skills/enhance-prompt/references/KEYWORDS.md +0 -114
- package/skills/epic-generator/SKILL.md +0 -204
- package/skills/epic-single/SKILL.md +0 -63
- package/skills/erd-generator/SKILL.md +0 -138
- package/skills/feature-planner/SKILL.md +0 -305
- package/skills/feature-planner/assets/implementation-plan-template.md +0 -85
- package/skills/frontend-design/LICENSE.txt +0 -177
- package/skills/frontend-design/SKILL.md +0 -42
- package/skills/fsd-generator/SKILL.md +0 -163
- package/skills/gamma-builder/SKILL.md +0 -134
- package/skills/laravel-code-review/SKILL.md +0 -383
- package/skills/laravel-code-review/assets/report-template-agent.md +0 -195
- package/skills/laravel-code-review/assets/report-template-compact.md +0 -79
- package/skills/laravel-code-review/assets/report-template-full.md +0 -253
- package/skills/laravel-code-review/assets/report-template-human.md +0 -159
- package/skills/laravel-code-review/references/laravel-patterns.md +0 -571
- package/skills/laravel-code-review/references/php84-features.md +0 -442
- package/skills/mcp-builder/LICENSE.txt +0 -202
- package/skills/mcp-builder/SKILL.md +0 -236
- package/skills/mcp-builder/reference/evaluation.md +0 -602
- package/skills/mcp-builder/reference/mcp_best_practices.md +0 -249
- package/skills/mcp-builder/reference/node_mcp_server.md +0 -970
- package/skills/mcp-builder/reference/python_mcp_server.md +0 -719
- package/skills/mcp-builder/scripts/connections.py +0 -151
- package/skills/mcp-builder/scripts/evaluation.py +0 -373
- package/skills/mcp-builder/scripts/example_evaluation.xml +0 -22
- package/skills/mcp-builder/scripts/requirements.txt +0 -2
- package/skills/meeting-notes/SKILL.md +0 -159
- package/skills/meeting-notes/evals/evals.json +0 -23
- package/skills/prd-agent-generator/SKILL.md +0 -132
- package/skills/prd-generator/SKILL.md +0 -211
- package/skills/product-brief/SKILL.md +0 -141
- package/skills/project-orchestrator/SKILL.md +0 -487
- package/skills/project-orchestrator/assets/caddy-vps-setup.md +0 -180
- package/skills/project-orchestrator/assets/plan-summary-template.md +0 -159
- package/skills/prompter-specs/SKILL.md +0 -115
- package/skills/prompter-workflow/SKILL.md +0 -166
- package/skills/prompter-workflow/evals/evals.json +0 -89
- package/skills/proposal/SKILL.md +0 -28
- package/skills/qa-test-scenario/SKILL.md +0 -149
- package/skills/skill-creator/SKILL.md +0 -173
- package/skills/sph-generator/SKILL.md +0 -488
- package/skills/story-generator/SKILL.md +0 -285
- package/skills/story-single/SKILL.md +0 -86
- package/skills/tdd-generator/SKILL.md +0 -300
- package/skills/tdd-lite-generator/SKILL.md +0 -230
- package/skills/ui-ux-pro/SKILL.md +0 -199
- package/skills/ui-ux-pro/assets/design-spec-template.md +0 -173
- package/skills/ui-ux-pro/references/component-patterns.md +0 -255
- package/skills/ui-ux-pro/references/design-principles.md +0 -167
- package/skills/wireframe-generator/SKILL.md +0 -227
- package/src/cli/index.ts +0 -223
- package/src/commands/archive.ts +0 -302
- package/src/commands/change.ts +0 -292
- package/src/commands/config.ts +0 -233
- package/src/commands/guide.ts +0 -50
- package/src/commands/init.ts +0 -597
- package/src/commands/list.ts +0 -194
- package/src/commands/show.ts +0 -138
- package/src/commands/spec.ts +0 -251
- package/src/commands/update.ts +0 -129
- package/src/commands/upgrade.ts +0 -30
- package/src/commands/validate.ts +0 -326
- package/src/core/artifact-graph/graph.ts +0 -167
- package/src/core/artifact-graph/index.ts +0 -44
- package/src/core/artifact-graph/instruction-loader.ts +0 -302
- package/src/core/artifact-graph/resolver.ts +0 -226
- package/src/core/artifact-graph/schema.ts +0 -124
- package/src/core/artifact-graph/state.ts +0 -64
- package/src/core/artifact-graph/types.ts +0 -65
- package/src/core/completions/command-registry.ts +0 -382
- package/src/core/completions/completion-provider.ts +0 -128
- package/src/core/completions/generators/bash-generator.ts +0 -191
- package/src/core/completions/generators/fish-generator.ts +0 -188
- package/src/core/completions/generators/powershell-generator.ts +0 -223
- package/src/core/completions/generators/zsh-generator.ts +0 -281
- package/src/core/completions/templates/bash-templates.ts +0 -24
- package/src/core/completions/templates/fish-templates.ts +0 -40
- package/src/core/completions/templates/powershell-templates.ts +0 -25
- package/src/core/completions/templates/zsh-templates.ts +0 -36
- package/src/core/completions/types.ts +0 -90
- package/src/core/config-schema.ts +0 -230
- package/src/core/config.ts +0 -181
- package/src/core/configurators/slash/antigravity.ts +0 -10
- package/src/core/configurators/slash/base.ts +0 -109
- package/src/core/configurators/slash/claude.ts +0 -10
- package/src/core/configurators/slash/codex.ts +0 -10
- package/src/core/configurators/slash/droid.ts +0 -10
- package/src/core/configurators/slash/forge.ts +0 -10
- package/src/core/configurators/slash/github-copilot.ts +0 -10
- package/src/core/configurators/slash/index.ts +0 -10
- package/src/core/configurators/slash/kilocode.ts +0 -10
- package/src/core/configurators/slash/opencode.ts +0 -10
- package/src/core/configurators/slash/registry.ts +0 -51
- package/src/core/converters/json-converter.ts +0 -62
- package/src/core/global-config.ts +0 -136
- package/src/core/parsers/change-parser.ts +0 -234
- package/src/core/parsers/markdown-parser.ts +0 -237
- package/src/core/parsers/requirement-blocks.ts +0 -234
- package/src/core/prompt-templates.ts +0 -3504
- package/src/core/schemas/base.schema.ts +0 -20
- package/src/core/schemas/change.schema.ts +0 -42
- package/src/core/schemas/index.ts +0 -20
- package/src/core/schemas/spec.schema.ts +0 -17
- package/src/core/skill-discovery.ts +0 -68
- package/src/core/specs-apply.ts +0 -483
- package/src/core/styles/palette.ts +0 -8
- package/src/core/templates/agents-template.ts +0 -459
- package/src/core/templates/claude-template.ts +0 -2
- package/src/core/templates/index.ts +0 -3
- package/src/core/templates/project-template.ts +0 -32
- package/src/core/validation/constants.ts +0 -48
- package/src/core/validation/types.ts +0 -19
- package/src/core/validation/validator.ts +0 -449
- package/src/core/view.ts +0 -219
- package/src/index.ts +0 -1
- package/src/utils/change-metadata.ts +0 -171
- package/src/utils/change-utils.ts +0 -131
- package/src/utils/file-system.ts +0 -252
- package/src/utils/index.ts +0 -12
- package/src/utils/interactive.ts +0 -29
- package/src/utils/item-discovery.ts +0 -66
- package/src/utils/match.ts +0 -26
- package/src/utils/shell-detection.ts +0 -62
- package/src/utils/task-progress.ts +0 -43
- package/tsconfig.json +0 -28
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: design-system-generator
|
|
3
|
-
description: Generate a structured design system document from HTML pages, React components, or screenshots. Extracts colors, typography, spacing, shadows, borders, breakpoints, and component patterns into a reusable design system specification. Use when creating a design system from existing UI, auditing design consistency, or bootstrapping a new project's design tokens from reference material.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Design System Generator
|
|
7
|
-
|
|
8
|
-
Analyze UI input (HTML, React, screenshots, or live URLs) and produce a comprehensive design system document with extracted design tokens and component patterns.
|
|
9
|
-
|
|
10
|
-
## Quick Start
|
|
11
|
-
|
|
12
|
-
1. **DETERMINE INPUT TYPE** — Ask user for source material (files, URLs, or screenshots)
|
|
13
|
-
2. **COLLECT INPUT** — Read files, scrape URLs, or analyze screenshots
|
|
14
|
-
3. **EXTRACT TOKENS** — Pull colors, typography, spacing, shadows, borders, radii, breakpoints
|
|
15
|
-
4. **IDENTIFY COMPONENTS** — Catalog reusable UI components and their variants
|
|
16
|
-
5. **GENERATE DOCUMENT** — Output design system using the template in `assets/design-system-template.md`
|
|
17
|
-
6. **SAVE OUTPUT** — Write to user-specified path or default `prompter/design-system.md`
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Step 0: Determine Input Type (REQUIRED)
|
|
22
|
-
|
|
23
|
-
Present the following options:
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
What source material should I analyze?
|
|
27
|
-
|
|
28
|
-
1. **HTML file(s)** — Static HTML pages with inline/linked CSS
|
|
29
|
-
2. **React component(s)** — JSX/TSX files with CSS/Tailwind/styled-components
|
|
30
|
-
3. **Live URL** — Scrape a live webpage for design tokens
|
|
31
|
-
4. **Screenshot(s)** — Analyze visual design from images
|
|
32
|
-
5. **CSS/SCSS file(s)** — Extract tokens directly from stylesheets
|
|
33
|
-
6. **Tailwind config** — Parse tailwind.config.js/ts for design tokens
|
|
34
|
-
7. **Mixed** — Combination of the above
|
|
35
|
-
|
|
36
|
-
Please select (1-7) or describe your input:
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Wait for user response before proceeding.
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
## Step 1: Collect & Parse Input
|
|
44
|
-
|
|
45
|
-
### For HTML Files
|
|
46
|
-
1. Read the HTML file(s) with `read_file`
|
|
47
|
-
2. Extract all `<style>` blocks and inline `style` attributes
|
|
48
|
-
3. Identify linked stylesheets via `<link rel="stylesheet">` and read those files
|
|
49
|
-
4. Note all CSS custom properties (`--var-name`) declarations
|
|
50
|
-
|
|
51
|
-
### For React Components
|
|
52
|
-
1. Read JSX/TSX file(s)
|
|
53
|
-
2. Detect styling approach:
|
|
54
|
-
- **CSS Modules** → read associated `.module.css` files
|
|
55
|
-
- **Tailwind CSS** → read `tailwind.config.js/ts`, catalog utility classes used
|
|
56
|
-
- **Styled-components/Emotion** → extract template literals
|
|
57
|
-
- **Inline styles** → extract style objects
|
|
58
|
-
- **CSS-in-JS (other)** → extract theme objects
|
|
59
|
-
3. Identify component props that affect visual appearance (variant, size, color)
|
|
60
|
-
|
|
61
|
-
### For Live URLs
|
|
62
|
-
1. Use the scrape tool with `formats: ["html"]` to fetch the page
|
|
63
|
-
2. Also request `formats: ["branding"]` if available for automated brand extraction
|
|
64
|
-
3. Parse the returned HTML as if it were an HTML file input
|
|
65
|
-
|
|
66
|
-
### For Screenshots
|
|
67
|
-
1. Analyze the image for visual design elements
|
|
68
|
-
2. Extract approximate color values using visual analysis
|
|
69
|
-
3. Identify typography patterns (relative sizes, weights)
|
|
70
|
-
4. Note spacing patterns and layout structure
|
|
71
|
-
5. Catalog visible UI components
|
|
72
|
-
|
|
73
|
-
### For CSS/SCSS Files
|
|
74
|
-
1. Read the stylesheet(s) directly
|
|
75
|
-
2. Parse CSS custom properties, SCSS variables, mixins
|
|
76
|
-
3. Extract all token-relevant declarations
|
|
77
|
-
|
|
78
|
-
### For Tailwind Config
|
|
79
|
-
1. Read `tailwind.config.js` or `tailwind.config.ts`
|
|
80
|
-
2. Extract `theme.extend` and base `theme` values
|
|
81
|
-
3. Map Tailwind tokens to design system categories
|
|
82
|
-
|
|
83
|
-
---
|
|
84
|
-
|
|
85
|
-
## Step 2: Extract Design Tokens
|
|
86
|
-
|
|
87
|
-
For detailed extraction patterns per CSS property, see [extraction-patterns.md](references/extraction-patterns.md).
|
|
88
|
-
|
|
89
|
-
Extract tokens in this order of priority:
|
|
90
|
-
|
|
91
|
-
### 2.1 Colors
|
|
92
|
-
- Background colors, text colors, border colors
|
|
93
|
-
- Group into semantic categories: `primary`, `secondary`, `accent`, `neutral`, `success`, `warning`, `error`, `info`
|
|
94
|
-
- Identify color scales (50–950 shades) when present
|
|
95
|
-
- Extract opacity/alpha variants
|
|
96
|
-
- Note dark mode / alternate theme colors if detected
|
|
97
|
-
|
|
98
|
-
### 2.2 Typography
|
|
99
|
-
- Font families (heading, body, mono)
|
|
100
|
-
- Font sizes (map to scale: xs, sm, base, lg, xl, 2xl, etc.)
|
|
101
|
-
- Font weights used
|
|
102
|
-
- Line heights
|
|
103
|
-
- Letter spacing
|
|
104
|
-
- Text transform patterns
|
|
105
|
-
|
|
106
|
-
### 2.3 Spacing
|
|
107
|
-
- Padding and margin values used
|
|
108
|
-
- Gap values in flex/grid layouts
|
|
109
|
-
- Map to a consistent scale (0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24...)
|
|
110
|
-
- Identify base unit (commonly 4px or 8px)
|
|
111
|
-
|
|
112
|
-
### 2.4 Layout & Breakpoints
|
|
113
|
-
- Container max-widths
|
|
114
|
-
- Media query breakpoints (sm, md, lg, xl, 2xl)
|
|
115
|
-
- Grid column counts and gutter widths
|
|
116
|
-
|
|
117
|
-
### 2.5 Borders & Radii
|
|
118
|
-
- Border widths
|
|
119
|
-
- Border styles
|
|
120
|
-
- Border radius values (none, sm, md, lg, full)
|
|
121
|
-
|
|
122
|
-
### 2.6 Shadows
|
|
123
|
-
- Box shadow definitions
|
|
124
|
-
- Map to elevation scale (sm, md, lg, xl)
|
|
125
|
-
- Note any colored or inset shadows
|
|
126
|
-
|
|
127
|
-
### 2.7 Transitions & Animation
|
|
128
|
-
- Transition durations
|
|
129
|
-
- Easing functions
|
|
130
|
-
- Named animations/keyframes
|
|
131
|
-
|
|
132
|
-
### 2.8 Z-Index Scale
|
|
133
|
-
- All z-index values used
|
|
134
|
-
- Assign semantic names (dropdown, modal, tooltip, etc.)
|
|
135
|
-
|
|
136
|
-
---
|
|
137
|
-
|
|
138
|
-
## Step 3: Identify Components
|
|
139
|
-
|
|
140
|
-
Catalog reusable UI patterns found in the input:
|
|
141
|
-
|
|
142
|
-
For each component, document:
|
|
143
|
-
- **Name** — PascalCase identifier
|
|
144
|
-
- **Variants** — visual or behavioral variations (e.g., `primary`, `outline`, `ghost`)
|
|
145
|
-
- **Sizes** — available size options (sm, md, lg)
|
|
146
|
-
- **States** — hover, focus, active, disabled appearances
|
|
147
|
-
- **Tokens used** — which design tokens the component references
|
|
148
|
-
|
|
149
|
-
Common components to look for:
|
|
150
|
-
- Button, Input, Select, Checkbox, Radio, Toggle
|
|
151
|
-
- Card, Badge, Tag, Avatar, Alert
|
|
152
|
-
- Modal, Dropdown, Tooltip, Popover
|
|
153
|
-
- Table, List, Tabs, Accordion
|
|
154
|
-
- Navigation (Navbar, Sidebar, Breadcrumb)
|
|
155
|
-
- Form layouts, Grid systems
|
|
156
|
-
|
|
157
|
-
---
|
|
158
|
-
|
|
159
|
-
## Step 4: Generate Design System Document
|
|
160
|
-
|
|
161
|
-
1. Read the template: `assets/design-system-template.md`
|
|
162
|
-
2. Fill in all extracted tokens and component documentation
|
|
163
|
-
3. Apply these rules:
|
|
164
|
-
- **Deduplicate** — Merge identical or near-identical values
|
|
165
|
-
- **Normalize** — Convert all color values to hex (with HSL in comments)
|
|
166
|
-
- **Scale** — Organize values into logical scales where possible
|
|
167
|
-
- **Name** — Apply semantic names to raw values
|
|
168
|
-
- **Omit empty sections** — Remove sections with no extracted tokens
|
|
169
|
-
|
|
170
|
-
### Output Formats
|
|
171
|
-
|
|
172
|
-
Offer the user a choice of output format:
|
|
173
|
-
|
|
174
|
-
```
|
|
175
|
-
Which output format would you like?
|
|
176
|
-
|
|
177
|
-
1. **Markdown** (default) — Structured document for documentation
|
|
178
|
-
2. **CSS Variables** — Ready-to-use :root custom properties
|
|
179
|
-
3. **Tailwind Config** — tailwind.config.js theme object
|
|
180
|
-
4. **JSON Tokens** — Design token JSON (W3C format compatible)
|
|
181
|
-
5. **All** — Generate all formats
|
|
182
|
-
|
|
183
|
-
Please select (1-5) or press Enter for Markdown:
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
### Markdown Output
|
|
187
|
-
- Use the template from `assets/design-system-template.md`
|
|
188
|
-
- Include color swatches using inline HTML: `<span style="background:COLOR;width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span>`
|
|
189
|
-
- Save to user-specified path or `prompter/design-system.md`
|
|
190
|
-
|
|
191
|
-
### CSS Variables Output
|
|
192
|
-
- Generate a `:root` block with all tokens as custom properties
|
|
193
|
-
- Use `--ds-` prefix for namespacing
|
|
194
|
-
- Group by category with comments
|
|
195
|
-
- Save to `design-tokens.css`
|
|
196
|
-
|
|
197
|
-
### Tailwind Config Output
|
|
198
|
-
- Generate a `theme.extend` object with all tokens mapped
|
|
199
|
-
- Save to `design-tokens.tailwind.js`
|
|
200
|
-
|
|
201
|
-
### JSON Tokens Output
|
|
202
|
-
- Follow W3C Design Tokens format where applicable
|
|
203
|
-
- Nest by category → token name → `{ value, type, description }`
|
|
204
|
-
- Save to `design-tokens.json`
|
|
205
|
-
|
|
206
|
-
---
|
|
207
|
-
|
|
208
|
-
## Step 5: Save & Report
|
|
209
|
-
|
|
210
|
-
After generating the document:
|
|
211
|
-
|
|
212
|
-
1. Save to the specified output path (default: `prompter/design-system.md`)
|
|
213
|
-
2. Update `AGENTS.md` files (see Step 6 below)
|
|
214
|
-
3. Print a summary:
|
|
215
|
-
|
|
216
|
-
```
|
|
217
|
-
✅ Design System Generated
|
|
218
|
-
|
|
219
|
-
📄 Output: <file-path>
|
|
220
|
-
🎨 Colors: <count> tokens extracted
|
|
221
|
-
🔤 Typography: <count> tokens extracted
|
|
222
|
-
📐 Spacing: <count> tokens extracted
|
|
223
|
-
🧩 Components: <count> identified
|
|
224
|
-
📊 Source: <input-type description>
|
|
225
|
-
|
|
226
|
-
Next steps:
|
|
227
|
-
- Review and adjust token names for your conventions
|
|
228
|
-
- Add component usage examples as needed
|
|
229
|
-
- Import tokens into your project's theme configuration
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
---
|
|
233
|
-
|
|
234
|
-
## Step 6: Update AGENTS.md Files (REQUIRED)
|
|
235
|
-
|
|
236
|
-
After saving the design system document, update both AGENTS.md files in the project so AI assistants know the design system exists and where to find it.
|
|
237
|
-
|
|
238
|
-
### 6.1 Update root `AGENTS.md`
|
|
239
|
-
|
|
240
|
-
Check if `AGENTS.md` exists in the project root. If it does:
|
|
241
|
-
|
|
242
|
-
1. Look for an existing "Design System" section — if found, update it; if not, add it.
|
|
243
|
-
2. Also update the `prompter/` directory tree if one is shown (add `design-system.md` to it).
|
|
244
|
-
|
|
245
|
-
Add or update this block (place it near the Prompter Workflow or Output Location section):
|
|
246
|
-
|
|
247
|
-
```markdown
|
|
248
|
-
## Design System
|
|
249
|
-
|
|
250
|
-
A project-level design system is generated and maintained at `prompter/design-system.md`.
|
|
251
|
-
|
|
252
|
-
- Generated by the `design-system-generator` skill (`prompter/skills/design-system-generator/`)
|
|
253
|
-
- Contains design tokens: colors, typography, spacing, borders, shadows, breakpoints, and components
|
|
254
|
-
- Consult this file when building UI components or making styling decisions to ensure consistency
|
|
255
|
-
- Regenerate it by invoking the `design-system-generator` skill with updated source material
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
If the root `AGENTS.md` has a directory tree like:
|
|
259
|
-
|
|
260
|
-
```
|
|
261
|
-
prompter/
|
|
262
|
-
├── project.md
|
|
263
|
-
└── ...
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
Add `design-system.md` to it:
|
|
267
|
-
|
|
268
|
-
```
|
|
269
|
-
prompter/
|
|
270
|
-
├── project.md # Project context (edit this!)
|
|
271
|
-
├── design-system.md # Generated design system (see Design System section)
|
|
272
|
-
└── ...
|
|
273
|
-
```
|
|
274
|
-
|
|
275
|
-
### 6.2 Update `prompter/AGENTS.md`
|
|
276
|
-
|
|
277
|
-
Check if `prompter/AGENTS.md` exists. If it does:
|
|
278
|
-
|
|
279
|
-
1. In the **Directory Structure** section, add `design-system.md` to the `prompter/` tree if not already present:
|
|
280
|
-
|
|
281
|
-
```
|
|
282
|
-
prompter/
|
|
283
|
-
├── project.md # Project conventions
|
|
284
|
-
├── design-system.md # Generated design system (colors, typography, spacing, components)
|
|
285
|
-
├── specs/
|
|
286
|
-
...
|
|
287
|
-
```
|
|
288
|
-
|
|
289
|
-
2. In the **Before Any Task** > **Context Checklist**, add this entry if not already present:
|
|
290
|
-
|
|
291
|
-
```markdown
|
|
292
|
-
- [ ] Read `prompter/design-system.md` for UI/styling decisions (if task involves frontend)
|
|
293
|
-
```
|
|
294
|
-
|
|
295
|
-
3. After the checklist, add or update a **Design System** block if not already present:
|
|
296
|
-
|
|
297
|
-
```markdown
|
|
298
|
-
**Design System:**
|
|
299
|
-
|
|
300
|
-
The project design system lives at `prompter/design-system.md`. It is generated by the `design-system-generator` skill and contains design tokens (colors, typography, spacing, borders, shadows, breakpoints) and component patterns.
|
|
301
|
-
|
|
302
|
-
- Consult it before building or modifying UI components to stay consistent with established tokens
|
|
303
|
-
- Regenerate it with the `design-system-generator` skill when the visual design changes significantly
|
|
304
|
-
```
|
|
305
|
-
|
|
306
|
-
### 6.3 Skip gracefully if files don't exist
|
|
307
|
-
|
|
308
|
-
If either AGENTS.md file does not exist in the target project, skip that file silently — do not create it.
|
|
309
|
-
|
|
310
|
-
---
|
|
311
|
-
|
|
312
|
-
## Edge Cases
|
|
313
|
-
|
|
314
|
-
- **Insufficient input**: If very little design information is extractable, note gaps and suggest what the user should provide additionally
|
|
315
|
-
- **Conflicting values**: When similar but not identical values exist (e.g., `#333` and `#2d2d2d`), consolidate and note the original values
|
|
316
|
-
- **No components found**: If input is pure CSS variables or a config file, skip the Components section
|
|
317
|
-
- **Screenshot-only input**: Mark all extracted values as "approximate" and recommend verification
|
|
318
|
-
|
|
319
|
-
---
|
|
320
|
-
|
|
321
|
-
## Resources
|
|
322
|
-
|
|
323
|
-
- **Template**: [design-system-template.md](assets/design-system-template.md) — Output document template
|
|
324
|
-
- **Extraction patterns**: [extraction-patterns.md](references/extraction-patterns.md) — CSS property-to-token mapping rules and regex patterns
|
|
@@ -1,348 +0,0 @@
|
|
|
1
|
-
# {{PROJECT_NAME}} Design System
|
|
2
|
-
|
|
3
|
-
> **Generated:** {{TIMESTAMP}}
|
|
4
|
-
> **Source:** {{INPUT_DESCRIPTION}}
|
|
5
|
-
> **Format Version:** 1.0
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Table of Contents
|
|
10
|
-
|
|
11
|
-
- [Colors](#colors)
|
|
12
|
-
- [Typography](#typography)
|
|
13
|
-
- [Spacing](#spacing)
|
|
14
|
-
- [Layout & Breakpoints](#layout--breakpoints)
|
|
15
|
-
- [Borders & Radii](#borders--radii)
|
|
16
|
-
- [Shadows & Elevation](#shadows--elevation)
|
|
17
|
-
- [Transitions & Animation](#transitions--animation)
|
|
18
|
-
- [Z-Index Scale](#z-index-scale)
|
|
19
|
-
- [Components](#components)
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
## Colors
|
|
24
|
-
|
|
25
|
-
### Primary
|
|
26
|
-
|
|
27
|
-
| Token | Value | Swatch | HSL |
|
|
28
|
-
|-------|-------|--------|-----|
|
|
29
|
-
| `--ds-primary-50` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | `{{HSL}}` |
|
|
30
|
-
| `--ds-primary-100` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | `{{HSL}}` |
|
|
31
|
-
| `--ds-primary-200` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | `{{HSL}}` |
|
|
32
|
-
| `--ds-primary-300` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | `{{HSL}}` |
|
|
33
|
-
| `--ds-primary-400` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | `{{HSL}}` |
|
|
34
|
-
| `--ds-primary-500` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | `{{HSL}}` |
|
|
35
|
-
| `--ds-primary-600` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | `{{HSL}}` |
|
|
36
|
-
| `--ds-primary-700` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | `{{HSL}}` |
|
|
37
|
-
| `--ds-primary-800` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | `{{HSL}}` |
|
|
38
|
-
| `--ds-primary-900` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | `{{HSL}}` |
|
|
39
|
-
| `--ds-primary-950` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | `{{HSL}}` |
|
|
40
|
-
|
|
41
|
-
<!-- Repeat for: Secondary, Accent, Neutral, Success, Warning, Error, Info -->
|
|
42
|
-
<!-- Remove any color group that has no extracted tokens -->
|
|
43
|
-
|
|
44
|
-
### Secondary
|
|
45
|
-
|
|
46
|
-
| Token | Value | Swatch | HSL |
|
|
47
|
-
|-------|-------|--------|-----|
|
|
48
|
-
| `--ds-secondary-*` | ... | ... | ... |
|
|
49
|
-
|
|
50
|
-
### Accent
|
|
51
|
-
|
|
52
|
-
| Token | Value | Swatch | HSL |
|
|
53
|
-
|-------|-------|--------|-----|
|
|
54
|
-
| `--ds-accent-*` | ... | ... | ... |
|
|
55
|
-
|
|
56
|
-
### Neutral
|
|
57
|
-
|
|
58
|
-
| Token | Value | Swatch | HSL |
|
|
59
|
-
|-------|-------|--------|-----|
|
|
60
|
-
| `--ds-neutral-*` | ... | ... | ... |
|
|
61
|
-
|
|
62
|
-
### Semantic
|
|
63
|
-
|
|
64
|
-
| Token | Value | Swatch | Usage |
|
|
65
|
-
|-------|-------|--------|-------|
|
|
66
|
-
| `--ds-success` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | Positive actions, confirmations |
|
|
67
|
-
| `--ds-warning` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | Caution states, alerts |
|
|
68
|
-
| `--ds-error` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | Error states, destructive actions |
|
|
69
|
-
| `--ds-info` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | Informational states |
|
|
70
|
-
|
|
71
|
-
### Surface & Background
|
|
72
|
-
|
|
73
|
-
| Token | Value | Swatch | Usage |
|
|
74
|
-
|-------|-------|--------|-------|
|
|
75
|
-
| `--ds-bg-base` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle;border:1px solid #ddd"></span> | Page background |
|
|
76
|
-
| `--ds-bg-surface` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle;border:1px solid #ddd"></span> | Card/panel background |
|
|
77
|
-
| `--ds-bg-muted` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle;border:1px solid #ddd"></span> | Subtle background fills |
|
|
78
|
-
| `--ds-bg-overlay` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | Modal/dialog overlays |
|
|
79
|
-
|
|
80
|
-
### Text Colors
|
|
81
|
-
|
|
82
|
-
| Token | Value | Swatch | Usage |
|
|
83
|
-
|-------|-------|--------|-------|
|
|
84
|
-
| `--ds-text-primary` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | Primary body text |
|
|
85
|
-
| `--ds-text-secondary` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | Secondary/muted text |
|
|
86
|
-
| `--ds-text-disabled` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> | Disabled state text |
|
|
87
|
-
| `--ds-text-inverse` | `{{VALUE}}` | <span style="background:{{VALUE}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle;border:1px solid #ddd"></span> | Text on dark backgrounds |
|
|
88
|
-
|
|
89
|
-
---
|
|
90
|
-
|
|
91
|
-
## Typography
|
|
92
|
-
|
|
93
|
-
### Font Families
|
|
94
|
-
|
|
95
|
-
| Token | Value | Usage |
|
|
96
|
-
|-------|-------|-------|
|
|
97
|
-
| `--ds-font-heading` | `{{VALUE}}` | Headings, display text |
|
|
98
|
-
| `--ds-font-body` | `{{VALUE}}` | Body text, paragraphs |
|
|
99
|
-
| `--ds-font-mono` | `{{VALUE}}` | Code, technical content |
|
|
100
|
-
|
|
101
|
-
### Font Sizes
|
|
102
|
-
|
|
103
|
-
| Token | Value (px) | Value (rem) | Usage |
|
|
104
|
-
|-------|-----------|-------------|-------|
|
|
105
|
-
| `--ds-text-xs` | `{{PX}}` | `{{REM}}` | Fine print, captions |
|
|
106
|
-
| `--ds-text-sm` | `{{PX}}` | `{{REM}}` | Secondary text, labels |
|
|
107
|
-
| `--ds-text-base` | `{{PX}}` | `{{REM}}` | Body text (default) |
|
|
108
|
-
| `--ds-text-lg` | `{{PX}}` | `{{REM}}` | Emphasized body text |
|
|
109
|
-
| `--ds-text-xl` | `{{PX}}` | `{{REM}}` | Section headers |
|
|
110
|
-
| `--ds-text-2xl` | `{{PX}}` | `{{REM}}` | Page headers |
|
|
111
|
-
| `--ds-text-3xl` | `{{PX}}` | `{{REM}}` | Large display text |
|
|
112
|
-
| `--ds-text-4xl` | `{{PX}}` | `{{REM}}` | Hero text |
|
|
113
|
-
|
|
114
|
-
### Font Weights
|
|
115
|
-
|
|
116
|
-
| Token | Value | Usage |
|
|
117
|
-
|-------|-------|-------|
|
|
118
|
-
| `--ds-font-light` | `300` | Light emphasis |
|
|
119
|
-
| `--ds-font-normal` | `400` | Body text |
|
|
120
|
-
| `--ds-font-medium` | `500` | Subtle emphasis |
|
|
121
|
-
| `--ds-font-semibold` | `600` | Strong emphasis |
|
|
122
|
-
| `--ds-font-bold` | `700` | Headings, CTAs |
|
|
123
|
-
|
|
124
|
-
### Line Heights
|
|
125
|
-
|
|
126
|
-
| Token | Value | Usage |
|
|
127
|
-
|-------|-------|-------|
|
|
128
|
-
| `--ds-leading-tight` | `{{VALUE}}` | Headings, compact text |
|
|
129
|
-
| `--ds-leading-normal` | `{{VALUE}}` | Body text |
|
|
130
|
-
| `--ds-leading-relaxed` | `{{VALUE}}` | Long-form reading |
|
|
131
|
-
|
|
132
|
-
### Letter Spacing
|
|
133
|
-
|
|
134
|
-
| Token | Value | Usage |
|
|
135
|
-
|-------|-------|-------|
|
|
136
|
-
| `--ds-tracking-tight` | `{{VALUE}}` | Large headings |
|
|
137
|
-
| `--ds-tracking-normal` | `{{VALUE}}` | Body text |
|
|
138
|
-
| `--ds-tracking-wide` | `{{VALUE}}` | Uppercase labels, buttons |
|
|
139
|
-
|
|
140
|
-
---
|
|
141
|
-
|
|
142
|
-
## Spacing
|
|
143
|
-
|
|
144
|
-
**Base unit:** `{{BASE_UNIT}}px`
|
|
145
|
-
|
|
146
|
-
| Token | Value (px) | Value (rem) | Multiplier |
|
|
147
|
-
|-------|-----------|-------------|------------|
|
|
148
|
-
| `--ds-space-0` | `0` | `0` | 0× |
|
|
149
|
-
| `--ds-space-1` | `{{VALUE}}` | `{{REM}}` | 1× |
|
|
150
|
-
| `--ds-space-2` | `{{VALUE}}` | `{{REM}}` | 2× |
|
|
151
|
-
| `--ds-space-3` | `{{VALUE}}` | `{{REM}}` | 3× |
|
|
152
|
-
| `--ds-space-4` | `{{VALUE}}` | `{{REM}}` | 4× |
|
|
153
|
-
| `--ds-space-5` | `{{VALUE}}` | `{{REM}}` | 5× |
|
|
154
|
-
| `--ds-space-6` | `{{VALUE}}` | `{{REM}}` | 6× |
|
|
155
|
-
| `--ds-space-8` | `{{VALUE}}` | `{{REM}}` | 8× |
|
|
156
|
-
| `--ds-space-10` | `{{VALUE}}` | `{{REM}}` | 10× |
|
|
157
|
-
| `--ds-space-12` | `{{VALUE}}` | `{{REM}}` | 12× |
|
|
158
|
-
| `--ds-space-16` | `{{VALUE}}` | `{{REM}}` | 16× |
|
|
159
|
-
| `--ds-space-20` | `{{VALUE}}` | `{{REM}}` | 20× |
|
|
160
|
-
| `--ds-space-24` | `{{VALUE}}` | `{{REM}}` | 24× |
|
|
161
|
-
|
|
162
|
-
---
|
|
163
|
-
|
|
164
|
-
## Layout & Breakpoints
|
|
165
|
-
|
|
166
|
-
### Breakpoints
|
|
167
|
-
|
|
168
|
-
| Token | Value | Description |
|
|
169
|
-
|-------|-------|-------------|
|
|
170
|
-
| `--ds-screen-sm` | `{{VALUE}}` | Small devices (phones landscape) |
|
|
171
|
-
| `--ds-screen-md` | `{{VALUE}}` | Medium devices (tablets) |
|
|
172
|
-
| `--ds-screen-lg` | `{{VALUE}}` | Large devices (desktops) |
|
|
173
|
-
| `--ds-screen-xl` | `{{VALUE}}` | Extra large devices (wide desktops) |
|
|
174
|
-
| `--ds-screen-2xl` | `{{VALUE}}` | Ultra wide displays |
|
|
175
|
-
|
|
176
|
-
### Container
|
|
177
|
-
|
|
178
|
-
| Token | Value | Usage |
|
|
179
|
-
|-------|-------|-------|
|
|
180
|
-
| `--ds-container-sm` | `{{VALUE}}` | Narrow content (articles) |
|
|
181
|
-
| `--ds-container-md` | `{{VALUE}}` | Standard content |
|
|
182
|
-
| `--ds-container-lg` | `{{VALUE}}` | Wide content |
|
|
183
|
-
| `--ds-container-xl` | `{{VALUE}}` | Full-width content |
|
|
184
|
-
|
|
185
|
-
---
|
|
186
|
-
|
|
187
|
-
## Borders & Radii
|
|
188
|
-
|
|
189
|
-
### Border Widths
|
|
190
|
-
|
|
191
|
-
| Token | Value | Usage |
|
|
192
|
-
|-------|-------|-------|
|
|
193
|
-
| `--ds-border-0` | `0px` | No border |
|
|
194
|
-
| `--ds-border-1` | `1px` | Default borders |
|
|
195
|
-
| `--ds-border-2` | `2px` | Emphasized borders |
|
|
196
|
-
| `--ds-border-4` | `4px` | Heavy borders |
|
|
197
|
-
|
|
198
|
-
### Border Radii
|
|
199
|
-
|
|
200
|
-
| Token | Value | Preview | Usage |
|
|
201
|
-
|-------|-------|---------|-------|
|
|
202
|
-
| `--ds-radius-none` | `0px` | <span style="width:24px;height:24px;display:inline-block;background:#6366f1;border-radius:0px"></span> | Sharp corners |
|
|
203
|
-
| `--ds-radius-sm` | `{{VALUE}}` | <span style="width:24px;height:24px;display:inline-block;background:#6366f1;border-radius:{{VALUE}}"></span> | Subtle rounding |
|
|
204
|
-
| `--ds-radius-md` | `{{VALUE}}` | <span style="width:24px;height:24px;display:inline-block;background:#6366f1;border-radius:{{VALUE}}"></span> | Default rounding |
|
|
205
|
-
| `--ds-radius-lg` | `{{VALUE}}` | <span style="width:24px;height:24px;display:inline-block;background:#6366f1;border-radius:{{VALUE}}"></span> | Prominent rounding |
|
|
206
|
-
| `--ds-radius-xl` | `{{VALUE}}` | <span style="width:24px;height:24px;display:inline-block;background:#6366f1;border-radius:{{VALUE}}"></span> | Heavy rounding |
|
|
207
|
-
| `--ds-radius-full` | `9999px` | <span style="width:24px;height:24px;display:inline-block;background:#6366f1;border-radius:9999px"></span> | Circular/pill shapes |
|
|
208
|
-
|
|
209
|
-
---
|
|
210
|
-
|
|
211
|
-
## Shadows & Elevation
|
|
212
|
-
|
|
213
|
-
| Token | Value | Usage |
|
|
214
|
-
|-------|-------|-------|
|
|
215
|
-
| `--ds-shadow-sm` | `{{VALUE}}` | Subtle depth (cards at rest) |
|
|
216
|
-
| `--ds-shadow-md` | `{{VALUE}}` | Medium depth (dropdowns) |
|
|
217
|
-
| `--ds-shadow-lg` | `{{VALUE}}` | Strong depth (modals, popovers) |
|
|
218
|
-
| `--ds-shadow-xl` | `{{VALUE}}` | Maximum depth (floating elements) |
|
|
219
|
-
| `--ds-shadow-inner` | `{{VALUE}}` | Inset shadow (pressed states) |
|
|
220
|
-
|
|
221
|
-
---
|
|
222
|
-
|
|
223
|
-
## Transitions & Animation
|
|
224
|
-
|
|
225
|
-
### Durations
|
|
226
|
-
|
|
227
|
-
| Token | Value | Usage |
|
|
228
|
-
|-------|-------|-------|
|
|
229
|
-
| `--ds-duration-fast` | `{{VALUE}}` | Micro-interactions (hover, focus) |
|
|
230
|
-
| `--ds-duration-normal` | `{{VALUE}}` | Standard transitions |
|
|
231
|
-
| `--ds-duration-slow` | `{{VALUE}}` | Complex animations, page transitions |
|
|
232
|
-
|
|
233
|
-
### Easing Functions
|
|
234
|
-
|
|
235
|
-
| Token | Value | Usage |
|
|
236
|
-
|-------|-------|-------|
|
|
237
|
-
| `--ds-ease-default` | `{{VALUE}}` | General purpose |
|
|
238
|
-
| `--ds-ease-in` | `{{VALUE}}` | Elements exiting view |
|
|
239
|
-
| `--ds-ease-out` | `{{VALUE}}` | Elements entering view |
|
|
240
|
-
| `--ds-ease-in-out` | `{{VALUE}}` | Elements moving in view |
|
|
241
|
-
|
|
242
|
-
---
|
|
243
|
-
|
|
244
|
-
## Z-Index Scale
|
|
245
|
-
|
|
246
|
-
| Token | Value | Usage |
|
|
247
|
-
|-------|-------|-------|
|
|
248
|
-
| `--ds-z-base` | `0` | Default stacking |
|
|
249
|
-
| `--ds-z-dropdown` | `{{VALUE}}` | Dropdown menus |
|
|
250
|
-
| `--ds-z-sticky` | `{{VALUE}}` | Sticky headers |
|
|
251
|
-
| `--ds-z-overlay` | `{{VALUE}}` | Backdrop overlays |
|
|
252
|
-
| `--ds-z-modal` | `{{VALUE}}` | Modal dialogs |
|
|
253
|
-
| `--ds-z-popover` | `{{VALUE}}` | Popovers, tooltips |
|
|
254
|
-
| `--ds-z-toast` | `{{VALUE}}` | Toast notifications |
|
|
255
|
-
|
|
256
|
-
---
|
|
257
|
-
|
|
258
|
-
## Components
|
|
259
|
-
|
|
260
|
-
<!-- Repeat this block for each identified component -->
|
|
261
|
-
|
|
262
|
-
### {{ComponentName}}
|
|
263
|
-
|
|
264
|
-
**Description:** {{Brief description of the component}}
|
|
265
|
-
|
|
266
|
-
#### Variants
|
|
267
|
-
|
|
268
|
-
| Variant | Preview | Usage |
|
|
269
|
-
|---------|---------|-------|
|
|
270
|
-
| `primary` | {{visual or code example}} | Main CTA |
|
|
271
|
-
| `secondary` | {{visual or code example}} | Secondary actions |
|
|
272
|
-
| `outline` | {{visual or code example}} | Tertiary actions |
|
|
273
|
-
| `ghost` | {{visual or code example}} | Subtle actions |
|
|
274
|
-
|
|
275
|
-
#### Sizes
|
|
276
|
-
|
|
277
|
-
| Size | Font Size | Padding | Height |
|
|
278
|
-
|------|-----------|---------|--------|
|
|
279
|
-
| `sm` | `{{VALUE}}` | `{{VALUE}}` | `{{VALUE}}` |
|
|
280
|
-
| `md` | `{{VALUE}}` | `{{VALUE}}` | `{{VALUE}}` |
|
|
281
|
-
| `lg` | `{{VALUE}}` | `{{VALUE}}` | `{{VALUE}}` |
|
|
282
|
-
|
|
283
|
-
#### States
|
|
284
|
-
|
|
285
|
-
| State | Background | Border | Text | Shadow |
|
|
286
|
-
|-------|-----------|--------|------|--------|
|
|
287
|
-
| Default | `{{VALUE}}` | `{{VALUE}}` | `{{VALUE}}` | `{{VALUE}}` |
|
|
288
|
-
| Hover | `{{VALUE}}` | `{{VALUE}}` | `{{VALUE}}` | `{{VALUE}}` |
|
|
289
|
-
| Focus | `{{VALUE}}` | `{{VALUE}}` | `{{VALUE}}` | `{{VALUE}}` |
|
|
290
|
-
| Active | `{{VALUE}}` | `{{VALUE}}` | `{{VALUE}}` | `{{VALUE}}` |
|
|
291
|
-
| Disabled | `{{VALUE}}` | `{{VALUE}}` | `{{VALUE}}` | `{{VALUE}}` |
|
|
292
|
-
|
|
293
|
-
#### Tokens Used
|
|
294
|
-
|
|
295
|
-
```
|
|
296
|
-
--ds-primary-500, --ds-primary-600 (hover)
|
|
297
|
-
--ds-radius-md
|
|
298
|
-
--ds-shadow-sm
|
|
299
|
-
--ds-font-medium
|
|
300
|
-
--ds-text-sm (sm), --ds-text-base (md), --ds-text-lg (lg)
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
<!-- End component block -->
|
|
304
|
-
|
|
305
|
-
---
|
|
306
|
-
|
|
307
|
-
## Dark Mode
|
|
308
|
-
|
|
309
|
-
<!-- Include only if dark mode tokens were detected -->
|
|
310
|
-
|
|
311
|
-
| Light Token | Light Value | Dark Value | Swatch (Dark) |
|
|
312
|
-
|-------------|------------|------------|----------------|
|
|
313
|
-
| `--ds-bg-base` | `{{LIGHT}}` | `{{DARK}}` | <span style="background:{{DARK}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> |
|
|
314
|
-
| `--ds-bg-surface` | `{{LIGHT}}` | `{{DARK}}` | <span style="background:{{DARK}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> |
|
|
315
|
-
| `--ds-text-primary` | `{{LIGHT}}` | `{{DARK}}` | <span style="background:{{DARK}};width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span> |
|
|
316
|
-
|
|
317
|
-
---
|
|
318
|
-
|
|
319
|
-
## Quick Reference — CSS Variables
|
|
320
|
-
|
|
321
|
-
```css
|
|
322
|
-
:root {
|
|
323
|
-
/* Colors */
|
|
324
|
-
{{COLOR_VARIABLES}}
|
|
325
|
-
|
|
326
|
-
/* Typography */
|
|
327
|
-
{{TYPOGRAPHY_VARIABLES}}
|
|
328
|
-
|
|
329
|
-
/* Spacing */
|
|
330
|
-
{{SPACING_VARIABLES}}
|
|
331
|
-
|
|
332
|
-
/* Borders & Radii */
|
|
333
|
-
{{BORDER_VARIABLES}}
|
|
334
|
-
|
|
335
|
-
/* Shadows */
|
|
336
|
-
{{SHADOW_VARIABLES}}
|
|
337
|
-
|
|
338
|
-
/* Transitions */
|
|
339
|
-
{{TRANSITION_VARIABLES}}
|
|
340
|
-
|
|
341
|
-
/* Z-Index */
|
|
342
|
-
{{ZINDEX_VARIABLES}}
|
|
343
|
-
}
|
|
344
|
-
```
|
|
345
|
-
|
|
346
|
-
---
|
|
347
|
-
|
|
348
|
-
*Generated by Design System Generator skill*
|