@primer/primitives 8.1.0-rc.313f1fc7 → 8.1.1-rc.29cfc4ea

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 (68) hide show
  1. package/dist/css/base/size/size.css +2 -0
  2. package/dist/css/functional/themes/dark-colorblind.css +38 -18
  3. package/dist/css/functional/themes/dark-dimmed.css +38 -18
  4. package/dist/css/functional/themes/dark-high-contrast.css +20 -0
  5. package/dist/css/functional/themes/dark-tritanopia.css +38 -18
  6. package/dist/css/functional/themes/dark.css +38 -18
  7. package/dist/css/functional/themes/light-colorblind.css +20 -0
  8. package/dist/css/functional/themes/light-high-contrast.css +20 -0
  9. package/dist/css/functional/themes/light-tritanopia.css +20 -0
  10. package/dist/css/functional/themes/light.css +20 -0
  11. package/dist/deprecated/size.json +8 -0
  12. package/dist/docs/base/size/size.json +50 -0
  13. package/dist/docs/functional/size/size.json +12 -0
  14. package/dist/docs/functional/themes/dark-colorblind.json +304 -14
  15. package/dist/docs/functional/themes/dark-dimmed.json +304 -14
  16. package/dist/docs/functional/themes/dark-high-contrast.json +290 -0
  17. package/dist/docs/functional/themes/dark-tritanopia.json +304 -14
  18. package/dist/docs/functional/themes/dark.json +304 -14
  19. package/dist/docs/functional/themes/light-colorblind.json +290 -0
  20. package/dist/docs/functional/themes/light-high-contrast.json +290 -0
  21. package/dist/docs/functional/themes/light-tritanopia.json +290 -0
  22. package/dist/docs/functional/themes/light.json +290 -0
  23. package/dist/docs/functional/typography/typography.json +19 -1
  24. package/dist/fallbacks/base/size/size.json +2 -0
  25. package/dist/figma/dimension/dimension.json +20 -0
  26. package/dist/figma/themes/dark-colorblind.json +188 -28
  27. package/dist/figma/themes/dark-dimmed.json +188 -28
  28. package/dist/figma/themes/dark-high-contrast.json +160 -0
  29. package/dist/figma/themes/dark-tritanopia.json +188 -28
  30. package/dist/figma/themes/dark.json +188 -28
  31. package/dist/figma/themes/light-colorblind.json +160 -0
  32. package/dist/figma/themes/light-high-contrast.json +160 -0
  33. package/dist/figma/themes/light-tritanopia.json +160 -0
  34. package/dist/figma/themes/light.json +160 -0
  35. package/dist/figma/typography/typography.json +22 -11
  36. package/dist/internalCss/dark-colorblind.css +38 -18
  37. package/dist/internalCss/dark-dimmed.css +38 -18
  38. package/dist/internalCss/dark-high-contrast.css +20 -0
  39. package/dist/internalCss/dark-tritanopia.css +38 -18
  40. package/dist/internalCss/dark.css +38 -18
  41. package/dist/internalCss/light-colorblind.css +20 -0
  42. package/dist/internalCss/light-high-contrast.css +20 -0
  43. package/dist/internalCss/light-tritanopia.css +20 -0
  44. package/dist/internalCss/light.css +20 -0
  45. package/dist/styleLint/base/size/size.json +50 -0
  46. package/dist/styleLint/functional/size/size.json +12 -0
  47. package/dist/styleLint/functional/themes/dark-colorblind.json +304 -14
  48. package/dist/styleLint/functional/themes/dark-dimmed.json +304 -14
  49. package/dist/styleLint/functional/themes/dark-high-contrast.json +290 -0
  50. package/dist/styleLint/functional/themes/dark-tritanopia.json +304 -14
  51. package/dist/styleLint/functional/themes/dark.json +304 -14
  52. package/dist/styleLint/functional/themes/light-colorblind.json +290 -0
  53. package/dist/styleLint/functional/themes/light-high-contrast.json +290 -0
  54. package/dist/styleLint/functional/themes/light-tritanopia.json +290 -0
  55. package/dist/styleLint/functional/themes/light.json +290 -0
  56. package/dist/styleLint/functional/typography/typography.json +19 -1
  57. package/package.json +1 -1
  58. package/src/PrimerStyleDictionary.ts +6 -0
  59. package/src/platforms/figma.ts +1 -1
  60. package/src/schemas/baseToken.ts +1 -0
  61. package/src/tokens/base/size/size.json +20 -0
  62. package/src/tokens/functional/color/dark/display-dark.json5 +132 -0
  63. package/src/tokens/functional/color/dark/primitives-dark.json5 +3 -3
  64. package/src/tokens/functional/color/light/display-light.json5 +132 -0
  65. package/src/tokens/functional/size/size.json +6 -0
  66. package/src/tokens/functional/typography/typography.json +10 -1
  67. package/src/transformers/floatToPixel.ts +9 -2
  68. package/src/transformers/index.ts +1 -0
