@primer/primitives 10.5.0 → 10.5.1-rc.aa2b8f62

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.
Files changed (29) hide show
  1. package/README.md +4 -4
  2. package/dist/css/functional/themes/dark-high-contrast.css +4 -4
  3. package/dist/css/functional/themes/light-high-contrast.css +4 -4
  4. package/dist/docs/functional/themes/dark-colorblind.json +28 -2
  5. package/dist/docs/functional/themes/dark-dimmed.json +28 -2
  6. package/dist/docs/functional/themes/dark-high-contrast.json +32 -6
  7. package/dist/docs/functional/themes/dark-tritanopia.json +28 -2
  8. package/dist/docs/functional/themes/dark.json +28 -2
  9. package/dist/docs/functional/themes/light-colorblind.json +28 -2
  10. package/dist/docs/functional/themes/light-high-contrast.json +35 -7
  11. package/dist/docs/functional/themes/light-tritanopia.json +28 -2
  12. package/dist/docs/functional/themes/light.json +28 -2
  13. package/dist/figma/themes/dark-high-contrast.json +7 -7
  14. package/dist/figma/themes/light-high-contrast.json +8 -7
  15. package/dist/internalCss/dark-high-contrast.css +4 -4
  16. package/dist/internalCss/light-high-contrast.css +4 -4
  17. package/dist/styleLint/functional/themes/dark-colorblind.json +28 -2
  18. package/dist/styleLint/functional/themes/dark-dimmed.json +28 -2
  19. package/dist/styleLint/functional/themes/dark-high-contrast.json +32 -6
  20. package/dist/styleLint/functional/themes/dark-tritanopia.json +28 -2
  21. package/dist/styleLint/functional/themes/dark.json +28 -2
  22. package/dist/styleLint/functional/themes/light-colorblind.json +28 -2
  23. package/dist/styleLint/functional/themes/light-high-contrast.json +35 -7
  24. package/dist/styleLint/functional/themes/light-tritanopia.json +28 -2
  25. package/dist/styleLint/functional/themes/light.json +28 -2
  26. package/package.json +1 -1
  27. package/src/tokens/component/button.json5 +4 -0
  28. package/src/tokens/functional/color/borderColor.json5 +1 -1
  29. package/src/tokens/functional/color/control.json5 +56 -157
@@ -3688,7 +3688,7 @@
3688
3688
  "$type": "color"
3689
3689
  },
3690
3690
  "dark-high-contrast": {
3691
- "$value": "#2f3742",
3691
+ "$value": "#9198a1",
3692
3692
  "alpha": 1,
3693
3693
  "filePath": "src/tokens/functional/color/borderColor.json5",
3694
3694
  "isSource": true,
@@ -3717,7 +3717,7 @@
3717
3717
  "$type": "color"
3718
3718
  },
3719
3719
  "dark-high-contrast": {
3720
- "$value": "{base.color.neutral.6}",
3720
+ "$value": "{base.color.neutral.9}",
3721
3721
  "alpha": 1,
3722
3722
  "filePath": "src/tokens/functional/color/borderColor.json5",
3723
3723
  "isSource": true,
@@ -4180,6 +4180,13 @@
4180
4180
  "filePath": "src/tokens/component/button.json5",
4181
4181
  "isSource": true,
4182
4182
  "$type": "color"
4183
+ },
4184
+ "light-high-contrast": {
4185
+ "$value": "#8e1519",
4186
+ "alpha": 1,
4187
+ "filePath": "src/tokens/component/button.json5",
4188
+ "isSource": true,
4189
+ "$type": "color"
4183
4190
  }
4184
4191
  }
4185
4192
  },
@@ -4207,6 +4214,13 @@
4207
4214
  "filePath": "src/tokens/component/button.json5",
4208
4215
  "isSource": true,
4209
4216
  "$type": "color"
4217
+ },
4218
+ "light-high-contrast": {
4219
+ "$value": "{base.color.red.7}",
4220
+ "alpha": 1,
4221
+ "filePath": "src/tokens/component/button.json5",
4222
+ "isSource": true,
4223
+ "$type": "color"
4210
4224
  }
4211
4225
  }
4212
4226
  }
@@ -12691,6 +12705,12 @@
12691
12705
  "filePath": "src/tokens/functional/color/control.json5",
12692
12706
  "isSource": true,
12693
12707
  "$type": "color"
