You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2025. It is now read-only.
This project utilizes element-local CSS custom property definitions wherein a .bcgovbtn class may declare its color to be as such: color: --btn-clr and then any extensions of this base class may define the value of --btn-clr like this: --btn-clr: #{$text-light}.
Example
.btn {
background-color: $primary-color;
font-family: 'BCSans', sans-serif;
color: var(--btn-clr); <-- this is where the magic begins
}
.btn__primary {
--btn-clr: #{$text-light}; <-- note the #{} syntax wrapping the SCSS variable, this is required
}
TL;DR
When naming new CSS variables use the following convention: