Shadow utilities: .shadow-{size}, .shadow-{size}-{color}, .shadow-inset-{size}, .shadow-inset-{size}-{color}, .shadow-none, hover:, focus: and active: variants, and .elevation-{1-5}. Sizes and colors come from config/_shadows.scss.
Responsive variants use the @breakpoint suffix (.shadow-md@lg); active: classes have no responsive variant, and shadow-inset-* and elevation-* have no responsive or state variants.
Generated from the doc blocks in the core source when the site is built, so it always matches the current release of @wovenui/core. Every example is compiled against core during the build; open Compiled CSSunder an example to see its output. Guide: Shadows. The A to Z index lists every public mixin and function.
See also: shadow. Source: utilities/_shadows.scss:30
shadowmixin
Sets box-shadow from a configured size; the default color emits the var(--wu-shadow-*) token when the theme feature is on, other colors emit a raw shadow.
Unknown size or color keys raise an error.
@mixinshadow($size: "md", $color: "default")
Parameter
Type
Default
Description
$size
String
"md"
Size key from $shadow-sizes (sm, md, lg, xl, hero, monster), or none (box-shadow: none, as .shadow-none)
$color
String
"default"
Color key from $shadow-colors (default, dark, darker, darkest)
See also: shadow. Source: utilities/_shadows.scss:90
elevationmixin
Sets a shadow and a matching z-index for levels 1 to 5 (sm, md, lg, xl, monster); other levels raise an error.
The z-index is the level itself (1 to 5), a small local scale that orders raised siblings; it is not a $z-index-levels token. Use z-index(dropdown), z-index(modal) and the other level tokens for page layers.
@mixinelevation($i)
Parameter
Type
Default
Description
$i
Number
Required
Elevation level from 1 to 5, also emitted as the raw z-index