12708
+ },
12709
+ "dark-high-contrast": {
12710
+ "$value": "#ffffff",
12711
+ "filePath": "src/tokens/functional/color/control.json5",
12712
+ "isSource": true,
12713
+ "$type": "color"
12694
12714
  }
12695
12715
  }
12696
12716
  },
@@ -12713,6 +12733,12 @@
12713
12733
  "filePath": "src/tokens/functional/color/control.json5",
12714
12734
  "isSource": true,
12715
12735
  "$type": "color"
12736
+ },
12737
+ "dark-high-contrast": {
12738
+ "$value": "{fgColor.onEmphasis}",
12739
+ "filePath": "src/tokens/functional/color/control.json5",
12740
+ "isSource": true,
12741
+ "$type": "color"
12716
12742
  }
12717
12743
  }
12718
12744
  }
@@ -3680,7 +3680,7 @@
3680
3680
  "$type": "color"
3681
3681
  },
3682
3682
  "dark-high-contrast": {
3683
- "$value": "#2f3742",
3683
+ "$value": "#9198a1",
3684
3684
  "alpha": 1,
3685
3685
  "filePath": "src/tokens/functional/color/borderColor.json5",
3686
3686
  "isSource": true,
@@ -3709,7 +3709,7 @@
3709
3709
  "$type": "color"
3710
3710
  },
3711
3711
  "dark-high-contrast": {
3712
- "$value": "{base.color.neutral.6}",
3712
+ "$value": "{base.color.neutral.9}",
3713
3713
  "alpha": 1,
3714
3714
  "filePath": "src/tokens/functional/color/borderColor.json5",
3715
3715
  "isSource": true,
@@ -4172,6 +4172,13 @@
4172
4172
  "filePath": "src/tokens/component/button.json5",
4173
4173
  "isSource": true,
4174
4174
  "$type": "color"
4175
+ },
4176
+ "light-high-contrast": {
4177
+ "$value": "#8e1519",
4178
+ "alpha": 1,
4179
+ "filePath": "src/tokens/component/button.json5",
4180
+ "isSource": true,
4181
+ "$type": "color"
4175
4182
  }
4176
4183
  }
4177
4184
  },
@@ -4199,6 +4206,13 @@
4199
4206
  "filePath": "src/tokens/component/button.json5",
4200
4207
  "isSource": true,
4201
4208
  "$type": "color"
4209
+ },
4210
+ "light-high-contrast": {
4211
+ "$value": "{base.color.red.7}",
4212
+ "alpha": 1,
4213
+ "filePath": "src/tokens/component/button.json5",
4214
+ "isSource": true,
4215
+ "$type": "color"
4202
4216
  }
4203
4217
  }
4204
4218
  }
@@ -12683,6 +12697,12 @@
12683
12697
  "filePath": "src/tokens/functional/color/control.json5",
12684
12698
  "isSource": true,
12685
12699
  "$type": "color"
12700
+ },
12701
+ "dark-high-contrast": {
12702
+ "$value": "#ffffff",
12703
+ "filePath": "src/tokens/functional/color/control.json5",
12704
+ "isSource": true,
12705
+ "$type": "color"
12686
12706
  }
12687
12707
  }
12688
12708
  },
@@ -12705,6 +12725,12 @@
12705
12725
  "filePath": "src/tokens/functional/color/control.json5",
12706
12726
  "isSource": true,
12707
12727
  "$type": "color"
12728
+ },
12729
+ "dark-high-contrast": {
12730
+ "$value": "{fgColor.onEmphasis}",
12731
+ "filePath": "src/tokens/functional/color/control.json5",
12732
+ "isSource": true,
12733
+ "$type": "color"
12708
12734
  }
12709
12735
  }
12710
12736
  }
@@ -3668,7 +3668,7 @@
3668
3668
  "$type": "color"
3669
3669
  },
3670
3670
  "dark-high-contrast": {
3671
- "$value": "#d1d9e0",
3671
+ "$value": "#59636e",
3672
3672
  "alpha": 1,
3673
3673
  "filePath": "src/tokens/functional/color/borderColor.json5",
3674
3674
  "isSource": true,
@@ -3697,7 +3697,7 @@
3697
3697
  "$type": "color"
3698
3698
  },