@@ -2055,6 +2055,151 @@
2055
2055
  "attributes": {},
2056
2056
  "path": ["display", "purple", "borderColor", "emphasis"]
2057
2057
  },
2058
+ "display-plum-bgColor-muted": {
2059
+ "value": "#2a0e3f",
2060
+ "$type": "color",
2061
+ "$extensions": {
2062
+ "org.primer.figma": {
2063
+ "collection": "mode",
2064
+ "mode": "light",
2065
+ "group": "component (internal)",
2066
+ "scopes": ["bgColor"]
2067
+ }
2068
+ },
2069
+ "filePath": "src/tokens/functional/color/dark/display-dark.json5",
2070
+ "isSource": true,
2071
+ "original": {
2072
+ "value": "{base.display.color.plum.0}",
2073
+ "$type": "color",
2074
+ "$extensions": {
2075
+ "org.primer.figma": {
2076
+ "collection": "mode",
2077
+ "mode": "light",
2078
+ "group": "component (internal)",
2079
+ "scopes": ["bgColor"]
2080
+ }
2081
+ }
2082
+ },
2083
+ "name": "display-plum-bgColor-muted",
2084
+ "attributes": {},
2085
+ "path": ["display", "plum", "bgColor", "muted"]
2086
+ },
2087
+ "display-plum-bgColor-emphasis": {
2088
+ "value": "#b643ef",
2089
+ "$type": "color",
2090
+ "$extensions": {
2091
+ "org.primer.figma": {
2092
+ "collection": "mode",
2093
+ "mode": "light",
2094
+ "group": "component (internal)",
2095
+ "scopes": ["bgColor"]
2096
+ }
2097
+ },
2098
+ "filePath": "src/tokens/functional/color/dark/display-dark.json5",
2099
+ "isSource": true,
2100
+ "original": {
2101
+ "value": "{base.display.color.plum.5}",
2102
+ "$type": "color",
2103
+ "$extensions": {
2104
+ "org.primer.figma": {
2105
+ "collection": "mode",
2106
+ "mode": "light",
2107
+ "group": "component (internal)",
2108
+ "scopes": ["bgColor"]
2109
+ }
2110
+ }
2111
+ },
2112
+ "name": "display-plum-bgColor-emphasis",
2113
+ "attributes": {},
2114
+ "path": ["display", "plum", "bgColor", "emphasis"]
2115
+ },
2116
+ "display-plum-fgColor": {
2117
+ "value": "#d07ef7",
2118
+ "$type": "color",
2119
+ "$extensions": {
2120
+ "org.primer.figma": {
2121
+ "collection": "mode",
2122
+ "mode": "light",
2123
+ "group": "component (internal)",
2124
+ "scopes": ["fgColor"]
2125
+ }
2126
+ },
2127
+ "filePath": "src/tokens/functional/color/dark/display-dark.json5",
2128
+ "isSource": true,
2129
+ "original": {
2130
+ "value": "{base.display.color.plum.6}",
2131
+ "$type": "color",
2132
+ "$extensions": {
2133
+ "org.primer.figma": {
2134
+ "collection": "mode",
2135
+ "mode": "light",
2136
+ "group": "component (internal)",
2137
+ "scopes": ["fgColor"]
2138
+ }
2139
+ }
2140
+ },
2141
+ "name": "display-plum-fgColor",
2142
+ "attributes": {},
2143
+ "path": ["display", "plum", "fgColor"]
2144
+ },
2145
+ "display-plum-borderColor-muted": {
2146
+ "value": "#40125e",
2147
+ "$type": "color",
2148
+ "$extensions": {
2149
+ "org.primer.figma": {
2150
+ "collection": "mode",
2151
+ "mode": "light",
2152
+ "group": "component (internal)",
2153
+ "scopes": ["borderColor"]
2154
+ }
2155
+ },
2156
+ "filePath": "src/tokens/functional/color/dark/display-dark.json5",
2157
+ "isSource": true,
2158
+ "original": {
2159
+ "value": "{base.display.color.plum.1}",
2160
+ "$type": "color",
2161
+ "$extensions": {
2162
+ "org.primer.figma": {
2163
+ "collection": "mode",
2164
+ "mode": "light",
2165
+ "group": "component (internal)",
2166
+ "scopes": ["borderColor"]
2167
+ }
2168
+ }
2169
+ },
2170
+ "name": "display-plum-borderColor-muted",
2171
+ "attributes": {},
2172
+ "path": ["display", "plum", "borderColor", "muted"]
2173
+ },
2174
+ "display-plum-borderColor-emphasis": {
2175
+ "value": "#b643ef",
2176
+ "$type": "color",
2177
+ "$extensions": {
2178
+ "org.primer.figma": {
2179
+ "collection": "mode",
2180
+ "mode": "light",
2181
+ "group": "component (internal)",
2182
+ "scopes": ["borderColor"]
2183
+ }
2184
+ },
2185
+ "filePath": "src/tokens/functional/color/dark/display-dark.json5",
2186
+ "isSource": true,
2187
+ "original": {
2188
+ "value": "{base.display.color.plum.5}",
2189
+ "$type": "color",
2190
+ "$extensions": {
2191
+ "org.primer.figma": {
2192
+ "collection": "mode",
2193
+ "mode": "light",
2194
+ "group": "component (internal)",
2195
+ "scopes": ["borderColor"]
2196
+ }
2197
+ }
2198
+ },
2199
+ "name": "display-plum-borderColor-emphasis",
2200
+ "attributes": {},
2201
+ "path": ["display", "plum", "borderColor", "emphasis"]
2202
+ },
2058
2203
  "display-red-bgColor-muted": {
2059
2204
  "value": "#3c0614",
2060
2205
  "$type": "color",
@@ -2200,6 +2345,151 @@
2200
2345
  "attributes": {},
2201
2346
  "path": ["display", "red", "borderColor", "emphasis"]
2202
2347
  },
