Pre-built transition shorthand values for common property groups.
Variable
Value
--tk-transition-all
all 0.4s var(–tk-ease)
--tk-transition-all-xs
all 0.2s var(–tk-ease)
--tk-transition-color
color 0.4s var(–tk-ease)
--tk-transition-background
background 0.4s var(–tk-ease)
--tk-transition-opacity
opacity 0.4s var(–tk-ease)
--tk-transition-transform
transform 0.4s var(–tk-ease)
--tk-transition-box-shadow
box-shadow 0.4s var(–tk-ease)
.button {
transition: var(--tk-transition-all-xs);
}
Note: Some duration and easing values in the styles layer reference --tk-duration-xs, --tk-duration-sm, --tk-duration-md, and --tk-ease directly rather than using the presets above. This is intentional — the preset transitions are available for your custom use.