@tide-design/foundation 0.12.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +3 -2
- package/dist/color.d.ts +1 -1
- package/dist/color.js +1 -1
- package/dist/contrast.js +2 -1
- package/dist/tailwind.css +3 -1
- package/dist/tokens.css +5 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -14,7 +14,7 @@ const color = {
|
|
|
14
14
|
300: "#97c2f4",
|
|
15
15
|
400: "#53a3fe",
|
|
16
16
|
500: "#148cfc",
|
|
17
|
-
600: "#
|
|
17
|
+
600: "#2f6fe0",
|
|
18
18
|
700: "#0060b3",
|
|
19
19
|
800: "#004e94",
|
|
20
20
|
900: "#00427f",
|
|
@@ -678,6 +678,7 @@ const contrastPairs = [
|
|
|
678
678
|
...roles.map((role) => `border-${role}`),
|
|
679
679
|
"outline-focus"
|
|
680
680
|
], surfaces, 3),
|
|
681
|
+
...roles.flatMap((role) => pairs([`border-${role}`], [`bg-${role}-subtle`, `bg-${role}-subtle-active`], 3)),
|
|
681
682
|
...roles.flatMap((role) => pairs([`text-${role}`], [`bg-${role}-subtle-active`], 3))
|
|
682
683
|
];
|
|
683
684
|
/**
|
|
@@ -707,7 +708,7 @@ const contrastExclusions = [
|
|
|
707
708
|
},
|
|
708
709
|
...allRoles.map((role) => ({
|
|
709
710
|
token: `border-${role}-subtle`,
|
|
710
|
-
reason: "파스텔 테두리(subtle-border)는 꾸밈이다. subtle 바탕과 on-subtle 글자만으로 알아볼 수 있어 경계 대비 의무가 없다. 포커스 halo로도
|
|
711
|
+
reason: "파스텔 테두리(subtle-border)는 꾸밈이다. subtle 바탕과 on-subtle 글자만으로 알아볼 수 있어 경계 대비 의무가 없다. 포커스 halo로도 쓴다. halo는 2px 포커스 링 바깥의 꾸밈이고, 3:1은 링(accent border)이 맡는다(ADR 0034)."
|
|
711
712
|
}))
|
|
712
713
|
];
|
|
713
714
|
/**
|
package/dist/color.d.ts
CHANGED
package/dist/color.js
CHANGED
package/dist/contrast.js
CHANGED
|
@@ -61,6 +61,7 @@ const contrastPairs = [
|
|
|
61
61
|
...roles.map((role) => `border-${role}`),
|
|
62
62
|
"outline-focus"
|
|
63
63
|
], surfaces, 3),
|
|
64
|
+
...roles.flatMap((role) => pairs([`border-${role}`], [`bg-${role}-subtle`, `bg-${role}-subtle-active`], 3)),
|
|
64
65
|
...roles.flatMap((role) => pairs([`text-${role}`], [`bg-${role}-subtle-active`], 3))
|
|
65
66
|
];
|
|
66
67
|
/**
|
|
@@ -90,7 +91,7 @@ const contrastExclusions = [
|
|
|
90
91
|
},
|
|
91
92
|
...allRoles.map((role) => ({
|
|
92
93
|
token: `border-${role}-subtle`,
|
|
93
|
-
reason: "파스텔 테두리(subtle-border)는 꾸밈이다. subtle 바탕과 on-subtle 글자만으로 알아볼 수 있어 경계 대비 의무가 없다. 포커스 halo로도
|
|
94
|
+
reason: "파스텔 테두리(subtle-border)는 꾸밈이다. subtle 바탕과 on-subtle 글자만으로 알아볼 수 있어 경계 대비 의무가 없다. 포커스 halo로도 쓴다. halo는 2px 포커스 링 바깥의 꾸밈이고, 3:1은 링(accent border)이 맡는다(ADR 0034)."
|
|
94
95
|
}))
|
|
95
96
|
];
|
|
96
97
|
/**
|
package/dist/tailwind.css
CHANGED
|
@@ -264,7 +264,9 @@
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
@utility focus-ring {
|
|
267
|
-
@apply ring-(length:--tide-focus-ring-width) ring-(--tide-accent-subtle-border);
|
|
267
|
+
@apply ring-offset-2 ring-offset-(color:--tide-accent-border) ring-(length:--tide-focus-ring-width) ring-(--tide-accent-subtle-border);
|
|
268
|
+
-webkit-box-decoration-break: clone;
|
|
269
|
+
box-decoration-break: clone;
|
|
268
270
|
outline: none;
|
|
269
271
|
outline-offset: 0;
|
|
270
272
|
@media (forced-colors: active) {
|
package/dist/tokens.css
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
--tide-color-blue-300: #97c2f4;
|
|
10
10
|
--tide-color-blue-400: #53a3fe;
|
|
11
11
|
--tide-color-blue-500: #148cfc;
|
|
12
|
-
--tide-color-blue-600: #
|
|
12
|
+
--tide-color-blue-600: #2f6fe0;
|
|
13
13
|
--tide-color-blue-700: #0060b3;
|
|
14
14
|
--tide-color-blue-800: #004e94;
|
|
15
15
|
--tide-color-blue-900: #00427f;
|
|
@@ -170,8 +170,8 @@
|
|
|
170
170
|
[data-theme="light"] {
|
|
171
171
|
color-scheme: light;
|
|
172
172
|
--tide-blue-solid: var(--tide-color-blue-600);
|
|
173
|
-
--tide-blue-solid-hover: #
|
|
174
|
-
--tide-blue-solid-active: #
|
|
173
|
+
--tide-blue-solid-hover: #285fc1;
|
|
174
|
+
--tide-blue-solid-active: #2659b3;
|
|
175
175
|
--tide-blue-subtle: var(--tide-color-blue-100);
|
|
176
176
|
--tide-blue-subtle-hover: #dae6f7;
|
|
177
177
|
--tide-blue-subtle-active: #d2deee;
|
|
@@ -364,8 +364,8 @@
|
|
|
364
364
|
[data-theme="dark"] {
|
|
365
365
|
color-scheme: dark;
|
|
366
366
|
--tide-blue-solid: var(--tide-color-blue-600);
|
|
367
|
-
--tide-blue-solid-hover: #
|
|
368
|
-
--tide-blue-solid-active: #
|
|
367
|
+
--tide-blue-solid-hover: #285fc1;
|
|
368
|
+
--tide-blue-solid-active: #2659b3;
|
|
369
369
|
--tide-blue-subtle: var(--tide-color-blue-950);
|
|
370
370
|
--tide-blue-subtle-hover: #0f4171;
|
|
371
371
|
--tide-blue-subtle-active: #1a4977;
|