Main Content
The border radius uses --conditional-radius()
which removes the radius when the element approaches viewport edges.
Demonstrations of CSS custom functions using the native @function rule.
The border radius uses --conditional-radius()
which removes the radius when the element approaches viewport edges.
This card uses --smooth-shadow()
for layered shadows and --glow()
on hover.
Text size scales smoothly using --fluid-type()
based on viewport width.
The grid layout uses --auto-grid()
for responsive columns.
padding: --light-dark(0.75rem, 1rem);
box-shadow: --smooth-shadow(color, 8px, 2);
background: --shade(color, 10%);
Uses --negate()
for transform and --glow()
for shadow effect.
This section uses --light-dark()
and --theme-color()
to automatically adapt to light/dark mode preferences.
Try switching your system theme to see the changes!