@primer/primitives 11.4.0 → 11.4.1-rc.4e2d1de5
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/DESIGN_TOKENS_GUIDE.md +185 -0
- package/DESIGN_TOKENS_SPEC.md +565 -0
- package/dist/build/formats/markdownLlmGuidelines.d.ts +7 -6
- package/dist/build/formats/markdownLlmGuidelines.js +1034 -60
- package/dist/build/schemas/borderToken.d.ts +16 -2
- package/dist/build/schemas/dimensionToken.d.ts +8 -1
- package/dist/build/schemas/dimensionValue.d.ts +24 -1
- package/dist/build/schemas/dimensionValue.js +20 -1
- package/dist/build/schemas/durationToken.d.ts +7 -1
- package/dist/build/schemas/durationValue.d.ts +11 -1
- package/dist/build/schemas/durationValue.js +13 -3
- package/dist/build/schemas/shadowToken.d.ts +672 -84
- package/dist/build/schemas/transitionToken.d.ts +14 -2
- package/dist/build/schemas/typographyToken.d.ts +32 -4
- package/dist/build/transformers/dimensionToPixelUnitless.d.ts +3 -2
- package/dist/build/transformers/dimensionToPixelUnitless.js +22 -26
- package/dist/build/transformers/dimensionToRem.d.ts +2 -1
- package/dist/build/transformers/dimensionToRem.js +21 -22
- package/dist/build/transformers/dimensionToRemPxArray.d.ts +2 -1
- package/dist/build/transformers/dimensionToRemPxArray.js +21 -22
- package/dist/build/transformers/durationToCss.d.ts +2 -1
- package/dist/build/transformers/durationToCss.js +18 -11
- package/dist/build/transformers/utilities/parseDimension.d.ts +12 -0
- package/dist/build/transformers/utilities/parseDimension.js +31 -0
- package/dist/build/types/dimensionTokenValue.d.ts +9 -0
- package/dist/css/functional/themes/dark-colorblind-high-contrast.css +18 -14
- package/dist/css/functional/themes/dark-colorblind.css +18 -14
- package/dist/css/functional/themes/dark-dimmed-high-contrast.css +18 -14
- package/dist/css/functional/themes/dark-dimmed.css +18 -14
- package/dist/css/functional/themes/dark-high-contrast.css +18 -14
- package/dist/css/functional/themes/dark-tritanopia-high-contrast.css +18 -14
- package/dist/css/functional/themes/dark-tritanopia.css +18 -14
- package/dist/css/functional/themes/dark.css +18 -14
- package/dist/css/functional/themes/light-colorblind-high-contrast.css +18 -14
- package/dist/css/functional/themes/light-colorblind.css +18 -14
- package/dist/css/functional/themes/light-high-contrast.css +18 -14
- package/dist/css/functional/themes/light-tritanopia-high-contrast.css +18 -14
- package/dist/css/functional/themes/light-tritanopia.css +18 -14
- package/dist/css/functional/themes/light.css +18 -14
- package/dist/css/primitives.css +4 -0
- package/dist/docs/base/motion/motion.json +96 -24
- package/dist/docs/base/size/size.json +76 -19
- package/dist/docs/base/typography/typography.json +24 -6
- package/dist/docs/functional/size/border.json +20 -5
- package/dist/docs/functional/size/breakpoints.json +24 -6
- package/dist/docs/functional/size/radius.json +16 -4
- package/dist/docs/functional/size/size.json +60 -15
- package/dist/docs/functional/themes/dark-colorblind-high-contrast.json +109 -7
- package/dist/docs/functional/themes/dark-colorblind.json +109 -7
- package/dist/docs/functional/themes/dark-dimmed-high-contrast.json +109 -7
- package/dist/docs/functional/themes/dark-dimmed.json +109 -7
- package/dist/docs/functional/themes/dark-high-contrast.json +109 -7
- package/dist/docs/functional/themes/dark-tritanopia-high-contrast.json +109 -7
- package/dist/docs/functional/themes/dark-tritanopia.json +109 -7
- package/dist/docs/functional/themes/dark.json +109 -7
- package/dist/docs/functional/themes/light-colorblind-high-contrast.json +115 -13
- package/dist/docs/functional/themes/light-colorblind.json +115 -13
- package/dist/docs/functional/themes/light-high-contrast.json +115 -13
- package/dist/docs/functional/themes/light-tritanopia-high-contrast.json +115 -13
- package/dist/docs/functional/themes/light-tritanopia.json +115 -13
- package/dist/docs/functional/themes/light.json +115 -13
- package/dist/docs/functional/typography/typography.json +8 -2
- package/dist/fallbacks/base/motion/motion.json +48 -12
- package/dist/figma/themes/light-colorblind.json +4 -4
- package/dist/figma/themes/light-high-contrast.json +4 -4
- package/dist/figma/themes/light-tritanopia.json +4 -4
- package/dist/figma/themes/light.json +4 -4
- package/dist/internalCss/dark-colorblind-high-contrast.css +14 -14
- package/dist/internalCss/dark-colorblind.css +14 -14
- package/dist/internalCss/dark-dimmed-high-contrast.css +14 -14
- package/dist/internalCss/dark-dimmed.css +14 -14
- package/dist/internalCss/dark-high-contrast.css +14 -14
- package/dist/internalCss/dark-tritanopia-high-contrast.css +14 -14
- package/dist/internalCss/dark-tritanopia.css +14 -14
- package/dist/internalCss/dark.css +14 -14
- package/dist/internalCss/light-colorblind-high-contrast.css +14 -14
- package/dist/internalCss/light-colorblind.css +14 -14
- package/dist/internalCss/light-high-contrast.css +14 -14
- package/dist/internalCss/light-tritanopia-high-contrast.css +14 -14
- package/dist/internalCss/light-tritanopia.css +14 -14
- package/dist/internalCss/light.css +14 -14
- package/dist/styleLint/base/motion/motion.json +96 -24
- package/dist/styleLint/base/size/size.json +76 -19
- package/dist/styleLint/base/typography/typography.json +30 -12
- package/dist/styleLint/functional/size/border.json +21 -6
- package/dist/styleLint/functional/size/breakpoints.json +24 -6
- package/dist/styleLint/functional/size/radius.json +17 -5
- package/dist/styleLint/functional/size/size-coarse.json +3 -3
- package/dist/styleLint/functional/size/size-fine.json +3 -3
- package/dist/styleLint/functional/size/size.json +111 -66
- package/dist/styleLint/functional/themes/dark-colorblind-high-contrast.json +129 -27
- package/dist/styleLint/functional/themes/dark-colorblind.json +129 -27
- package/dist/styleLint/functional/themes/dark-dimmed-high-contrast.json +129 -27
- package/dist/styleLint/functional/themes/dark-dimmed.json +129 -27
- package/dist/styleLint/functional/themes/dark-high-contrast.json +129 -27
- package/dist/styleLint/functional/themes/dark-tritanopia-high-contrast.json +129 -27
- package/dist/styleLint/functional/themes/dark-tritanopia.json +129 -27
- package/dist/styleLint/functional/themes/dark.json +129 -27
- package/dist/styleLint/functional/themes/light-colorblind-high-contrast.json +135 -33
- package/dist/styleLint/functional/themes/light-colorblind.json +135 -33
- package/dist/styleLint/functional/themes/light-high-contrast.json +135 -33
- package/dist/styleLint/functional/themes/light-tritanopia-high-contrast.json +135 -33
- package/dist/styleLint/functional/themes/light-tritanopia.json +135 -33
- package/dist/styleLint/functional/themes/light.json +135 -33
- package/dist/styleLint/functional/typography/typography.json +28 -22
- package/package.json +6 -5
- package/src/tokens/base/motion/timing.json5 +12 -12
- package/src/tokens/base/size/size.json5 +19 -19
- package/src/tokens/base/typography/typography.json5 +6 -6
- package/src/tokens/functional/color/bgColor.json5 +8 -0
- package/src/tokens/functional/color/display.json5 +7 -0
- package/src/tokens/functional/color/fgColor.json5 +8 -0
- package/src/tokens/functional/color/syntax.json5 +14 -0
- package/src/tokens/functional/shadow/shadow.json5 +39 -4
- package/src/tokens/functional/size/border.json5 +5 -5
- package/src/tokens/functional/size/breakpoints.json5 +6 -6
- package/src/tokens/functional/size/radius.json5 +4 -4
- package/src/tokens/functional/size/size.json5 +15 -15
- package/src/tokens/functional/typography/typography.json5 +8 -4
- package/dist/build/parsers/index.d.ts +0 -1
- package/dist/build/parsers/index.js +0 -1
- package/dist/build/parsers/w3cJsonParser.d.ts +0 -6
- package/dist/build/parsers/w3cJsonParser.js +0 -25
- package/dist/removed/testing.json5 +0 -4
- package/guidelines/color.llm.md +0 -16
- package/guidelines/guidelines.llm.md +0 -34
- package/guidelines/motion.llm.md +0 -41
- package/guidelines/spacing.llm.md +0 -20
- package/guidelines/typography.llm.md +0 -14
- package/src/tokens/removed/testing.json5 +0 -4
- package/token-guidelines.llm.md +0 -695
|
@@ -543,6 +543,10 @@
|
|
|
543
543
|
},
|
|
544
544
|
"org.primer.overrides": {
|
|
545
545
|
"dark": "#ffffff"
|
|
546
|
+
},
|
|
547
|
+
"org.primer.llm": {
|
|
548
|
+
"doNotUse": true,
|
|
549
|
+
"rules": "Avoid using raw black. Use semantic alternatives: bgColor.emphasis for dark backgrounds, bgColor.inverse for inverted contexts. Raw black/white ignore theme preferences and accessibility settings."
|
|
546
550
|
}
|
|
547
551
|
},
|
|
548
552
|
"filePath": "src/tokens/functional/color/bgColor.json5",
|
|
@@ -559,6 +563,10 @@
|
|
|
559
563
|
},
|
|
560
564
|
"org.primer.overrides": {
|
|
561
565
|
"dark": "{base.color.neutral.0}"
|
|
566
|
+
},
|
|
567
|
+
"org.primer.llm": {
|
|
568
|
+
"doNotUse": true,
|
|
569
|
+
"rules": "Avoid using raw black. Use semantic alternatives: bgColor.emphasis for dark backgrounds, bgColor.inverse for inverted contexts. Raw black/white ignore theme preferences and accessibility settings."
|
|
562
570
|
}
|
|
563
571
|
},
|
|
564
572
|
"key": "{bgColor.black}"
|
|
@@ -2435,6 +2443,10 @@
|
|
|
2435
2443
|
},
|
|
2436
2444
|
"org.primer.overrides": {
|
|
2437
2445
|
"dark": "#1f2328"
|
|
2446
|
+
},
|
|
2447
|
+
"org.primer.llm": {
|
|
2448
|
+
"doNotUse": true,
|
|
2449
|
+
"rules": "Avoid using raw white. Use semantic alternatives: bgColor.default for standard backgrounds, bgColor.inset for recessed areas, or bgColor.inverse for inverted contexts. Raw black/white ignore theme preferences and accessibility settings."
|
|
2438
2450
|
}
|
|
2439
2451
|
},
|
|
2440
2452
|
"filePath": "src/tokens/functional/color/bgColor.json5",
|
|
@@ -2451,6 +2463,10 @@
|
|
|
2451
2463
|
},
|
|
2452
2464
|
"org.primer.overrides": {
|
|
2453
2465
|
"dark": "{base.color.neutral.13}"
|
|
2466
|
+
},
|
|
2467
|
+
"org.primer.llm": {
|
|
2468
|
+
"doNotUse": true,
|
|
2469
|
+
"rules": "Avoid using raw white. Use semantic alternatives: bgColor.default for standard backgrounds, bgColor.inset for recessed areas, or bgColor.inverse for inverted contexts. Raw black/white ignore theme preferences and accessibility settings."
|
|
2454
2470
|
}
|
|
2455
2471
|
},
|
|
2456
2472
|
"key": "{bgColor.white}"
|
|
@@ -37211,6 +37227,10 @@
|
|
|
37211
37227
|
},
|
|
37212
37228
|
"org.primer.overrides": {
|
|
37213
37229
|
"dark": "#ffffff"
|
|
37230
|
+
},
|
|
37231
|
+
"org.primer.llm": {
|
|
37232
|
+
"doNotUse": true,
|
|
37233
|
+
"rules": "Avoid using raw black. Use semantic alternatives: fgColor.default for standard text, fgColor.muted for secondary text. Raw black/white ignore theme preferences and accessibility settings."
|
|
37214
37234
|
}
|
|
37215
37235
|
},
|
|
37216
37236
|
"filePath": "src/tokens/functional/color/fgColor.json5",
|
|
@@ -37227,6 +37247,10 @@
|
|
|
37227
37247
|
},
|
|
37228
37248
|
"org.primer.overrides": {
|
|
37229
37249
|
"dark": "{base.color.neutral.0}"
|
|
37250
|
+
},
|
|
37251
|
+
"org.primer.llm": {
|
|
37252
|
+
"doNotUse": true,
|
|
37253
|
+
"rules": "Avoid using raw black. Use semantic alternatives: fgColor.default for standard text, fgColor.muted for secondary text. Raw black/white ignore theme preferences and accessibility settings."
|
|
37230
37254
|
}
|
|
37231
37255
|
},
|
|
37232
37256
|
"key": "{fgColor.black}"
|
|
@@ -38200,6 +38224,10 @@
|
|
|
38200
38224
|
},
|
|
38201
38225
|
"org.primer.overrides": {
|
|
38202
38226
|
"dark": "#1f2328"
|
|
38227
|
+
},
|
|
38228
|
+
"org.primer.llm": {
|
|
38229
|
+
"doNotUse": true,
|
|
38230
|
+
"rules": "Avoid using raw white. Use semantic alternatives: fgColor.onEmphasis for text on dark backgrounds, fgColor.onInverse for inverted contexts. Raw black/white ignore theme preferences and accessibility settings."
|
|
38203
38231
|
}
|
|
38204
38232
|
},
|
|
38205
38233
|
"filePath": "src/tokens/functional/color/fgColor.json5",
|
|
@@ -38216,6 +38244,10 @@
|
|
|
38216
38244
|
},
|
|
38217
38245
|
"org.primer.overrides": {
|
|
38218
38246
|
"dark": "{base.color.neutral.13}"
|
|
38247
|
+
},
|
|
38248
|
+
"org.primer.llm": {
|
|
38249
|
+
"doNotUse": true,
|
|
38250
|
+
"rules": "Avoid using raw white. Use semantic alternatives: fgColor.onEmphasis for text on dark backgrounds, fgColor.onInverse for inverted contexts. Raw black/white ignore theme preferences and accessibility settings."
|
|
38219
38251
|
}
|
|
38220
38252
|
},
|
|
38221
38253
|
"key": "{fgColor.white}"
|
|
@@ -47525,6 +47557,10 @@
|
|
|
47525
47557
|
"isSource": true,
|
|
47526
47558
|
"$type": "shadow"
|
|
47527
47559
|
}
|
|
47560
|
+
},
|
|
47561
|
+
"org.primer.llm": {
|
|
47562
|
+
"usage": ["legacy-component", "backward-compatibility"],
|
|
47563
|
+
"rules": "DEPRECATED: Use shadow-floating-small instead. Only use for maintaining backward compatibility with existing implementations."
|
|
47528
47564
|
}
|
|
47529
47565
|
},
|
|
47530
47566
|
"filePath": "src/tokens/functional/shadow/shadow.json5",
|
|
@@ -47549,6 +47585,7 @@
|
|
|
47549
47585
|
}
|
|
47550
47586
|
],
|
|
47551
47587
|
"$type": "shadow",
|
|
47588
|
+
"$description": "Legacy floating shadow for backward compatibility",
|
|
47552
47589
|
"$extensions": {
|
|
47553
47590
|
"org.primer.figma": {},
|
|
47554
47591
|
"org.primer.overrides": {
|
|
@@ -47575,6 +47612,10 @@
|
|
|
47575
47612
|
"isSource": true,
|
|
47576
47613
|
"$type": "shadow"
|
|
47577
47614
|
}
|
|
47615
|
+
},
|
|
47616
|
+
"org.primer.llm": {
|
|
47617
|
+
"usage": ["legacy-component", "backward-compatibility"],
|
|
47618
|
+
"rules": "DEPRECATED: Use shadow-floating-small instead. Only use for maintaining backward compatibility with existing implementations."
|
|
47578
47619
|
}
|
|
47579
47620
|
},
|
|
47580
47621
|
"key": "{shadow.floating.legacy}"
|
|
@@ -47583,7 +47624,8 @@
|
|
|
47583
47624
|
"attributes": {},
|
|
47584
47625
|
"path": ["shadow", "floating", "legacy"],
|
|
47585
47626
|
"value": "0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f",
|
|
47586
|
-
"type": "shadow"
|
|
47627
|
+
"type": "shadow",
|
|
47628
|
+
"description": "Legacy floating shadow for backward compatibility"
|
|
47587
47629
|
},
|
|
47588
47630
|
"shadow-floating-medium": {
|
|
47589
47631
|
"key": "{shadow.floating.medium}",
|
|
@@ -47640,6 +47682,10 @@
|
|
|
47640
47682
|
"isSource": true,
|
|
47641
47683
|
"$type": "shadow"
|
|
47642
47684
|
}
|
|
47685
|
+
},
|
|
47686
|
+
"org.primer.llm": {
|
|
47687
|
+
"usage": ["popover", "action-menu", "select-panel", "autocomplete"],
|
|
47688
|
+
"rules": "Use for medium-sized floating elements like popovers and action menus. More prominent than small but less than dialogs. Do NOT use for full modals."
|
|
47643
47689
|
}
|
|
47644
47690
|
},
|
|
47645
47691
|
"filePath": "src/tokens/functional/shadow/shadow.json5",
|
|
@@ -47688,6 +47734,7 @@
|
|
|
47688
47734
|
}
|
|
47689
47735
|
],
|
|
47690
47736
|
"$type": "shadow",
|
|
47737
|
+
"$description": "Medium floating shadow for popovers and action menus",
|
|
47691
47738
|
"$extensions": {
|
|
47692
47739
|
"org.primer.figma": {
|
|
47693
47740
|
"collection": "mode",
|
|
@@ -47741,6 +47788,10 @@
|
|
|
47741
47788
|
"isSource": true,
|
|
47742
47789
|
"$type": "shadow"
|
|
47743
47790
|
}
|
|
47791
|
+
},
|
|
47792
|
+
"org.primer.llm": {
|
|
47793
|
+
"usage": ["popover", "action-menu", "select-panel", "autocomplete"],
|
|
47794
|
+
"rules": "Use for medium-sized floating elements like popovers and action menus. More prominent than small but less than dialogs. Do NOT use for full modals."
|
|
47744
47795
|
}
|
|
47745
47796
|
},
|
|
47746
47797
|
"key": "{shadow.floating.medium}"
|
|
@@ -47749,7 +47800,8 @@
|
|
|
47749
47800
|
"attributes": {},
|
|
47750
47801
|
"path": ["shadow", "floating", "medium"],
|
|
47751
47802
|
"value": "0px 0px 0px 1px #d1d9e0, 0px 8px 16px -4px #25292e14, 0px 4px 32px -4px #25292e14, 0px 24px 48px -12px #25292e14, 0px 48px 96px -24px #25292e14",
|
|
47752
|
-
"type": "shadow"
|
|
47803
|
+
"type": "shadow",
|
|
47804
|
+
"description": "Medium floating shadow for popovers and action menus"
|
|
47753
47805
|
},
|
|
47754
47806
|
"shadow-floating-small": {
|
|
47755
47807
|
"key": "{shadow.floating.small}",
|
|
@@ -47910,6 +47962,10 @@
|
|
|
47910
47962
|
"isSource": true,
|
|
47911
47963
|
"$type": "shadow"
|
|
47912
47964
|
}
|
|
47965
|
+
},
|
|
47966
|
+
"org.primer.llm": {
|
|
47967
|
+
"usage": ["full-screen-overlay", "side-sheet", "drawer", "large-modal"],
|
|
47968
|
+
"rules": "Use for full-screen or near-full-screen overlays like side sheets and drawers. Maximum elevation in the system. Do NOT use for small floating elements."
|
|
47913
47969
|
}
|
|
47914
47970
|
},
|
|
47915
47971
|
"filePath": "src/tokens/functional/shadow/shadow.json5",
|
|
@@ -47934,6 +47990,7 @@
|
|
|
47934
47990
|
}
|
|
47935
47991
|
],
|
|
47936
47992
|
"$type": "shadow",
|
|
47993
|
+
"$description": "Extra large floating shadow for full-screen overlays and sheets",
|
|
47937
47994
|
"$extensions": {
|
|
47938
47995
|
"org.primer.figma": {
|
|
47939
47996
|
"collection": "mode",
|
|
@@ -47963,6 +48020,10 @@
|
|
|
47963
48020
|
"isSource": true,
|
|
47964
48021
|
"$type": "shadow"
|
|
47965
48022
|
}
|
|
48023
|
+
},
|
|
48024
|
+
"org.primer.llm": {
|
|
48025
|
+
"usage": ["full-screen-overlay", "side-sheet", "drawer", "large-modal"],
|
|
48026
|
+
"rules": "Use for full-screen or near-full-screen overlays like side sheets and drawers. Maximum elevation in the system. Do NOT use for small floating elements."
|
|
47966
48027
|
}
|
|
47967
48028
|
},
|
|
47968
48029
|
"key": "{shadow.floating.xlarge}"
|
|
@@ -47971,7 +48032,8 @@
|
|
|
47971
48032
|
"attributes": {},
|
|
47972
48033
|
"path": ["shadow", "floating", "xlarge"],
|
|
47973
48034
|
"value": "0px 0px 0px 1px #d1d9e0, 0px 56px 112px 0px #25292e52",
|
|
47974
|
-
"type": "shadow"
|
|
48035
|
+
"type": "shadow",
|
|
48036
|
+
"description": "Extra large floating shadow for full-screen overlays and sheets"
|
|
47975
48037
|
},
|
|
47976
48038
|
"shadow-inset": {
|
|
47977
48039
|
"key": "{shadow.inset}",
|
|
@@ -47995,6 +48057,10 @@
|
|
|
47995
48057
|
"isSource": true,
|
|
47996
48058
|
"$type": "shadow"
|
|
47997
48059
|
}
|
|
48060
|
+
},
|
|
48061
|
+
"org.primer.llm": {
|
|
48062
|
+
"usage": ["input-field", "pressed-button", "recessed-area", "well"],
|
|
48063
|
+
"rules": "Use for elements that appear pressed or inset into the surface. Commonly used for input fields and wells. Do NOT use for floating elements."
|
|
47998
48064
|
}
|
|
47999
48065
|
},
|
|
48000
48066
|
"filePath": "src/tokens/functional/shadow/shadow.json5",
|
|
@@ -48010,6 +48076,7 @@
|
|
|
48010
48076
|
"inset": true
|
|
48011
48077
|
},
|
|
48012
48078
|
"$type": "shadow",
|
|
48079
|
+
"$description": "Inset shadow for recessed elements",
|
|
48013
48080
|
"$extensions": {
|
|
48014
48081
|
"org.primer.figma": {
|
|
48015
48082
|
"collection": "mode",
|
|
@@ -48030,6 +48097,10 @@
|
|
|
48030
48097
|
"isSource": true,
|
|
48031
48098
|
"$type": "shadow"
|
|
48032
48099
|
}
|
|
48100
|
+
},
|
|
48101
|
+
"org.primer.llm": {
|
|
48102
|
+
"usage": ["input-field", "pressed-button", "recessed-area", "well"],
|
|
48103
|
+
"rules": "Use for elements that appear pressed or inset into the surface. Commonly used for input fields and wells. Do NOT use for floating elements."
|
|
48033
48104
|
}
|
|
48034
48105
|
},
|
|
48035
48106
|
"key": "{shadow.inset}"
|
|
@@ -48038,7 +48109,8 @@
|
|
|
48038
48109
|
"attributes": {},
|
|
48039
48110
|
"path": ["shadow", "inset"],
|
|
48040
48111
|
"value": "inset 0px 1px 0px 0px #1f23280a",
|
|
48041
|
-
"type": "shadow"
|
|
48112
|
+
"type": "shadow",
|
|
48113
|
+
"description": "Inset shadow for recessed elements"
|
|
48042
48114
|
},
|
|
48043
48115
|
"shadow-resting-medium": {
|
|
48044
48116
|
"key": "{shadow.resting.medium}",
|
|
@@ -48071,6 +48143,10 @@
|
|
|
48071
48143
|
"isSource": true,
|
|
48072
48144
|
"$type": "shadow"
|
|
48073
48145
|
}
|
|
48146
|
+
},
|
|
48147
|
+
"org.primer.llm": {
|
|
48148
|
+
"usage": ["card", "panel", "elevated-surface", "elevated-sidebar"],
|
|
48149
|
+
"rules": "Use for cards and content panels that sit above the page surface. Provides moderate elevation without appearing to float. Do NOT use for overlays or modals."
|
|
48074
48150
|
}
|
|
48075
48151
|
},
|
|
48076
48152
|
"filePath": "src/tokens/functional/shadow/shadow.json5",
|
|
@@ -48095,6 +48171,7 @@
|
|
|
48095
48171
|
}
|
|
48096
48172
|
],
|
|
48097
48173
|
"$type": "shadow",
|
|
48174
|
+
"$description": "Medium resting shadow for cards and elevated surfaces",
|
|
48098
48175
|
"$extensions": {
|
|
48099
48176
|
"org.primer.figma": {
|
|
48100
48177
|
"collection": "mode",
|
|
@@ -48124,6 +48201,10 @@
|
|
|
48124
48201
|
"isSource": true,
|
|
48125
48202
|
"$type": "shadow"
|
|
48126
48203
|
}
|
|
48204
|
+
},
|
|
48205
|
+
"org.primer.llm": {
|
|
48206
|
+
"usage": ["card", "panel", "elevated-surface", "elevated-sidebar"],
|
|
48207
|
+
"rules": "Use for cards and content panels that sit above the page surface. Provides moderate elevation without appearing to float. Do NOT use for overlays or modals."
|
|
48127
48208
|
}
|
|
48128
48209
|
},
|
|
48129
48210
|
"key": "{shadow.resting.medium}"
|
|
@@ -48132,7 +48213,8 @@
|
|
|
48132
48213
|
"attributes": {},
|
|
48133
48214
|
"path": ["shadow", "resting", "medium"],
|
|
48134
48215
|
"value": "0px 1px 1px 0px #25292e1a, 0px 3px 6px 0px #25292e1f",
|
|
48135
|
-
"type": "shadow"
|
|
48216
|
+
"type": "shadow",
|
|
48217
|
+
"description": "Medium resting shadow for cards and elevated surfaces"
|
|
48136
48218
|
},
|
|
48137
48219
|
"shadow-resting-small": {
|
|
48138
48220
|
"key": "{shadow.resting.small}",
|
|
@@ -48167,6 +48249,10 @@
|
|
|
48167
48249
|
"isSource": true,
|
|
48168
48250
|
"$type": "shadow"
|
|
48169
48251
|
}
|
|
48252
|
+
},
|
|
48253
|
+
"org.primer.llm": {
|
|
48254
|
+
"usage": ["button", "interactive-card", "clickable-element"],
|
|
48255
|
+
"rules": "Use for buttons and small interactive elements at rest. Provides subtle depth and clickable affordance. RECOMMENDED for default button shadows."
|
|
48170
48256
|
}
|
|
48171
48257
|
},
|
|
48172
48258
|
"filePath": "src/tokens/functional/shadow/shadow.json5",
|
|
@@ -48175,7 +48261,7 @@
|
|
|
48175
48261
|
"$value": [
|
|
48176
48262
|
{
|
|
48177
48263
|
"color": "{base.color.neutral.13}",
|
|
48178
|
-
"alpha": 0.
|
|
48264
|
+
"alpha": 0.04,
|
|
48179
48265
|
"offsetX": "0px",
|
|
48180
48266
|
"offsetY": "1px",
|
|
48181
48267
|
"blur": "1px",
|
|
@@ -48184,15 +48270,16 @@
|
|
|
48184
48270
|
},
|
|
48185
48271
|
{
|
|
48186
48272
|
"color": "{base.color.neutral.13}",
|
|
48187
|
-
"alpha": 0.
|
|
48273
|
+
"alpha": 0.03,
|
|
48188
48274
|
"offsetX": "0px",
|
|
48189
48275
|
"offsetY": "1px",
|
|
48190
|
-
"blur": "
|
|
48276
|
+
"blur": "2px",
|
|
48191
48277
|
"spread": "0px",
|
|
48192
48278
|
"inset": false
|
|
48193
48279
|
}
|
|
48194
48280
|
],
|
|
48195
48281
|
"$type": "shadow",
|
|
48282
|
+
"$description": "Small resting shadow for buttons and interactive elements",
|
|
48196
48283
|
"$extensions": {
|
|
48197
48284
|
"org.primer.figma": {
|
|
48198
48285
|
"collection": "mode",
|
|
@@ -48224,6 +48311,10 @@
|
|
|
48224
48311
|
"isSource": true,
|
|
48225
48312
|
"$type": "shadow"
|
|
48226
48313
|
}
|
|
48314
|
+
},
|
|
48315
|
+
"org.primer.llm": {
|
|
48316
|
+
"usage": ["button", "interactive-card", "clickable-element"],
|
|
48317
|
+
"rules": "Use for buttons and small interactive elements at rest. Provides subtle depth and clickable affordance. RECOMMENDED for default button shadows."
|
|
48227
48318
|
}
|
|
48228
48319
|
},
|
|
48229
48320
|
"key": "{shadow.resting.small}"
|
|
@@ -48231,8 +48322,9 @@
|
|
|
48231
48322
|
"name": "shadow-resting-small",
|
|
48232
48323
|
"attributes": {},
|
|
48233
48324
|
"path": ["shadow", "resting", "small"],
|
|
48234
|
-
"value": "0px 1px 1px 0px #
|
|
48235
|
-
"type": "shadow"
|
|
48325
|
+
"value": "0px 1px 1px 0px #1f23280a, 0px 1px 2px 0px #1f232808",
|
|
48326
|
+
"type": "shadow",
|
|
48327
|
+
"description": "Small resting shadow for buttons and interactive elements"
|
|
48236
48328
|
},
|
|
48237
48329
|
"shadow-resting-xsmall": {
|
|
48238
48330
|
"key": "{shadow.resting.xsmall}",
|
|
@@ -48256,6 +48348,10 @@
|
|
|
48256
48348
|
"isSource": true,
|
|
48257
48349
|
"$type": "shadow"
|
|
48258
48350
|
}
|
|
48351
|
+
},
|
|
48352
|
+
"org.primer.llm": {
|
|
48353
|
+
"usage": ["badge", "chip", "small-card", "subtle-elevation"],
|
|
48354
|
+
"rules": "Use for very subtle elevation on small elements. Provides minimal lift from surface. Do NOT use for interactive elements needing clear affordance."
|
|
48259
48355
|
}
|
|
48260
48356
|
},
|
|
48261
48357
|
"filePath": "src/tokens/functional/shadow/shadow.json5",
|
|
@@ -48263,7 +48359,7 @@
|
|
|
48263
48359
|
"original": {
|
|
48264
48360
|
"$value": {
|
|
48265
48361
|
"color": "{base.color.neutral.13}",
|
|
48266
|
-
"alpha": 0.
|
|
48362
|
+
"alpha": 0.05,
|
|
48267
48363
|
"offsetX": "0px",
|
|
48268
48364
|
"offsetY": "1px",
|
|
48269
48365
|
"blur": "1px",
|
|
@@ -48271,6 +48367,7 @@
|
|
|
48271
48367
|
"inset": false
|
|
48272
48368
|
},
|
|
48273
48369
|
"$type": "shadow",
|
|
48370
|
+
"$description": "Extra small resting shadow for minimal elevation",
|
|
48274
48371
|
"$extensions": {
|
|
48275
48372
|
"org.primer.figma": {
|
|
48276
48373
|
"collection": "mode",
|
|
@@ -48291,6 +48388,10 @@
|
|
|
48291
48388
|
"isSource": true,
|
|
48292
48389
|
"$type": "shadow"
|
|
48293
48390
|
}
|
|
48391
|
+
},
|
|
48392
|
+
"org.primer.llm": {
|
|
48393
|
+
"usage": ["badge", "chip", "small-card", "subtle-elevation"],
|
|
48394
|
+
"rules": "Use for very subtle elevation on small elements. Provides minimal lift from surface. Do NOT use for interactive elements needing clear affordance."
|
|
48294
48395
|
}
|
|
48295
48396
|
},
|
|
48296
48397
|
"key": "{shadow.resting.xsmall}"
|
|
@@ -48298,8 +48399,9 @@
|
|
|
48298
48399
|
"name": "shadow-resting-xsmall",
|
|
48299
48400
|
"attributes": {},
|
|
48300
48401
|
"path": ["shadow", "resting", "xsmall"],
|
|
48301
|
-
"value": "0px 1px 1px 0px #
|
|
48302
|
-
"type": "shadow"
|
|
48402
|
+
"value": "0px 1px 1px 0px #1f23280d",
|
|
48403
|
+
"type": "shadow",
|
|
48404
|
+
"description": "Extra small resting shadow for minimal elevation"
|
|
48303
48405
|
},
|
|
48304
48406
|
"sideNav-bgColor-selected": {
|
|
48305
48407
|
"key": "{sideNav.bgColor.selected}",
|
|
@@ -647,7 +647,10 @@
|
|
|
647
647
|
"filePath": "src/tokens/functional/typography/typography.json5",
|
|
648
648
|
"isSource": true,
|
|
649
649
|
"original": {
|
|
650
|
-
"$value":
|
|
650
|
+
"$value": {
|
|
651
|
+
"value": 13,
|
|
652
|
+
"unit": "px"
|
|
653
|
+
},
|
|
651
654
|
"$type": "dimension",
|
|
652
655
|
"$extensions": {
|
|
653
656
|
"org.primer.figma": {
|
|
@@ -734,7 +737,10 @@
|
|
|
734
737
|
"filePath": "src/tokens/functional/typography/typography.json5",
|
|
735
738
|
"isSource": true,
|
|
736
739
|
"original": {
|
|
737
|
-
"$value":
|
|
740
|
+
"$value": {
|
|
741
|
+
"value": 0.9285,
|
|
742
|
+
"unit": "em"
|
|
743
|
+
},
|
|
738
744
|
"$type": "dimension",
|
|
739
745
|
"$extensions": {
|
|
740
746
|
"org.primer.figma": {
|
|
@@ -4,16 +4,52 @@
|
|
|
4
4
|
"--base-easing-easeIn": [0.7, 0.1, 0.75, 0.9],
|
|
5
5
|
"--base-easing-easeOut": [0.3, 0.8, 0.6, 1],
|
|
6
6
|
"--base-easing-easeInOut": [0.6, 0, 0.2, 1],
|
|
7
|
-
"--base-duration-0":
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"--base-duration-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"--base-duration-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
"--base-duration-0": {
|
|
8
|
+
"value": 0,
|
|
9
|
+
"unit": "ms"
|
|
10
|
+
},
|
|
11
|
+
"--base-duration-50": {
|
|
12
|
+
"value": 50,
|
|
13
|
+
"unit": "ms"
|
|
14
|
+
},
|
|
15
|
+
"--base-duration-100": {
|
|
16
|
+
"value": 100,
|
|
17
|
+
"unit": "ms"
|
|
18
|
+
},
|
|
19
|
+
"--base-duration-200": {
|
|
20
|
+
"value": 200,
|
|
21
|
+
"unit": "ms"
|
|
22
|
+
},
|
|
23
|
+
"--base-duration-300": {
|
|
24
|
+
"value": 300,
|
|
25
|
+
"unit": "ms"
|
|
26
|
+
},
|
|
27
|
+
"--base-duration-400": {
|
|
28
|
+
"value": 400,
|
|
29
|
+
"unit": "ms"
|
|
30
|
+
},
|
|
31
|
+
"--base-duration-500": {
|
|
32
|
+
"value": 500,
|
|
33
|
+
"unit": "ms"
|
|
34
|
+
},
|
|
35
|
+
"--base-duration-600": {
|
|
36
|
+
"value": 600,
|
|
37
|
+
"unit": "ms"
|
|
38
|
+
},
|
|
39
|
+
"--base-duration-700": {
|
|
40
|
+
"value": 700,
|
|
41
|
+
"unit": "ms"
|
|
42
|
+
},
|
|
43
|
+
"--base-duration-800": {
|
|
44
|
+
"value": 800,
|
|
45
|
+
"unit": "ms"
|
|
46
|
+
},
|
|
47
|
+
"--base-duration-900": {
|
|
48
|
+
"value": 900,
|
|
49
|
+
"unit": "ms"
|
|
50
|
+
},
|
|
51
|
+
"--base-duration-1000": {
|
|
52
|
+
"value": 1000,
|
|
53
|
+
"unit": "ms"
|
|
54
|
+
}
|
|
19
55
|
}
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"r": 0.12156862745098039,
|
|
92
92
|
"g": 0.13725490196078433,
|
|
93
93
|
"b": 0.1568627450980392,
|
|
94
|
-
"a": 0.
|
|
94
|
+
"a": 0.05
|
|
95
95
|
},
|
|
96
96
|
"type": "COLOR",
|
|
97
97
|
"scopes": ["EFFECT_COLOR"],
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"r": 0.12156862745098039,
|
|
142
142
|
"g": 0.13725490196078433,
|
|
143
143
|
"b": 0.1568627450980392,
|
|
144
|
-
"a": 0.
|
|
144
|
+
"a": 0.04
|
|
145
145
|
},
|
|
146
146
|
"type": "COLOR",
|
|
147
147
|
"scopes": ["EFFECT_COLOR"],
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
"name": "shadow/resting/small/2/blur",
|
|
172
|
-
"value":
|
|
172
|
+
"value": 2,
|
|
173
173
|
"type": "FLOAT",
|
|
174
174
|
"scopes": ["EFFECT_FLOAT"],
|
|
175
175
|
"mode": "light protanopia deuteranopia",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"r": 0.12156862745098039,
|
|
192
192
|
"g": 0.13725490196078433,
|
|
193
193
|
"b": 0.1568627450980392,
|
|
194
|
-
"a": 0.
|
|
194
|
+
"a": 0.03
|
|
195
195
|
},
|
|
196
196
|
"type": "COLOR",
|
|
197
197
|
"scopes": ["EFFECT_COLOR"],
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"r": 0.00392156862745098,
|
|
92
92
|
"g": 0.01568627450980392,
|
|
93
93
|
"b": 0.03529411764705882,
|
|
94
|
-
"a": 0.
|
|
94
|
+
"a": 0.05
|
|
95
95
|
},
|
|
96
96
|
"type": "COLOR",
|
|
97
97
|
"scopes": ["EFFECT_COLOR"],
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"r": 0.00392156862745098,
|
|
142
142
|
"g": 0.01568627450980392,
|
|
143
143
|
"b": 0.03529411764705882,
|
|
144
|
-
"a": 0.
|
|
144
|
+
"a": 0.04
|
|
145
145
|
},
|
|
146
146
|
"type": "COLOR",
|
|
147
147
|
"scopes": ["EFFECT_COLOR"],
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
"name": "shadow/resting/small/2/blur",
|
|
172
|
-
"value":
|
|
172
|
+
"value": 2,
|
|
173
173
|
"type": "FLOAT",
|
|
174
174
|
"scopes": ["EFFECT_FLOAT"],
|
|
175
175
|
"mode": "light high contrast",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"r": 0.00392156862745098,
|
|
192
192
|
"g": 0.01568627450980392,
|
|
193
193
|
"b": 0.03529411764705882,
|
|
194
|
-
"a": 0.
|
|
194
|
+
"a": 0.03
|
|
195
195
|
},
|
|
196
196
|
"type": "COLOR",
|
|
197
197
|
"scopes": ["EFFECT_COLOR"],
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"r": 0.12156862745098039,
|
|
92
92
|
"g": 0.13725490196078433,
|
|
93
93
|
"b": 0.1568627450980392,
|
|
94
|
-
"a": 0.
|
|
94
|
+
"a": 0.05
|
|
95
95
|
},
|
|
96
96
|
"type": "COLOR",
|
|
97
97
|
"scopes": ["EFFECT_COLOR"],
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"r": 0.12156862745098039,
|
|
142
142
|
"g": 0.13725490196078433,
|
|
143
143
|
"b": 0.1568627450980392,
|
|
144
|
-
"a": 0.
|
|
144
|
+
"a": 0.04
|
|
145
145
|
},
|
|
146
146
|
"type": "COLOR",
|
|
147
147
|
"scopes": ["EFFECT_COLOR"],
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
"name": "shadow/resting/small/2/blur",
|
|
172
|
-
"value":
|
|
172
|
+
"value": 2,
|
|
173
173
|
"type": "FLOAT",
|
|
174
174
|
"scopes": ["EFFECT_FLOAT"],
|
|
175
175
|
"mode": "light tritanopia",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"r": 0.12156862745098039,
|
|
192
192
|
"g": 0.13725490196078433,
|
|
193
193
|
"b": 0.1568627450980392,
|
|
194
|
-
"a": 0.
|
|
194
|
+
"a": 0.03
|
|
195
195
|
},
|
|
196
196
|
"type": "COLOR",
|
|
197
197
|
"scopes": ["EFFECT_COLOR"],
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"r": 0.12156862745098039,
|
|
92
92
|
"g": 0.13725490196078433,
|
|
93
93
|
"b": 0.1568627450980392,
|
|
94
|
-
"a": 0.
|
|
94
|
+
"a": 0.05
|
|
95
95
|
},
|
|
96
96
|
"type": "COLOR",
|
|
97
97
|
"scopes": ["EFFECT_COLOR"],
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"r": 0.12156862745098039,
|
|
142
142
|
"g": 0.13725490196078433,
|
|
143
143
|
"b": 0.1568627450980392,
|
|
144
|
-
"a": 0.
|
|
144
|
+
"a": 0.04
|
|
145
145
|
},
|
|
146
146
|
"type": "COLOR",
|
|
147
147
|
"scopes": ["EFFECT_COLOR"],
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
"name": "shadow/resting/small/2/blur",
|
|
172
|
-
"value":
|
|
172
|
+
"value": 2,
|
|
173
173
|
"type": "FLOAT",
|
|
174
174
|
"scopes": ["EFFECT_FLOAT"],
|
|
175
175
|
"mode": "light",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"r": 0.12156862745098039,
|
|
192
192
|
"g": 0.13725490196078433,
|
|
193
193
|
"b": 0.1568627450980392,
|
|
194
|
-
"a": 0.
|
|
194
|
+
"a": 0.03
|
|
195
195
|
},
|
|
196
196
|
"type": "COLOR",
|
|
197
197
|
"scopes": ["EFFECT_COLOR"],
|