@primer/primitives 7.5.2-rc.2ae21e0 → 7.6.0-rc.8feb85c

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 (39) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/dist/js/colors/dark.d.ts +16 -0
  3. package/dist/js/colors/dark.js +16 -0
  4. package/dist/js/colors/dark_colorblind.d.ts +16 -0
  5. package/dist/js/colors/dark_colorblind.js +16 -0
  6. package/dist/js/colors/dark_dimmed.d.ts +16 -0
  7. package/dist/js/colors/dark_dimmed.js +16 -0
  8. package/dist/js/colors/dark_high_contrast.d.ts +16 -0
  9. package/dist/js/colors/dark_high_contrast.js +16 -0
  10. package/dist/js/colors/index.d.ts +112 -0
  11. package/dist/js/colors/light.d.ts +16 -0
  12. package/dist/js/colors/light.js +16 -0
  13. package/dist/js/colors/light_colorblind.d.ts +16 -0
  14. package/dist/js/colors/light_colorblind.js +16 -0
  15. package/dist/js/colors/light_high_contrast.d.ts +16 -0
  16. package/dist/js/colors/light_high_contrast.js +16 -0
  17. package/dist/js/index.d.ts +112 -0
  18. package/dist/json/colors/dark.json +16 -0
  19. package/dist/json/colors/dark_colorblind.json +16 -0
  20. package/dist/json/colors/dark_dimmed.json +16 -0
  21. package/dist/json/colors/dark_high_contrast.json +16 -0
  22. package/dist/json/colors/light.json +16 -0
  23. package/dist/json/colors/light_colorblind.json +16 -0
  24. package/dist/json/colors/light_high_contrast.json +16 -0
  25. package/dist/scss/colors/_dark.scss +8 -0
  26. package/dist/scss/colors/_dark_colorblind.scss +8 -0
  27. package/dist/scss/colors/_dark_dimmed.scss +8 -0
  28. package/dist/scss/colors/_dark_high_contrast.scss +8 -0
  29. package/dist/scss/colors/_light.scss +8 -0
  30. package/dist/scss/colors/_light_colorblind.scss +8 -0
  31. package/dist/scss/colors/_light_high_contrast.scss +8 -0
  32. package/dist/ts/colors/dark.ts +16 -0
  33. package/dist/ts/colors/dark_colorblind.ts +16 -0
  34. package/dist/ts/colors/dark_dimmed.ts +16 -0
  35. package/dist/ts/colors/dark_high_contrast.ts +16 -0
  36. package/dist/ts/colors/light.ts +16 -0
  37. package/dist/ts/colors/light_colorblind.ts +16 -0
  38. package/dist/ts/colors/light_high_contrast.ts +16 -0
  39. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # @primer/primitives
2
2
 
3
- ## 7.5.2
3
+ ## 7.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#309](https://github.com/primer/primitives/pull/309) [`4588342`](https://github.com/primer/primitives/commit/45883423f029e7dee067fe4dd9636bebb11adbbe) Thanks [@mperrotti](https://github.com/mperrotti)! - adds primitives for toggle switch component
4
8
 
5
9
  ### Patch Changes
6
10
 
@@ -345,6 +345,22 @@ declare const _default: {
345
345
  hoverText: string;
346
346
  };
347
347
  };
348
+ switchTrack: {
349
+ bg: string;
350
+ border: string;
351
+ checked: {
352
+ bg: string;
353
+ hoverBg: string;
354
+ activeBg: string;
355
+ border: string;
356
+ };
357
+ };
358
+ switchKnob: {
359
+ checked: {
360
+ bg: string;
361
+ disabledBg: string;
362
+ };
363
+ };
348
364
  fg: {
349
365
  default: string;
350
366
  muted: string;
@@ -347,6 +347,22 @@ exports.default = {
347
347
  "hoverText": "#ff7b72"
348
348
  }
349
349
  },
350
+ "switchTrack": {
351
+ "bg": "#010409",
352
+ "border": "#6e7681",
353
+ "checked": {
354
+ "bg": "rgba(31,111,235,0.35)",
355
+ "hoverBg": "rgba(31,111,235,0.5)",
356
+ "activeBg": "rgba(31,111,235,0.65)",
357
+ "border": "#58a6ff"
358
+ }
359
+ },
360
+ "switchKnob": {
361
+ "checked": {
362
+ "bg": "#1f6feb",
363
+ "disabledBg": "#484f58"
364
+ }
365
+ },
350
366
  "fg": {
351
367
  "default": "#c9d1d9",
352
368
  "muted": "#8b949e",
@@ -345,6 +345,22 @@ declare const _default: {
345
345
  hoverText: string;
346
346
  };
347
347
  };
348
+ switchTrack: {
349
+ bg: string;
350
+ border: string;
351
+ checked: {
352
+ bg: string;
353
+ hoverBg: string;
354
+ activeBg: string;
355
+ border: string;
356
+ };
357
+ };
358
+ switchKnob: {
359
+ checked: {
360
+ bg: string;
361
+ disabledBg: string;
362
+ };
363
+ };
348
364
  fg: {
349
365
  default: string;
350
366
  muted: string;
@@ -347,6 +347,22 @@ exports.default = {
347
347
  "hoverText": "#ec8e2c"
348
348
  }
349
349
  },
