UNPKG

cirrus-ui

Version:

A lightweight UI framework written in SCSS

32 lines (28 loc) 767 B
// Utility classes for shadows @use 'sass:map'; @use '../src/internal/generator_v2'; @use '../src/internal' as *; @function _transformed() { $transformed: (); @each $key, $properties in $shadows { $transformed: map.set( $transformed, $key, map.merge( $properties, ( 'box-shadow': var(--cirrus-shadow), ) ) ); } @return $transformed; } @if should-generate-classes($SHADOWS) { $transformed: _transformed(); @include generator_v2.utility( $base-class-name: 'shadow', $class-value-pairs: $transformed, $variants: get-pseudo-variants($SHADOWS), ); }