@primer/primitives 8.2.4-rc.e3ccaf09 → 8.2.4-rc.eed8be14
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 +17 -18
- package/dist/css/functional/size/border.css +1 -0
- package/dist/css/functional/themes/dark-colorblind.css +6 -0
- package/dist/css/functional/themes/dark-dimmed.css +6 -0
- package/dist/css/functional/themes/dark-high-contrast.css +8 -2
- package/dist/css/functional/themes/dark-tritanopia.css +6 -0
- package/dist/css/functional/themes/dark.css +6 -0
- package/dist/css/functional/themes/light-colorblind.css +6 -0
- package/dist/css/functional/themes/light-high-contrast.css +8 -2
- package/dist/css/functional/themes/light-tritanopia.css +6 -0
- package/dist/css/functional/themes/light.css +6 -0
- package/dist/css/primitives.css +1 -0
- package/dist/docs/functional/size/border.json +31 -0
- package/dist/docs/functional/themes/dark-colorblind.json +87 -0
- package/dist/docs/functional/themes/dark-dimmed.json +87 -0
- package/dist/docs/functional/themes/dark-high-contrast.json +90 -3
- package/dist/docs/functional/themes/dark-tritanopia.json +87 -0
- package/dist/docs/functional/themes/dark.json +87 -0
- package/dist/docs/functional/themes/light-colorblind.json +87 -0
- package/dist/docs/functional/themes/light-high-contrast.json +90 -3
- package/dist/docs/functional/themes/light-tritanopia.json +87 -0
- package/dist/docs/functional/themes/light.json +87 -0
- package/dist/fallbacks/functional/size/border.json +1 -0
- package/dist/figma/dimension/dimension.json +14 -0
- package/dist/figma/themes/dark-colorblind.json +48 -0
- package/dist/figma/themes/dark-dimmed.json +48 -0
- package/dist/figma/themes/dark-high-contrast.json +64 -16
- package/dist/figma/themes/dark-tritanopia.json +48 -0
- package/dist/figma/themes/dark.json +48 -0
- package/dist/figma/themes/light-colorblind.json +48 -0
- package/dist/figma/themes/light-high-contrast.json +64 -16
- package/dist/figma/themes/light-tritanopia.json +48 -0
- package/dist/figma/themes/light.json +48 -0
- package/dist/internalCss/dark-colorblind.css +6 -0
- package/dist/internalCss/dark-dimmed.css +6 -0
- package/dist/internalCss/dark-high-contrast.css +8 -2
- package/dist/internalCss/dark-tritanopia.css +6 -0
- package/dist/internalCss/dark.css +6 -0
- package/dist/internalCss/light-colorblind.css +6 -0
- package/dist/internalCss/light-high-contrast.css +8 -2
- package/dist/internalCss/light-tritanopia.css +6 -0
- package/dist/internalCss/light.css +6 -0
- package/dist/styleLint/functional/size/border.json +31 -0
- package/dist/styleLint/functional/themes/dark-colorblind.json +87 -0
- package/dist/styleLint/functional/themes/dark-dimmed.json +87 -0
- package/dist/styleLint/functional/themes/dark-high-contrast.json +90 -3
- package/dist/styleLint/functional/themes/dark-tritanopia.json +87 -0
- package/dist/styleLint/functional/themes/dark.json +87 -0
- package/dist/styleLint/functional/themes/light-colorblind.json +87 -0
- package/dist/styleLint/functional/themes/light-high-contrast.json +90 -3
- package/dist/styleLint/functional/themes/light-tritanopia.json +87 -0
- package/dist/styleLint/functional/themes/light.json +87 -0
- package/package.json +12 -9
- package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +16 -0
- package/src/tokens/functional/color/dark/patterns-dark.json5 +26 -0
- package/src/tokens/functional/color/dark/primitives-dark.json5 +12 -0
- package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +6 -0
- package/src/tokens/functional/color/light/patterns-light.json5 +26 -0
- package/src/tokens/functional/color/light/primitives-light.json5 +12 -0
- package/src/tokens/functional/size/border.json +13 -0
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ Data is served from the `dist/` folder:
|
|
|
27
27
|
|
|
28
28
|
All available imports:
|
|
29
29
|
|
|
30
|
-
```
|
|
30
|
+
```css
|
|
31
31
|
/* size/typography */
|
|
32
32
|
@import '@primer/primitives/dist/css/base/size/size.css';
|
|
33
33
|
@import '@primer/primitives/dist/css/base/typography/typography.css';
|
|
@@ -70,13 +70,13 @@ In the individual files, e.g. `light.high-contrast.json5` you can now add tokens
|
|
|
70
70
|
You can create color tokens that inherit a color but have a different alpha value by adding the `alpha` property.
|
|
71
71
|
**Note:** The original alpha value will be replaced by your value. If you add `alpha: 0.4` to a color, it doesn't matter if the color you reference has no `alpha` or `alpha: 0.7`, the new token will always have newly the defined value of `alpha: 0.4`.
|
|
72
72
|
|
|
73
|
-
```
|
|
73
|
+
```json5
|
|
74
74
|
{
|
|
75
75
|
muted: {
|
|
76
76
|
$value: '{base.color.blue.3}',
|
|
77
77
|
alpha: 0.4, // the opacity value of the color === 40% opaque
|
|
78
78
|
$type: 'color',
|
|
79
|
-
}
|
|
79
|
+
},
|
|
80
80
|
}
|
|
81
81
|
```
|
|
82
82
|
|
|
@@ -88,17 +88,17 @@ The `mix` proeprty mixes the color it gets into the main color from the `$value`
|
|
|
88
88
|
|
|
89
89
|
A `mix` proprty must always have a `color` and a `weight` child. `color` can be a `hex` value or a reference to a valid color. The `weight` property must receive a value between `0.0` and `1`.
|
|
90
90
|
|
|
91
|
-
```
|
|
91
|
+
```json5
|
|
92
92
|
{
|
|
93
93
|
control: {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
$value: '{base.color.gray.4}', // main color
|
|
95
|
+
$type: 'color',
|
|
96
|
+
mix: {
|
|
97
|
+
color: '{base.color.gray.5}', // color to mix into the main color
|
|
98
|
+
weight: 0.2, // amount of the mix color that is added === 20% of gray.5 is mix into gray.4
|
|
99
|
+
},
|
|
99
100
|
},
|
|
100
101
|
}
|
|
101
|
-
}
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
#### Extensions property
|
|
@@ -113,7 +113,7 @@ For our Figma export we use the following meta data:
|
|
|
113
113
|
|
|
114
114
|
Code example
|
|
115
115
|
|
|
116
|
-
```
|
|
116
|
+
```json5
|
|
117
117
|
bgColor: {
|
|
118
118
|
$value: '{borderColor.accent.muted}',
|
|
119
119
|
$type: 'color',
|
|
@@ -133,18 +133,18 @@ Token names have to be in camelCase or kebab-case and may only include letters,
|
|
|
133
133
|
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`.
|
|
134
134
|
In this case you can create the follwing structure. The `@` will be removed from the name and act as the default value.
|
|
135
135
|
|
|
136
|
-
```
|
|
136
|
+
```json5
|
|
137
137
|
{
|
|
138
138
|
bgColor: {
|
|
139
139
|
accent: {
|
|
140
|
-
|
|
140
|
+
'@': {
|
|
141
141
|
// values for accent (default)
|
|
142
142
|
},
|
|
143
|
-
|
|
143
|
+
muted: {
|
|
144
144
|
// values for accent-muted
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
148
|
}
|
|
149
149
|
```
|
|
150
150
|
|
|
@@ -155,4 +155,3 @@ In this case you can create the follwing structure. The `@` will be removed from
|
|
|
155
155
|
[primer]: https://github.com/primer/primer
|
|
156
156
|
[npm]: https://www.npmjs.com/
|
|
157
157
|
[install-npm]: https://docs.npmjs.com/getting-started/installing-node
|
|
158
|
-
[scss]: https://sass-lang.com/
|
|
@@ -428,9 +428,12 @@
|
|
|
428
428
|
--label-coral-fgColor-rest: #f7794b;
|
|
429
429
|
--label-coral-fgColor-hover: #fa8c61;
|
|
430
430
|
--label-coral-fgColor-active: #fdaa86;
|
|
431
|
+
--tooltip-bgColor: #6e7681;
|
|
432
|
+
--tooltip-fgColor: #ffffff;
|
|
431
433
|
--fgColor-default: #e6edf3;
|
|
432
434
|
--fgColor-muted: #8d96a0;
|
|
433
435
|
--fgColor-onEmphasis: #ffffff;
|
|
436
|
+
--fgColor-onInverse: #010409;
|
|
434
437
|
--fgColor-white: #ffffff;
|
|
435
438
|
--fgColor-black: #010409;
|
|
436
439
|
--fgColor-disabled: #6e7681;
|
|
@@ -992,9 +995,12 @@
|
|
|
992
995
|
--label-coral-fgColor-rest: #f7794b;
|
|
993
996
|
--label-coral-fgColor-hover: #fa8c61;
|
|
994
997
|
--label-coral-fgColor-active: #fdaa86;
|
|
998
|
+
--tooltip-bgColor: #6e7681;
|
|
999
|
+
--tooltip-fgColor: #ffffff;
|
|
995
1000
|
--fgColor-default: #e6edf3;
|
|
996
1001
|
--fgColor-muted: #8d96a0;
|
|
997
1002
|
--fgColor-onEmphasis: #ffffff;
|
|
1003
|
+
--fgColor-onInverse: #010409;
|
|
998
1004
|
--fgColor-white: #ffffff;
|
|
999
1005
|
--fgColor-black: #010409;
|
|
1000
1006
|
--fgColor-disabled: #6e7681;
|
|
@@ -428,9 +428,12 @@
|
|
|
428
428
|
--label-coral-fgColor-rest: #f7794b;
|
|
429
429
|
--label-coral-fgColor-hover: #fa8c61;
|
|
430
430
|
--label-coral-fgColor-active: #fdaa86;
|
|
431
|
+
--tooltip-bgColor: #636e7b;
|
|
432
|
+
--tooltip-fgColor: #cdd9e5;
|
|
431
433
|
--fgColor-default: #c5d1de;
|
|
432
434
|
--fgColor-muted: #778491;
|
|
433
435
|
--fgColor-onEmphasis: #cdd9e5;
|
|
436
|
+
--fgColor-onInverse: #1c2128;
|
|
434
437
|
--fgColor-white: #cdd9e5;
|
|
435
438
|
--fgColor-black: #1c2128;
|
|
436
439
|
--fgColor-disabled: #636e7b;
|
|
@@ -992,9 +995,12 @@
|
|
|
992
995
|
--label-coral-fgColor-rest: #f7794b;
|
|
993
996
|
--label-coral-fgColor-hover: #fa8c61;
|
|
994
997
|
--label-coral-fgColor-active: #fdaa86;
|
|
998
|
+
--tooltip-bgColor: #636e7b;
|
|
999
|
+
--tooltip-fgColor: #cdd9e5;
|
|
995
1000
|
--fgColor-default: #c5d1de;
|
|
996
1001
|
--fgColor-muted: #778491;
|
|
997
1002
|
--fgColor-onEmphasis: #cdd9e5;
|
|
1003
|
+
--fgColor-onInverse: #1c2128;
|
|
998
1004
|
--fgColor-white: #cdd9e5;
|
|
999
1005
|
--fgColor-black: #1c2128;
|
|
1000
1006
|
--fgColor-disabled: #636e7b;
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
--controlTrack-bgColor-disabled: #9ea7b3;
|
|
207
207
|
--controlTrack-fgColor-rest: #fbfcfd;
|
|
208
208
|
--controlTrack-fgColor-disabled: #0a0c10;
|
|
209
|
-
--controlTrack-borderColor-rest: #
|
|
209
|
+
--controlTrack-borderColor-rest: #9ea7b3;
|
|
210
210
|
--controlTrack-borderColor-disabled: #9ea7b3;
|
|
211
211
|
--controlKnob-bgColor-rest: #010409;
|
|
212
212
|
--controlKnob-bgColor-disabled: #3d424db3;
|
|
@@ -428,9 +428,12 @@
|
|
|
428
428
|
--label-coral-fgColor-rest: #f7794b;
|
|
429
429
|
--label-coral-fgColor-hover: #fa8c61;
|
|
430
430
|
--label-coral-fgColor-active: #fdaa86;
|
|
431
|
+
--tooltip-bgColor: #ffffff;
|
|
432
|
+
--tooltip-fgColor: #010409;
|
|
431
433
|
--fgColor-default: #fbfcfd;
|
|
432
434
|
--fgColor-muted: #f0f3f6;
|
|
433
435
|
--fgColor-onEmphasis: #0a0c10;
|
|
436
|
+
--fgColor-onInverse: #010409;
|
|
434
437
|
--fgColor-white: #ffffff;
|
|
435
438
|
--fgColor-black: #010409;
|
|
436
439
|
--fgColor-disabled: #9ea7b3;
|
|
@@ -770,7 +773,7 @@
|
|
|
770
773
|
--controlTrack-bgColor-disabled: #9ea7b3;
|
|
771
774
|
--controlTrack-fgColor-rest: #fbfcfd;
|
|
772
775
|
--controlTrack-fgColor-disabled: #0a0c10;
|
|
773
|
-
--controlTrack-borderColor-rest: #
|
|
776
|
+
--controlTrack-borderColor-rest: #9ea7b3;
|
|
774
777
|
--controlTrack-borderColor-disabled: #9ea7b3;
|
|
775
778
|
--controlKnob-bgColor-rest: #010409;
|
|
776
779
|
--controlKnob-bgColor-disabled: #3d424db3;
|
|
@@ -992,9 +995,12 @@
|
|
|
992
995
|
--label-coral-fgColor-rest: #f7794b;
|
|
993
996
|
--label-coral-fgColor-hover: #fa8c61;
|
|
994
997
|
--label-coral-fgColor-active: #fdaa86;
|
|
998
|
+
--tooltip-bgColor: #ffffff;
|
|
999
|
+
--tooltip-fgColor: #010409;
|
|
995
1000
|
--fgColor-default: #fbfcfd;
|
|
996
1001
|
--fgColor-muted: #f0f3f6;
|
|
997
1002
|
--fgColor-onEmphasis: #0a0c10;
|
|
1003
|
+
--fgColor-onInverse: #010409;
|
|
998
1004
|
--fgColor-white: #ffffff;
|
|
999
1005
|
--fgColor-black: #010409;
|
|
1000
1006
|
--fgColor-disabled: #9ea7b3;
|
|
@@ -428,9 +428,12 @@
|
|
|
428
428
|
--label-coral-fgColor-rest: #f7794b;
|
|
429
429
|
--label-coral-fgColor-hover: #fa8c61;
|
|
430
430
|
--label-coral-fgColor-active: #fdaa86;
|
|
431
|
+
--tooltip-bgColor: #6e7681;
|
|
432
|
+
--tooltip-fgColor: #ffffff;
|
|
431
433
|
--fgColor-default: #e6edf3;
|
|
432
434
|
--fgColor-muted: #8d96a0;
|
|
433
435
|
--fgColor-onEmphasis: #ffffff;
|
|
436
|
+
--fgColor-onInverse: #010409;
|
|
434
437
|
--fgColor-white: #ffffff;
|
|
435
438
|
--fgColor-black: #010409;
|
|
436
439
|
--fgColor-disabled: #6e7681;
|
|
@@ -992,9 +995,12 @@
|
|
|
992
995
|
--label-coral-fgColor-rest: #f7794b;
|
|
993
996
|
--label-coral-fgColor-hover: #fa8c61;
|
|
994
997
|
--label-coral-fgColor-active: #fdaa86;
|
|
998
|
+
--tooltip-bgColor: #6e7681;
|
|
999
|
+
--tooltip-fgColor: #ffffff;
|
|
995
1000
|
--fgColor-default: #e6edf3;
|
|
996
1001
|
--fgColor-muted: #8d96a0;
|
|
997
1002
|
--fgColor-onEmphasis: #ffffff;
|
|
1003
|
+
--fgColor-onInverse: #010409;
|
|
998
1004
|
--fgColor-white: #ffffff;
|
|
999
1005
|
--fgColor-black: #010409;
|
|
1000
1006
|
--fgColor-disabled: #6e7681;
|
|
@@ -428,9 +428,12 @@
|
|
|
428
428
|
--label-coral-fgColor-rest: #f7794b;
|
|
429
429
|
--label-coral-fgColor-hover: #fa8c61;
|
|
430
430
|
--label-coral-fgColor-active: #fdaa86;
|
|
431
|
+
--tooltip-bgColor: #6e7681;
|
|
432
|
+
--tooltip-fgColor: #ffffff;
|
|
431
433
|
--fgColor-default: #e6edf3;
|
|
432
434
|
--fgColor-muted: #8d96a0;
|
|
433
435
|
--fgColor-onEmphasis: #ffffff;
|
|
436
|
+
--fgColor-onInverse: #010409;
|
|
434
437
|
--fgColor-white: #ffffff;
|
|
435
438
|
--fgColor-black: #010409;
|
|
436
439
|
--fgColor-disabled: #6e7681;
|
|
@@ -992,9 +995,12 @@
|
|
|
992
995
|
--label-coral-fgColor-rest: #f7794b;
|
|
993
996
|
--label-coral-fgColor-hover: #fa8c61;
|
|
994
997
|
--label-coral-fgColor-active: #fdaa86;
|
|
998
|
+
--tooltip-bgColor: #6e7681;
|
|
999
|
+
--tooltip-fgColor: #ffffff;
|
|
995
1000
|
--fgColor-default: #e6edf3;
|
|
996
1001
|
--fgColor-muted: #8d96a0;
|
|
997
1002
|
--fgColor-onEmphasis: #ffffff;
|
|
1003
|
+
--fgColor-onInverse: #010409;
|
|
998
1004
|
--fgColor-white: #ffffff;
|
|
999
1005
|
--fgColor-black: #010409;
|
|
1000
1006
|
--fgColor-disabled: #6e7681;
|
|
@@ -429,9 +429,12 @@
|
|
|
429
429
|
--label-coral-fgColor-rest: #ba2e12;
|
|
430
430
|
--label-coral-fgColor-hover: #9b2712;
|
|
431
431
|
--label-coral-fgColor-active: #7e2011;
|
|
432
|
+
--tooltip-bgColor: #24292f;
|
|
433
|
+
--tooltip-fgColor: #ffffff;
|
|
432
434
|
--fgColor-default: #1f2328;
|
|
433
435
|
--fgColor-muted: #636c76;
|
|
434
436
|
--fgColor-onEmphasis: #ffffff;
|
|
437
|
+
--fgColor-onInverse: #ffffff;
|
|
435
438
|
--fgColor-white: #ffffff;
|
|
436
439
|
--fgColor-black: #1f2328;
|
|
437
440
|
--fgColor-disabled: #8c959f;
|
|
@@ -993,9 +996,12 @@
|
|
|
993
996
|
--label-coral-fgColor-rest: #ba2e12;
|
|
994
997
|
--label-coral-fgColor-hover: #9b2712;
|
|
995
998
|
--label-coral-fgColor-active: #7e2011;
|
|
999
|
+
--tooltip-bgColor: #24292f;
|
|
1000
|
+
--tooltip-fgColor: #ffffff;
|
|
996
1001
|
--fgColor-default: #1f2328;
|
|
997
1002
|
--fgColor-muted: #636c76;
|
|
998
1003
|
--fgColor-onEmphasis: #ffffff;
|
|
1004
|
+
--fgColor-onInverse: #ffffff;
|
|
999
1005
|
--fgColor-white: #ffffff;
|
|
1000
1006
|
--fgColor-black: #1f2328;
|
|
1001
1007
|
--fgColor-disabled: #8c959f;
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
--controlTrack-bgColor-disabled: #66707b;
|
|
207
207
|
--controlTrack-fgColor-rest: #010409;
|
|
208
208
|
--controlTrack-fgColor-disabled: #ffffff;
|
|
209
|
-
--controlTrack-borderColor-rest: #
|
|
209
|
+
--controlTrack-borderColor-rest: #66707b;
|
|
210
210
|
--controlTrack-borderColor-disabled: #66707b;
|
|
211
211
|
--controlKnob-bgColor-rest: #ffffff;
|
|
212
212
|
--controlKnob-bgColor-disabled: #ced5dcb3;
|
|
@@ -429,9 +429,12 @@
|
|
|
429
429
|
--label-coral-fgColor-rest: #ba2e12;
|
|
430
430
|
--label-coral-fgColor-hover: #9b2712;
|
|
431
431
|
--label-coral-fgColor-active: #7e2011;
|
|
432
|
+
--tooltip-bgColor: #0e1116;
|
|
433
|
+
--tooltip-fgColor: #ffffff;
|
|
432
434
|
--fgColor-default: #010409;
|
|
433
435
|
--fgColor-muted: #0e1116;
|
|
434
436
|
--fgColor-onEmphasis: #ffffff;
|
|
437
|
+
--fgColor-onInverse: #ffffff;
|
|
435
438
|
--fgColor-white: #ffffff;
|
|
436
439
|
--fgColor-black: #010409;
|
|
437
440
|
--fgColor-disabled: #66707b;
|
|
@@ -770,7 +773,7 @@
|
|
|
770
773
|
--controlTrack-bgColor-disabled: #66707b;
|
|
771
774
|
--controlTrack-fgColor-rest: #010409;
|
|
772
775
|
--controlTrack-fgColor-disabled: #ffffff;
|
|
773
|
-
--controlTrack-borderColor-rest: #
|
|
776
|
+
--controlTrack-borderColor-rest: #66707b;
|
|
774
777
|
--controlTrack-borderColor-disabled: #66707b;
|
|
775
778
|
--controlKnob-bgColor-rest: #ffffff;
|
|
776
779
|
--controlKnob-bgColor-disabled: #ced5dcb3;
|
|
@@ -993,9 +996,12 @@
|
|
|
993
996
|
--label-coral-fgColor-rest: #ba2e12;
|
|
994
997
|
--label-coral-fgColor-hover: #9b2712;
|
|
995
998
|
--label-coral-fgColor-active: #7e2011;
|
|
999
|
+
--tooltip-bgColor: #0e1116;
|
|
1000
|
+
--tooltip-fgColor: #ffffff;
|
|
996
1001
|
--fgColor-default: #010409;
|
|
997
1002
|
--fgColor-muted: #0e1116;
|
|
998
1003
|
--fgColor-onEmphasis: #ffffff;
|
|
1004
|
+
--fgColor-onInverse: #ffffff;
|
|
999
1005
|
--fgColor-white: #ffffff;
|
|
1000
1006
|
--fgColor-black: #010409;
|
|
1001
1007
|
--fgColor-disabled: #66707b;
|
|
@@ -429,9 +429,12 @@
|
|
|
429
429
|
--label-coral-fgColor-rest: #ba2e12;
|
|
430
430
|
--label-coral-fgColor-hover: #9b2712;
|
|
431
431
|
--label-coral-fgColor-active: #7e2011;
|
|
432
|
+
--tooltip-bgColor: #24292f;
|
|
433
|
+
--tooltip-fgColor: #ffffff;
|
|
432
434
|
--fgColor-default: #1f2328;
|
|
433
435
|
--fgColor-muted: #636c76;
|
|
434
436
|
--fgColor-onEmphasis: #ffffff;
|
|
437
|
+
--fgColor-onInverse: #ffffff;
|
|
435
438
|
--fgColor-white: #ffffff;
|
|
436
439
|
--fgColor-black: #1f2328;
|
|
437
440
|
--fgColor-disabled: #8c959f;
|
|
@@ -993,9 +996,12 @@
|
|
|
993
996
|
--label-coral-fgColor-rest: #ba2e12;
|
|
994
997
|
--label-coral-fgColor-hover: #9b2712;
|
|
995
998
|
--label-coral-fgColor-active: #7e2011;
|
|
999
|
+
--tooltip-bgColor: #24292f;
|
|
1000
|
+
--tooltip-fgColor: #ffffff;
|
|
996
1001
|
--fgColor-default: #1f2328;
|
|
997
1002
|
--fgColor-muted: #636c76;
|
|
998
1003
|
--fgColor-onEmphasis: #ffffff;
|
|
1004
|
+
--fgColor-onInverse: #ffffff;
|
|
999
1005
|
--fgColor-white: #ffffff;
|
|
1000
1006
|
--fgColor-black: #1f2328;
|
|
1001
1007
|
--fgColor-disabled: #8c959f;
|
|
@@ -429,9 +429,12 @@
|
|
|
429
429
|
--label-coral-fgColor-rest: #ba2e12;
|
|
430
430
|
--label-coral-fgColor-hover: #9b2712;
|
|
431
431
|
--label-coral-fgColor-active: #7e2011;
|
|
432
|
+
--tooltip-bgColor: #24292f;
|
|
433
|
+
--tooltip-fgColor: #ffffff;
|
|
432
434
|
--fgColor-default: #1f2328;
|
|
433
435
|
--fgColor-muted: #636c76;
|
|
434
436
|
--fgColor-onEmphasis: #ffffff;
|
|
437
|
+
--fgColor-onInverse: #ffffff;
|
|
435
438
|
--fgColor-white: #ffffff;
|
|
436
439
|
--fgColor-black: #1f2328;
|
|
437
440
|
--fgColor-disabled: #8c959f;
|
|
@@ -993,9 +996,12 @@
|
|
|
993
996
|
--label-coral-fgColor-rest: #ba2e12;
|
|
994
997
|
--label-coral-fgColor-hover: #9b2712;
|
|
995
998
|
--label-coral-fgColor-active: #7e2011;
|
|
999
|
+
--tooltip-bgColor: #24292f;
|
|
1000
|
+
--tooltip-fgColor: #ffffff;
|
|
996
1001
|
--fgColor-default: #1f2328;
|
|
997
1002
|
--fgColor-muted: #636c76;
|
|
998
1003
|
--fgColor-onEmphasis: #ffffff;
|
|
1004
|
+
--fgColor-onInverse: #ffffff;
|
|
999
1005
|
--fgColor-white: #ffffff;
|
|
1000
1006
|
--fgColor-black: #1f2328;
|
|
1001
1007
|
--fgColor-disabled: #8c959f;
|
package/dist/css/primitives.css
CHANGED
|
@@ -205,6 +205,37 @@
|
|
|
205
205
|
"attributes": {},
|
|
206
206
|
"path": ["borderRadius", "full"]
|
|
207
207
|
},
|
|
208
|
+
"borderRadius-default": {
|
|
209
|
+
"value": "0.375rem",
|
|
210
|
+
"$type": "dimension",
|
|
211
|
+
"$extensions": {
|
|
212
|
+
"org.primer.figma": {
|
|
213
|
+
"collection": "functional/size",
|
|
214
|
+
"scopes": ["radius"],
|
|
215
|
+
"codeSyntax": {
|
|
216
|
+
"web": "var(--borderRadius-default) /* utility class: .rounded-2 */"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"filePath": "src/tokens/functional/size/border.json",
|
|
221
|
+
"isSource": true,
|
|
222
|
+
"original": {
|
|
223
|
+
"value": "{borderRadius.medium}",
|
|
224
|
+
"$type": "dimension",
|
|
225
|
+
"$extensions": {
|
|
226
|
+
"org.primer.figma": {
|
|
227
|
+
"collection": "functional/size",
|
|
228
|
+
"scopes": ["radius"],
|
|
229
|
+
"codeSyntax": {
|
|
230
|
+
"web": "var(--borderRadius-default) /* utility class: .rounded-2 */"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"name": "borderRadius-default",
|
|
236
|
+
"attributes": {},
|
|
237
|
+
"path": ["borderRadius", "default"]
|
|
238
|
+
},
|
|
208
239
|
"outline-focus-offset": {
|
|
209
240
|
"value": "-0.125rem",
|
|
210
241
|
"$type": "dimension",
|
|
@@ -12560,6 +12560,64 @@
|
|
|
12560
12560
|
"attributes": {},
|
|
12561
12561
|
"path": ["label", "coral", "fgColor", "active"]
|
|
12562
12562
|
},
|
|
12563
|
+
"tooltip-bgColor": {
|
|
12564
|
+
"value": "#6e7681",
|
|
12565
|
+
"$type": "color",
|
|
12566
|
+
"$extensions": {
|
|
12567
|
+
"org.primer.figma": {
|
|
12568
|
+
"collection": "mode",
|
|
12569
|
+
"mode": "dark",
|
|
12570
|
+
"group": "component",
|
|
12571
|
+
"scopes": ["bgColor"]
|
|
12572
|
+
}
|
|
12573
|
+
},
|
|
12574
|
+
"filePath": "src/tokens/functional/color/dark/patterns-dark.json5",
|
|
12575
|
+
"isSource": true,
|
|
12576
|
+
"original": {
|
|
12577
|
+
"value": "{bgColor.emphasis}",
|
|
12578
|
+
"$type": "color",
|
|
12579
|
+
"$extensions": {
|
|
12580
|
+
"org.primer.figma": {
|
|
12581
|
+
"collection": "mode",
|
|
12582
|
+
"mode": "dark",
|
|
12583
|
+
"group": "component",
|
|
12584
|
+
"scopes": ["bgColor"]
|
|
12585
|
+
}
|
|
12586
|
+
}
|
|
12587
|
+
},
|
|
12588
|
+
"name": "tooltip-bgColor",
|
|
12589
|
+
"attributes": {},
|
|
12590
|
+
"path": ["tooltip", "bgColor"]
|
|
12591
|
+
},
|
|
12592
|
+
"tooltip-fgColor": {
|
|
12593
|
+
"value": "#ffffff",
|
|
12594
|
+
"$type": "color",
|
|
12595
|
+
"$extensions": {
|
|
12596
|
+
"org.primer.figma": {
|
|
12597
|
+
"collection": "mode",
|
|
12598
|
+
"mode": "dark",
|
|
12599
|
+
"group": "component",
|
|
12600
|
+
"scopes": ["fgColor"]
|
|
12601
|
+
}
|
|
12602
|
+
},
|
|
12603
|
+
"filePath": "src/tokens/functional/color/dark/patterns-dark.json5",
|
|
12604
|
+
"isSource": true,
|
|
12605
|
+
"original": {
|
|
12606
|
+
"value": "{fgColor.onEmphasis}",
|
|
12607
|
+
"$type": "color",
|
|
12608
|
+
"$extensions": {
|
|
12609
|
+
"org.primer.figma": {
|
|
12610
|
+
"collection": "mode",
|
|
12611
|
+
"mode": "dark",
|
|
12612
|
+
"group": "component",
|
|
12613
|
+
"scopes": ["fgColor"]
|
|
12614
|
+
}
|
|
12615
|
+
}
|
|
12616
|
+
},
|
|
12617
|
+
"name": "tooltip-fgColor",
|
|
12618
|
+
"attributes": {},
|
|
12619
|
+
"path": ["tooltip", "fgColor"]
|
|
12620
|
+
},
|
|
12563
12621
|
"fgColor-default": {
|
|
12564
12622
|
"value": "#e6edf3",
|
|
12565
12623
|
"$type": "color",
|
|
@@ -12681,6 +12739,35 @@
|
|
|
12681
12739
|
"attributes": {},
|
|
12682
12740
|
"path": ["fgColor", "onEmphasis"]
|
|
12683
12741
|
},
|
|
12742
|
+
"fgColor-onInverse": {
|
|
12743
|
+
"value": "#010409",
|
|
12744
|
+
"$type": "color",
|
|
12745
|
+
"$extensions": {
|
|
12746
|
+
"org.primer.figma": {
|
|
12747
|
+
"collection": "mode",
|
|
12748
|
+
"mode": "dark",
|
|
12749
|
+
"group": "semantic",
|
|
12750
|
+
"scopes": ["fgColor"]
|
|
12751
|
+
}
|
|
12752
|
+
},
|
|
12753
|
+
"filePath": "src/tokens/functional/color/dark/primitives-dark.json5",
|
|
12754
|
+
"isSource": true,
|
|
12755
|
+
"original": {
|
|
12756
|
+
"value": "{base.color.black}",
|
|
12757
|
+
"$type": "color",
|
|
12758
|
+
"$extensions": {
|
|
12759
|
+
"org.primer.figma": {
|
|
12760
|
+
"collection": "mode",
|
|
12761
|
+
"mode": "dark",
|
|
12762
|
+
"group": "semantic",
|
|
12763
|
+
"scopes": ["fgColor"]
|
|
12764
|
+
}
|
|
12765
|
+
}
|
|
12766
|
+
},
|
|
12767
|
+
"name": "fgColor-onInverse",
|
|
12768
|
+
"attributes": {},
|
|
12769
|
+
"path": ["fgColor", "onInverse"]
|
|
12770
|
+
},
|
|
12684
12771
|
"fgColor-white": {
|
|
12685
12772
|
"value": "#ffffff",
|
|
12686
12773
|
"$type": "color",
|
|
@@ -12566,6 +12566,64 @@
|
|
|
12566
12566
|
"attributes": {},
|
|
12567
12567
|
"path": ["label", "coral", "fgColor", "active"]
|
|
12568
12568
|
},
|
|
12569
|
+
"tooltip-bgColor": {
|
|
12570
|
+
"value": "#636e7b",
|
|
12571
|
+
"$type": "color",
|
|
12572
|
+
"$extensions": {
|
|
12573
|
+
"org.primer.figma": {
|
|
12574
|
+
"collection": "mode",
|
|
12575
|
+
"mode": "dark",
|
|
12576
|
+
"group": "component",
|
|
12577
|
+
"scopes": ["bgColor"]
|
|
12578
|
+
}
|
|
12579
|
+
},
|
|
12580
|
+
"filePath": "src/tokens/functional/color/dark/patterns-dark.json5",
|
|
12581
|
+
"isSource": true,
|
|
12582
|
+
"original": {
|
|
12583
|
+
"value": "{bgColor.emphasis}",
|
|
12584
|
+
"$type": "color",
|
|
12585
|
+
"$extensions": {
|
|
12586
|
+
"org.primer.figma": {
|
|
12587
|
+
"collection": "mode",
|
|
12588
|
+
"mode": "dark",
|
|
12589
|
+
"group": "component",
|
|
12590
|
+
"scopes": ["bgColor"]
|
|
12591
|
+
}
|
|
12592
|
+
}
|
|
12593
|
+
},
|
|
12594
|
+
"name": "tooltip-bgColor",
|
|
12595
|
+
"attributes": {},
|
|
12596
|
+
"path": ["tooltip", "bgColor"]
|
|
12597
|
+
},
|
|
12598
|
+
"tooltip-fgColor": {
|
|
12599
|
+
"value": "#cdd9e5",
|
|
12600
|
+
"$type": "color",
|
|
12601
|
+
"$extensions": {
|
|
12602
|
+
"org.primer.figma": {
|
|
12603
|
+
"collection": "mode",
|
|
12604
|
+
"mode": "dark",
|
|
12605
|
+
"group": "component",
|
|
12606
|
+
"scopes": ["fgColor"]
|
|
12607
|
+
}
|
|
12608
|
+
},
|
|
12609
|
+
"filePath": "src/tokens/functional/color/dark/patterns-dark.json5",
|
|
12610
|
+
"isSource": true,
|
|
12611
|
+
"original": {
|
|
12612
|
+
"value": "{fgColor.onEmphasis}",
|
|
12613
|
+
"$type": "color",
|
|
12614
|
+
"$extensions": {
|
|
12615
|
+
"org.primer.figma": {
|
|
12616
|
+
"collection": "mode",
|
|
12617
|
+
"mode": "dark",
|
|
12618
|
+
"group": "component",
|
|
12619
|
+
"scopes": ["fgColor"]
|
|
12620
|
+
}
|
|
12621
|
+
}
|
|
12622
|
+
},
|
|
12623
|
+
"name": "tooltip-fgColor",
|
|
12624
|
+
"attributes": {},
|
|
12625
|
+
"path": ["tooltip", "fgColor"]
|
|
12626
|
+
},
|
|
12569
12627
|
"fgColor-default": {
|
|
12570
12628
|
"value": "#c5d1de",
|
|
12571
12629
|
"$type": "color",
|
|
@@ -12687,6 +12745,35 @@
|
|
|
12687
12745
|
"attributes": {},
|
|
12688
12746
|
"path": ["fgColor", "onEmphasis"]
|
|
12689
12747
|
},
|
|
12748
|
+
"fgColor-onInverse": {
|
|
12749
|
+
"value": "#1c2128",
|
|
12750
|
+
"$type": "color",
|
|
12751
|
+
"$extensions": {
|
|
12752
|
+
"org.primer.figma": {
|
|
12753
|
+
"collection": "mode",
|
|
12754
|
+
"mode": "dark",
|
|
12755
|
+
"group": "semantic",
|
|
12756
|
+
"scopes": ["fgColor"]
|
|
12757
|
+
}
|
|
12758
|
+
},
|
|
12759
|
+
"filePath": "src/tokens/functional/color/dark/primitives-dark.json5",
|
|
12760
|
+
"isSource": true,
|
|
12761
|
+
"original": {
|
|
12762
|
+
"value": "{base.color.black}",
|
|
12763
|
+
"$type": "color",
|
|
12764
|
+
"$extensions": {
|
|
12765
|
+
"org.primer.figma": {
|
|
12766
|
+
"collection": "mode",
|
|
12767
|
+
"mode": "dark",
|
|
12768
|
+
"group": "semantic",
|
|
12769
|
+
"scopes": ["fgColor"]
|
|
12770
|
+
}
|
|
12771
|
+
}
|
|
12772
|
+
},
|
|
12773
|
+
"name": "fgColor-onInverse",
|
|
12774
|
+
"attributes": {},
|
|
12775
|
+
"path": ["fgColor", "onInverse"]
|
|
12776
|
+
},
|
|
12690
12777
|
"fgColor-white": {
|
|
12691
12778
|
"value": "#cdd9e5",
|
|
12692
12779
|
"$type": "color",
|