3699
3699
  "dark-high-contrast": {
3700
- "$value": "{base.color.neutral.6}",
3700
+ "$value": "{base.color.neutral.9}",
3701
3701
  "alpha": 1,
3702
3702
  "filePath": "src/tokens/functional/color/borderColor.json5",
3703
3703
  "isSource": true,
@@ -4160,6 +4160,13 @@
4160
4160
  "filePath": "src/tokens/component/button.json5",
4161
4161
  "isSource": true,
4162
4162
  "$type": "color"
4163
+ },
4164
+ "light-high-contrast": {
4165
+ "$value": "#82071e",
4166
+ "alpha": 1,
4167
+ "filePath": "src/tokens/component/button.json5",
4168
+ "isSource": true,
4169
+ "$type": "color"
4163
4170
  }
4164
4171
  }
4165
4172
  },
@@ -4187,6 +4194,13 @@
4187
4194
  "filePath": "src/tokens/component/button.json5",
4188
4195
  "isSource": true,
4189
4196
  "$type": "color"
4197
+ },
4198
+ "light-high-contrast": {
4199
+ "$value": "{base.color.red.7}",
4200
+ "alpha": 1,
4201
+ "filePath": "src/tokens/component/button.json5",
4202
+ "isSource": true,
4203
+ "$type": "color"
4190
4204
  }
4191
4205
  }
4192
4206
  }
@@ -12673,6 +12687,12 @@
12673
12687
  "filePath": "src/tokens/functional/color/control.json5",
12674
12688
  "isSource": true,
12675
12689
  "$type": "color"
12690
+ },
12691
+ "dark-high-contrast": {
12692
+ "$value": "#ffffff",
12693
+ "filePath": "src/tokens/functional/color/control.json5",
12694
+ "isSource": true,
12695
+ "$type": "color"
12676
12696
  }
12677
12697
  }
12678
12698
  },
@@ -12695,6 +12715,12 @@
12695
12715
  "filePath": "src/tokens/functional/color/control.json5",
12696
12716
  "isSource": true,
12697
12717
  "$type": "color"
12718
+ },
12719
+ "dark-high-contrast": {
12720
+ "$value": "{fgColor.onEmphasis}",
12721
+ "filePath": "src/tokens/functional/color/control.json5",
12722
+ "isSource": true,
12723
+ "$type": "color"
12698
12724
  }
12699
12725
  }
12700
12726
  }
@@ -3664,7 +3664,7 @@
3664
3664
  "$type": "color"
3665
3665
  },
3666
3666
  "dark-high-contrast": {
3667
- "$value": "#d1d9e0",
3667
+ "$value": "#59636e",
3668
3668
  "alpha": 1,
3669
3669
  "filePath": "src/tokens/functional/color/borderColor.json5",
3670
3670
  "isSource": true,
@@ -3693,7 +3693,7 @@
3693
3693
  "$type": "color"
3694
3694
  },
3695
3695
  "dark-high-contrast": {
3696
- "$value": "{base.color.neutral.6}",
3696
+ "$value": "{base.color.neutral.9}",
3697
3697
  "alpha": 1,
3698
3698
  "filePath": "src/tokens/functional/color/borderColor.json5",
3699
3699
  "isSource": true,
@@ -4077,7 +4077,7 @@
4077
4077
  "key": "{button.danger.bgColor.rest}"
4078
4078
  },