2348
+ "display-coral-bgColor-muted": {
2349
+ "value": "#3c0614",
2350
+ "$type": "color",
2351
+ "$extensions": {
2352
+ "org.primer.figma": {
2353
+ "collection": "mode",
2354
+ "mode": "light",
2355
+ "group": "component (internal)",
2356
+ "scopes": ["bgColor"]
2357
+ }
2358
+ },
2359
+ "filePath": "src/tokens/functional/color/dark/display-dark.json5",
2360
+ "isSource": true,
2361
+ "original": {
2362
+ "value": "{base.display.color.red.0}",
2363
+ "$type": "color",
2364
+ "$extensions": {
2365
+ "org.primer.figma": {
2366
+ "collection": "mode",
2367
+ "mode": "light",
2368
+ "group": "component (internal)",
2369
+ "scopes": ["bgColor"]
2370
+ }
2371
+ }
2372
+ },
2373
+ "name": "display-coral-bgColor-muted",
2374
+ "attributes": {},
2375
+ "path": ["display", "coral", "bgColor", "muted"]
2376
+ },
2377
+ "display-coral-bgColor-emphasis": {
2378
+ "value": "#eb3342",
2379
+ "$type": "color",
2380
+ "$extensions": {
2381
+ "org.primer.figma": {
2382
+ "collection": "mode",
2383
+ "mode": "light",
2384
+ "group": "component (internal)",
2385
+ "scopes": ["bgColor"]
2386
+ }
2387
+ },
2388
+ "filePath": "src/tokens/functional/color/dark/display-dark.json5",
2389
+ "isSource": true,
2390
+ "original": {
2391
+ "value": "{base.display.color.red.5}",
2392
+ "$type": "color",
2393
+ "$extensions": {
2394
+ "org.primer.figma": {
2395
+ "collection": "mode",
2396
+ "mode": "light",
2397
+ "group": "component (internal)",
2398
+ "scopes": ["bgColor"]
2399
+ }
2400
+ }
2401
+ },
2402
+ "name": "display-coral-bgColor-emphasis",
2403
+ "attributes": {},
2404
+ "path": ["display", "coral", "bgColor", "emphasis"]
2405
+ },
2406
+ "display-coral-fgColor": {
2407
+ "value": "#f27d83",
2408
+ "$type": "color",
2409
+ "$extensions": {
2410
+ "org.primer.figma": {
2411
+ "collection": "mode",
2412
+ "mode": "light",
2413
+ "group": "component (internal)",
2414
+ "scopes": ["fgColor"]
2415
+ }
2416
+ },
2417
+ "filePath": "src/tokens/functional/color/dark/display-dark.json5",
2418
+ "isSource": true,
2419
+ "original": {
2420
+ "value": "{base.display.color.red.6}",
2421
+ "$type": "color",
2422
+ "$extensions": {
2423
+ "org.primer.figma": {
2424
+ "collection": "mode",
2425
+ "mode": "light",
2426
+ "group": "component (internal)",
2427
+ "scopes": ["fgColor"]
2428
+ }
2429
+ }
2430
+ },
2431
+ "name": "display-coral-fgColor",
2432
+ "attributes": {},
2433
+ "path": ["display", "coral", "fgColor"]
2434
+ },
2435
+ "display-coral-borderColor-muted": {
2436
+ "value": "#58091a",
2437
+ "$type": "color",
2438
+ "$extensions": {
2439
+ "org.primer.figma": {
2440
+ "collection": "mode",
2441
+ "mode": "light",
2442
+ "group": "component (internal)",
2443
+ "scopes": ["borderColor"]
2444
+ }
2445
+ },
2446
+ "filePath": "src/tokens/functional/color/dark/display-dark.json5",
2447
+ "isSource": true,
2448
+ "original": {
2449
+ "value": "{base.display.color.red.1}",
2450
+ "$type": "color",
2451
+ "$extensions": {
2452
+ "org.primer.figma": {
2453
+ "collection": "mode",
2454
+ "mode": "light",
2455
+ "group": "component (internal)",
2456
+ "scopes": ["borderColor"]
2457
+ }
2458
+ }
2459
+ },
2460
+ "name": "display-coral-borderColor-muted",
2461
+ "attributes": {},
2462
+ "path": ["display", "coral", "borderColor", "muted"]
2463
+ },
2464
+ "display-coral-borderColor-emphasis": {
2465
+ "value": "#eb3342",
2466
+ "$type": "color",
2467
+ "$extensions": {
2468
+ "org.primer.figma": {
2469
+ "collection": "mode",
2470
+ "mode": "light",
2471
+ "group": "component (internal)",
2472
+ "scopes": ["borderColor"]
2473
+ }
2474
+ },
2475
+ "filePath": "src/tokens/functional/color/dark/display-dark.json5",
2476
+ "isSource": true,
2477
+ "original": {
2478
+ "value": "{base.display.color.red.5}",
2479
+ "$type": "color",
2480
+ "$extensions": {
2481
+ "org.primer.figma": {
2482
+ "collection": "mode",
2483
+ "mode": "light",
2484
+ "group": "component (internal)",
2485
+ "scopes": ["borderColor"]
2486
+ }
2487
+ }
2488
+ },
2489
+ "name": "display-coral-borderColor-emphasis",
2490
+ "attributes": {},
2491
+ "path": ["display", "coral", "borderColor", "emphasis"]
2492
+ },
2203
2493
  "display-yellow-bgColor-muted": {
2204
2494
  "value": "#2e1a00",
2205
2495
  "$type": "color",