/* variables specific to current element */ $element-specific-variables: ""; .#{$namespace}chip { /* Save root element context for easy access if nesting is needed */ $self: &; /* properties of current element + media queries */ border-radius: map-deep-get($token-radius-map, "button-small"); padding: $input-padding-x*0.5 $input-padding-x; font-weight: map-deep-get($token-font-weight-map, "bold"); font-size: map-deep-get($token-font-size-map, "body", "3xs"); min-height: map-deep-get($token-spacer-unit-map, "24"); @include custom-prop-fallback("color", "comp-button-secondary-text-color"); /* Pseudo Elements */ &::before { } &::after { } /* Include elements that are linked to the current element but have to reside at the root level of the stylesheet (e.g: keyframes) */ @at-root { } /* children - write selector in full in comments in order to facilitate search */ // chip__child &__child { // follows same logic as parent } /* modifiers */ // chip -isActive &.-isActive { // follows same logic as base element @include custom-prop-fallback("background-color", "comp-button-secondary-background-color"); } &[disabled] { @include custom-prop-fallback("background-color", "comp-button-secondary-disabled-background-color",true,true); @include custom-prop-fallback("color", "comp-button-secondary-disabled-text-color"); } /* random parent element */ /* * * Syntax : .randomParentElt & {} * */ /* Pseudo Classes */ &:hover, &:focus { @media (hover: hover) { @include custom-prop-fallback("background-color", "comp-button-secondary-hovered-background-color", true, true); } } &:active { } &:focus, &:active { } }