350
+ "switchTrack": {
351
+ "bg": "#010409",
352
+ "border": "#6e7681",
353
+ "checked": {
354
+ "bg": "rgba(31,111,235,0.35)",
355
+ "hoverBg": "rgba(31,111,235,0.5)",
356
+ "activeBg": "rgba(31,111,235,0.65)",
357
+ "border": "#58a6ff"
358
+ }
359
+ },
360
+ "switchKnob": {
361
+ "checked": {
362
+ "bg": "#1f6feb",
363
+ "disabledBg": "#484f58"
364
+ }
365
+ },
350
366
  "fg": {
351
367
  "default": "#c9d1d9",
352
368
  "muted": "#8b949e",
@@ -345,6 +345,22 @@ declare const _default: {
345
345
  hoverText: string;
346
346
  };
347
347
  };
348
+ switchTrack: {
349
+ bg: string;
350
+ border: string;
351
+ checked: {
352
+ bg: string;
353
+ hoverBg: string;
354
+ activeBg: string;
355
+ border: string;
356
+ };
357
+ };
358
+ switchKnob: {
359
+ checked: {
360
+ bg: string;
361
+ disabledBg: string;
362
+ };
363
+ };
348
364
  fg: {
349
365
  default: string;
350
366
  muted: string;
@@ -347,6 +347,22 @@ exports.default = {
347
347
  "hoverText": "#f47067"
348
348
  }
349
349
  },
350
+ "switchTrack": {
351
+ "bg": "#1c2128",
352
+ "border": "#636e7b",
353
+ "checked": {
354
+ "bg": "rgba(49,109,202,0.35)",
355
+ "hoverBg": "rgba(49,109,202,0.5)",
356
+ "activeBg": "rgba(49,109,202,0.65)",
357
+ "border": "#539bf5"
358
+ }
359
+ },
360
+ "switchKnob": {
361
+ "checked": {
362
+ "bg": "#316dca",
363
+ "disabledBg": "#545d68"
364
+ }
365
+ },
350
366
  "fg": {
351
367
  "default": "#adbac7",
352
368
  "muted": "#768390",
@@ -345,6 +345,22 @@ declare const _default: {
345
345
  hoverText: string;
346
346
  };
347
347
  };
348
+ switchTrack: {
349
+ bg: string;
350
+ border: string;
351
+ checked: {
352
+ bg: string;
353
+ hoverBg: string;
354
+ activeBg: string;
355
+ border: string;
356
+ };
357
+ };
358
+ switchKnob: {
359
+ checked: {
360
+ bg: string;
361
+ disabledBg: string;
362
+ };
363
+ };
348
364
  fg: {
349
365
  default: string;
350
366
  muted: string;
@@ -347,6 +347,22 @@ exports.default = {
347
347
  "hoverText": "#0a0c10"
348
348
  }
349
349
  },
350
+ "switchTrack": {
351
+ "bg": "#010409",
352
+ "border": "#7a828e",
353
+ "checked": {
354
+ "bg": "rgba(64,158,255,0.35)",
355
+ "hoverBg": "rgba(64,158,255,0.5)",
356
+ "activeBg": "rgba(64,158,255,0.65)",
357
+ "border": "#409eff"
358
+ }
359
+ },
360
+ "switchKnob": {
361
+ "checked": {
362
+ "bg": "#409eff",
363
+ "disabledBg": "#7a828e"
364
+ }
365
+ },
350
366
  "fg": {
351
367
  "default": "#f0f3f6",
352
368
  "muted": "#f0f3f6",
@@ -346,6 +346,22 @@ declare const _default: {
346
346
  hoverText: string;
347
347
  };
348
348
  };
349
+ switchTrack: {
350
+ bg: string;
351
+ border: string;
352
+ checked: {
353
+ bg: string;
354
+ hoverBg: string;
355
+ activeBg: string;
356
+ border: string;
357
+ };
358
+ };
359
+ switchKnob: {
360
+ checked: {
361
+ bg: string;
362
+ disabledBg: string;
363
+ };
364
+ };
349
365
  fg: {
350
366
  default: string;
351
367
  muted: string;
@@ -808,6 +824,22 @@ declare const _default: {
808
824
  hoverText: string;
809
825
  };
810
826
  };
827
+ switchTrack: {
828
+ bg: string;
829
+ border: string;
830
+ checked: {
831
+ bg: string;
832
+ hoverBg: string;
833
+ activeBg: string;
834
+ border: string;
835
+ };
836
+ };
837
+ switchKnob: {
838
+ checked: {
839
+ bg: string;
840
+ disabledBg: string;
841
+ };
842
+ };
811
843
  fg: {
812
844
  default: string;
813
845
  muted: string;
@@ -1270,6 +1302,22 @@ declare const _default: {
1270
1302
  hoverText: string;
1271
1303
  };
1272
1304
  };
