@utrecht/design-tokens 2.2.0 → 2.3.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 +6 -0
- package/dist/dark/index.tokens.json +334 -2
- package/dist/dark/list.d.ts +14 -0
- package/dist/dark/list.mjs +30694 -0
- package/dist/dark/tokens.cjs +332 -0
- package/dist/dark/tokens.d.ts +178 -2
- package/dist/dark/tokens.json +332 -0
- package/dist/index.tokens.json +334 -2
- package/dist/list.d.ts +14 -0
- package/dist/list.mjs +31811 -0
- package/dist/tokens.cjs +332 -0
- package/dist/tokens.d.ts +178 -2
- package/dist/tokens.json +332 -0
- package/package.json +1 -1
- package/src/css-property-formatter.mjs +2 -1
- package/src/json-list-formatter.js +2 -1
- package/style-dictionary-build.mjs +3 -1
- package/style-dictionary-config.mjs +27 -0
package/dist/tokens.json
CHANGED
|
@@ -2260,6 +2260,7 @@
|
|
|
2260
2260
|
}
|
|
2261
2261
|
}
|
|
2262
2262
|
},
|
|
2263
|
+
"alternate-lang-nav": {},
|
|
2263
2264
|
"article": {
|
|
2264
2265
|
"max-inline-size": {
|
|
2265
2266
|
"$extensions": {
|
|
@@ -3592,6 +3593,51 @@
|
|
|
3592
3593
|
]
|
|
3593
3594
|
}
|
|
3594
3595
|
},
|
|
3596
|
+
"body": {
|
|
3597
|
+
"font-family": {
|
|
3598
|
+
"$extensions": {
|
|
3599
|
+
"nl.nldesignsystem.css.property": {
|
|
3600
|
+
"syntax": "*",
|
|
3601
|
+
"inherits": true
|
|
3602
|
+
},
|
|
3603
|
+
"nl.nldesignsystem.figma.supports-token": true
|
|
3604
|
+
},
|
|
3605
|
+
"type": "fontFamilies"
|
|
3606
|
+
},
|
|
3607
|
+
"font-size": {
|
|
3608
|
+
"$extensions": {
|
|
3609
|
+
"nl.nldesignsystem.css.property": {
|
|
3610
|
+
"syntax": "<length>",
|
|
3611
|
+
"inherits": true
|
|
3612
|
+
},
|
|
3613
|
+
"nl.nldesignsystem.figma.supports-token": true
|
|
3614
|
+
},
|
|
3615
|
+
"type": "fontSizes"
|
|
3616
|
+
},
|
|
3617
|
+
"font-weight": {
|
|
3618
|
+
"$extensions": {
|
|
3619
|
+
"nl.nldesignsystem.css.property": {
|
|
3620
|
+
"syntax": "<number>",
|
|
3621
|
+
"inherits": true
|
|
3622
|
+
},
|
|
3623
|
+
"nl.nldesignsystem.figma.supports-token": true
|
|
3624
|
+
},
|
|
3625
|
+
"type": "fontWeights"
|
|
3626
|
+
},
|
|
3627
|
+
"line-height": {
|
|
3628
|
+
"$extensions": {
|
|
3629
|
+
"nl.nldesignsystem.css.property": {
|
|
3630
|
+
"syntax": [
|
|
3631
|
+
"<length>",
|
|
3632
|
+
"<number>"
|
|
3633
|
+
],
|
|
3634
|
+
"inherits": true
|
|
3635
|
+
},
|
|
3636
|
+
"nl.nldesignsystem.figma.supports-token": true
|
|
3637
|
+
},
|
|
3638
|
+
"type": "lineHeights"
|
|
3639
|
+
}
|
|
3640
|
+
},
|
|
3595
3641
|
"breadcrumb-nav": {
|
|
3596
3642
|
"min-block-size": {
|
|
3597
3643
|
"$extensions": {
|
|
@@ -11596,6 +11642,20 @@
|
|
|
11596
11642
|
}
|
|
11597
11643
|
}
|
|
11598
11644
|
},
|
|
11645
|
+
"combobox": {
|
|
11646
|
+
"popover": {
|
|
11647
|
+
"z-index": {
|
|
11648
|
+
"$extensions": {
|
|
11649
|
+
"nl.nldesignsystem.css.property": {
|
|
11650
|
+
"syntax": "<number>",
|
|
11651
|
+
"inherits": true
|
|
11652
|
+
},
|
|
11653
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
11654
|
+
},
|
|
11655
|
+
"type": "other"
|
|
11656
|
+
}
|
|
11657
|
+
}
|
|
11658
|
+
},
|
|
11599
11659
|
"action": {
|
|
11600
11660
|
"activate": {
|
|
11601
11661
|
"cursor": {
|
|
@@ -20851,6 +20911,7 @@
|
|
|
20851
20911
|
]
|
|
20852
20912
|
}
|
|
20853
20913
|
},
|
|
20914
|
+
"html-content": {},
|
|
20854
20915
|
"iban-data": {},
|
|
20855
20916
|
"icon": {
|
|
20856
20917
|
"color": {
|
|
@@ -24297,6 +24358,26 @@
|
|
|
24297
24358
|
]
|
|
24298
24359
|
},
|
|
24299
24360
|
"content": {
|
|
24361
|
+
"background-color": {
|
|
24362
|
+
"$extensions": {
|
|
24363
|
+
"nl.nldesignsystem.css.property": {
|
|
24364
|
+
"syntax": "<color>",
|
|
24365
|
+
"inherits": true
|
|
24366
|
+
},
|
|
24367
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
24368
|
+
},
|
|
24369
|
+
"type": "color"
|
|
24370
|
+
},
|
|
24371
|
+
"color": {
|
|
24372
|
+
"$extensions": {
|
|
24373
|
+
"nl.nldesignsystem.css.property": {
|
|
24374
|
+
"syntax": "<color>",
|
|
24375
|
+
"inherits": true
|
|
24376
|
+
},
|
|
24377
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
24378
|
+
},
|
|
24379
|
+
"type": "color"
|
|
24380
|
+
},
|
|
24300
24381
|
"max-inline-size": {
|
|
24301
24382
|
"$extensions": {
|
|
24302
24383
|
"nl.nldesignsystem.css.property": {
|
|
@@ -25560,6 +25641,90 @@
|
|
|
25560
25641
|
}
|
|
25561
25642
|
}
|
|
25562
25643
|
},
|
|
25644
|
+
"page-body": {
|
|
25645
|
+
"background-color": {
|
|
25646
|
+
"$extensions": {
|
|
25647
|
+
"nl.nldesignsystem.css.property": {
|
|
25648
|
+
"syntax": "<color>",
|
|
25649
|
+
"inherits": true
|
|
25650
|
+
},
|
|
25651
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
25652
|
+
},
|
|
25653
|
+
"type": "color"
|
|
25654
|
+
},
|
|
25655
|
+
"color": {
|
|
25656
|
+
"$extensions": {
|
|
25657
|
+
"nl.nldesignsystem.css.property": {
|
|
25658
|
+
"syntax": "<color>",
|
|
25659
|
+
"inherits": true
|
|
25660
|
+
},
|
|
25661
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
25662
|
+
},
|
|
25663
|
+
"type": "color"
|
|
25664
|
+
},
|
|
25665
|
+
"content": {
|
|
25666
|
+
"background-color": {
|
|
25667
|
+
"$extensions": {
|
|
25668
|
+
"nl.nldesignsystem.css.property": {
|
|
25669
|
+
"syntax": "<color>",
|
|
25670
|
+
"inherits": true
|
|
25671
|
+
},
|
|
25672
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
25673
|
+
},
|
|
25674
|
+
"type": "color"
|
|
25675
|
+
},
|
|
25676
|
+
"color": {
|
|
25677
|
+
"$extensions": {
|
|
25678
|
+
"nl.nldesignsystem.css.property": {
|
|
25679
|
+
"syntax": "<color>",
|
|
25680
|
+
"inherits": true
|
|
25681
|
+
},
|
|
25682
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
25683
|
+
},
|
|
25684
|
+
"type": "color"
|
|
25685
|
+
},
|
|
25686
|
+
"padding-block-start": {
|
|
25687
|
+
"$extensions": {
|
|
25688
|
+
"nl.nldesignsystem.css.property": {
|
|
25689
|
+
"syntax": "<length>",
|
|
25690
|
+
"inherits": true
|
|
25691
|
+
},
|
|
25692
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
25693
|
+
},
|
|
25694
|
+
"type": "spacing"
|
|
25695
|
+
},
|
|
25696
|
+
"padding-block-end": {
|
|
25697
|
+
"$extensions": {
|
|
25698
|
+
"nl.nldesignsystem.css.property": {
|
|
25699
|
+
"syntax": "<length>",
|
|
25700
|
+
"inherits": true
|
|
25701
|
+
},
|
|
25702
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
25703
|
+
},
|
|
25704
|
+
"type": "spacing"
|
|
25705
|
+
},
|
|
25706
|
+
"padding-inline-start": {
|
|
25707
|
+
"$extensions": {
|
|
25708
|
+
"nl.nldesignsystem.css.property": {
|
|
25709
|
+
"syntax": "<length>",
|
|
25710
|
+
"inherits": true
|
|
25711
|
+
},
|
|
25712
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
25713
|
+
},
|
|
25714
|
+
"type": "spacing"
|
|
25715
|
+
},
|
|
25716
|
+
"padding-inine-end": {
|
|
25717
|
+
"$extensions": {
|
|
25718
|
+
"nl.nldesignsystem.css.property": {
|
|
25719
|
+
"syntax": "<length>",
|
|
25720
|
+
"inherits": true
|
|
25721
|
+
},
|
|
25722
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
25723
|
+
},
|
|
25724
|
+
"type": "spacing"
|
|
25725
|
+
}
|
|
25726
|
+
}
|
|
25727
|
+
},
|
|
25563
25728
|
"page-content": {
|
|
25564
25729
|
"padding-block-start": {
|
|
25565
25730
|
"$extensions": {
|
|
@@ -25897,6 +26062,68 @@
|
|
|
25897
26062
|
"page-footer",
|
|
25898
26063
|
"padding-block-start"
|
|
25899
26064
|
]
|
|
26065
|
+
},
|
|
26066
|
+
"content": {
|
|
26067
|
+
"color": {
|
|
26068
|
+
"$extensions": {
|
|
26069
|
+
"nl.nldesignsystem.css.property": {
|
|
26070
|
+
"syntax": "<color>",
|
|
26071
|
+
"inherits": true
|
|
26072
|
+
},
|
|
26073
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
26074
|
+
},
|
|
26075
|
+
"type": "color"
|
|
26076
|
+
},
|
|
26077
|
+
"background-color": {
|
|
26078
|
+
"$extensions": {
|
|
26079
|
+
"nl.nldesignsystem.css.property": {
|
|
26080
|
+
"syntax": "<color>",
|
|
26081
|
+
"inherits": true
|
|
26082
|
+
},
|
|
26083
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
26084
|
+
},
|
|
26085
|
+
"type": "color"
|
|
26086
|
+
},
|
|
26087
|
+
"padding-inline-end": {
|
|
26088
|
+
"$extensions": {
|
|
26089
|
+
"nl.nldesignsystem.css.property": {
|
|
26090
|
+
"syntax": "<length>",
|
|
26091
|
+
"inherits": true
|
|
26092
|
+
},
|
|
26093
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
26094
|
+
},
|
|
26095
|
+
"type": "spacing"
|
|
26096
|
+
},
|
|
26097
|
+
"padding-inline-start": {
|
|
26098
|
+
"$extensions": {
|
|
26099
|
+
"nl.nldesignsystem.css.property": {
|
|
26100
|
+
"syntax": "<length>",
|
|
26101
|
+
"inherits": true
|
|
26102
|
+
},
|
|
26103
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
26104
|
+
},
|
|
26105
|
+
"type": "spacing"
|
|
26106
|
+
},
|
|
26107
|
+
"padding-block-end": {
|
|
26108
|
+
"$extensions": {
|
|
26109
|
+
"nl.nldesignsystem.css.property": {
|
|
26110
|
+
"syntax": "<length>",
|
|
26111
|
+
"inherits": true
|
|
26112
|
+
},
|
|
26113
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
26114
|
+
},
|
|
26115
|
+
"type": "spacing"
|
|
26116
|
+
},
|
|
26117
|
+
"padding-block-start": {
|
|
26118
|
+
"$extensions": {
|
|
26119
|
+
"nl.nldesignsystem.css.property": {
|
|
26120
|
+
"syntax": "<length>",
|
|
26121
|
+
"inherits": true
|
|
26122
|
+
},
|
|
26123
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
26124
|
+
},
|
|
26125
|
+
"type": "spacing"
|
|
26126
|
+
}
|
|
25900
26127
|
}
|
|
25901
26128
|
},
|
|
25902
26129
|
"page-header": {
|
|
@@ -25910,6 +26137,16 @@
|
|
|
25910
26137
|
},
|
|
25911
26138
|
"type": "color"
|
|
25912
26139
|
},
|
|
26140
|
+
"border-block-end-color": {
|
|
26141
|
+
"$extensions": {
|
|
26142
|
+
"nl.nldesignsystem.css.property": {
|
|
26143
|
+
"syntax": "<color>",
|
|
26144
|
+
"inherits": true
|
|
26145
|
+
},
|
|
26146
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
26147
|
+
},
|
|
26148
|
+
"type": "color"
|
|
26149
|
+
},
|
|
25913
26150
|
"color": {
|
|
25914
26151
|
"$extensions": {
|
|
25915
26152
|
"nl.nldesignsystem.css.property": {
|
|
@@ -26067,8 +26304,71 @@
|
|
|
26067
26304
|
"page-header",
|
|
26068
26305
|
"padding-inline-end"
|
|
26069
26306
|
]
|
|
26307
|
+
},
|
|
26308
|
+
"content": {
|
|
26309
|
+
"background-color": {
|
|
26310
|
+
"$extensions": {
|
|
26311
|
+
"nl.nldesignsystem.css.property": {
|
|
26312
|
+
"syntax": "<color>",
|
|
26313
|
+
"inherits": true
|
|
26314
|
+
},
|
|
26315
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
26316
|
+
},
|
|
26317
|
+
"type": "color"
|
|
26318
|
+
},
|
|
26319
|
+
"color": {
|
|
26320
|
+
"$extensions": {
|
|
26321
|
+
"nl.nldesignsystem.css.property": {
|
|
26322
|
+
"syntax": "<color>",
|
|
26323
|
+
"inherits": true
|
|
26324
|
+
},
|
|
26325
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
26326
|
+
},
|
|
26327
|
+
"type": "color"
|
|
26328
|
+
},
|
|
26329
|
+
"padding-block-start": {
|
|
26330
|
+
"$extensions": {
|
|
26331
|
+
"nl.nldesignsystem.css.property": {
|
|
26332
|
+
"syntax": "<length>",
|
|
26333
|
+
"inherits": true
|
|
26334
|
+
},
|
|
26335
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
26336
|
+
},
|
|
26337
|
+
"type": "spacing"
|
|
26338
|
+
},
|
|
26339
|
+
"padding-block-end": {
|
|
26340
|
+
"$extensions": {
|
|
26341
|
+
"nl.nldesignsystem.css.property": {
|
|
26342
|
+
"syntax": "<length>",
|
|
26343
|
+
"inherits": true
|
|
26344
|
+
},
|
|
26345
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
26346
|
+
},
|
|
26347
|
+
"type": "spacing"
|
|
26348
|
+
},
|
|
26349
|
+
"padding-inline-start": {
|
|
26350
|
+
"$extensions": {
|
|
26351
|
+
"nl.nldesignsystem.css.property": {
|
|
26352
|
+
"syntax": "<length>",
|
|
26353
|
+
"inherits": true
|
|
26354
|
+
},
|
|
26355
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
26356
|
+
},
|
|
26357
|
+
"type": "spacing"
|
|
26358
|
+
},
|
|
26359
|
+
"padding-inline-end": {
|
|
26360
|
+
"$extensions": {
|
|
26361
|
+
"nl.nldesignsystem.css.property": {
|
|
26362
|
+
"syntax": "<length>",
|
|
26363
|
+
"inherits": true
|
|
26364
|
+
},
|
|
26365
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
26366
|
+
},
|
|
26367
|
+
"type": "spacing"
|
|
26368
|
+
}
|
|
26070
26369
|
}
|
|
26071
26370
|
},
|
|
26371
|
+
"page-layout": {},
|
|
26072
26372
|
"page": {
|
|
26073
26373
|
"background-color": {
|
|
26074
26374
|
"$extensions": {
|
|
@@ -29659,6 +29959,38 @@
|
|
|
29659
29959
|
}
|
|
29660
29960
|
}
|
|
29661
29961
|
},
|
|
29962
|
+
"root": {
|
|
29963
|
+
"background-color": {
|
|
29964
|
+
"$extensions": {
|
|
29965
|
+
"nl.nldesignsystem.css.property": {
|
|
29966
|
+
"syntax": "<color>",
|
|
29967
|
+
"inherits": true
|
|
29968
|
+
},
|
|
29969
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
29970
|
+
},
|
|
29971
|
+
"type": "color"
|
|
29972
|
+
},
|
|
29973
|
+
"color": {
|
|
29974
|
+
"$extensions": {
|
|
29975
|
+
"nl.nldesignsystem.css.property": {
|
|
29976
|
+
"syntax": "<color>",
|
|
29977
|
+
"inherits": true
|
|
29978
|
+
},
|
|
29979
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
29980
|
+
},
|
|
29981
|
+
"type": "color"
|
|
29982
|
+
},
|
|
29983
|
+
"font-family": {
|
|
29984
|
+
"$extensions": {
|
|
29985
|
+
"nl.nldesignsystem.css.property": {
|
|
29986
|
+
"syntax": "*",
|
|
29987
|
+
"inherits": true
|
|
29988
|
+
},
|
|
29989
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
29990
|
+
},
|
|
29991
|
+
"type": "fontFamilies"
|
|
29992
|
+
}
|
|
29993
|
+
},
|
|
29662
29994
|
"search-bar": {
|
|
29663
29995
|
"button": {
|
|
29664
29996
|
"background-color": {
|
package/package.json
CHANGED
|
@@ -20,7 +20,9 @@ const build = async () => {
|
|
|
20
20
|
...createStyleDictionaryConfig({
|
|
21
21
|
themeName: `${themeConfig.prefix}-theme`,
|
|
22
22
|
}),
|
|
23
|
-
log:
|
|
23
|
+
log: {
|
|
24
|
+
verbosity: 'verbose',
|
|
25
|
+
},
|
|
24
26
|
preprocessors: ['tokens-studio', 'dtcg-delegate'],
|
|
25
27
|
source: [
|
|
26
28
|
'../../components/**/tokens.json',
|
|
@@ -10,6 +10,25 @@ export const createStyleDictionaryConfig = ({ themeName, source = ['src/**/*.tok
|
|
|
10
10
|
'json/list': function ({ dictionary }) {
|
|
11
11
|
return JSON.stringify(dictionary.allTokens.sort(sortByName), null, ' ');
|
|
12
12
|
},
|
|
13
|
+
'javascript/es6-list': function ({ dictionary }) {
|
|
14
|
+
return `export default ${JSON.stringify(dictionary.allTokens.sort(sortByName), null, ' ')};\n`;
|
|
15
|
+
},
|
|
16
|
+
'typescript/list-declarations': function ({ dictionary }) {
|
|
17
|
+
return `
|
|
18
|
+
declare interface DesignToken {
|
|
19
|
+
value?: any;
|
|
20
|
+
type?: string;
|
|
21
|
+
comment?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
themeable?: boolean;
|
|
24
|
+
attributes?: Record<string, unknown>;
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default tokens;
|
|
29
|
+
|
|
30
|
+
declare const tokens: DesignToken[];`;
|
|
31
|
+
},
|
|
13
32
|
},
|
|
14
33
|
transforms: {
|
|
15
34
|
'fontSize/pxToRem': {
|
|
@@ -75,6 +94,10 @@ export const createStyleDictionaryConfig = ({ themeName, source = ['src/**/*.tok
|
|
|
75
94
|
destination: 'list.json',
|
|
76
95
|
format: 'json/list',
|
|
77
96
|
},
|
|
97
|
+
{
|
|
98
|
+
destination: 'list.mjs',
|
|
99
|
+
format: 'javascript/es6-list',
|
|
100
|
+
},
|
|
78
101
|
{
|
|
79
102
|
destination: 'variables.json',
|
|
80
103
|
format: 'json/flat',
|
|
@@ -177,6 +200,10 @@ export const createStyleDictionaryConfig = ({ themeName, source = ['src/**/*.tok
|
|
|
177
200
|
format: 'typescript/module-declarations',
|
|
178
201
|
destination: 'tokens.d.ts',
|
|
179
202
|
},
|
|
203
|
+
{
|
|
204
|
+
format: 'typescript/list-declarations',
|
|
205
|
+
destination: 'list.d.ts',
|
|
206
|
+
},
|
|
180
207
|
],
|
|
181
208
|
},
|
|
182
209
|
'deprecated-js': {
|