@primer/primitives 7.12.0-rc.806e066 → 7.12.0-rc.9466a2f
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/README.md +21 -0
- package/package.json +1 -1
- package/tokens-next-private/css/functional/size/size.css +6 -0
- package/tokens-next-private/css/functional/themes/dark-colorblind.css +2 -0
- package/tokens-next-private/css/functional/themes/dark-dimmed.css +2 -0
- package/tokens-next-private/css/functional/themes/dark-high-contrast.css +2 -0
- package/tokens-next-private/css/functional/themes/dark-tritanopia.css +2 -0
- package/tokens-next-private/css/functional/themes/dark.css +2 -0
- package/tokens-next-private/css/functional/themes/light-colorblind.css +2 -0
- package/tokens-next-private/css/functional/themes/light-high-contrast.css +2 -0
- package/tokens-next-private/css/functional/themes/light-tritanopia.css +2 -0
- package/tokens-next-private/css/functional/themes/light.css +2 -0
- package/tokens-next-private/docs/functional/size/size.json +298 -88
- package/tokens-next-private/docs/functional/themes/dark-colorblind.json +28 -1
- package/tokens-next-private/docs/functional/themes/dark-dimmed.json +28 -1
- package/tokens-next-private/docs/functional/themes/dark-high-contrast.json +28 -1
- package/tokens-next-private/docs/functional/themes/dark-tritanopia.json +28 -1
- package/tokens-next-private/docs/functional/themes/dark.json +28 -1
- package/tokens-next-private/docs/functional/themes/light-colorblind.json +27 -0
- package/tokens-next-private/docs/functional/themes/light-high-contrast.json +27 -0
- package/tokens-next-private/docs/functional/themes/light-tritanopia.json +27 -0
- package/tokens-next-private/docs/functional/themes/light.json +27 -0
- package/tokens-next-private/fallbacks/color-fallbacks.json +12 -11
- package/tokens-next-private/fallbacks/functional/size/size.json +6 -0
- package/tokens-next-private/figma/dimension/dimension.json +188 -84
- package/tokens-next-private/figma/figma.json +3 -0
- package/tokens-next-private/figma/themes/dark.json +83 -68
- package/tokens-next-private/figma/themes/light.json +83 -68
- package/tokens-next-private/scss/functional/size/size.scss +6 -0
- package/tokens-next-private/scss/functional/themes/dark-colorblind.scss +1 -0
- package/tokens-next-private/scss/functional/themes/dark-dimmed.scss +1 -0
- package/tokens-next-private/scss/functional/themes/dark-high-contrast.scss +1 -0
- package/tokens-next-private/scss/functional/themes/dark-tritanopia.scss +1 -0
- package/tokens-next-private/scss/functional/themes/dark.scss +1 -0
- package/tokens-next-private/scss/functional/themes/light-colorblind.scss +1 -0
- package/tokens-next-private/scss/functional/themes/light-high-contrast.scss +1 -0
- package/tokens-next-private/scss/functional/themes/light-tritanopia.scss +1 -0
- package/tokens-next-private/scss/functional/themes/light.scss +1 -0
- package/tokens-v2-private/css/tokens/base/size/size.css +1 -1
- package/tokens-v2-private/css/tokens/base/typography/typography.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/border.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/breakpoints.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/size-coarse.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/size-fine.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/size.css +1 -1
- package/tokens-v2-private/css/tokens/functional/typography/typography.css +1 -1
- package/tokens-v2-private/js/module/tokens/base/size/size.js +1 -1
- package/tokens-v2-private/js/module/tokens/base/typography/typography.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/border.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/size-fine.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/size.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/viewport.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/typography/typography.js +1 -1
- package/tokens-v2-private/js/tokens/base/size/size.js +1 -1
- package/tokens-v2-private/js/tokens/base/typography/typography.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/border.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/breakpoints.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/size-coarse.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/size-fine.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/size.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/viewport.js +1 -1
- package/tokens-v2-private/js/tokens/functional/typography/typography.js +1 -1
- package/tokens-v2-private/scss/tokens/base/size/size.scss +1 -1
- package/tokens-v2-private/scss/tokens/base/typography/typography.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/border.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/size.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/size/viewport.scss +1 -1
- package/tokens-v2-private/scss/tokens/functional/typography/typography.scss +1 -1
- package/tokens-v2-private/ts/tokens/base/size/size.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/base/size/size.js +1 -1
- package/tokens-v2-private/ts/tokens/base/typography/typography.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/base/typography/typography.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/border.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/border.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/breakpoints.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-coarse.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-fine.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/viewport.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/typography/typography.js +1 -1
package/README.md
CHANGED
|
@@ -194,6 +194,27 @@ Code example
|
|
|
194
194
|
}
|
|
195
195
|
```
|
|
196
196
|
|
|
197
|
+
#### Token names and @-hack
|
|
198
|
+
|
|
199
|
+
Token names have to be in camelCase or kebab-case and may only include letters, numbers and `-`. This is enforced by the token validation (`npm run lint:tokens`).
|
|
200
|
+
The only acception is the `@`-hack. This is used when you want to have a default value and sub-values, e.g. `bgColor.accent` and `bgColor.accent.muted`.
|
|
201
|
+
In this case you can create the follwing structure. The `@` will be removed from the name and act as the default value.
|
|
202
|
+
|
|
203
|
+
```js
|
|
204
|
+
{
|
|
205
|
+
bgColor: {
|
|
206
|
+
accent: {
|
|
207
|
+
"@": {
|
|
208
|
+
// default values
|
|
209
|
+
},
|
|
210
|
+
"muted": {
|
|
211
|
+
// values for accent-muted
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
```
|
|
217
|
+
|
|
197
218
|
## License
|
|
198
219
|
|
|
199
220
|
[MIT](./LICENSE) © [GitHub](https://github.com/)
|
package/package.json
CHANGED
|
@@ -40,6 +40,12 @@
|
|
|
40
40
|
--controlStack-large-gap-auto: 0.5rem;
|
|
41
41
|
--controlStack-large-gap-condensed: 0.5rem;
|
|
42
42
|
--controlStack-large-gap-spacious: 0.75rem;
|
|
43
|
+
--space-xxsmall: 0.125rem;
|
|
44
|
+
--space-xsmall: 0.25rem;
|
|
45
|
+
--space-small: 0.375rem;
|
|
46
|
+
--space-medium: 0.5rem;
|
|
47
|
+
--space-large: 0.75rem;
|
|
48
|
+
--space-xlarge: 1rem;
|
|
43
49
|
--stack-padding-condensed: 0.5rem;
|
|
44
50
|
--stack-padding-normal: 1rem;
|
|
45
51
|
--stack-padding-spacious: 1.5rem;
|
|
@@ -200,6 +200,7 @@
|
|
|
200
200
|
--fgColor-sponsors: #db61a2;
|
|
201
201
|
--bgColor-default: #0d1117;
|
|
202
202
|
--bgColor-muted: #161b22;
|
|
203
|
+
--bgColor-inset: #010409;
|
|
203
204
|
--bgColor-emphasis: #6e7681;
|
|
204
205
|
--bgColor-disabled: #161b22;
|
|
205
206
|
--bgColor-transparent: #00000000;
|
|
@@ -601,6 +602,7 @@
|
|
|
601
602
|
--fgColor-sponsors: #db61a2;
|
|
602
603
|
--bgColor-default: #0d1117;
|
|
603
604
|
--bgColor-muted: #161b22;
|
|
605
|
+
--bgColor-inset: #010409;
|
|
604
606
|
--bgColor-emphasis: #6e7681;
|
|
605
607
|
--bgColor-disabled: #161b22;
|
|
606
608
|
--bgColor-transparent: #00000000;
|
|
@@ -200,6 +200,7 @@
|
|
|
200
200
|
--fgColor-sponsors: #c96198;
|
|
201
201
|
--bgColor-default: #22272e;
|
|
202
202
|
--bgColor-muted: #2d333b;
|
|
203
|
+
--bgColor-inset: #1c2128;
|
|
203
204
|
--bgColor-emphasis: #636e7b;
|
|
204
205
|
--bgColor-disabled: #2d333b;
|
|
205
206
|
--bgColor-transparent: #00000000;
|
|
@@ -601,6 +602,7 @@
|
|
|
601
602
|
--fgColor-sponsors: #c96198;
|
|
602
603
|
--bgColor-default: #22272e;
|
|
603
604
|
--bgColor-muted: #2d333b;
|
|
605
|
+
--bgColor-inset: #1c2128;
|
|
604
606
|
--bgColor-emphasis: #636e7b;
|
|
605
607
|
--bgColor-disabled: #2d333b;
|
|
606
608
|
--bgColor-transparent: #00000000;
|
|
@@ -200,6 +200,7 @@
|
|
|
200
200
|
--fgColor-sponsors: #ef6eb1;
|
|
201
201
|
--bgColor-default: #0a0c10;
|
|
202
202
|
--bgColor-muted: #272b33;
|
|
203
|
+
--bgColor-inset: #010409;
|
|
203
204
|
--bgColor-emphasis: #ffffff;
|
|
204
205
|
--bgColor-disabled: #272b33;
|
|
205
206
|
--bgColor-transparent: #00000000;
|
|
@@ -601,6 +602,7 @@
|
|
|
601
602
|
--fgColor-sponsors: #ef6eb1;
|
|
602
603
|
--bgColor-default: #0a0c10;
|
|
603
604
|
--bgColor-muted: #272b33;
|
|
605
|
+
--bgColor-inset: #010409;
|
|
604
606
|
--bgColor-emphasis: #ffffff;
|
|
605
607
|
--bgColor-disabled: #272b33;
|
|
606
608
|
--bgColor-transparent: #00000000;
|
|
@@ -200,6 +200,7 @@
|
|
|
200
200
|
--fgColor-sponsors: #db61a2;
|
|
201
201
|
--bgColor-default: #0d1117;
|
|
202
202
|
--bgColor-muted: #161b22;
|
|
203
|
+
--bgColor-inset: #010409;
|
|
203
204
|
--bgColor-emphasis: #6e7681;
|
|
204
205
|
--bgColor-disabled: #161b22;
|
|
205
206
|
--bgColor-transparent: #00000000;
|
|
@@ -601,6 +602,7 @@
|
|
|
601
602
|
--fgColor-sponsors: #db61a2;
|
|
602
603
|
--bgColor-default: #0d1117;
|
|
603
604
|
--bgColor-muted: #161b22;
|
|
605
|
+
--bgColor-inset: #010409;
|
|
604
606
|
--bgColor-emphasis: #6e7681;
|
|
605
607
|
--bgColor-disabled: #161b22;
|
|
606
608
|
--bgColor-transparent: #00000000;
|
|
@@ -200,6 +200,7 @@
|
|
|
200
200
|
--fgColor-sponsors: #db61a2;
|
|
201
201
|
--bgColor-default: #0d1117;
|
|
202
202
|
--bgColor-muted: #161b22;
|
|
203
|
+
--bgColor-inset: #010409;
|
|
203
204
|
--bgColor-emphasis: #6e7681;
|
|
204
205
|
--bgColor-disabled: #161b22;
|
|
205
206
|
--bgColor-transparent: #00000000;
|
|
@@ -601,6 +602,7 @@
|
|
|
601
602
|
--fgColor-sponsors: #db61a2;
|
|
602
603
|
--bgColor-default: #0d1117;
|
|
603
604
|
--bgColor-muted: #161b22;
|
|
605
|
+
--bgColor-inset: #010409;
|
|
604
606
|
--bgColor-emphasis: #6e7681;
|
|
605
607
|
--bgColor-disabled: #161b22;
|
|
606
608
|
--bgColor-transparent: #00000000;
|
|
@@ -201,6 +201,7 @@
|
|
|
201
201
|
--fgColor-sponsors: #bf3989;
|
|
202
202
|
--bgColor-default: #ffffff;
|
|
203
203
|
--bgColor-muted: #f6f8fa;
|
|
204
|
+
--bgColor-inset: #f6f8fa;
|
|
204
205
|
--bgColor-emphasis: #24292f;
|
|
205
206
|
--bgColor-disabled: #f6f8fa;
|
|
206
207
|
--bgColor-transparent: #ffffff00;
|
|
@@ -602,6 +603,7 @@
|
|
|
602
603
|
--fgColor-sponsors: #bf3989;
|
|
603
604
|
--bgColor-default: #ffffff;
|
|
604
605
|
--bgColor-muted: #f6f8fa;
|
|
606
|
+
--bgColor-inset: #f6f8fa;
|
|
605
607
|
--bgColor-emphasis: #24292f;
|
|
606
608
|
--bgColor-disabled: #f6f8fa;
|
|
607
609
|
--bgColor-transparent: #ffffff00;
|
|
@@ -201,6 +201,7 @@
|
|
|
201
201
|
--fgColor-sponsors: #971368;
|
|
202
202
|
--bgColor-default: #ffffff;
|
|
203
203
|
--bgColor-muted: #e7ecf0;
|
|
204
|
+
--bgColor-inset: #ffffff;
|
|
204
205
|
--bgColor-emphasis: #0e1116;
|
|
205
206
|
--bgColor-disabled: #e7ecf0;
|
|
206
207
|
--bgColor-transparent: #ffffff00;
|
|
@@ -602,6 +603,7 @@
|
|
|
602
603
|
--fgColor-sponsors: #971368;
|
|
603
604
|
--bgColor-default: #ffffff;
|
|
604
605
|
--bgColor-muted: #e7ecf0;
|
|
606
|
+
--bgColor-inset: #ffffff;
|
|
605
607
|
--bgColor-emphasis: #0e1116;
|
|
606
608
|
--bgColor-disabled: #e7ecf0;
|
|
607
609
|
--bgColor-transparent: #ffffff00;
|
|
@@ -201,6 +201,7 @@
|
|
|
201
201
|
--fgColor-sponsors: #bf3989;
|
|
202
202
|
--bgColor-default: #ffffff;
|
|
203
203
|
--bgColor-muted: #f6f8fa;
|
|
204
|
+
--bgColor-inset: #f6f8fa;
|
|
204
205
|
--bgColor-emphasis: #24292f;
|
|
205
206
|
--bgColor-disabled: #f6f8fa;
|
|
206
207
|
--bgColor-transparent: #ffffff00;
|
|
@@ -602,6 +603,7 @@
|
|
|
602
603
|
--fgColor-sponsors: #bf3989;
|
|
603
604
|
--bgColor-default: #ffffff;
|
|
604
605
|
--bgColor-muted: #f6f8fa;
|
|
606
|
+
--bgColor-inset: #f6f8fa;
|
|
605
607
|
--bgColor-emphasis: #24292f;
|
|
606
608
|
--bgColor-disabled: #f6f8fa;
|
|
607
609
|
--bgColor-transparent: #ffffff00;
|
|
@@ -201,6 +201,7 @@
|
|
|
201
201
|
--fgColor-sponsors: #bf3989;
|
|
202
202
|
--bgColor-default: #ffffff;
|
|
203
203
|
--bgColor-muted: #f6f8fa;
|
|
204
|
+
--bgColor-inset: #f6f8fa;
|
|
204
205
|
--bgColor-emphasis: #24292f;
|
|
205
206
|
--bgColor-disabled: #f6f8fa;
|
|
206
207
|
--bgColor-transparent: #ffffff00;
|
|
@@ -602,6 +603,7 @@
|
|
|
602
603
|
--fgColor-sponsors: #bf3989;
|
|
603
604
|
--bgColor-default: #ffffff;
|
|
604
605
|
--bgColor-muted: #f6f8fa;
|
|
606
|
+
--bgColor-inset: #f6f8fa;
|
|
605
607
|
--bgColor-emphasis: #24292f;
|
|
606
608
|
--bgColor-disabled: #f6f8fa;
|
|
607
609
|
--bgColor-transparent: #ffffff00;
|