1305
+ switchTrack: {
1306
+ bg: string;
1307
+ border: string;
1308
+ checked: {
1309
+ bg: string;
1310
+ hoverBg: string;
1311
+ activeBg: string;
1312
+ border: string;
1313
+ };
1314
+ };
1315
+ switchKnob: {
1316
+ checked: {
1317
+ bg: string;
1318
+ disabledBg: string;
1319
+ };
1320
+ };
1273
1321
  fg: {
1274
1322
  default: string;
1275
1323
  muted: string;
@@ -1732,6 +1780,22 @@ declare const _default: {
1732
1780
  hoverText: string;
1733
1781
  };
1734
1782
  };
1783
+ switchTrack: {
1784
+ bg: string;
1785
+ border: string;
1786
+ checked: {
1787
+ bg: string;
1788
+ hoverBg: string;
1789
+ activeBg: string;
1790
+ border: string;
1791
+ };
1792
+ };
1793
+ switchKnob: {
1794
+ checked: {
1795
+ bg: string;
1796
+ disabledBg: string;
1797
+ };
1798
+ };
1735
1799
  fg: {
1736
1800
  default: string;
1737
1801
  muted: string;
@@ -2194,6 +2258,22 @@ declare const _default: {
2194
2258
  hoverText: string;
2195
2259
  };
2196
2260
  };
2261
+ switchTrack: {
2262
+ bg: string;
2263
+ border: string;
2264
+ checked: {
2265
+ bg: string;
2266
+ hoverBg: string;
2267
+ activeBg: string;
2268
+ border: string;
2269
+ };
2270
+ };
2271
+ switchKnob: {
2272
+ checked: {
2273
+ bg: string;
2274
+ disabledBg: string;
2275
+ };
2276
+ };
2197
2277
  fg: {
2198
2278
  default: string;
2199
2279
  muted: string;
@@ -2656,6 +2736,22 @@ declare const _default: {
2656
2736
  hoverText: string;
2657
2737
  };
2658
2738
  };
2739
+ switchTrack: {
2740
+ bg: string;
2741
+ border: string;
2742
+ checked: {
2743
+ bg: string;
2744
+ hoverBg: string;
2745
+ activeBg: string;
2746
+ border: string;
2747
+ };
2748
+ };
2749
+ switchKnob: {
2750
+ checked: {
2751
+ bg: string;
2752
+ disabledBg: string;
2753
+ };
2754
+ };
2659
2755
  fg: {
2660
2756
  default: string;
2661
2757
  muted: string;
@@ -3118,6 +3214,22 @@ declare const _default: {
3118
3214
  hoverText: string;
3119
3215
  };
3120
3216
  };
3217
+ switchTrack: {
3218
+ bg: string;
3219
+ border: string;
3220
+ checked: {
3221
+ bg: string;
3222
+ hoverBg: string;
3223
+ activeBg: string;
3224
+ border: string;
3225
+ };
3226
+ };
3227
+ switchKnob: {
3228
+ checked: {
3229
+ bg: string;
3230
+ disabledBg: string;
3231
+ };
3232
+ };
3121
3233
  fg: {
3122
3234
  default: string;
3123
3235
  muted: string;
@@ -345,6 +345,22 @@ declare const _default: {
345
345
  hoverText: string;
346
346
  };
347
347
  };
348
+ switchTrack: {
349
+ bg: string;
350
+ border: string;
351
+ checked: {
352
+ bg: string;
353
+ hoverBg: string;
354
+ activeBg: string;
355
+ border: string;
356
+ };
357
+ };
358
+ switchKnob: {
359
+ checked: {
360
+ bg: string;
361
+ disabledBg: string;
362
+ };
363
+ };
348
364
  fg: {
349
365
  default: string;
350
366
  muted: string;
@@ -347,6 +347,22 @@ exports.default = {
347
347
  "hoverText": "#cf222e"
348
348
  }
349
349
  },
350
+ "switchTrack": {
351
+ "bg": "#eaeef2",
352
+ "border": "#afb8c1",
353
+ "checked": {
354
+ "bg": "#ddf4ff",
355
+ "hoverBg": "#b6e3ff",
356
+ "activeBg": "#80ccff",
357
+ "border": "#54aeff"
358
+ }
359
+ },
360
+ "switchKnob": {
361
+ "checked": {
362
+ "bg": "#0969da",
363
+ "disabledBg": "#6e7781"
364
+ }
365
+ },
350
366
  "fg": {
351
367
  "default": "#24292f",
352
368
  "muted": "#57606a",
@@ -345,6 +345,22 @@ declare const _default: {
345
345
  hoverText: string;
346
346
  };
347
347
  };
