Shape
How to use the shape system.
Usage
Styles
sass
@use "~@iraiser/biscuit-design-components/components/shape/styles";
Main styles
Name | Default |
---|---|
filled | 25px |
shaped | 15px |
small | 5px |
sharped | 0 |
Theming
See the "Theming" section on theme documentation for more customization options.
Theming with CSS custom properties
Set custom styles on global...
sass
:root {
--bdc-shape-radius: 20px;
}
...or on a specific element:
sass
.foo-button {
--bdc-shape-radius: 20px;
}
Theming with Sass variables
Set global theme shape in your Sass file:
sass
@use "~@iraiser/biscuit-design-components/components/shape" with (
$filled: 20px
);
Style customization
The variable {style}
in the documentation correspond with the list of styles, do not hesitate to
check it for more examples!
CSS custom properties
CSS Custom property | Description |
---|---|
--bdc-shape-radius | Set the selected style. |
Sass variables
Variable | Description |
---|---|
${style} | Set the selected style value. |
Sass mixins
Mixin | Description |
---|---|
radius($radius) | Set CSS border-radius property with native custom property. |
Usage
sass
@use "~@iraiser/biscuit-design-components/components/shape";
.foo-button {
@include shape.radius(shaped);
}