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
Copy file name to clipboardExpand all lines: .storybook/foundations/drop-shadow/drop-shadow.mdx
+27-10Lines changed: 27 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -7,23 +7,29 @@ import * as DropShadowStories from './drop-shadow.stories.js';
7
7
<Title />
8
8
<Descriptionof={DropShadowStories} />
9
9
10
-
Drop shadow tokens may be used for drop shadows or box shadows in CSS. Using `box-shadow` is often preferable to using `filter: drop-shadow()`, but in situations where the shadow must be applied to the alpha channel of the content rather than the border box, or if `box-shadow` is already being used for a different purpose, such as a focus outline, `filter: drop-shadow()` may be used.
10
+
Drop shadow tokens may be used for box shadows or drop shadows in CSS. Using `box-shadow` is often preferable to using `filter: drop-shadow()`, but in situations where the shadow must be applied to the alpha channel of the content rather than the border box, or if `box-shadow` is already being used for a different purpose, such as a focus outline, `filter: drop-shadow()` may be used. Note that in cases where `filter: drop-shadow()` is used, the shadow may more blurred than the design spec due to a difference in how the blur parameter is calculated, and an adjustment by half may be needed.
11
+
12
+
The opacity values in dark shadow colors are 3x the light values.
11
13
12
14
These single-layer shadows are an interim solution for shadows until complex tokens (additional design data for the Spectrum Tokens system) are available to support multi-layer shadows.
13
15
14
16
## Emphasized Default
15
-
This drop shadow is used to provide emphasis to containers within a page.
0 commit comments