348
+ switchTrack: {
349
+ bg: string;
350
+ border: string;
351
+ checked: {
352
+ bg: string;
353
+ hoverBg: string;
354
+ activeBg: string;
355
+ border: string;
356
+ };
357
+ };
358
+ switchKnob: {
359
+ checked: {
360
+ bg: string;
361
+ disabledBg: string;
362
+ };
363
+ };
348
364
  fg: {
349
365
  default: string;
350
366
  muted: string;
@@ -347,6 +347,22 @@ exports.default = {
347
347
  "hoverText": "#b35900"
348
348
  }
349
349
  },
350
+ "switchTrack": {
351
+ "bg": "#eaeef2",
352
+ "border": "#afb8c1",
353
+ "checked": {
354
+ "bg": "#ddf4ff",
355
+ "hoverBg": "#b6e3ff",
356
+ "activeBg": "#80ccff",
357
+ "border": "#54aeff"
358
+ }
359
+ },
360
+ "switchKnob": {
361
+ "checked": {
362
+ "bg": "#0969da",
363
+ "disabledBg": "#6e7781"
364
+ }
365
+ },
350
366
  "fg": {
351
367
  "default": "#24292f",
352
368
  "muted": "#57606a",
@@ -345,6 +345,22 @@ declare const _default: {
345
345
  hoverText: string;
346
346
  };
347
347
  };
348
+ switchTrack: {
349
+ bg: string;
350
+ border: string;
351
+ checked: {
352
+ bg: string;
353
+ hoverBg: string;
354
+ activeBg: string;
355
+ border: string;
356
+ };
357
+ };
358
+ switchKnob: {
359
+ checked: {
360
+ bg: string;
361
+ disabledBg: string;
362
+ };
363
+ };
348
364
  fg: {
349
365
  default: string;
350
366
  muted: string;
@@ -347,6 +347,22 @@ exports.default = {
347
347
  "hoverText": "#ffffff"
348
348
  }
349
349
  },
350
+ "switchTrack": {
351
+ "bg": "#ffffff",
352
+ "border": "#20252C",
353
+ "checked": {
354
+ "bg": "#dff7ff",
355
+ "hoverBg": "#9cd7ff",
356
+ "activeBg": "#67b3fd",
357
+ "border": "#0349b4"
358
+ }
359
+ },
360
+ "switchKnob": {
361
+ "checked": {
362
+ "bg": "#0349b4",
363
+ "disabledBg": "#66707B"
364
+ }
365
+ },
350
366
  "fg": {
351
367
  "default": "#0E1116",
352
368
  "muted": "#0E1116",
@@ -347,6 +347,22 @@ declare const _default: {
347
347
  hoverText: string;
348
348
  };
349
349
  };
350
+ switchTrack: {
351
+ bg: string;
352
+ border: string;
353
+ checked: {
354
+ bg: string;
355
+ hoverBg: string;
356
+ activeBg: string;
357
+ border: string;
358
+ };
359
+ };
360
+ switchKnob: {
361
+ checked: {
362
+ bg: string;
363
+ disabledBg: string;
364
+ };
365
+ };
350
366
  fg: {
351
367
  default: string;
352
368
  muted: string;
@@ -809,6 +825,22 @@ declare const _default: {
809
825
  hoverText: string;
810
826
  };
811
827
  };
828
+ switchTrack: {
829
+ bg: string;
830
+ border: string;
831
+ checked: {
832
+ bg: string;
833
+ hoverBg: string;
834
+ activeBg: string;
835
+ border: string;
836
+ };
837
+ };
838
+ switchKnob: {
839
+ checked: {
840
+ bg: string;
841
+ disabledBg: string;
842
+ };
843
+ };
812
844
  fg: {
813
845
  default: string;
814
846
  muted: string;
@@ -1271,6 +1303,22 @@ declare const _default: {
1271
1303
  hoverText: string;
1272
1304
  };
1273
1305
  };
1306
+ switchTrack: {
1307
+ bg: string;
1308
+ border: string;
1309
+ checked: {
1310
+ bg: string;
1311
+ hoverBg: string;
1312
+ activeBg: string;
1313
+ border: string;
1314
+ };
1315
+ };
1316
+ switchKnob: {
1317
+ checked: {
1318
+ bg: string;
1319
+ disabledBg: string;
1320
+ };
1321
+ };
1274
1322
  fg: {
1275
1323
  default: string;
1276
1324
  muted: string;
@@ -1733,6 +1781,22 @@ declare const _default: {
1733
1781
  hoverText: string;
1734
1782
  };
1735
1783
  };
1784
+ switchTrack: {
1785
+ bg: string;
1786
+ border: string;
1787
+ checked: {
1788
+ bg: string;
1789
+ hoverBg: string;
1790
+ activeBg: string;
1791
+ border: string;
1792
+ };
1793
+ };
1794
+ switchKnob: {
1795
+ checked: {
1796
+ bg: string;
1797
+ disabledBg: string;
1798
+ };
1799
+ };
1736
1800
  fg: {
1737
1801
  default: string;
1738
1802
  muted: string;
@@ -2195,6 +2259,22 @@ declare const _default: {
2195
2259
  hoverText: string;
2196
2260
  };
2197
2261
  };
