UI
Consistency across UI and motion

Elevation

Box shadows for creating realistic elevation in 3d space.
Property group
Applies to
--elevation-*
box-shadow
1
.card {
2
box-shadow: var(--elevation-1);
3
}
Copied!
Property
Value
--elevation-1
0 1px 2px 0 rgba(0, 0, 0, 0.05)
--elevation-2
0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)
--elevation-3
0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)
--elevation-4
0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)
--elevation-5
0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)
--elevation-6
0 25px 50px -12px rgba(0, 0, 0, 0.25)

Easing

Easing functions for realistic movement in transitions and animations. Inspired by the Material Design guidelines on motion.
Property group
Applies to
--easing-*
transition and animation
1
.animated {
2
transition: all 300ms var(--easing-standard);
3
}
Copied!
Property
Value
--easing-standard
cubic-bezier(0.4, 0, 0.2, 1)
--easing-accelerate
cubic-bezier(0.4, 0, 1, 1)
--easing-decelerate
cubic-bezier(0, 0, 0.2, 1)

Radius

Consistent edge radiuses throughout an interface.
Property group
Applies to
--radius-*
border-radius
1
.button {
2
border-radius: var(--radius);
3
}
Copied!
Property
Value
--radius-none
0px
--radius-sm
2px
--radius
4px
--radius-md
6px
--radius-lg
8px
--radius-xl
12px
--radius-2xl
16px
--radius-3xl
24px
--radius-full
9999px

Layers

Consistent layering throughout an interface
Property group
Applies to
--layer-*
z-index
1
.elevated {
2
position: relative;
3
z-index: var(--layer-1);
4
}
Copied!
Property
Value
--layer-1
10
--layer-2
20
--layer-3
30
--layer-4
40
--layer-5
50
--layer-top
2147483647
Last modified 4d ago