Skip to content

Commit e13bf8e

Browse files
fix: correct Carbon theme snippet formatting and token values (#320)
* fix: escape dollar signs in snippet body values * fix: convert comment sections to valid JSON format
1 parent 9f548a5 commit e13bf8e

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed

.vscode/carbon-theme.code-snippets

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// WARNING: installed by carbon-vscode-snippets local updates will be lost on running package install
22
{
3-
"// ============================================": {},
4-
"// Background Tokens": {},
5-
"// ============================================": {},
3+
// ============================================
4+
// Background Tokens
5+
// ============================================
66
"Carbon background": {
77
"prefix": "$background",
88
"body": "$$background",
@@ -43,9 +43,9 @@
4343
"body": "$$background-brand",
4444
"description": "Feature background color"
4545
},
46-
"// ============================================": {},
47-
"// Layer Tokens": {},
48-
"// ============================================": {},
46+
// ============================================
47+
// Layer Tokens
48+
// ============================================
4949
"Carbon layer 01": {
5050
"prefix": "$layer-01",
5151
"body": "$$layer-01",
@@ -153,12 +153,12 @@
153153
},
154154
"Carbon layer selected disabled": {
155155
"prefix": "$layer-selected-disabled",
156-
"body": "$layer-selected-disabled",
156+
"body": "$$layer-selected-disabled",
157157
"description": "Disabled color for selected layers"
158158
},
159-
"// ============================================": {},
160-
"// Layer Accent Tokens": {},
161-
"// ============================================": {},
159+
// ============================================
160+
// Layer Accent Tokens
161+
// ============================================
162162
"Carbon layer accent 01": {
163163
"prefix": "$layer-accent-01",
164164
"body": "$$layer-accent-01",
@@ -196,7 +196,7 @@
196196
},
197197
"Carbon layer accent hover": {
198198
"prefix": "$layer-accent-hover",
199-
"body": "$layer-accent-hover",
199+
"body": "$$layer-accent-hover",
200200
"description": "Contextual layer accent hover token; Automatically matches layer context"
201201
},
202202
"Carbon layer accent active 01": {
@@ -216,12 +216,12 @@
216216
},
217217
"Carbon layer accent active": {
218218
"prefix": "$layer-accent-active",
219-
"body": "$layer-accent-active",
219+
"body": "$$layer-accent-active",
220220
"description": "Contextual layer accent active token; Automatically matches layer context"
221221
},
222-
"// ============================================": {},
223-
"// Field Tokens": {},
224-
"// ============================================": {},
222+
// ============================================
223+
// Field Tokens
224+
// ============================================
225225
"Carbon field 01": {
226226
"prefix": "$field-01",
227227
"body": "$$field-01",
@@ -262,9 +262,9 @@
262262
"body": "$$field-hover",
263263
"description": "Contextual field hover token; Automatically matches layer context"
264264
},
265-
"// ============================================": {},
266-
"// Border Tokens": {},
267-
"// ============================================": {},
265+
// ============================================
266+
// Border Tokens
267+
// ============================================
268268
"Carbon border interactive": {
269269
"prefix": "$border-interactive",
270270
"body": "$$border-interactive",
@@ -312,7 +312,7 @@
312312
},
313313
"Carbon border subtle selected": {
314314
"prefix": "$border-subtle-selected",
315-
"body": "$border-subtle-selected",
315+
"body": "$$border-subtle-selected",
316316
"description": "Contextual subtle selected border token; Automatically matches layer context"
317317
},
318318
"Carbon border strong 01": {
@@ -365,9 +365,9 @@
365365
"body": "$$border-disabled",
366366
"description": "Disabled border color (excluding border-subtles)"
367367
},
368-
"// ============================================": {},
369-
"// Text Tokens": {},
370-
"// ============================================": {},
368+
// ============================================
369+
// Text Tokens
370+
// ============================================
371371
"Carbon text primary": {
372372
"prefix": "$text-primary",
373373
"body": "$$text-primary",
@@ -385,7 +385,7 @@
385385
},
386386
"Carbon text on color": {
387387
"prefix": "$text-on-color",
388-
"body": "$text-on-color",
388+
"body": "$$text-on-color",
389389
"description": "Text on interactive colors; Text on button colors"
390390
},
391391
"Carbon text on color disabled": {
@@ -413,17 +413,17 @@
413413
"body": "$$text-disabled",
414414
"description": "Disabled text color"
415415
},
416-
"// ============================================": {},
417-
"// Link Tokens": {},
418-
"// ============================================": {},
416+
// ============================================
417+
// Link Tokens
418+
// ============================================
419419
"Carbon link primary": {
420420
"prefix": "$link-primary",
421421
"body": "$$link-primary",
422422
"description": "Primary links"
423423
},
424424
"Carbon link primary hover": {
425425
"prefix": "$link-primary-hover",
426-
"body": "$link-primary-hover",
426+
"body": "$$link-primary-hover",
427427
"description": "Hover color for $link-primary"
428428
},
429429
"Carbon link secondary": {
@@ -438,27 +438,27 @@
438438
},
439439
"Carbon link inverse hover": {
440440
"prefix": "$link-inverse-hover",
441-
"body": "$link-inverse-hover",
441+
"body": "$$link-inverse-hover",
442442
"description": "Hover color for links on $background-inverse backgrounds"
443443
},
444444
"Carbon link inverse active": {
445445
"prefix": "$link-inverse-active",
446-
"body": "$link-inverse-active",
446+
"body": "$$link-inverse-active",
447447
"description": "Active color for links on $background-inverse backgrounds"
448448
},
449449
"Carbon link inverse visited": {
450450
"prefix": "$link-inverse-visited",
451-
"body": "$link-inverse-visited",
451+
"body": "$$link-inverse-visited",
452452
"description": "Color for visited links on $background-inverse backgrounds"
453453
},
454454
"Carbon link visited": {
455455
"prefix": "$link-visited",
456456
"body": "$$link-visited",
457457
"description": "Color for visited links"
458458
},
459-
"// ============================================": {},
460-
"// Icon Tokens": {},
461-
"// ============================================": {},
459+
// ============================================
460+
// Icon Tokens
461+
// ============================================
462462
"Carbon icon primary": {
463463
"prefix": "$icon-primary",
464464
"body": "$$icon-primary",
@@ -471,7 +471,7 @@
471471
},
472472
"Carbon icon on color": {
473473
"prefix": "$icon-on-color",
474-
"body": "$icon-on-color",
474+
"body": "$$icon-on-color",
475475
"description": "Icons on interactive colors; Icons on non-layer colors"
476476
},
477477
"Carbon icon on color disabled": {
@@ -494,9 +494,9 @@
494494
"body": "$$icon-disabled",
495495
"description": "Disabled icon color"
496496
},
497-
"// ============================================": {},
498-
"// Support Tokens": {},
499-
"// ============================================": {},
497+
// ============================================
498+
// Support Tokens
499+
// ============================================
500500
"Carbon support error": {
501501
"prefix": "$support-error",
502502
"body": "$$support-error",
@@ -552,9 +552,9 @@
552552
"body": "$support-caution-undefined",
553553
"description": "Undefined status"
554554
},
555-
"// ============================================": {},
556-
"// Focus Tokens": {},
557-
"// ============================================": {},
555+
// ============================================
556+
// Focus Tokens
557+
// ============================================
558558
"Carbon focus": {
559559
"prefix": "$focus",
560560
"body": "$$focus",
@@ -570,9 +570,9 @@
570570
"body": "$$focus-inverse",
571571
"description": "Focus on high contrast moments"
572572
},
573-
"// ============================================": {},
574-
"// Miscellaneous Tokens": {},
575-
"// ============================================": {},
573+
// ============================================
574+
// Miscellaneous Tokens
575+
// ============================================
576576
"Carbon interactive": {
577577
"prefix": "$interactive",
578578
"body": "$$interactive",

0 commit comments

Comments
 (0)