2262
+ switchTrack: {
2263
+ bg: string;
2264
+ border: string;
2265
+ checked: {
2266
+ bg: string;
2267
+ hoverBg: string;
2268
+ activeBg: string;
2269
+ border: string;
2270
+ };
2271
+ };
2272
+ switchKnob: {
2273
+ checked: {
2274
+ bg: string;
2275
+ disabledBg: string;
2276
+ };
2277
+ };
2198
2278
  fg: {
2199
2279
  default: string;
2200
2280
  muted: string;
@@ -2657,6 +2737,22 @@ declare const _default: {
2657
2737
  hoverText: string;
2658
2738
  };
2659
2739
  };
2740
+ switchTrack: {
2741
+ bg: string;
2742
+ border: string;
2743
+ checked: {
2744
+ bg: string;
2745
+ hoverBg: string;
2746
+ activeBg: string;
2747
+ border: string;
2748
+ };
2749
+ };
2750
+ switchKnob: {
2751
+ checked: {
2752
+ bg: string;
2753
+ disabledBg: string;
2754
+ };
2755
+ };
2660
2756
  fg: {
2661
2757
  default: string;
2662
2758
  muted: string;
@@ -3119,6 +3215,22 @@ declare const _default: {
3119
3215
  hoverText: string;
3120
3216
  };
3121
3217
  };
3218
+ switchTrack: {
3219
+ bg: string;
3220
+ border: string;
3221
+ checked: {
3222
+ bg: string;
3223
+ hoverBg: string;
3224
+ activeBg: string;
3225
+ border: string;
3226
+ };
3227
+ };
3228
+ switchKnob: {
3229
+ checked: {
3230
+ bg: string;
3231
+ disabledBg: string;
3232
+ };
3233
+ };
3122
3234
  fg: {
3123
3235
  default: string;
3124
3236
  muted: string;
@@ -345,6 +345,22 @@
345
345
  "hoverText": "#ff7b72"
346
346
  }
347
347
  },
348
+ "switchTrack": {
349
+ "bg": "#010409",
350
+ "border": "#6e7681",
351
+ "checked": {
352
+ "bg": "rgba(31,111,235,0.35)",
353
+ "hoverBg": "rgba(31,111,235,0.5)",
354
+ "activeBg": "rgba(31,111,235,0.65)",
355
+ "border": "#58a6ff"
356
+ }
357
+ },
358
+ "switchKnob": {
359
+ "checked": {
360
+ "bg": "#1f6feb",
361
+ "disabledBg": "#484f58"
362
+ }
363
+ },
348
364
  "fg": {
349
365
  "default": "#c9d1d9",
350
366
  "muted": "#8b949e",
@@ -345,6 +345,22 @@
345
345
  "hoverText": "#ec8e2c"
346
346
  }
347
347
  },
348
+ "switchTrack": {
349
+ "bg": "#010409",
350
+ "border": "#6e7681",
351
+ "checked": {
352
+ "bg": "rgba(31,111,235,0.35)",
353
+ "hoverBg": "rgba(31,111,235,0.5)",
354
+ "activeBg": "rgba(31,111,235,0.65)",
355
+ "border": "#58a6ff"
356
+ }
357
+ },
358
+ "switchKnob": {
359
+ "checked": {
360
+ "bg": "#1f6feb",
361
+ "disabledBg": "#484f58"
362
+ }
363
+ },
348
364
  "fg": {
349
365
  "default": "#c9d1d9",
350
366
  "muted": "#8b949e",
@@ -345,6 +345,22 @@
345
345
  "hoverText": "#f47067"
346
346
  }
347
347
  },
348
+ "switchTrack": {
349
+ "bg": "#1c2128",
350
+ "border": "#636e7b",
351
+ "checked": {
352
+ "bg": "rgba(49,109,202,0.35)",
353
+ "hoverBg": "rgba(49,109,202,0.5)",
354
+ "activeBg": "rgba(49,109,202,0.65)",
355
+ "border": "#539bf5"
356
+ }
357
+ },
358
+ "switchKnob": {
359
+ "checked": {
360
+ "bg": "#316dca",
361
+ "disabledBg": "#545d68"
362
+ }
363
+ },
348
364
  "fg": {
349
365
  "default": "#adbac7",
350
366
  "muted": "#768390",
@@ -345,6 +345,22 @@
345
345
  "hoverText": "#0a0c10"
346
346
  }
347
347
  },
348
+ "switchTrack": {
349
+ "bg": "#010409",
350
+ "border": "#7a828e",
351
+ "checked": {
352
+ "bg": "rgba(64,158,255,0.35)",
353
+ "hoverBg": "rgba(64,158,255,0.5)",
354
+ "activeBg": "rgba(64,158,255,0.65)",
355
+ "border": "#409eff"
356
+ }
357
+ },
358
+ "switchKnob": {
359
+ "checked": {
360
+ "bg": "#409eff",
361
+ "disabledBg": "#7a828e"
362
+ }
363
+ },
348
364
  "fg": {
349
365
  "default": "#f0f3f6",
350
366
  "muted": "#f0f3f6",
@@ -345,6 +345,22 @@
345
345
  "hoverText": "#cf222e"
346
346
  }
