Skip to content

Commit

Permalink
feat: add xs size for tag (#116)
Browse files Browse the repository at this point in the history
Co-authored-by: wanghaojie08 <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
  • Loading branch information
3 people authored Jun 12, 2024
1 parent d4b0bde commit 648dc76
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/less-plugin-dls/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
> ⚠️ - Breaking Changes
## 11.13.0

- Add `xs` size for tag.

## 11.12.0

- Adjust global translucent color tokens again.
Expand Down
2 changes: 1 addition & 1 deletion packages/less-plugin-dls/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "less-plugin-dls",
"version": "11.12.0",
"version": "11.13.0",
"description": "Less plugin for Baidu Light DLS.",
"main": "dist/index.js",
"scripts": {
Expand Down
11 changes: 11 additions & 0 deletions packages/less-plugin-dls/tokens/components/tag.less
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
@import "../global.less";

/* Metrics */
@dls-tag-height-xs: @dls-height-unit * 5;
@dls-tag-height-s: @dls-height-unit * 6;
@dls-tag-height-m: @dls-height-unit * 7;

@dls-tag-border-radius-xs: @dls-border-radius-0;
@dls-tag-border-radius-s: @dls-border-radius-1;
@dls-tag-border-radius-m: @dls-border-radius-1;

@dls-tag-border-width: 1px;
@dls-tag-border-width-xs: 0.5px;
@dls-tag-border-width-s: 1px;
@dls-tag-border-width-m: 1px;

@dls-tag-padding: @dls-padding-unit * 2;
@dls-tag-padding-xs: @dls-padding-unit * 1;
@dls-tag-padding-s: @dls-padding-unit * 1;
@dls-tag-padding-m: @dls-padding-unit * 1;
@dls-tag-content-spacing: @dls-padding-unit * 2;
@dls-tag-list-spacing: @dls-padding-unit * 1;

@dls-tag-font-size-xs: @dls-font-size-0;
@dls-tag-font-size-s: @dls-font-size-0;
@dls-tag-font-size-m: @dls-font-size-1;

Expand Down

0 comments on commit 648dc76

Please sign in to comment.