Skip to content

Commit 0132351

Browse files
authored
Merge pull request #8 from marklearst/docs/adoption-usage
docs(adoption): expand adoption and usage guidance
2 parents 3aaacbc + 1b134be commit 0132351

File tree

13 files changed

+213
-111
lines changed

13 files changed

+213
-111
lines changed

docs/adoption/getting-started.md

Lines changed: 97 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ title: Adoption - Getting Started
44

55
# Team Adoption Guide
66

7-
How to adopt Variable Contract in your team or organization.
7+
How to adopt Variable Design Standard (VDS) in your team or organization.
88

99
If you skip adoption steps, you get inconsistent variables, broken validation, and team confusion.
1010

1111
## Prerequisites
1212

13-
Before adopting Variable Contract:
13+
Before adopting Variable Design Standard (VDS):
1414

1515
- Designers use Figma (or similar design tool)
1616
- Developers use version control (Git)
@@ -26,7 +26,7 @@ Before adopting Variable Contract:
2626
1. Create variable repository structure
2727

2828
- Set up `tokens/` directory in version control
29-
- Create initial Variable Contract JSON files
29+
- Create initial Variable Design Standard (VDS) JSON files
3030
- Set up file organization (base, semantic, component)
3131

3232
2. Set up validation
@@ -51,14 +51,14 @@ Before adopting Variable Contract:
5151
**Goal**: Create first variable set
5252

5353
1. Export existing variables from Figma
54-
2. Run adapter to normalize to Variable Contract format
54+
2. Run adapter to normalize to Variable Design Standard (VDS) format
5555
3. Validate normalized JSON
5656
4. Commit to version control
5757
5. Generate initial outputs (CSS, TypeScript)
5858

5959
**Deliverables**:
6060

61-
- First Variable Contract JSON files
61+
- First Variable Design Standard (VDS) JSON files
6262
- Generated CSS/TypeScript outputs
6363
- Validation passing
6464

@@ -81,7 +81,7 @@ Before adopting Variable Contract:
8181

8282
**Goal**: Establish ongoing workflow
8383

84-
1. Train designers on Variable Contract naming
84+
1. Train designers on Variable Design Standard (VDS) naming
8585
2. Train developers on variable consumption
8686
3. Set up review process
8787
4. Document change workflow
@@ -98,7 +98,7 @@ Before adopting Variable Contract:
9898

9999
Responsibilities:
100100

101-
- Maintain Variable Contract JSON
101+
- Maintain Variable Design Standard (VDS) JSON
102102
- Review variable changes
103103
- Set up validation and CI
104104
- Manage versioning and releases
@@ -126,7 +126,9 @@ Responsibilities:
126126

127127
### Step 1: Repository setup
128128

129-
Create repository structure:
129+
Create repository structure following the canonical file layout:
130+
131+
#### Basic structure
130132

131133
```
132134
tokens/
@@ -142,6 +144,93 @@ tokens/
142144
input.json
143145
```
144146

