Skip to content

Commit 8440cb5

Browse files
committed
Add a mixin for borders
1 parent c76fb66 commit 8440cb5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/sass/_mixins.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@
2828
}
2929
}
3030

31+
@mixin border($size) {
32+
border-width: 1px;
33+
border-style: solid;
34+
border-radius: map.get(tokens.$border-radius, $size);
35+
36+
border-color: map.get(tokens.$border-color, dark);
37+
@include light-mode {
38+
border-color: map.get(tokens.$border-color, light);
39+
}
40+
}
41+
3142
@mixin transition($property, $duration) {
3243
transition-property: $property;
3344
transition-duration: map.get(tokens.$duration, $duration);

0 commit comments

Comments
 (0)