@digdir/designsystemet 1.0.0-next.44 → 1.0.0-next.46
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/dist/bin/config.d.ts +156 -0
- package/dist/bin/config.d.ts.map +1 -0
- package/dist/bin/designsystemet.js +124 -18
- package/dist/bin/options.d.ts +16 -0
- package/dist/bin/options.d.ts.map +1 -0
- package/dist/config.schema.json +78 -0
- package/dist/src/build-scripts/createJsonSchema.d.ts +2 -0
- package/dist/src/build-scripts/createJsonSchema.d.ts.map +1 -0
- package/dist/src/build-scripts/createJsonSchema.js +15 -0
- package/dist/src/colors/theme.d.ts.map +1 -1
- package/dist/src/colors/theme.js +1 -1
- package/dist/src/migrations/beta-to-v1.js +40 -40
- package/dist/src/tokens/build/configs.d.ts.map +1 -1
- package/dist/src/tokens/build/configs.js +39 -26
- package/dist/src/tokens/build/formats/css.d.ts +40 -0
- package/dist/src/tokens/build/formats/css.d.ts.map +1 -1
- package/dist/src/tokens/build/formats/css.js +68 -15
- package/dist/src/tokens/build/formats/js-tokens.d.ts.map +1 -1
- package/dist/src/tokens/build/formats/js-tokens.js +22 -9
- package/dist/src/tokens/build/transformers.d.ts +1 -1
- package/dist/src/tokens/build/transformers.d.ts.map +1 -1
- package/dist/src/tokens/build/transformers.js +10 -14
- package/dist/src/tokens/build.js +1 -1
- package/dist/src/tokens/create.d.ts +15 -11
- package/dist/src/tokens/create.d.ts.map +1 -1
- package/dist/src/tokens/create.js +15 -6
- package/dist/src/tokens/design-tokens/default/Figma/components.json +3 -3
- package/dist/src/tokens/design-tokens/default/primitives/globals.json +0 -12
- package/dist/src/tokens/design-tokens/default/primitives/modes/size/global.json +96 -0
- package/dist/src/tokens/design-tokens/default/primitives/modes/size/large.json +16 -0
- package/dist/src/tokens/design-tokens/default/primitives/modes/size/medium.json +16 -0
- package/dist/src/tokens/design-tokens/default/primitives/modes/size/small.json +16 -0
- package/dist/src/tokens/design-tokens/default/primitives/{size/default.json → modes/typography/size/large.json} +11 -86
- package/dist/src/{init/template/default-files/design-tokens/primitives/size/default.json → tokens/design-tokens/default/primitives/modes/typography/size/medium.json} +0 -75
- package/dist/src/tokens/design-tokens/default/primitives/modes/typography/size/small.json +100 -0
- package/dist/src/tokens/design-tokens/default/semantic/style.json +58 -136
- package/dist/src/tokens/design-tokens/template/$metadata.json +7 -2
- package/dist/src/tokens/design-tokens/template/$themes.json +1319 -1196
- package/dist/src/tokens/design-tokens/template/semantic/color-base-file.json +1 -1
- package/dist/src/tokens/design-tokens/template/themes/theme-base-file.json +15 -11
- package/dist/src/tokens/index.d.ts +2 -1
- package/dist/src/tokens/index.d.ts.map +1 -1
- package/dist/src/tokens/index.js +2 -2
- package/dist/src/tokens/template.d.ts.map +1 -1
- package/dist/src/tokens/template.js +2 -1
- package/dist/src/tokens/types.d.ts +6 -0
- package/dist/src/tokens/types.d.ts.map +1 -1
- package/dist/src/tokens/utils.d.ts +1 -0
- package/dist/src/tokens/utils.d.ts.map +1 -1
- package/dist/src/tokens/utils.js +2 -0
- package/dist/src/tokens/write/generate$metadata.d.ts.map +1 -1
- package/dist/src/tokens/write/generate$metadata.js +7 -1
- package/dist/src/tokens/write/generate$themes.d.ts +1 -0
- package/dist/src/tokens/write/generate$themes.d.ts.map +1 -1
- package/dist/src/tokens/write/generate$themes.js +141 -3
- package/dist/src/tokens/write.d.ts +2 -3
- package/dist/src/tokens/write.d.ts.map +1 -1
- package/dist/src/tokens/write.js +9 -2
- package/package.json +17 -7
- package/dist/src/init/createTokensPackage.d.ts +0 -5
- package/dist/src/init/createTokensPackage.d.ts.map +0 -1
- package/dist/src/init/createTokensPackage.js +0 -273
- package/dist/src/init/generateMetadataJson.d.ts +0 -6
- package/dist/src/init/generateMetadataJson.d.ts.map +0 -1
- package/dist/src/init/generateMetadataJson.js +0 -24
- package/dist/src/init/generateThemesJson.d.ts +0 -3
- package/dist/src/init/generateThemesJson.d.ts.map +0 -1
- package/dist/src/init/generateThemesJson.js +0 -103
- package/dist/src/init/index.d.ts +0 -3
- package/dist/src/init/index.d.ts.map +0 -1
- package/dist/src/init/index.js +0 -10
- package/dist/src/init/nextStepsMarkdown.d.ts +0 -3
- package/dist/src/init/nextStepsMarkdown.d.ts.map +0 -1
- package/dist/src/init/nextStepsMarkdown.js +0 -92
- package/dist/src/init/template/default-files/README.md +0 -10
- package/dist/src/init/template/default-files/design-tokens/Figma/components.json +0 -22
- package/dist/src/init/template/default-files/design-tokens/README.md +0 -3
- package/dist/src/init/template/default-files/design-tokens/primitives/globals.json +0 -161
- package/dist/src/init/template/default-files/design-tokens/semantic/color.json +0 -572
- package/dist/src/init/template/default-files/design-tokens/semantic/style.json +0 -564
- package/dist/src/init/template/default-files/design-tokens/themes/theme.json +0 -334
- package/dist/src/init/template/template-files/design-tokens/primitives/modes/colors/contrast/global.json +0 -376
- package/dist/src/init/template/template-files/design-tokens/primitives/modes/colors/contrast/theme-template.json +0 -314
- package/dist/src/init/template/template-files/design-tokens/primitives/modes/colors/dark/global.json +0 -376
- package/dist/src/init/template/template-files/design-tokens/primitives/modes/colors/dark/theme-template.json +0 -314
- package/dist/src/init/template/template-files/design-tokens/primitives/modes/colors/light/global.json +0 -376
- package/dist/src/init/template/template-files/design-tokens/primitives/modes/colors/light/theme-template.json +0 -314
- package/dist/src/init/template/template-files/design-tokens/primitives/modes/typography/primary/theme-template.json +0 -30
- package/dist/src/init/template/template-files/design-tokens/primitives/modes/typography/secondary/theme-template.json +0 -30
- package/dist/src/init/template/template-files/design-tokens/themes/theme-template.json +0 -334
- package/dist/src/init/template/template-files/package.json +0 -24
- package/dist/src/init/utils.d.ts +0 -4
- package/dist/src/init/utils.d.ts.map +0 -1
- package/dist/src/init/utils.js +0 -15
- package/dist/src/tokens/build/utils/noCase.d.ts +0 -11
- package/dist/src/tokens/build/utils/noCase.d.ts.map +0 -1
- package/dist/src/tokens/build/utils/noCase.js +0 -24
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"border-width": {
|
|
3
|
-
"1": {
|
|
4
|
-
"$type": "borderWidth",
|
|
5
|
-
"$value": "1px"
|
|
6
|
-
},
|
|
7
|
-
"2": {
|
|
8
|
-
"$type": "borderWidth",
|
|
9
|
-
"$value": "2px"
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"shadow": {
|
|
13
|
-
"100": {
|
|
14
|
-
"$type": "boxShadow",
|
|
15
|
-
"$value": [
|
|
16
|
-
{
|
|
17
|
-
"color": "rgba(0,0,0,0.16)",
|
|
18
|
-
"x": "0",
|
|
19
|
-
"y": "0",
|
|
20
|
-
"blur": "1",
|
|
21
|
-
"spread": "0"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"x": "0",
|
|
25
|
-
"y": "1",
|
|
26
|
-
"blur": "2",
|
|
27
|
-
"spread": "0",
|
|
28
|
-
"color": "rgba(0,0,0,0.12)"
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
"200": {
|
|
33
|
-
"$type": "boxShadow",
|
|
34
|
-
"$value": [
|
|
35
|
-
{
|
|
36
|
-
"color": "rgba(0,0,0,0.15)",
|
|
37
|
-
"x": "0",
|
|
38
|
-
"y": "0",
|
|
39
|
-
"blur": "1",
|
|
40
|
-
"spread": "0"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"color": "rgba(0,0,0,0.12)",
|
|
44
|
-
"x": "0",
|
|
45
|
-
"y": "1",
|
|
46
|
-
"blur": "2",
|
|
47
|
-
"spread": "0"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"x": "0",
|
|
51
|
-
"y": "2",
|
|
52
|
-
"blur": "4",
|
|
53
|
-
"spread": "0",
|
|
54
|
-
"color": "rgba(0,0,0,0.1)"
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
"300": {
|
|
59
|
-
"$type": "boxShadow",
|
|
60
|
-
"$value": [
|
|
61
|
-
{
|
|
62
|
-
"color": "rgba(0,0,0,0.14)",
|
|
63
|
-
"x": "0",
|
|
64
|
-
"y": "0",
|
|
65
|
-
"blur": "1",
|
|
66
|
-
"spread": "0"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"color": "rgba(0,0,0,0.12)",
|
|
70
|
-
"x": "0",
|
|
71
|
-
"y": "2",
|
|
72
|
-
"blur": "4",
|
|
73
|
-
"spread": "0"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"x": "0",
|
|
77
|
-
"y": "4",
|
|
78
|
-
"blur": "8",
|
|
79
|
-
"spread": "0",
|
|
80
|
-
"color": "rgba(0,0,0,0.12)"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
"400": {
|
|
85
|
-
"$type": "boxShadow",
|
|
86
|
-
"$value": [
|
|
87
|
-
{
|
|
88
|
-
"color": "rgba(0,0,0,0.13)",
|
|
89
|
-
"x": "0",
|
|
90
|
-
"y": "0",
|
|
91
|
-
"blur": "1",
|
|
92
|
-
"spread": "0"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"color": "rgba(0,0,0,0.13)",
|
|
96
|
-
"x": "0",
|
|
97
|
-
"y": "3",
|
|
98
|
-
"blur": "5",
|
|
99
|
-
"spread": "0"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"x": "0",
|
|
103
|
-
"y": "6",
|
|
104
|
-
"blur": "12",
|
|
105
|
-
"spread": "0",
|
|
106
|
-
"color": "rgba(0,0,0,0.14)"
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
"500": {
|
|
111
|
-
"$type": "boxShadow",
|
|
112
|
-
"$value": [
|
|
113
|
-
{
|
|
114
|
-
"color": "rgba(0,0,0,0.12)",
|
|
115
|
-
"x": "0",
|
|
116
|
-
"y": "0",
|
|
117
|
-
"blur": "1",
|
|
118
|
-
"spread": "0"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"color": "rgba(0,0,0,0.16)",
|
|
122
|
-
"x": "0",
|
|
123
|
-
"y": "4",
|
|
124
|
-
"blur": "8",
|
|
125
|
-
"spread": "0"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"x": "0",
|
|
129
|
-
"y": "12",
|
|
130
|
-
"blur": "24",
|
|
131
|
-
"spread": "0",
|
|
132
|
-
"color": "rgba(0,0,0,0.16)"
|
|
133
|
-
}
|
|
134
|
-
]
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"border-radius": {
|
|
138
|
-
"base": {
|
|
139
|
-
"$type": "borderRadius",
|
|
140
|
-
"$value": "4"
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
"opacity": {
|
|
144
|
-
"30": {
|
|
145
|
-
"$type": "opacity",
|
|
146
|
-
"$value": "30%"
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
"sizing": {
|
|
150
|
-
"base": {
|
|
151
|
-
"$type": "sizing",
|
|
152
|
-
"$value": "4"
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
"spacing": {
|
|
156
|
-
"base": {
|
|
157
|
-
"$type": "spacing",
|
|
158
|
-
"$value": "4"
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|