Skip to content

Commit

Permalink
feat(radius)!: rename border as radius
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Balet committed May 7, 2024
1 parent 3160f51 commit 877701f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ You can import specific mixins like follow
- mixin and utilities work good together but you could only use one of the both if you need it

## Css Variable
### Border
### Radius
```scss
:root {
--radius-smallest: 4px; // Extra small : Menu, Snackbars, Text fields
Expand Down
2 changes: 1 addition & 1 deletion utilities.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@forward './utilities/border';
@forward './utilities/radius';
@forward './utilities/spacing';
@forward './utilities/width';
@forward './utilities/z-index';
11 changes: 0 additions & 11 deletions utilities/border.scss → utilities/radius.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
// https://m3.material.io/styles/shape/shape-scale-tokens#59b6f73a-6ef2-45a6-ab48-611d07635661

:root {
// @TODO remove --border in favor of --radius
--border-smallest: 4px; // Extra small : Menu, Snackbars, Text fields
--border-smaller: 8px; // Small : Chips, Rich tooltip
--border-small: 10px; // Medium : Cards, Small FABs
--border: 16px; // Large : FABs, Navigation drawers
--border-big: 20px;
--border-bigger: 28px; // Extra large : Dialogs, Large FABs, Search view (full-screen), Time picker, Time input
--border-rounded: 50px;
--border-circle: 100%; // @TODO remove in favor of --full
--border-full: 100%; // Full : Badge, Buttons, Sliders, Switches, Search bards

--radius-smallest: 4px; // Extra small : Menu, Snackbars, Text fields
--radius-smaller: 8px; // Small : Chips, Rich tooltip
--radius-small: 10px; // Medium : Cards, Small FABs
Expand Down

0 comments on commit 877701f

Please sign in to comment.