@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
|
@@ -549,6 +549,10 @@
|
|
|
549
549
|
},
|
|
550
550
|
"org.primer.overrides": {
|
|
551
551
|
"dark": "#010409"
|
|
552
|
+
},
|
|
553
|
+
"org.primer.llm": {
|
|
554
|
+
"doNotUse": true,
|
|
555
|
+
"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."
|
|
552
556
|
}
|
|
553
557
|
},
|
|
554
558
|
"filePath": "src/tokens/functional/color/bgColor.json5",
|
|
@@ -565,6 +569,10 @@
|
|
|
565
569
|
},
|
|
566
570
|
"org.primer.overrides": {
|
|
567
571
|
"dark": "{base.color.neutral.0}"
|
|
572
|
+
},
|
|
573
|
+
"org.primer.llm": {
|
|
574
|
+
"doNotUse": true,
|
|
575
|
+
"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."
|
|
568
576
|
}
|
|
569
577
|
},
|
|
570
578
|
"key": "{bgColor.black}"
|
|
@@ -2451,6 +2459,10 @@
|
|
|
2451
2459
|
},
|
|
2452
2460
|
"org.primer.overrides": {
|
|
2453
2461
|
"dark": "#cdd9e5"
|
|
2462
|
+
},
|
|
2463
|
+
"org.primer.llm": {
|
|
2464
|
+
"doNotUse": true,
|
|
2465
|
+
"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
2466
|
}
|
|
2455
2467
|
},
|
|
2456
2468
|
"filePath": "src/tokens/functional/color/bgColor.json5",
|
|
@@ -2467,6 +2479,10 @@
|
|
|
2467
2479
|
},
|
|
2468
2480
|
"org.primer.overrides": {
|
|
2469
2481
|
"dark": "{base.color.neutral.13}"
|
|
2482
|
+
},
|
|
2483
|
+
"org.primer.llm": {
|
|
2484
|
+
"doNotUse": true,
|
|
2485
|
+
"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."
|
|
2470
2486
|
}
|
|
2471
2487
|
},
|
|
2472
2488
|
"key": "{bgColor.white}"
|
|
@@ -37243,6 +37259,10 @@
|
|
|
37243
37259
|
},
|
|
37244
37260
|
"org.primer.overrides": {
|
|
37245
37261
|
"dark": "#010409"
|
|
37262
|
+
},
|
|
37263
|
+
"org.primer.llm": {
|
|
37264
|
+
"doNotUse": true,
|
|
37265
|
+
"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."
|
|
37246
37266
|
}
|
|
37247
37267
|
},
|
|
37248
37268
|
"filePath": "src/tokens/functional/color/fgColor.json5",
|
|
@@ -37259,6 +37279,10 @@
|
|
|
37259
37279
|
},
|
|
37260
37280
|
"org.primer.overrides": {
|
|
37261
37281
|
"dark": "{base.color.neutral.0}"
|
|
37282
|
+
},
|
|
37283
|
+
"org.primer.llm": {
|
|
37284
|
+
"doNotUse": true,
|
|
37285
|
+
"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."
|
|
37262
37286
|
}
|
|
37263
37287
|
},
|
|
37264
37288
|
"key": "{fgColor.black}"
|
|
@@ -38232,6 +38256,10 @@
|
|
|
38232
38256
|
},
|
|
38233
38257
|
"org.primer.overrides": {
|
|
38234
38258
|
"dark": "#cdd9e5"
|
|
38259
|
+
},
|
|
38260
|
+
"org.primer.llm": {
|
|
38261
|
+
"doNotUse": true,
|
|
38262
|
+
"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."
|
|
38235
38263
|
}
|
|
38236
38264
|
},
|
|
38237
38265
|
"filePath": "src/tokens/functional/color/fgColor.json5",
|
|
@@ -38248,6 +38276,10 @@
|
|
|
38248
38276
|
},
|
|
38249
38277
|
"org.primer.overrides": {
|
|
38250
38278
|
"dark": "{base.color.neutral.13}"
|
|
38279
|
+
},
|
|
38280
|
+
"org.primer.llm": {
|
|
38281
|
+
"doNotUse": true,
|
|
38282
|
+
"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."
|
|
38251
38283
|
}
|
|
38252
38284
|
},
|
|
38253
38285
|
"key": "{fgColor.white}"
|
|
@@ -47565,6 +47597,10 @@
|
|
|
47565
47597
|
"isSource": true,
|
|
47566
47598
|
"$type": "shadow"
|
|
47567
47599
|
}
|
|
47600
|
+
},
|
|
47601
|
+
"org.primer.llm": {
|
|
47602
|
+
"usage": ["legacy-component", "backward-compatibility"],
|
|
47603
|
+
"rules": "DEPRECATED: Use shadow-floating-small instead. Only use for maintaining backward compatibility with existing implementations."
|
|
47568
47604
|
}
|
|
47569
47605
|
},
|
|
47570
47606
|
"filePath": "src/tokens/functional/shadow/shadow.json5",
|
|
@@ -47589,6 +47625,7 @@
|
|
|
47589
47625
|
}
|
|
47590
47626
|
],
|
|
47591
47627
|
"$type": "shadow",
|
|
47628
|
+
"$description": "Legacy floating shadow for backward compatibility",
|
|
47592
47629
|
"$extensions": {
|
|
47593
47630
|
"org.primer.figma": {},
|
|
47594
47631
|
"org.primer.overrides": {
|
|
@@ -47615,6 +47652,10 @@
|
|
|
47615
47652
|
"isSource": true,
|
|
47616
47653
|
"$type": "shadow"
|
|
47617
47654
|
}
|
|
47655
|
+
},
|
|
47656
|
+
"org.primer.llm": {
|
|
47657
|
+
"usage": ["legacy-component", "backward-compatibility"],
|
|
47658
|
+
"rules": "DEPRECATED: Use shadow-floating-small instead. Only use for maintaining backward compatibility with existing implementations."
|
|
47618
47659
|
}
|
|
47619
47660
|
},
|
|
47620
47661
|
"key": "{shadow.floating.legacy}"
|
|
@@ -47623,7 +47664,8 @@
|
|
|
47623
47664
|
"attributes": {},
|
|
47624
47665
|
"path": ["shadow", "floating", "legacy"],
|
|
47625
47666
|
"value": "0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966",
|
|
47626
|
-
"type": "shadow"
|
|
47667
|
+
"type": "shadow",
|
|
47668
|
+
"description": "Legacy floating shadow for backward compatibility"
|
|
47627
47669
|
},
|
|
47628
47670
|
"shadow-floating-medium": {
|
|
47629
47671
|
"key": "{shadow.floating.medium}",
|
|
@@ -47680,6 +47722,10 @@
|
|
|
47680
47722
|
"isSource": true,
|
|
47681
47723
|
"$type": "shadow"
|
|
47682
47724
|
}
|
|
47725
|
+
},
|
|
47726
|
+
"org.primer.llm": {
|
|
47727
|
+
"usage": ["popover", "action-menu", "select-panel", "autocomplete"],
|
|
47728
|
+
"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."
|
|
47683
47729
|
}
|
|
47684
47730
|
},
|
|
47685
47731
|
"filePath": "src/tokens/functional/shadow/shadow.json5",
|
|
@@ -47728,6 +47774,7 @@
|
|
|
47728
47774
|
}
|
|
47729
47775
|
],
|
|
47730
47776
|
"$type": "shadow",
|
|
47777
|
+
"$description": "Medium floating shadow for popovers and action menus",
|
|
47731
47778
|
"$extensions": {
|
|
47732
47779
|
"org.primer.figma": {
|
|
47733
47780
|
"collection": "mode",
|
|
@@ -47781,6 +47828,10 @@
|
|
|
47781
47828
|
"isSource": true,
|
|
47782
47829
|
"$type": "shadow"
|
|
47783
47830
|
}
|
|
47831
|
+
},
|
|
47832
|
+
"org.primer.llm": {
|
|
47833
|
+
"usage": ["popover", "action-menu", "select-panel", "autocomplete"],
|
|
47834
|
+
"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."
|
|
47784
47835
|
}
|
|
47785
47836
|
},
|
|
47786
47837
|
"key": "{shadow.floating.medium}"
|
|
@@ -47789,7 +47840,8 @@
|
|
|
47789
47840
|
"attributes": {},
|
|
47790
47841
|
"path": ["shadow", "floating", "medium"],
|
|
47791
47842
|
"value": "0px 0px 0px 1px #b7bdc8, 0px 8px 16px -4px #01040966, 0px 4px 32px -4px #01040966, 0px 24px 48px -12px #01040966, 0px 48px 96px -24px #01040966",
|
|
47792
|
-
"type": "shadow"
|
|
47843
|
+
"type": "shadow",
|
|
47844
|
+
"description": "Medium floating shadow for popovers and action menus"
|
|
47793
47845
|
},
|
|
47794
47846
|
"shadow-floating-small": {
|
|
47795
47847
|
"key": "{shadow.floating.small}",
|
|
@@ -47950,6 +48002,10 @@
|
|
|
47950
48002
|
"isSource": true,
|
|
47951
48003
|
"$type": "shadow"
|
|
47952
48004
|
}
|
|
48005
|
+
},
|
|
48006
|
+
"org.primer.llm": {
|
|
48007
|
+
"usage": ["full-screen-overlay", "side-sheet", "drawer", "large-modal"],
|
|
48008
|
+
"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."
|
|
47953
48009
|
}
|
|
47954
48010
|
},
|
|
47955
48011
|
"filePath": "src/tokens/functional/shadow/shadow.json5",
|
|
@@ -47974,6 +48030,7 @@
|
|
|
47974
48030
|
}
|
|
47975
48031
|
],
|
|
47976
48032
|
"$type": "shadow",
|
|
48033
|
+
"$description": "Extra large floating shadow for full-screen overlays and sheets",
|
|
47977
48034
|
"$extensions": {
|
|
47978
48035
|
"org.primer.figma": {
|
|
47979
48036
|
"collection": "mode",
|
|
@@ -48003,6 +48060,10 @@
|
|
|
48003
48060
|
"isSource": true,
|
|
48004
48061
|
"$type": "shadow"
|
|
48005
48062
|
}
|
|
48063
|
+
},
|
|
48064
|
+
"org.primer.llm": {
|
|
48065
|
+
"usage": ["full-screen-overlay", "side-sheet", "drawer", "large-modal"],
|
|
48066
|
+
"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."
|
|
48006
48067
|
}
|
|
48007
48068
|
},
|
|
48008
48069
|
"key": "{shadow.floating.xlarge}"
|
|
@@ -48011,7 +48072,8 @@
|
|
|
48011
48072
|
"attributes": {},
|
|
48012
48073
|
"path": ["shadow", "floating", "xlarge"],
|
|
48013
48074
|
"value": "0px 0px 0px 1px #b7bdc8, 0px 32px 64px 0px #010409",
|
|
48014
|
-
"type": "shadow"
|
|
48075
|
+
"type": "shadow",
|
|
48076
|
+
"description": "Extra large floating shadow for full-screen overlays and sheets"
|
|
48015
48077
|
},
|
|
48016
48078
|
"shadow-inset": {
|
|
48017
48079
|
"key": "{shadow.inset}",
|
|
@@ -48035,6 +48097,10 @@
|
|
|
48035
48097
|
"isSource": true,
|
|
48036
48098
|
"$type": "shadow"
|
|
48037
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."
|
|
48038
48104
|
}
|
|
48039
48105
|
},
|
|
48040
48106
|
"filePath": "src/tokens/functional/shadow/shadow.json5",
|
|
@@ -48050,6 +48116,7 @@
|
|
|
48050
48116
|
"inset": true
|
|
48051
48117
|
},
|
|
48052
48118
|
"$type": "shadow",
|
|
48119
|
+
"$description": "Inset shadow for recessed elements",
|
|
48053
48120
|
"$extensions": {
|
|
48054
48121
|
"org.primer.figma": {
|
|
48055
48122
|
"collection": "mode",
|
|
@@ -48070,6 +48137,10 @@
|
|
|
48070
48137
|
"isSource": true,
|
|
48071
48138
|
"$type": "shadow"
|
|
48072
48139
|
}
|
|
48140
|
+
},
|
|
48141
|
+
"org.primer.llm": {
|
|
48142
|
+
"usage": ["input-field", "pressed-button", "recessed-area", "well"],
|
|
48143
|
+
"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."
|
|
48073
48144
|
}
|
|
48074
48145
|
},
|
|
48075
48146
|
"key": "{shadow.inset}"
|
|
@@ -48078,7 +48149,8 @@
|
|
|
48078
48149
|
"attributes": {},
|
|
48079
48150
|
"path": ["shadow", "inset"],
|
|
48080
48151
|
"value": "inset 0px 1px 0px 0px #0104093d",
|
|
48081
|
-
"type": "shadow"
|
|
48152
|
+
"type": "shadow",
|
|
48153
|
+
"description": "Inset shadow for recessed elements"
|
|
48082
48154
|
},
|
|
48083
48155
|
"shadow-resting-medium": {
|
|
48084
48156
|
"key": "{shadow.resting.medium}",
|
|
@@ -48111,6 +48183,10 @@
|
|
|
48111
48183
|
"isSource": true,
|
|
48112
48184
|
"$type": "shadow"
|
|
48113
48185
|
}
|
|
48186
|
+
},
|
|
48187
|
+
"org.primer.llm": {
|
|
48188
|
+
"usage": ["card", "panel", "elevated-surface", "elevated-sidebar"],
|
|
48189
|
+
"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."
|
|
48114
48190
|
}
|
|
48115
48191
|
},
|
|
48116
48192
|
"filePath": "src/tokens/functional/shadow/shadow.json5",
|
|
@@ -48135,6 +48211,7 @@
|
|
|
48135
48211
|
}
|
|
48136
48212
|
],
|
|
48137
48213
|
"$type": "shadow",
|
|
48214
|
+
"$description": "Medium resting shadow for cards and elevated surfaces",
|
|
48138
48215
|
"$extensions": {
|
|
48139
48216
|
"org.primer.figma": {
|
|
48140
48217
|
"collection": "mode",
|
|
@@ -48164,6 +48241,10 @@
|
|
|
48164
48241
|
"isSource": true,
|
|
48165
48242
|
"$type": "shadow"
|
|
48166
48243
|
}
|
|
48244
|
+
},
|
|
48245
|
+
"org.primer.llm": {
|
|
48246
|
+
"usage": ["card", "panel", "elevated-surface", "elevated-sidebar"],
|
|
48247
|
+
"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."
|
|
48167
48248
|
}
|
|
48168
48249
|
},
|
|
48169
48250
|
"key": "{shadow.resting.medium}"
|
|
@@ -48172,7 +48253,8 @@
|
|
|
48172
48253
|
"attributes": {},
|
|
48173
48254
|
"path": ["shadow", "resting", "medium"],
|
|
48174
48255
|
"value": "0px 1px 1px 0px #01040966, 0px 3px 6px 0px #010409cc",
|
|
48175
|
-
"type": "shadow"
|
|
48256
|
+
"type": "shadow",
|
|
48257
|
+
"description": "Medium resting shadow for cards and elevated surfaces"
|
|
48176
48258
|
},
|
|
48177
48259
|
"shadow-resting-small": {
|
|
48178
48260
|
"key": "{shadow.resting.small}",
|
|
@@ -48207,6 +48289,10 @@
|
|
|
48207
48289
|
"isSource": true,
|
|
48208
48290
|
"$type": "shadow"
|
|
48209
48291
|
}
|
|
48292
|
+
},
|
|
48293
|
+
"org.primer.llm": {
|
|
48294
|
+
"usage": ["button", "interactive-card", "clickable-element"],
|
|
48295
|
+
"rules": "Use for buttons and small interactive elements at rest. Provides subtle depth and clickable affordance. RECOMMENDED for default button shadows."
|
|
48210
48296
|
}
|
|
48211
48297
|
},
|
|
48212
48298
|
"filePath": "src/tokens/functional/shadow/shadow.json5",
|
|
@@ -48233,6 +48319,7 @@
|
|
|
48233
48319
|
}
|
|
48234
48320
|
],
|
|
48235
48321
|
"$type": "shadow",
|
|
48322
|
+
"$description": "Small resting shadow for buttons and interactive elements",
|
|
48236
48323
|
"$extensions": {
|
|
48237
48324
|
"org.primer.figma": {
|
|
48238
48325
|
"collection": "mode",
|
|
@@ -48264,6 +48351,10 @@
|
|
|
48264
48351
|
"isSource": true,
|
|
48265
48352
|
"$type": "shadow"
|
|
48266
48353
|
}
|
|
48354
|
+
},
|
|
48355
|
+
"org.primer.llm": {
|
|
48356
|
+
"usage": ["button", "interactive-card", "clickable-element"],
|
|
48357
|
+
"rules": "Use for buttons and small interactive elements at rest. Provides subtle depth and clickable affordance. RECOMMENDED for default button shadows."
|
|
48267
48358
|
}
|
|
48268
48359
|
},
|
|
48269
48360
|
"key": "{shadow.resting.small}"
|
|
@@ -48272,7 +48363,8 @@
|
|
|
48272
48363
|
"attributes": {},
|
|
48273
48364
|
"path": ["shadow", "resting", "small"],
|
|
48274
48365
|
"value": "0px 1px 1px 0px #01040999, 0px 1px 3px 0px #01040999",
|
|
48275
|
-
"type": "shadow"
|
|
48366
|
+
"type": "shadow",
|
|
48367
|
+
"description": "Small resting shadow for buttons and interactive elements"
|
|
48276
48368
|
},
|
|
48277
48369
|
"shadow-resting-xsmall": {
|
|
48278
48370
|
"key": "{shadow.resting.xsmall}",
|
|
@@ -48296,6 +48388,10 @@
|
|
|
48296
48388
|
"isSource": true,
|
|
48297
48389
|
"$type": "shadow"
|
|
48298
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."
|
|
48299
48395
|
}
|
|
48300
48396
|
},
|
|
48301
48397
|
"filePath": "src/tokens/functional/shadow/shadow.json5",
|
|
@@ -48311,6 +48407,7 @@
|
|
|
48311
48407
|
"inset": false
|
|
48312
48408
|
},
|
|
48313
48409
|
"$type": "shadow",
|
|
48410
|
+
"$description": "Extra small resting shadow for minimal elevation",
|
|
48314
48411
|
"$extensions": {
|
|
48315
48412
|
"org.primer.figma": {
|
|
48316
48413
|
"collection": "mode",
|
|
@@ -48331,6 +48428,10 @@
|
|
|
48331
48428
|
"isSource": true,
|
|
48332
48429
|
"$type": "shadow"
|
|
48333
48430
|
}
|
|
48431
|
+
},
|
|
48432
|
+
"org.primer.llm": {
|
|
48433
|
+
"usage": ["badge", "chip", "small-card", "subtle-elevation"],
|
|
48434
|
+
"rules": "Use for very subtle elevation on small elements. Provides minimal lift from surface. Do NOT use for interactive elements needing clear affordance."
|
|
48334
48435
|
}
|
|
48335
48436
|
},
|
|
48336
48437
|
"key": "{shadow.resting.xsmall}"
|
|
@@ -48339,7 +48440,8 @@
|
|
|
48339
48440
|
"attributes": {},
|
|
48340
48441
|
"path": ["shadow", "resting", "xsmall"],
|
|
48341
48442
|
"value": "0px 1px 1px 0px #010409cc",
|
|
48342
|
-
"type": "shadow"
|
|
48443
|
+
"type": "shadow",
|
|
48444
|
+
"description": "Extra small resting shadow for minimal elevation"
|
|
48343
48445
|
},
|
|
48344
48446
|
"sideNav-bgColor-selected": {
|
|
48345
48447
|
"key": "{sideNav.bgColor.selected}",
|