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
tools/shadow.generate(), tools/shadow.to-box-shadow(), and tools/shadow.to-drop-shadow() could make use of design tokens passed in, and use them instead of hard-coding sizes and colors. For examples the default configuration produces shadow design tokens like:
The 0.25rem and 0.625rem would ideally be a var(--bs-size-s2) (or whatever the size is), and the color would also be a custom property. Handling sizes like this is probably easier than colors — how do we handle the opacity? We could output a new custom property with each shadow definition?
The text was updated successfully, but these errors were encountered:
tools/shadow.generate()
,tools/shadow.to-box-shadow()
, andtools/shadow.to-drop-shadow()
could make use of design tokens passed in, and use them instead of hard-coding sizes and colors. For examples the default configuration produces shadow design tokens like:The
0.25rem
and0.625rem
would ideally be avar(--bs-size-s2)
(or whatever the size is), and the color would also be a custom property. Handling sizes like this is probably easier than colors — how do we handle the opacity? We could output a new custom property with each shadow definition?The text was updated successfully, but these errors were encountered: