Skip to content

Commit 84c34d0

Browse files
authored
some-css-updated (#5720)
* style: use CSS variables for Badge dimensions Update the Badge component to utilize CSS variables for height and minimum width. This should help to improve consistency. * fix: brighter warning color
1 parent 577fca2 commit 84c34d0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/ui/src/lib/Badge.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
align-items: center;
2323
justify-content: center;
2424
text-align: center;
25-
height: 14px;
26-
min-width: 14px;
25+
height: var(--size-icon);
26+
min-width: var(--size-icon);
2727
border-radius: 14px;
2828
padding: 0 4px;
2929
line-height: 90%;

packages/ui/src/lib/data/design-tokens.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@
649649
},
650650
"50": {
651651
"$type": "color",
652-
"$value": "#d99611",
652+
"$value": "#e89b17",
653653
"$description": "",
654654
"$extensions": {
655655
"mode": {},
@@ -665,7 +665,7 @@
665665
},
666666
"60": {
667667
"$type": "color",
668-
"$value": "#f4c06c",
668+
"$value": "#f4c26c",
669669
"$description": "",
670670
"$extensions": {
671671
"mode": {},
@@ -4373,7 +4373,7 @@
43734373
"useDTCGKeys": true,
43744374
"colorMode": "hex",
43754375
"variableCollections": ["clr-core", "clr", "size", "radius", "text"],
4376-
"createdAt": "2024-11-21T15:52:26.375Z"
4376+
"createdAt": "2024-11-29T01:38:33.041Z"
43774377
}
43784378
}
43794379
}

packages/ui/src/styles/core/design-tokens.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
--clr-core-warn-20: color(srgb 0.3764705882352941 0.24705882352941178 0.06666666666666667);
4444
--clr-core-warn-30: color(srgb 0.5411764705882353 0.3333333333333333 0.043137254901960784);
4545
--clr-core-warn-40: color(srgb 0.7450980392156863 0.44313725490196076 0.0196078431372549);
46-
--clr-core-warn-50: color(srgb 0.8509803921568627 0.5882352941176471 0.06666666666666667);
47-
--clr-core-warn-60: color(srgb 0.9568627450980393 0.7529411764705882 0.4235294117647059);
46+
--clr-core-warn-50: color(srgb 0.9098039215686274 0.6078431372549019 0.09019607843137255);
47+
--clr-core-warn-60: color(srgb 0.9568627450980393 0.7607843137254902 0.4235294117647059);
4848
--clr-core-warn-70: color(srgb 0.996078431372549 0.8823529411764706 0.6823529411764706);
4949
--clr-core-warn-80: color(srgb 1 0.9254901960784314 0.7803921568627451);
5050
--clr-core-warn-90: color(srgb 1 0.9686274509803922 0.8784313725490196);

0 commit comments

Comments
 (0)