Skip to content

Commit d1895d4

Browse files
committed
Cleanup
1 parent c60c1a8 commit d1895d4

File tree

5 files changed

+12
-17
lines changed

5 files changed

+12
-17
lines changed

docs-cli/commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The CLI is built with Commander (`src/cli.ts`) and ships the following commands:
3030

3131
| Option | Description |
3232
|---------------------|----------------------------------------------------------|
33-
| `--tokenset <path>` | Path to a ZIP archive containing DTCG token sets. |
33+
| `--tokenset <path>` | Path to a ZIP archive containing token sets. |
3434
| `--output <path>` | Output file for resolved tokens (`output.json` default). |
3535

3636
Unzips the token set, resolves tokens using `TokenSetResolver`, and writes the result.
@@ -50,7 +50,7 @@ Generates permutations across theme dimensions and resolves each variation.
5050

5151
| Option | Description |
5252
|-------------------|--------------------------------------|
53-
| `--json <path>` | Path to a DTCG JSON file. |
53+
| `--json <path>` | Path to a JSON file. |
5454
| `--output <path>` | Output file (`output.json` default). |
5555

5656
Resolves tokens directly from a JSON file without packaging into a ZIP.

docs-intro/concepts.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,7 @@ if (x > 5) [
177177
return x * 2; // Statement: returns value`}
178178
</TokenScriptCodeBlock>
179179

180-
### 6. **DTCG (Design Token Community Group)**
181-
182-
DTCG is the **emerging standard** for design tokens. TokenScript natively supports DTCG format.
183-
184-
**DTCG example:**
180+
### 6. **JSON**
185181

186182
<TokenScriptCodeBlock mode="json" showResult={false}>
187183
{`{
@@ -194,7 +190,7 @@ DTCG is the **emerging standard** for design tokens. TokenScript natively suppor
194190
</TokenScriptCodeBlock>
195191

196192
TokenScript can:
197-
- Read DTCG JSON
193+
- Read JSON
198194
- Evaluate expressions in `$value` fields
199195
- Preserve `$type`, `$description`, and other metadata
200196

@@ -230,7 +226,7 @@ return result;`}
230226

231227
### Mode 2: Token Resolution Mode
232228

233-
**Use case:** Resolving design token files (DTCG JSON)
229+
**Use case:** Resolving design token files
234230

235231
In this mode, TokenScript resolves expressions embedded in token definitions:
236232

@@ -249,7 +245,7 @@ In this mode, TokenScript resolves expressions embedded in token definitions:
249245
- 🟡 Limited to expressions (no multi-line scripts)
250246

251247
**When to use:**
252-
- Processing DTCG JSON files
248+
- Processing JSON files
253249
- Resolving token sets
254250
- Build-time token generation
255251

@@ -397,7 +393,7 @@ variable lightest: Color = lighten(lighter, 20);`}
397393
**Reality:** Even small projects benefit from computed tokens and type safety.
398394

399395
### ❌ "I can't use my existing tokens"
400-
**Reality:** TokenScript reads standard DTCG JSON. Your existing tokens work as-is.
396+
**Reality:** TokenScript reads standard JSON. Your existing tokens work as-is.
401397

402398
---
403399

docs-intro/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ npx tsx generate-spacing.ts
203203

204204
#### 1. Resolve Your Own Tokens
205205

206-
Replace `tokens.json` with your actual DTCG token file:
206+
Replace `tokens.json` with your actual JSON token file:
207207

208208
```bash
209209
tokenscript parse_json --json ./your-tokens.json --output ./dist/resolved.json

docs-intro/why-tokenscript.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,12 @@ $spacing-large: $spacing-base * 2;
7575
- ❌ Can't use in JavaScript, native apps, etc.
7676
- ❌ No color space conversions
7777
- ❌ Poor tooling for design tokens
78-
- ❌ Not DTCG compliant
7978

8079
---
8180

8281
## The Solution: TokenScript
8382

84-
TokenScript is a **type-safe language for design token logic** that integrates seamlessly with DTCG (Design Token Community Group) standards.
83+
TokenScript is a **type-safe language for design token logic** that integrates seamlessly with token files.
8584

8685
### What makes TokenScript different?
8786

@@ -231,7 +230,7 @@ variable remSpacing: NumberWithUnit = baseSpacing.convertTo("rem", 16); // 1rem
231230
|----------------------|------------------|------------------|---------------|---------------|------------------|
232231
| **Type Safety** | ✅ Built-in | ❌ No | ❌ No | ❌ No | 🟡 DIY |
233232
| **Color Spaces** | ✅ Oklch, P3+ | 🟡 Basic | 🟡 Basic | 🟡 Limited | 🟡 DIY |
234-
| **DTCG Standard** | ✅ Native | 🟡 Plugin | ❌ No | N/A | 🟡 DIY |
233+
| **JSON** | ✅ Native | 🟡 Plugin | ❌ No | N/A | 🟡 DIY |
235234
| **Logic/Conditions** | ✅ Full language | 🟡 Transforms | 🟡 Limited | ❌ No | ✅ Yes (custom) |
236235
| **Embeddable** | ✅ CLI + API | 🟡 CLI mainly | 🟡 CLI mainly | N/A | 🟡 DIY |
237236
| **Learning Curve** | 🟡 Moderate | 🟡 Moderate | 🟢 Easy | 🟢 Easy | 🔴 High (custom) |
@@ -241,7 +240,7 @@ variable remSpacing: NumberWithUnit = baseSpacing.convertTo("rem", 16); // 1rem
241240

242241
## What Can You Build With TokenScript?
243242

244-
- **Design token resolvers** - Turn DTCG JSON into platform-specific formats
243+
- **Design token resolvers** - Turn JSON into platform-specific formats
245244
- **Theme generators** - Auto-generate theme variations
246245
- **Color tools** - Build color palette generators
247246
- **Design system validators** - Check token consistency

docs-language/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ console.log(result?.toString()); // "[16px, 24px]"
425425

426426
:::tip References in Different Modes
427427
- **Interpreter mode** (like above): References are simple names: `{baseSpacing}`
428-
- **Token resolution mode** (DTCG JSON): References can use dots: `{spacing.base}`
428+
- **Token resolution mode** References can use dots: `{spacing.base}`
429429

430430
[Learn more about modes](/intro/concepts#two-modes-of-operation)
431431
:::

0 commit comments

Comments
 (0)