347
347
  },
348
+ "switchTrack": {
349
+ "bg": "#eaeef2",
350
+ "border": "#afb8c1",
351
+ "checked": {
352
+ "bg": "#ddf4ff",
353
+ "hoverBg": "#b6e3ff",
354
+ "activeBg": "#80ccff",
355
+ "border": "#54aeff"
356
+ }
357
+ },
358
+ "switchKnob": {
359
+ "checked": {
360
+ "bg": "#0969da",
361
+ "disabledBg": "#6e7781"
362
+ }
363
+ },
348
364
  "fg": {
349
365
  "default": "#24292f",
350
366
  "muted": "#57606a",
@@ -345,6 +345,22 @@
345
345
  "hoverText": "#b35900"
346
346
  }
347
347
  },
348
+ "switchTrack": {
349
+ "bg": "#eaeef2",
350
+ "border": "#afb8c1",
351
+ "checked": {
352
+ "bg": "#ddf4ff",
353
+ "hoverBg": "#b6e3ff",
354
+ "activeBg": "#80ccff",
355
+ "border": "#54aeff"
356
+ }
357
+ },
358
+ "switchKnob": {
359
+ "checked": {
360
+ "bg": "#0969da",
361
+ "disabledBg": "#6e7781"
362
+ }
363
+ },
348
364
  "fg": {
349
365
  "default": "#24292f",
350
366
  "muted": "#57606a",
@@ -345,6 +345,22 @@
345
345
  "hoverText": "#ffffff"
346
346
  }
347
347
  },
