You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: Decide if we just want to link to Storybook, or if we want to add new pages to https://primer.style/foundations/primitives
14
+
if(!replacement){
15
+
return`Please use a Primer box-shadow variable instead of '${value}'. Consult the primer docs for a suitable replacement. https://primer.style/primitives/storybook/?path=/story/color-functional-shadows--shadows`
16
+
}
17
+
18
+
return`Please replace '${value}' with a Primer box-shadow variable '${replacement['name']}'. https://primer.style/primitives/storybook/?path=/story/color-functional-shadows--shadows`
20
19
},
21
-
'https://primer.style/css/utilities/box-shadow',
22
-
)
20
+
})
21
+
22
+
constvariables=primitivesVariables('box-shadow')
23
+
constshadows=[]
24
+
25
+
for(constvariableofvariables){
26
+
constname=variable['name']
27
+
28
+
// TODO: Decide if this is safe. Someday we might have variables that
29
+
// have 'shadow' in the name but aren't full box-shadows.
0 commit comments