@damenor/agent-docs 0.1.2 → 0.4.1
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/README.md +65 -29
- package/dist/index.js +3848 -217
- package/package.json +5 -2
- package/templates/modules/agents/.agents/agents/doc-designer.md +39 -37
- package/templates/modules/agents/.agents/agents/doc-maintainer.md +35 -35
- package/templates/modules/agents/.agents/agents/doc-reviewer.md +55 -46
- package/templates/modules/agents/.agents/agents/doc-writer.md +34 -33
- package/templates/modules/agents/.agents/agents/reviewer.md +114 -100
- package/templates/modules/agents/.agents/skills/doc-design/SKILL.md +176 -174
- package/templates/modules/agents/.agents/skills/doc-design/references/design-system-format.md +241 -247
- package/templates/modules/agents/.agents/skills/doc-maintain/SKILL.md +61 -51
- package/templates/modules/agents/.agents/skills/doc-maintain/references/triggers.md +171 -165
- package/templates/modules/agents/.agents/skills/doc-review/SKILL.md +39 -34
- package/templates/modules/agents/.agents/skills/doc-review/references/health-checklist.md +115 -112
- package/templates/modules/agents/.agents/skills/doc-scaffold/SKILL.md +19 -12
- package/templates/modules/agents/.agents/skills/doc-scaffold/references/diataxis-quick-ref.md +110 -110
- package/templates/modules/agents/.agents/skills/doc-write/SKILL.md +47 -18
- package/templates/modules/agents/.agents/skills/doc-write/references/adr-format.md +99 -93
- package/templates/modules/agents/.agents/skills/doc-write/references/diataxis-patterns.md +221 -200
- package/templates/base/AGENTS.md +0 -177
- package/templates/base/CHANGELOG.md +0 -86
- package/templates/base/README.md +0 -105
- package/templates/base/docs/CONTEXT.md +0 -111
- package/templates/base/docs/README.md +0 -131
- package/templates/base/docs/adr/TEMPLATE.md +0 -83
- package/templates/modules/design/docs/DESIGN.md +0 -253
- package/templates/modules/explanation/docs/explanation/agent-flow.md +0 -15
- package/templates/modules/explanation/docs/explanation/architecture.md +0 -138
- package/templates/modules/guides/docs/guides/deployment.md +0 -189
- package/templates/modules/guides/docs/guides/runbooks/TEMPLATE.md +0 -86
- package/templates/modules/guides/docs/guides/troubleshooting.md +0 -65
- package/templates/modules/operations/docs/operations/README.md +0 -115
- package/templates/modules/product/docs/product/overview.md +0 -90
- package/templates/modules/product/docs/roadmap.md +0 -80
- package/templates/modules/reference/docs/reference/api.md +0 -131
- package/templates/modules/reference/docs/reference/code-style.md +0 -275
- package/templates/modules/reference/docs/reference/configuration.md +0 -117
- package/templates/modules/reference/docs/reference/infrastructure.md +0 -191
- package/templates/modules/tutorials/docs/tutorials/environment-setup.md +0 -212
- package/templates/modules/tutorials/docs/tutorials/first-task.md +0 -246
- package/templates/modules/tutorials/docs/tutorials/quick-start.md +0 -146
|
@@ -1,118 +1,118 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: doc-design
|
|
3
3
|
description: >
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
TRIGGER:
|
|
9
|
-
"tokens
|
|
10
|
-
|
|
4
|
+
Creates and maintains the design system documentation (DESIGN.md).
|
|
5
|
+
Extracts real tokens from code (CSS vars, Tailwind config, theme files),
|
|
6
|
+
generates structured documentation with YAML frontmatter for colors,
|
|
7
|
+
typography, spacing, borders, elevation and components.
|
|
8
|
+
TRIGGER: When the user says "document design", "design system",
|
|
9
|
+
"design tokens", "DESIGN.md", "extract styles", "audit styles",
|
|
10
|
+
or changes in style/CSS/theme files are detected.
|
|
11
11
|
license: Apache-2.0
|
|
12
12
|
metadata:
|
|
13
13
|
author: damenordev
|
|
14
|
-
version:
|
|
14
|
+
version: '1.0'
|
|
15
15
|
---
|
|
16
16
|
|
|
17
17
|
# doc-design
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## When to Use
|
|
20
20
|
|
|
21
|
-
- **
|
|
22
|
-
- **
|
|
23
|
-
- **
|
|
24
|
-
- **
|
|
25
|
-
- **Post-design-change**:
|
|
21
|
+
- **New project**: Need to create DESIGN.md with the design system
|
|
22
|
+
- **UI changes**: Styles, components or design tokens were modified
|
|
23
|
+
- **Token extraction**: Want to document real values from code (CSS vars, Tailwind config, theme files)
|
|
24
|
+
- **Consistency audit**: Design inconsistencies detected (duplicate colors, inconsistent spacing)
|
|
25
|
+
- **Post-design-change**: After CSS/theme changes, update DESIGN.md
|
|
26
26
|
|
|
27
|
-
##
|
|
27
|
+
## Critical Patterns
|
|
28
28
|
|
|
29
|
-
###
|
|
29
|
+
### RULE #1: DESIGN.md uses YAML frontmatter for structured tokens
|
|
30
30
|
|
|
31
31
|
```yaml
|
|
32
32
|
---
|
|
33
|
-
created:
|
|
33
|
+
created: '2024-01-15'
|
|
34
34
|
status: active
|
|
35
35
|
type: reference
|
|
36
36
|
tags: [design-system, tokens, componentes]
|
|
37
37
|
colors:
|
|
38
38
|
brand:
|
|
39
|
-
primary:
|
|
40
|
-
secondary:
|
|
39
|
+
primary: '#3B82F6'
|
|
40
|
+
secondary: '#8B5CF6'
|
|
41
41
|
surface:
|
|
42
|
-
background:
|
|
43
|
-
card:
|
|
44
|
-
elevated:
|
|
42
|
+
background: '#FFFFFF'
|
|
43
|
+
card: '#F9FAFB'
|
|
44
|
+
elevated: '#FFFFFF'
|
|
45
45
|
text:
|
|
46
|
-
primary:
|
|
47
|
-
secondary:
|
|
48
|
-
disabled:
|
|
46
|
+
primary: '#111827'
|
|
47
|
+
secondary: '#6B7280'
|
|
48
|
+
disabled: '#9CA3AF'
|
|
49
49
|
semantic:
|
|
50
|
-
success:
|
|
51
|
-
warning:
|
|
52
|
-
error:
|
|
53
|
-
info:
|
|
50
|
+
success: '#10B981'
|
|
51
|
+
warning: '#F59E0B'
|
|
52
|
+
error: '#EF4444'
|
|
53
|
+
info: '#3B82F6'
|
|
54
54
|
typography:
|
|
55
|
-
heading-xl: { font-size:
|
|
56
|
-
heading-lg: { font-size:
|
|
57
|
-
heading-md: { font-size:
|
|
58
|
-
body-lg: { font-size:
|
|
59
|
-
body-md: { font-size:
|
|
60
|
-
body-sm: { font-size:
|
|
61
|
-
caption: { font-size:
|
|
55
|
+
heading-xl: { font-size: '2rem', font-weight: '700', line-height: '1.2' }
|
|
56
|
+
heading-lg: { font-size: '1.5rem', font-weight: '600', line-height: '1.3' }
|
|
57
|
+
heading-md: { font-size: '1.25rem', font-weight: '600', line-height: '1.4' }
|
|
58
|
+
body-lg: { font-size: '1.125rem', font-weight: '400', line-height: '1.6' }
|
|
59
|
+
body-md: { font-size: '1rem', font-weight: '400', line-height: '1.6' }
|
|
60
|
+
body-sm: { font-size: '0.875rem', font-weight: '400', line-height: '1.5' }
|
|
61
|
+
caption: { font-size: '0.75rem', font-weight: '400', line-height: '1.4' }
|
|
62
62
|
spacing:
|
|
63
|
-
scale: [0,
|
|
64
|
-
tokens: { xs:
|
|
63
|
+
scale: [0, '0.25rem', '0.5rem', '0.75rem', '1rem', '1.5rem', '2rem', '3rem', '4rem', '6rem']
|
|
64
|
+
tokens: { xs: '0.25rem', sm: '0.5rem', md: '1rem', lg: '1.5rem', xl: '2rem', '2xl': '3rem', '3xl': '4rem' }
|
|
65
65
|
rounded:
|
|
66
|
-
scale: [0,
|
|
67
|
-
tokens: { none:
|
|
66
|
+
scale: [0, '0.25rem', '0.5rem', '0.75rem', '1rem', '1.5rem', '9999px']
|
|
67
|
+
tokens: { none: '0', sm: '0.25rem', md: '0.5rem', lg: '0.75rem', xl: '1rem', '2xl': '1.5rem', full: '9999px' }
|
|
68
68
|
elevation:
|
|
69
69
|
tiers:
|
|
70
|
-
flat:
|
|
71
|
-
sm:
|
|
72
|
-
md:
|
|
73
|
-
lg:
|
|
74
|
-
xl:
|
|
70
|
+
flat: 'none'
|
|
71
|
+
sm: '0 1px 2px rgba(0,0,0,0.05)'
|
|
72
|
+
md: '0 4px 6px rgba(0,0,0,0.1)'
|
|
73
|
+
lg: '0 10px 15px rgba(0,0,0,0.1)'
|
|
74
|
+
xl: '0 20px 25px rgba(0,0,0,0.15)'
|
|
75
75
|
components:
|
|
76
76
|
button:
|
|
77
77
|
variants: [primary, secondary, outline, ghost, danger]
|
|
78
78
|
sizes: [sm, md, lg]
|
|
79
|
-
base:
|
|
79
|
+
base: 'font-weight: 600, border-radius: {rounded.md}, padding: {spacing.sm} {spacing.md}'
|
|
80
80
|
card:
|
|
81
81
|
variants: [default, outlined, elevated]
|
|
82
|
-
base:
|
|
82
|
+
base: 'border-radius: {rounded.lg}, padding: {spacing.lg}, background: {colors.surface.card}'
|
|
83
83
|
input:
|
|
84
84
|
variants: [default, error, disabled]
|
|
85
85
|
sizes: [sm, md, lg]
|
|
86
|
-
base:
|
|
86
|
+
base: 'border: 1px solid, border-radius: {rounded.md}, padding: {spacing.sm} {spacing.md}'
|
|
87
87
|
responsive:
|
|
88
|
-
breakpoints: { sm:
|
|
88
|
+
breakpoints: { sm: '640px', md: '768px', lg: '1024px', xl: '1280px', '2xl': '1536px' }
|
|
89
89
|
---
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
-
###
|
|
92
|
+
### RULE #2: Each component references tokens with `{section.token}` notation
|
|
93
93
|
|
|
94
94
|
```yaml
|
|
95
95
|
components:
|
|
96
96
|
button:
|
|
97
|
-
base:
|
|
97
|
+
base: 'border-radius: {rounded.md}, padding: {spacing.sm} {spacing.md}'
|
|
98
98
|
# NO: border-radius: 0.5rem, padding: 0.5rem 1rem
|
|
99
99
|
# SÍ: Referenciar tokens para mantener consistencia
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
###
|
|
102
|
+
### RULE #3: Extract REAL values from code
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
NEVER invent values. Extract from:
|
|
105
105
|
|
|
106
|
-
|
|
|
107
|
-
|
|
108
|
-
| CSS variables
|
|
109
|
-
| Tailwind config
|
|
110
|
-
| Theme files
|
|
111
|
-
| Styled-components | `Theme` object
|
|
112
|
-
| Design tokens
|
|
113
|
-
| Sass/Less vars
|
|
106
|
+
| Source | What to look for |
|
|
107
|
+
| ----------------- | --------------------------------------- |
|
|
108
|
+
| CSS variables | `:root { --color-primary: ... }` |
|
|
109
|
+
| Tailwind config | `tailwind.config.js` → `theme.extend` |
|
|
110
|
+
| Theme files | `theme.ts`, `theme.json`, `tokens.json` |
|
|
111
|
+
| Styled-components | `Theme` object |
|
|
112
|
+
| Design tokens | Figma API, Style Dictionary |
|
|
113
|
+
| Sass/Less vars | `_variables.scss`, `_variables.less` |
|
|
114
114
|
|
|
115
|
-
###
|
|
115
|
+
### RULE #4: Keep synchronized with the code
|
|
116
116
|
|
|
117
117
|
```
|
|
118
118
|
Si cambia el código de estilos → cambiar DESIGN.md
|
|
@@ -121,9 +121,10 @@ Si cambia DESIGN.md → cambiar el código de estilos
|
|
|
121
121
|
|
|
122
122
|
La sincronización es bidireccional. Usar `doc-review` para verificar.
|
|
123
123
|
|
|
124
|
-
###
|
|
124
|
+
### RULE #5: Consistent structure
|
|
125
125
|
|
|
126
126
|
El YAML frontmatter debe seguir este orden:
|
|
127
|
+
|
|
127
128
|
1. `colors` (brand, surface, text, semantic)
|
|
128
129
|
2. `typography` (jerarquía completa con tokens)
|
|
129
130
|
3. `spacing` (escala y tokens nombrados)
|
|
@@ -132,7 +133,7 @@ El YAML frontmatter debe seguir este orden:
|
|
|
132
133
|
6. `components` (componentes UI documentados)
|
|
133
134
|
7. `responsive` (breakpoints)
|
|
134
135
|
|
|
135
|
-
###
|
|
136
|
+
### RULE #6: Overview section in markdown
|
|
136
137
|
|
|
137
138
|
Después del frontmatter, incluir una sección narrativa:
|
|
138
139
|
|
|
@@ -146,147 +147,149 @@ Después del frontmatter, incluir una sección narrativa:
|
|
|
146
147
|
[Cómo referenciar tokens en el código — con ejemplo específico del stack]
|
|
147
148
|
```
|
|
148
149
|
|
|
149
|
-
##
|
|
150
|
+
## Process Flow
|
|
150
151
|
|
|
151
|
-
###
|
|
152
|
+
### Step 1: Check existing design files
|
|
152
153
|
|
|
153
154
|
```
|
|
154
|
-
|
|
155
|
+
Search for:
|
|
155
156
|
├── CSS variables → :root, [data-theme]
|
|
156
157
|
├── Tailwind → tailwind.config.js/ts, tailwind.config.cjs
|
|
157
158
|
├── Theme files → theme.ts, theme.json, tokens.json
|
|
158
159
|
├── Sass/Less → _variables.scss, _variables.less
|
|
159
160
|
├── Styled-components → Theme provider
|
|
160
|
-
├── Existing DESIGN.md →
|
|
161
|
+
├── Existing DESIGN.md → DO NOT overwrite without asking
|
|
161
162
|
└── Design tool exports → Figma, Sketch, tokens.json
|
|
162
163
|
```
|
|
163
164
|
|
|
164
|
-
###
|
|
165
|
+
### Step 2: Extract current values
|
|
165
166
|
|
|
166
167
|
```
|
|
167
|
-
1.
|
|
168
|
-
2.
|
|
169
|
-
3.
|
|
170
|
-
4.
|
|
171
|
-
5.
|
|
168
|
+
1. Read each style file found
|
|
169
|
+
2. Extract colors, typography, spacing, borders, shadows
|
|
170
|
+
3. Normalize format (hex, rem, px → consistent format)
|
|
171
|
+
4. Identify named tokens vs hardcoded values
|
|
172
|
+
5. Detect duplicates and inconsistencies
|
|
172
173
|
```
|
|
173
174
|
|
|
174
|
-
###
|
|
175
|
+
### Step 3: Create/update DESIGN.md
|
|
175
176
|
|
|
176
177
|
```
|
|
177
|
-
1.
|
|
178
|
-
2.
|
|
179
|
-
3.
|
|
180
|
-
4.
|
|
178
|
+
1. Generate YAML frontmatter with all extracted tokens
|
|
179
|
+
2. Document components that exist in the code
|
|
180
|
+
3. Add overview section in markdown
|
|
181
|
+
4. Note gaps and inconsistencies found
|
|
181
182
|
```
|
|
182
183
|
|
|
183
|
-
###
|
|
184
|
+
### Step 4: Add narrative overview
|
|
184
185
|
|
|
185
186
|
```markdown
|
|
186
|
-
##
|
|
187
|
+
## Overview
|
|
187
188
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
This design system follows a token-based approach where base values
|
|
190
|
+
(colors, spacing, typography) are defined as variables and referenced
|
|
191
|
+
in components. The hierarchy is:
|
|
191
192
|
|
|
192
|
-
1. **
|
|
193
|
-
2. **
|
|
194
|
-
3. **
|
|
193
|
+
1. **Base tokens**: Raw values (hex colors, rem sizes)
|
|
194
|
+
2. **Semantic tokens**: Purpose-based tokens ({colors.semantic.error})
|
|
195
|
+
3. **Component tokens**: Default values for each component
|
|
195
196
|
|
|
196
|
-
##
|
|
197
|
+
## Color Palette
|
|
197
198
|
|
|
198
|
-
[
|
|
199
|
+
[Explain palette logic — not just list values]
|
|
199
200
|
|
|
200
|
-
##
|
|
201
|
+
## Typography
|
|
201
202
|
|
|
202
|
-
[
|
|
203
|
+
[Explain typographic hierarchy]
|
|
203
204
|
|
|
204
|
-
##
|
|
205
|
+
## Components
|
|
205
206
|
|
|
206
|
-
[
|
|
207
|
+
[Summary of documented components and their logic]
|
|
207
208
|
```
|
|
208
209
|
|
|
209
|
-
###
|
|
210
|
+
### Step 5: Document existing components
|
|
210
211
|
|
|
211
|
-
|
|
212
|
+
For each component found in the code:
|
|
212
213
|
|
|
213
214
|
```yaml
|
|
214
215
|
components:
|
|
215
216
|
button:
|
|
216
217
|
variants: [primary, secondary, outline, ghost, danger]
|
|
217
218
|
sizes: [sm, md, lg]
|
|
218
|
-
base:
|
|
219
|
+
base: 'font-weight: 600, border-radius: {rounded.md}'
|
|
219
220
|
primary:
|
|
220
|
-
bg:
|
|
221
|
-
text:
|
|
222
|
-
hover:
|
|
221
|
+
bg: '{colors.brand.primary}'
|
|
222
|
+
text: '#FFFFFF'
|
|
223
|
+
hover: 'darken 10%'
|
|
223
224
|
secondary:
|
|
224
|
-
bg:
|
|
225
|
-
text:
|
|
225
|
+
bg: '{colors.brand.secondary}'
|
|
226
|
+
text: '#FFFFFF'
|
|
226
227
|
```
|
|
227
228
|
|
|
228
|
-
###
|
|
229
|
+
### Step 6: Note gaps and inconsistencies
|
|
229
230
|
|
|
230
231
|
```markdown
|
|
231
|
-
##
|
|
232
|
+
## Findings
|
|
233
|
+
|
|
234
|
+
### ⚠️ Detected Inconsistencies
|
|
232
235
|
|
|
233
|
-
|
|
234
|
-
-
|
|
235
|
-
-
|
|
236
|
-
- No existe token para el shadow del modal
|
|
236
|
+
- Color `#3b82f6` used in 3 files as hardcoded (should be token)
|
|
237
|
+
- Inconsistent card spacing: some use 1rem, others 1.25rem
|
|
238
|
+
- No token exists for modal shadow
|
|
237
239
|
|
|
238
|
-
### 📋
|
|
239
|
-
|
|
240
|
-
-
|
|
241
|
-
-
|
|
240
|
+
### 📋 Pending
|
|
241
|
+
|
|
242
|
+
- Migrate hardcoded colors to CSS variables
|
|
243
|
+
- Unify card spacing
|
|
244
|
+
- Create elevation tokens for modals and tooltips
|
|
242
245
|
```
|
|
243
246
|
|
|
244
|
-
##
|
|
247
|
+
## Commands
|
|
245
248
|
|
|
246
|
-
###
|
|
249
|
+
### Main file
|
|
247
250
|
|
|
248
251
|
```
|
|
249
|
-
DESIGN.md —
|
|
252
|
+
DESIGN.md — Project design system
|
|
250
253
|
```
|
|
251
254
|
|
|
252
|
-
###
|
|
255
|
+
### Post-creation verification
|
|
253
256
|
|
|
254
257
|
```
|
|
255
|
-
1.
|
|
256
|
-
2.
|
|
257
|
-
3.
|
|
258
|
-
4.
|
|
259
|
-
5.
|
|
258
|
+
1. Does DESIGN.md have YAML frontmatter with all sections? → colors, typography, spacing, rounded, elevation, components
|
|
259
|
+
2. Do referenced tokens exist? → {colors.brand.primary} must be defined
|
|
260
|
+
3. Are values real (extracted from code)? → Not invented
|
|
261
|
+
4. Is there an overview section in markdown? → Philosophy + token usage
|
|
262
|
+
5. Were gaps and inconsistencies noted? → Findings section
|
|
260
263
|
```
|
|
261
264
|
|
|
262
|
-
##
|
|
265
|
+
## Synchronization with Code
|
|
263
266
|
|
|
264
|
-
###
|
|
267
|
+
### Change detection
|
|
265
268
|
|
|
266
|
-
|
|
|
267
|
-
|
|
268
|
-
| CSS variables
|
|
269
|
-
| Tailwind config |
|
|
270
|
-
| Theme files
|
|
271
|
-
|
|
|
272
|
-
| Breakpoints
|
|
269
|
+
| File changed | What to update in DESIGN.md |
|
|
270
|
+
| --------------- | ---------------------------------- |
|
|
271
|
+
| CSS variables | `colors`, `spacing` sections, etc. |
|
|
272
|
+
| Tailwind config | All token sections |
|
|
273
|
+
| Theme files | All sections |
|
|
274
|
+
| New component | `components` section |
|
|
275
|
+
| Breakpoints | `responsive` section |
|
|
273
276
|
|
|
274
|
-
###
|
|
277
|
+
### Formats by stack
|
|
275
278
|
|
|
276
|
-
| Stack
|
|
277
|
-
|
|
278
|
-
| CSS
|
|
279
|
-
| Tailwind
|
|
280
|
-
| Sass
|
|
281
|
-
| Styled-components | `theme.colors.primary`
|
|
282
|
-
| CSS Modules
|
|
279
|
+
| Stack | Token source | Format |
|
|
280
|
+
| ----------------- | -------------------------- | ------------------------------------------------ |
|
|
281
|
+
| Pure CSS | `:root { --token: value }` | Map `--color-primary` → `{colors.brand.primary}` |
|
|
282
|
+
| Tailwind | `theme.extend.colors` | Map config directly |
|
|
283
|
+
| Sass | `$color-primary: value` | Map variables |
|
|
284
|
+
| Styled-components | `theme.colors.primary` | Map theme object |
|
|
285
|
+
| CSS Modules | Compose from variables | Map composes |
|
|
283
286
|
|
|
284
|
-
##
|
|
287
|
+
## Concrete Extraction Example
|
|
285
288
|
|
|
286
|
-
### Input:
|
|
289
|
+
### Input: Project with Tailwind
|
|
287
290
|
|
|
288
291
|
```javascript
|
|
289
|
-
// tailwind.config.ts
|
|
292
|
+
// tailwind.config.ts found
|
|
290
293
|
module.exports = {
|
|
291
294
|
theme: {
|
|
292
295
|
extend: {
|
|
@@ -304,56 +307,55 @@ module.exports = {
|
|
|
304
307
|
}
|
|
305
308
|
```
|
|
306
309
|
|
|
307
|
-
### Output: DESIGN.md
|
|
310
|
+
### Output: Generated DESIGN.md
|
|
308
311
|
|
|
309
312
|
```yaml
|
|
310
313
|
---
|
|
311
|
-
created:
|
|
312
|
-
updated:
|
|
314
|
+
created: '2026-05-07'
|
|
315
|
+
updated: '2026-05-07'
|
|
313
316
|
status: active
|
|
314
317
|
type: design
|
|
315
318
|
tags: [design-system, tokens, tailwind]
|
|
316
319
|
colors:
|
|
317
320
|
brand:
|
|
318
|
-
primary:
|
|
319
|
-
primary-dark:
|
|
320
|
-
primary-light:
|
|
321
|
+
primary: '#3B82F6'
|
|
322
|
+
primary-dark: '#2563EB'
|
|
323
|
+
primary-light: '#93C5FD'
|
|
321
324
|
surface:
|
|
322
|
-
background:
|
|
323
|
-
muted:
|
|
325
|
+
background: '#FFFFFF'
|
|
326
|
+
muted: '#F9FAFB'
|
|
324
327
|
text:
|
|
325
|
-
primary:
|
|
326
|
-
secondary:
|
|
328
|
+
primary: '#111827'
|
|
329
|
+
secondary: '#6B7280'
|
|
327
330
|
semantic:
|
|
328
|
-
error:
|
|
329
|
-
success:
|
|
331
|
+
error: '#EF4444'
|
|
332
|
+
success: '#10B981'
|
|
330
333
|
typography:
|
|
331
|
-
heading-xl: { fontFamily:
|
|
332
|
-
heading-lg: { fontFamily:
|
|
333
|
-
body-md: { fontFamily:
|
|
334
|
-
body-sm: { fontFamily:
|
|
335
|
-
code: { fontFamily:
|
|
334
|
+
heading-xl: { fontFamily: 'Inter, system-ui, sans-serif', fontSize: '2rem', fontWeight: '700' }
|
|
335
|
+
heading-lg: { fontFamily: 'Inter, system-ui, sans-serif', fontSize: '1.5rem', fontWeight: '600' }
|
|
336
|
+
body-md: { fontFamily: 'Inter, system-ui, sans-serif', fontSize: '1rem', fontWeight: '400' }
|
|
337
|
+
body-sm: { fontFamily: 'Inter, system-ui, sans-serif', fontSize: '0.875rem', fontWeight: '400' }
|
|
338
|
+
code: { fontFamily: 'JetBrains Mono, monospace', fontSize: '0.875rem' }
|
|
336
339
|
rounded:
|
|
337
|
-
sm:
|
|
338
|
-
md:
|
|
339
|
-
lg:
|
|
340
|
-
xl:
|
|
341
|
-
full:
|
|
340
|
+
sm: '6px'
|
|
341
|
+
md: '8px'
|
|
342
|
+
lg: '12px'
|
|
343
|
+
xl: '16px'
|
|
344
|
+
full: '9999px'
|
|
342
345
|
spacing:
|
|
343
|
-
xs:
|
|
344
|
-
sm:
|
|
345
|
-
md:
|
|
346
|
-
lg:
|
|
347
|
-
xl:
|
|
348
|
-
|
|
346
|
+
xs: '0.25rem'
|
|
347
|
+
sm: '0.5rem'
|
|
348
|
+
md: '1rem'
|
|
349
|
+
lg: '1.5rem'
|
|
350
|
+
xl: '2rem'
|
|
351
|
+
'2xl': '3rem'
|
|
349
352
|
---
|
|
353
|
+
## Overview
|
|
350
354
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
Design system basado en Tailwind CSS con tokens extendidos. ...
|
|
355
|
+
Design system based on Tailwind CSS with extended tokens. ...
|
|
354
356
|
```
|
|
355
357
|
|
|
356
|
-
##
|
|
358
|
+
## Resources
|
|
357
359
|
|
|
358
|
-
- [Design System Format](references/design-system-format.md) —
|
|
359
|
-
-
|
|
360
|
+
- [Design System Format](references/design-system-format.md) — Complete YAML format schema with examples
|
|
361
|
+
- Related skills: `doc-write` (write docs), `doc-review` (audit consistency), `doc-maintain` (sync changes)
|