4079
4079
  "button-danger-borderColor-active": {
4080
- "$value": "#013d14",
4080
+ "$value": "#6e011a",
4081
4081
  "$type": "color",
4082
4082
  "$extensions": {
4083
4083
  "org.primer.figma": {
@@ -4087,7 +4087,7 @@
4087
4087
  },
4088
4088
  "org.primer.overrides": {
4089
4089
  "dark": {
4090
- "$value": "#013d14",
4090
+ "$value": "#6e011a",
4091
4091
  "filePath": "src/tokens/component/button.json5",
4092
4092
  "isSource": true,
4093
4093
  "$type": "color"
@@ -4135,7 +4135,7 @@
4135
4135
  "key": "{button.danger.borderColor.active}"
4136
4136
  },
4137
4137
  "button-danger-borderColor-hover": {
4138
- "$value": "#013d14",
4138
+ "$value": "#6e011a",
4139
4139
  "$type": "color",
4140
4140
  "$extensions": {
4141
4141
  "org.primer.figma": {
@@ -4156,13 +4156,21 @@
4156
4156
  "filePath": "src/tokens/component/button.json5",
4157
4157
  "isSource": true,
4158
4158
  "$type": "color"
4159
+ },
4160
+ "light-high-contrast": {
4161
+ "$value": "#6e011a",
4162
+ "alpha": 1,
4163
+ "filePath": "src/tokens/component/button.json5",
4164
+ "isSource": true,
4165
+ "$type": "color"
4159
4166
  }
4160
4167
  }
4161
4168
  },
4162
4169
  "filePath": "src/tokens/component/button.json5",
4163
4170
  "isSource": true,
4171
+ "alpha": 1,
4164
4172
  "original": {
4165
- "$value": "{button.primary.borderColor.rest}",
4173
+ "$value": "{base.color.red.7}",
4166
4174
  "$type": "color",
4167
4175
  "$extensions": {
4168
4176
  "org.primer.figma": {
@@ -4183,9 +4191,17 @@
4183
4191
  "filePath": "src/tokens/component/button.json5",
4184
4192
  "isSource": true,
4185
4193
  "$type": "color"
4194
+ },
4195
+ "light-high-contrast": {
4196
+ "$value": "{base.color.red.7}",
4197
+ "alpha": 1,
4198
+ "filePath": "src/tokens/component/button.json5",
4199
+ "isSource": true,
4200
+ "$type": "color"
4186
4201
  }
4187
4202
  }
4188
- }
4203
+ },
4204
+ "alpha": 1
4189
4205
  },
4190
4206
  "name": "button-danger-borderColor-hover",
4191
4207
  "attributes": {},
@@ -12673,6 +12689,12 @@
12673
12689
  "filePath": "src/tokens/functional/color/control.json5",
12674
12690
  "isSource": true,
12675
12691
  "$type": "color"
12692
+ },
12693
+ "dark-high-contrast": {
12694
+ "$value": "#ffffff",
12695
+ "filePath": "src/tokens/functional/color/control.json5",
12696
+ "isSource": true,
12697
+ "$type": "color"
12676
12698
  }
12677
12699
  }
12678
12700
  },
@@ -12695,6 +12717,12 @@
12695
12717
  "filePath": "src/tokens/functional/color/control.json5",
12696
12718
  "isSource": true,
12697
12719
  "$type": "color"
12720
+ },
12721
+ "dark-high-contrast": {
12722
+ "$value": "{fgColor.onEmphasis}",
12723
+ "filePath": "src/tokens/functional/color/control.json5",
12724
+ "isSource": true,
12725
+ "$type": "color"
12698
12726
  }
12699
12727
  }
12700
12728
  }
@@ -3668,7 +3668,7 @@
3668
3668
  "$type": "color"
3669
3669
  },
3670
3670
  "dark-high-contrast": {
3671
- "$value": "#d1d9e0",
3671
+ "$value": "#59636e",
3672
3672
  "alpha": 1,
3673
3673
  "filePath": "src/tokens/functional/color/borderColor.json5",
3674
3674
  "isSource": true,
@@ -3697,7 +3697,7 @@
3697
3697
  "$type": "color"
3698
3698
  },
3699
3699
  "dark-high-contrast": {
3700
- "$value": "{base.color.neutral.6}",
3700
+ "$value": "{base.color.neutral.9}",
3701
3701
  "alpha": 1,
3702
3702
  "filePath": "src/tokens/functional/color/borderColor.json5",
3703
3703
  "isSource": true,
@@ -4160,6 +4160,13 @@
4160
4160
  "filePath": "src/tokens/component/button.json5",
4161
4161
  "isSource": true,
4162
4162
  "$type": "color"
4163
+ },
4164
+ "light-high-contrast": {
4165
+ "$value": "#82071e",
4166
+ "alpha": 1,
4167
+ "filePath": "src/tokens/component/button.json5",
4168
+ "isSource": true,
4169
+ "$type": "color"
4163
4170
  }
4164
4171
  }
4165
4172
  },
@@ -4187,6 +4194,13 @@
4187
4194
  "filePath": "src/tokens/component/button.json5",
4188
4195
  "isSource": true,
4189
4196
  "$type": "color"
4197
+ },
4198
+ "light-high-contrast": {
4199
+ "$value": "{base.color.red.7}",
4200
+ "alpha": 1,
4201
+ "filePath": "src/tokens/component/button.json5",
4202
+ "isSource": true,
4203
+ "$type": "color"
4190
4204
  }
4191
4205
  }
4192
4206
  }
@@ -12673,6 +12687,12 @@
12673
12687
  "filePath": "src/tokens/functional/color/control.json5",
12674
12688
  "isSource": true,
12675
12689
  "$type": "color"
12690
+ },
12691
+ "dark-high-contrast": {
12692
+ "$value": "#ffffff",
12693
+ "filePath": "src/tokens/functional/color/control.json5",
12694
+ "isSource": true,
12695
+ "$type": "color"
12676
12696
  }