348
+ "switchTrack": {
349
+ "bg": "#ffffff",
350
+ "border": "#20252C",
351
+ "checked": {
352
+ "bg": "#dff7ff",
353
+ "hoverBg": "#9cd7ff",
354
+ "activeBg": "#67b3fd",
355
+ "border": "#0349b4"
356
+ }
357
+ },
358
+ "switchKnob": {
359
+ "checked": {
360
+ "bg": "#0349b4",
361
+ "disabledBg": "#66707B"
362
+ }
363
+ },
348
364
  "fg": {
349
365
  "default": "#0E1116",
350
366
  "muted": "#0E1116",
@@ -270,6 +270,14 @@
270
270
  --color-action-list-item-danger-hover-bg: rgba(248,81,73,0.16);
271
271
  --color-action-list-item-danger-active-bg: rgba(248,81,73,0.24);
272
272
  --color-action-list-item-danger-hover-text: #ff7b72;
273
+ --color-switch-track-bg: #010409;
274
+ --color-switch-track-border: #6e7681;
275
+ --color-switch-track-checked-bg: rgba(31,111,235,0.35);
276
+ --color-switch-track-checked-hover-bg: rgba(31,111,235,0.5);
277
+ --color-switch-track-checked-active-bg: rgba(31,111,235,0.65);
278
+ --color-switch-track-checked-border: #58a6ff;
279
+ --color-switch-knob-checked-bg: #1f6feb;
280
+ --color-switch-knob-checked-disabled-bg: #484f58;
273
281
  --color-fg-default: #c9d1d9;
274
282
  --color-fg-muted: #8b949e;
275
283
  --color-fg-subtle: #6e7681;
@@ -270,6 +270,14 @@
270
270
  --color-action-list-item-danger-hover-bg: rgba(212,118,22,0.16);
271
271
  --color-action-list-item-danger-active-bg: rgba(212,118,22,0.24);
272
272
  --color-action-list-item-danger-hover-text: #ec8e2c;
273
+ --color-switch-track-bg: #010409;
274
+ --color-switch-track-border: #6e7681;
275
+ --color-switch-track-checked-bg: rgba(31,111,235,0.35);
276
+ --color-switch-track-checked-hover-bg: rgba(31,111,235,0.5);
277
+ --color-switch-track-checked-active-bg: rgba(31,111,235,0.65);
278
+ --color-switch-track-checked-border: #58a6ff;
279
+ --color-switch-knob-checked-bg: #1f6feb;
280
+ --color-switch-knob-checked-disabled-bg: #484f58;
273
281
  --color-fg-default: #c9d1d9;
274
282
  --color-fg-muted: #8b949e;
275
283
  --color-fg-subtle: #6e7681;
@@ -270,6 +270,14 @@
270
270
  --color-action-list-item-danger-hover-bg: rgba(229,83,75,0.16);
271
271
  --color-action-list-item-danger-active-bg: rgba(229,83,75,0.24);
272
272
  --color-action-list-item-danger-hover-text: #f47067;
273
+ --color-switch-track-bg: #1c2128;
274
+ --color-switch-track-border: #636e7b;
275
+ --color-switch-track-checked-bg: rgba(49,109,202,0.35);
276
+ --color-switch-track-checked-hover-bg: rgba(49,109,202,0.5);
277
+ --color-switch-track-checked-active-bg: rgba(49,109,202,0.65);
278
+ --color-switch-track-checked-border: #539bf5;
279
+ --color-switch-knob-checked-bg: #316dca;
280
+ --color-switch-knob-checked-disabled-bg: #545d68;
273
281
  --color-fg-default: #adbac7;
274
282
  --color-fg-muted: #768390;
275
283
  --color-fg-subtle: #636e7b;
@@ -270,6 +270,14 @@
270
270
  --color-action-list-item-danger-hover-bg: #ff6a69;
271
271
  --color-action-list-item-danger-active-bg: #ff4445;
272
272
  --color-action-list-item-danger-hover-text: #0a0c10;
273
+ --color-switch-track-bg: #010409;
274
+ --color-switch-track-border: #7a828e;
275
+ --color-switch-track-checked-bg: rgba(64,158,255,0.35);
276
+ --color-switch-track-checked-hover-bg: rgba(64,158,255,0.5);
277
+ --color-switch-track-checked-active-bg: rgba(64,158,255,0.65);
278
+ --color-switch-track-checked-border: #409eff;
279
+ --color-switch-knob-checked-bg: #409eff;
280
+ --color-switch-knob-checked-disabled-bg: #7a828e;
273
281
  --color-fg-default: #f0f3f6;
274
282
  --color-fg-muted: #f0f3f6;
275
283
  --color-fg-subtle: #9ea7b3;
@@ -270,6 +270,14 @@
270
270
  --color-action-list-item-danger-hover-bg: rgba(255,235,233,0.64);
271
271
  --color-action-list-item-danger-active-bg: #FFEBE9;
272
272
  --color-action-list-item-danger-hover-text: #cf222e;
273
+ --color-switch-track-bg: #eaeef2;
274
+ --color-switch-track-border: #afb8c1;
275
+ --color-switch-track-checked-bg: #ddf4ff;
276
+ --color-switch-track-checked-hover-bg: #b6e3ff;
277
+ --color-switch-track-checked-active-bg: #80ccff;
278
+ --color-switch-track-checked-border: #54aeff;
279
+ --color-switch-knob-checked-bg: #0969da;
280
+ --color-switch-knob-checked-disabled-bg: #6e7781;
273
281
  --color-fg-default: #24292f;
274
282
  --color-fg-muted: #57606a;
275
283
  --color-fg-subtle: #6e7781;
@@ -270,6 +270,14 @@
270
270
  --color-action-list-item-danger-hover-bg: rgba(255,245,232,0.64);
271
271
  --color-action-list-item-danger-active-bg: #fff5e8;
272
272
  --color-action-list-item-danger-hover-text: #b35900;
273
+ --color-switch-track-bg: #eaeef2;
274
+ --color-switch-track-border: #afb8c1;
275
+ --color-switch-track-checked-bg: #ddf4ff;
276
+ --color-switch-track-checked-hover-bg: #b6e3ff;
277
+ --color-switch-track-checked-active-bg: #80ccff;
278
+ --color-switch-track-checked-border: #54aeff;
279
+ --color-switch-knob-checked-bg: #0969da;
280
+ --color-switch-knob-checked-disabled-bg: #6e7781;
273
281
  --color-fg-default: #24292f;
274
282
  --color-fg-muted: #57606a;
275
283
  --color-fg-subtle: #6e7781;
@@ -270,6 +270,14 @@
270
270
  --color-action-list-item-danger-hover-bg: #a0111f;
271
271
  --color-action-list-item-danger-active-bg: #6e011a;
272
272
  --color-action-list-item-danger-hover-text: #ffffff;
273
+ --color-switch-track-bg: #ffffff;
274
+ --color-switch-track-border: #20252C;
275
+ --color-switch-track-checked-bg: #dff7ff;
276
+ --color-switch-track-checked-hover-bg: #9cd7ff;
277
+ --color-switch-track-checked-active-bg: #67b3fd;
278
+ --color-switch-track-checked-border: #0349b4;
279
+ --color-switch-knob-checked-bg: #0349b4;
280
+ --color-switch-knob-checked-disabled-bg: #66707B;
273
281
  --color-fg-default: #0E1116;
274
282
  --color-fg-muted: #0E1116;
275
283
  --color-fg-subtle: #66707B;
@@ -345,6 +345,22 @@ export default {
345
345
  "hoverText": "#ff7b72"
346
346
  }
347
347
  },
348
+ "switchTrack": {
349
+ "bg": "#010409",
350
+ "border": "#6e7681",
351
+ "checked": {
352
+ "bg": "rgba(31,111,235,0.35)",
353
+ "hoverBg": "rgba(31,111,235,0.5)",
354
+ "activeBg": "rgba(31,111,235,0.65)",
355
+ "border": "#58a6ff"
356
+ }
357
+ },
358
+ "switchKnob": {
359
+ "checked": {
360
+ "bg": "#1f6feb",
361
+ "disabledBg": "#484f58"
362
+ }
363
+ },
348
364
  "fg": {
349
365
  "default": "#c9d1d9",
350
366
  "muted": "#8b949e",
@@ -345,6 +345,22 @@ export default {
345
345
  "hoverText": "#ec8e2c"
346
346
  }
347
347
  },
