Skip to content

Commit 2e6c397

Browse files
committed
feat: add scrollbar tokens
1 parent a8be98a commit 2e6c397

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
div {
2+
-dls-scrollbar-track-width: 10px;
3+
-dls-scrollbar-track-color: transparent;
4+
-dls-scrollbar-thumb-width: 6px;
5+
-dls-scrollbar-thumb-color: rgba(49, 76, 140, 0.2);
6+
-dls-scrollbar-thumb-color-hover: rgba(83, 98, 128, 0.5);
7+
-dls-scrollbar-thumb-border-radius: 5px;
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
div {
2+
-dls-scrollbar-track-width: @dls-scrollbar-track-width;
3+
-dls-scrollbar-track-color: @dls-scrollbar-track-color;
4+
-dls-scrollbar-thumb-width: @dls-scrollbar-thumb-width;
5+
-dls-scrollbar-thumb-color: @dls-scrollbar-thumb-color;
6+
-dls-scrollbar-thumb-color-hover: @dls-scrollbar-thumb-color-hover;
7+
-dls-scrollbar-thumb-border-radius: @dls-scrollbar-thumb-border-radius;
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@import "../global.less";
2+
3+
@dls-scrollbar-track-width: @dls-height-unit * 2.5;
4+
@dls-scrollbar-track-color: transparent;
5+
6+
@dls-scrollbar-thumb-width: @dls-height-unit * 1.5;
7+
@dls-scrollbar-thumb-color: @dls-color-translucent-4;
8+
@dls-scrollbar-thumb-color-hover: @dls-color-translucent-6;
9+
@dls-scrollbar-thumb-border-radius: @dls-scrollbar-track-width / 2;

packages/less-plugin-dls/tokens/tokens.less

+1
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@
4646
@import "./components/layout.less";
4747
@import "./components/message.less";
4848
@import "./components/empty.less";
49+
@import "./components/scrollbar.less";

0 commit comments

Comments
 (0)