12677
12697
  }
12678
12698
  },
@@ -12695,6 +12715,12 @@
12695
12715
  "filePath": "src/tokens/functional/color/control.json5",
12696
12716
  "isSource": true,
12697
12717
  "$type": "color"
12718
+ },
12719
+ "dark-high-contrast": {
12720
+ "$value": "{fgColor.onEmphasis}",
12721
+ "filePath": "src/tokens/functional/color/control.json5",
12722
+ "isSource": true,
12723
+ "$type": "color"
12698
12724
  }
12699
12725
  }
12700
12726
  }
@@ -3664,7 +3664,7 @@
3664
3664
  "$type": "color"
3665
3665
  },
3666
3666
  "dark-high-contrast": {
3667
- "$value": "#d1d9e0",
3667
+ "$value": "#59636e",
3668
3668
  "alpha": 1,
3669
3669
  "filePath": "src/tokens/functional/color/borderColor.json5",
3670
3670
  "isSource": true,
@@ -3693,7 +3693,7 @@
3693
3693
  "$type": "color"
3694
3694
  },
3695
3695
  "dark-high-contrast": {
3696
- "$value": "{base.color.neutral.6}",
3696
+ "$value": "{base.color.neutral.9}",
3697
3697
  "alpha": 1,
3698
3698
  "filePath": "src/tokens/functional/color/borderColor.json5",
3699
3699
  "isSource": true,
@@ -4156,6 +4156,13 @@
4156
4156
  "filePath": "src/tokens/component/button.json5",
4157
4157
  "isSource": true,
4158
4158
  "$type": "color"
4159
+ },
4160
+ "light-high-contrast": {
4161
+ "$value": "#82071e",
4162
+ "alpha": 1,
4163
+ "filePath": "src/tokens/component/button.json5",
4164
+ "isSource": true,
4165
+ "$type": "color"
4159
4166
  }
4160
4167
  }
4161
4168
  },
@@ -4183,6 +4190,13 @@
4183
4190
  "filePath": "src/tokens/component/button.json5",
4184
4191
  "isSource": true,
4185
4192
  "$type": "color"
4193
+ },
4194
+ "light-high-contrast": {
4195
+ "$value": "{base.color.red.7}",
4196
+ "alpha": 1,
4197
+ "filePath": "src/tokens/component/button.json5",
4198
+ "isSource": true,
4199
+ "$type": "color"
4186
4200
  }
4187
4201
  }
4188
4202
  }
@@ -12669,6 +12683,12 @@
12669
12683
  "filePath": "src/tokens/functional/color/control.json5",
12670
12684
  "isSource": true,
12671
12685
  "$type": "color"
12686
+ },
12687
+ "dark-high-contrast": {
12688
+ "$value": "#ffffff",
12689
+ "filePath": "src/tokens/functional/color/control.json5",
12690
+ "isSource": true,
12691
+ "$type": "color"
12672
12692
  }
12673
12693
  }
12674
12694
  },
@@ -12691,6 +12711,12 @@
12691
12711
  "filePath": "src/tokens/functional/color/control.json5",
12692
12712
  "isSource": true,
12693
12713
  "$type": "color"
12714
+ },
12715
+ "dark-high-contrast": {
12716
+ "$value": "{fgColor.onEmphasis}",
12717
+ "filePath": "src/tokens/functional/color/control.json5",
12718
+ "isSource": true,
12719
+ "$type": "color"
12694
12720
  }
12695
12721
  }
12696
12722
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/primitives",
3
- "version": "10.5.0",
3
+ "version": "10.5.1-rc.aa2b8f62",
4
4
  "description": "Typography, spacing, and color primitives for Primer design system",
5
5
  "type": "module",
6
6
  "files": [
@@ -1265,6 +1265,10 @@
1265
1265
  $value: '{base.color.red.2}',
1266
1266
  alpha: 1,
1267
1267
  },
1268
+ 'light-high-contrast': {
1269
+ $value: '{base.color.red.7}',
1270
+ alpha: 1,
1271
+ },
1268
1272
  },
1269
1273
  },
1270
1274
  },
@@ -112,7 +112,7 @@
112
112
  alpha: 1,
113
113
  },
114
114
  'dark-high-contrast': {
115
- $value: '{base.color.neutral.6}',
115
+ $value: '{base.color.neutral.9}',
116
116
  alpha: 1,
117
117
  },
118
118
  },