348
+ "switchTrack": {
349
+ "bg": "#010409",
350
+ "border": "#6e7681",
351
+ "checked": {
352
+ "bg": "rgba(31,111,235,0.35)",
353
+ "hoverBg": "rgba(31,111,235,0.5)",
354
+ "activeBg": "rgba(31,111,235,0.65)",
355
+ "border": "#58a6ff"
356
+ }
357
+ },
358
+ "switchKnob": {
359
+ "checked": {
360
+ "bg": "#1f6feb",
361
+ "disabledBg": "#484f58"
362
+ }
363
+ },
348
364
  "fg": {
349
365
  "default": "#c9d1d9",
350
366
  "muted": "#8b949e",
@@ -345,6 +345,22 @@ export default {
345
345
  "hoverText": "#f47067"
346
346
  }
347
347
  },
348
+ "switchTrack": {
349
+ "bg": "#1c2128",
350
+ "border": "#636e7b",
351
+ "checked": {
352
+ "bg": "rgba(49,109,202,0.35)",
353
+ "hoverBg": "rgba(49,109,202,0.5)",
354
+ "activeBg": "rgba(49,109,202,0.65)",
355
+ "border": "#539bf5"
356
+ }
357
+ },
358
+ "switchKnob": {
359
+ "checked": {
360
+ "bg": "#316dca",
361
+ "disabledBg": "#545d68"
362
+ }
363
+ },
348
364
  "fg": {
349
365
  "default": "#adbac7",
350
366
  "muted": "#768390",
@@ -345,6 +345,22 @@ export default {
345
345
  "hoverText": "#0a0c10"
346
346
  }
347
347
  },
348
+ "switchTrack": {
349
+ "bg": "#010409",
350
+ "border": "#7a828e",
351
+ "checked": {
352
+ "bg": "rgba(64,158,255,0.35)",
353
+ "hoverBg": "rgba(64,158,255,0.5)",
354
+ "activeBg": "rgba(64,158,255,0.65)",
355
+ "border": "#409eff"
356
+ }
357
+ },
358
+ "switchKnob": {
359
+ "checked": {
360
+ "bg": "#409eff",
361
+ "disabledBg": "#7a828e"
362
+ }
363
+ },
348
364
  "fg": {
349
365
  "default": "#f0f3f6",
350
366
  "muted": "#f0f3f6",
@@ -345,6 +345,22 @@ export default {
345
345
  "hoverText": "#cf222e"
346
346
  }
347
347
  },
348
+ "switchTrack": {
349
+ "bg": "#eaeef2",
350
+ "border": "#afb8c1",
351
+ "checked": {
352
+ "bg": "#ddf4ff",
353
+ "hoverBg": "#b6e3ff",
354
+ "activeBg": "#80ccff",
355
+ "border": "#54aeff"
356
+ }
357
+ },
358
+ "switchKnob": {
359
+ "checked": {
360
+ "bg": "#0969da",
361
+ "disabledBg": "#6e7781"
362
+ }
363
+ },
348
364
  "fg": {
349
365
  "default": "#24292f",
350
366
  "muted": "#57606a",
@@ -345,6 +345,22 @@ export default {
345
345
  "hoverText": "#b35900"
346
346
  }
347
347
  },
348
+ "switchTrack": {
349
+ "bg": "#eaeef2",
350
+ "border": "#afb8c1",
351
+ "checked": {
352
+ "bg": "#ddf4ff",
353
+ "hoverBg": "#b6e3ff",
354
+ "activeBg": "#80ccff",
355
+ "border": "#54aeff"
356
+ }
357
+ },
358
+ "switchKnob": {
359
+ "checked": {
360
+ "bg": "#0969da",
361
+ "disabledBg": "#6e7781"
362
+ }
363
+ },
348
364
  "fg": {
349
365
  "default": "#24292f",
350
366
  "muted": "#57606a",
@@ -345,6 +345,22 @@ export default {
345
345
  "hoverText": "#ffffff"
346
346
  }
347
347
  },
348
+ "switchTrack": {
349
+ "bg": "#ffffff",
350
+ "border": "#20252C",
351
+ "checked": {
352
+ "bg": "#dff7ff",
353
+ "hoverBg": "#9cd7ff",
354
+ "activeBg": "#67b3fd",
355
+ "border": "#0349b4"
356
+ }
357
+ },
358
+ "switchKnob": {
359
+ "checked": {
360
+ "bg": "#0349b4",
361
+ "disabledBg": "#66707B"
362
+ }
363
+ },
348
364
  "fg": {
349
365
  "default": "#0E1116",
350
366
  "muted": "#0E1116",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/primitives",
3
- "version": "7.5.2-rc.2ae21e0",
3
+ "version": "7.6.0-rc.8feb85c",
4
4
  "description": "Typography, spacing, and color primitives for Primer design system",
5
5
  "files": [
6
6
  "dist"