Elevation and effects draft v0.2.0
Opacity, blur, drop shadow and shadow colors from the Figma library, and why no component uses them yet.
The Figma library brings opacity steps, blur radii, a drop-shadow number and five shadow colors (effect.shadow.1 to 5, a neutral step at 1 to 5 % opacity, in Colors / Mapped), all recreated as they are. No component uses an effect yet: translucency comes from color tokens, and surfaces stand apart by their color and border, not by elevation. This foundation owns the shadow colors, presents the primitives and states the rules any future effect follows.
Specimens
The tokens this foundation is built from, drawn from packages/tokens/src/: raw primitives and the semantic decisions on top of them. A token added to one of these groups appears here with no site change; values that differ per mode or per platform are shown next to each other.
Opacity
A square in the default text color at each opacity step, on the stage.
opacity.* · 20 tokens · A text-colored square at that opacity.
-
opacity.00 % in the Figma library0 -
opacity.11 % in the Figma library0.01 -
opacity.22 % in the Figma library0.02 -
opacity.33 % in the Figma library0.03 -
opacity.44 % in the Figma library0.04 -
opacity.55 % in the Figma library0.05 -
opacity.66 % in the Figma library0.06 -
opacity.77 % in the Figma library0.07 -
opacity.88 % in the Figma library0.08 -
opacity.99 % in the Figma library0.09 -
opacity.1010 % in the Figma library0.1 -
opacity.1515 % in the Figma library0.15 -
opacity.2020 % in the Figma library0.2 -
opacity.3030 % in the Figma library0.3 -
opacity.4040 % in the Figma library0.4 -
opacity.5050 % in the Figma library0.5 -
opacity.6060 % in the Figma library0.6 -
opacity.7070 % in the Figma library0.7 -
opacity.8080 % in the Figma library0.8 -
opacity.9090 % in the Figma library0.9
Blur
The same sample blurred by each radius.
blur.* · 5 tokens · A sample blurred by that radius.
-
blur.none0px -
blur.xs2px -
blur.sm4px -
blur.md8px -
blur.lg16px
Drop shadow
The drop-shadow number the Figma library exports.
drop-shadow.* · 1 token · Name and value, for anything else.
| Token | Type | Value |
|---|---|---|
drop-shadow.number |
number |
0
|
Shadow colors
The five shadow colors of the Figma library, in every mode.
effect.shadow.* · 5 tokens · Swatch, value and alias of each token in every mode, side by side.
| Token | light | dark |
|---|---|---|
effect.shadow.1light-switch.base.900 at opacity.1: the Figma library composes them, DTCG cannot, so the resulting color is written as is |
#201E1F03 |
#1414144d |
effect.shadow.2light-switch.base.900 at opacity.2: the Figma library composes them, DTCG cannot, so the resulting color is written as is |
#201E1F05 |
#14141466 |
effect.shadow.3light-switch.base.900 at opacity.3: the Figma library composes them, DTCG cannot, so the resulting color is written as is |
#201E1F08 |
#14141480 |
effect.shadow.4light-switch.base.900 at opacity.4: the Figma library composes them, DTCG cannot, so the resulting color is written as is |
#201E1F0a |
#141414b2 |
effect.shadow.5light-switch.base.900 at opacity.5: the Figma library composes them, DTCG cannot, so the resulting color is written as is |
#201E1F0d |
#141414cc |