147+
#### Grouping strategy
148+
149+
- **base/**: Raw scales and palettes (base variables)
150+
- **semantic/**: Intent-based aliases (alias variables)
151+
- **component/**: Component-specific overrides (component variables)
152+
153+
#### Multi-brand structure
154+
155+
For multi-brand systems:
156+
157+
```
158+
tokens/
159+
base/
160+
color.json
161+
spacing.json
162+
typography.json
163+
brands/
164+
brand-a/
165+
color.json # Extends base/color.json
166+
spacing.json
167+
brand-b/
168+
color.json # Extends base/color.json
169+
spacing.json
170+
semantic/
171+
color.json # References brand-specific variables
172+
spacing.json
173+
component/
174+
button.json
175+
input.json
176+
```
177+
178+
#### Multi-theme structure
179+
180+
For systems with multiple themes:
181+
182+
```
183+
tokens/
184+
base/
185+
color.json
186+
spacing.json
187+
themes/
188+
light/
189+
color.json # Light theme variables
190+
dark/
191+
color.json # Dark theme variables
192+
semantic/
193+
color.json # Uses modes to reference theme variables
194+
spacing.json
195+
component/
196+
button.json
197+
```
198+
199+
#### Combined multi-brand and multi-theme
200+
201+
For complex systems:
202+
203+
```
204+
tokens/
205+
base/
206+
color.json
207+
spacing.json
208+
brands/
209+
brand-a/
210+
themes/
211+
light/
212+
color.json
213+
dark/
214+
color.json
215+
brand-b/
216+
themes/
217+
light/
218+
color.json
219+
dark/
220+
color.json
221+
semantic/
222+
color.json
223+
component/
224+
button.json
225+
```
226+
227+
#### File naming conventions
228+
229+
- Use lowercase with hyphens for file names: `color.json`, `spacing-scale.json`
230+
- Group files by category (color, spacing, typography)
231+
- Keep related variables together in the same file
232+
- Split large files when they exceed ~500 variables for maintainability
233+
145234
### Step 2: Install tooling
146235

147236
Install validation and build tools:

docs/adoption/implementation-checklist.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Adoption - Implementation Checklist
44

55
# Implementation Checklist
66

7-
Pre-implementation, implementation, and post-implementation checklists for Variable Contract adoption.
7+
Pre-implementation, implementation, and post-implementation checklists for Variable Design Standard (VDS) adoption.
88

99
## Pre-implementation checklist
1010

@@ -15,7 +15,7 @@ Before starting implementation, verify:
1515
- [ ] Design Engineer role assigned
1616
- [ ] Designers available for training
1717
- [ ] Developers available for integration
18-
- [ ] Team understands Variable Contract concept
18+
- [ ] Team understands Variable Design Standard (VDS) concept
1919
- [ ] Stakeholders approve adoption
2020

2121
### Technical readiness
@@ -44,7 +44,7 @@ During implementation, complete:
4444
- [ ] Install validation tool
4545
- [ ] Configure CI validation
4646
- [ ] Set up pre-commit hooks
47-
- [ ] Create initial Variable Contract JSON structure
47+
- [ ] Create initial Variable Design Standard (VDS) JSON structure
4848
- [ ] Document team-specific guidelines
4949

5050
### Phase 2: Initial variables
@@ -53,7 +53,7 @@ During implementation, complete:
5353
- [ ] Run adapter to normalize export
5454
- [ ] Validate normalized JSON
5555
- [ ] Fix any validation errors
56-
- [ ] Commit Variable Contract JSON to version control
56+
- [ ] Commit Variable Design Standard (VDS) JSON to version control
5757
- [ ] Configure build tool (Style Dictionary)
5858
- [ ] Generate initial outputs (CSS, TypeScript)
5959
- [ ] Verify outputs are correct
@@ -79,7 +79,7 @@ During implementation, complete:
7979

8080
## Conformance checklist
8181

82-
To claim Variable Contract compliance, verify:
82+
To claim Variable Design Standard (VDS) compliance, verify:
8383

8484
### Format compliance
8585

@@ -158,7 +158,7 @@ After implementation, verify:
158158
### Documentation
159159

160160
- [ ] Team documentation is complete
161-
- [ ] Variable Contract JSON is documented
161+
- [ ] Variable Design Standard (VDS) JSON is documented
162162
- [ ] Consumption patterns are documented
163163
- [ ] Workflow is documented
164164
- [ ] Troubleshooting guide is available

docs/adoption/migration-strategy.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Adoption - Migration Strategy
44

55
# Phased Migration Strategy
66

7-
How to migrate existing variable systems to Variable Contract using a phased approach.
7+
How to migrate existing variable systems to Variable Design Standard (VDS) using a phased approach.
88

99
If you migrate everything at once, you risk breaking production, losing references, and confusing the team.
1010

@@ -53,9 +53,9 @@ Use when:
5353

5454
### Phase 1: Foundation (Week 1-2)
5555

56-
**Goal**: Set up Variable Contract alongside existing system
56+
**Goal**: Set up Variable Design Standard (VDS) alongside existing system
5757

58-
1. Set up Variable Contract structure
58+
1. Set up Variable Design Standard (VDS) structure
5959
- Create `tokens/` directory
6060
- Set up validation
6161
- Configure CI
@@ -71,20 +71,20 @@ Use when:
7171
- Commit to version control
7272

7373
**Deliverables**:
74-
- Variable Contract structure set up
74+
- Variable Design Standard (VDS) structure set up
7575
- Adapter working
7676
- All variables converted (not yet consumed)
7777

7878
### Phase 2: Parallel run (Week 3-6)
7979

8080
**Goal**: Run both systems in parallel
8181

82-
1. Generate outputs from Variable Contract
82+
1. Generate outputs from Variable Design Standard (VDS)
8383
- Configure Style Dictionary
8484
- Generate CSS/TypeScript
8585
- Verify outputs match existing
8686

87-
2. Update components to use Variable Contract outputs
87+
2. Update components to use Variable Design Standard (VDS) outputs
8888
- Start with new components
8989
- Gradually migrate existing components
9090
- Test each migration
@@ -95,7 +95,7 @@ Use when:
9595
- Document learnings
9696

9797
**Deliverables**:
98-
- Variable Contract outputs generated
98+
- Variable Design Standard (VDS) outputs generated
9999
- Some components using new variables
100100
- Both systems running in parallel
101101

@@ -109,9 +109,9 @@ Use when:
109109
- Document changes
110110

111111
2. Update design workflow
112-
- Train designers on Variable Contract
112+
- Train designers on Variable Design Standard (VDS)
113113
- Update Figma workflow
114-
- Export to Variable Contract format
114+
- Export to Variable Design Standard (VDS) format
115115

116116
3. Deprecate old system
117117
- Mark old variables as deprecated
@@ -137,14 +137,14 @@ Use when:
137137
- Remove old build configs
138138
- Update documentation
139139

140-
3. Finalize Variable Contract
140+
3. Finalize Variable Design Standard (VDS)
141141
- Complete migration documentation
142142
- Train team on new system
143143
- Celebrate success
144144

145145
**Deliverables**:
146146
- Old system removed
147-
- Variable Contract fully adopted
147+
- Variable Design Standard (VDS) fully adopted
148148
- Team trained
149149

150150
## Migration by format
@@ -170,7 +170,7 @@ Use when:
170170

171171
**Phase 1**: Extract variables
172172
- Extract Material-specific variables
173-
- Map to Variable Contract structure
173+
- Map to Variable Design Standard (VDS) structure
174174
- Normalize naming
175175

176176
**Phase 2**: Create adapters
@@ -181,7 +181,7 @@ Use when:
181181
**Phase 3**: Migrate consumption
182182
- Update components
183183
- Remove Material-specific code
184-
- Use Variable Contract outputs
184+
- Use Variable Design Standard (VDS) outputs
185185

186186
### From custom formats
187187

@@ -198,7 +198,7 @@ Use when:
198198
**Phase 3**: Migrate consumption
199199
- Update components
200200
- Remove old system
201-
- Use Variable Contract
201+
- Use Variable Design Standard (VDS)
202202

203203
## Migration checklist
204204

@@ -207,13 +207,13 @@ Use when:
207207
- [ ] Audit existing variables
208208
- [ ] Document current format
209209
- [ ] Identify migration approach
210-
- [ ] Set up Variable Contract structure
210+
- [ ] Set up Variable Design Standard (VDS) structure
211211
- [ ] Create adapter (if needed)
212212
- [ ] Test adapter output
213213

214214
### During migration
215215

216-
- [ ] Convert variables to Variable Contract
216+
- [ ] Convert variables to Variable Design Standard (VDS)
217217
- [ ] Validate converted JSON
218218
- [ ] Generate outputs
219219
- [ ] Test outputs match existing

docs/consumption/css.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ title: Consumption - CSS
44

55
# CSS Variable Consumption
66

7-
How to consume Variable Contract variables in CSS.
7+
How to consume Variable Design Standard (VDS) variables in CSS.
88

99
## Basic usage
1010

1111
### CSS custom properties
1212

13-
Use CSS custom properties (variables) generated from Variable Contract:
13+
Use CSS custom properties (variables) generated from Variable Design Standard (VDS):
1414

1515
```css
1616
.button {

docs/consumption/frameworks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Consumption - Frameworks
44

55
# Framework Integration
66

7-
How to integrate Variable Contract variables with React, Vue, and other frameworks.
7+
How to integrate Variable Design Standard (VDS) variables with React, Vue, and other frameworks.
88

99
## React integration
1010

docs/consumption/typescript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Consumption - TypeScript
44

55
# TypeScript Consumption
66

7-
How to consume Variable Contract variables in TypeScript with type safety.
7+
How to consume Variable Design Standard (VDS) variables in TypeScript with type safety.
88

99
## Type generation
1010

@@ -283,7 +283,7 @@ export function useTheme() {
283283

284284
## Implementation rules
285285

286-
1. Generate types from Variable Contract
286+
1. Generate types from Variable Design Standard (VDS)
287287
2. Use type-safe access
288288
3. Document type usage
289289
4. Test type safety

0 commit comments

Comments
 (0)