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
Each component should have a bal-component.vars.sass file with the custom component tokens which is imported by the main sass file of the component.
Use Case
The goal is to create non Baloise application, which should look like the partner.
Preferred Solution
Each component provides CSS-Variables to customise color, border and radius.
Additional Information
Create var file and import the mixins
Import the var file in the main component sass file
Var file example
/** * @prop --bal-badge-background: Background of the badge * @prop --bal-badge-background-danger: Background of the badge with the color danger. * @prop --bal-badge-background-warning: Background of the badge with the color danger. * @prop --bal-badge-background-success: Background of the badge with the color danger. * * @prop --bal-badge-radius: Radius of the badge.*/
:root
//// background colors--bal-badge-background: var(--bal-color-danger-4)
--bal-badge-background-danger: var(--bal-color-danger-4)
--bal-badge-background-warning: var(--bal-color-warning-4)
--bal-badge-background-success: var(--bal-color-success-4)
//// radius--bal-badge-radius: var(--bal-radius-rounded)
Will this feature introduce breaking changes?
None
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Summary
Each component should have a
bal-component.vars.sass
file with the custom component tokens which is imported by the main sass file of the component.Use Case
The goal is to create non Baloise application, which should look like the partner.
Preferred Solution
Each component provides CSS-Variables to customise color, border and radius.
Additional Information
Var file example
Will this feature introduce breaking changes?
None
Code of Conduct
The text was updated successfully, but these errors were encountered: