@tide-design/foundation 0.11.5 → 0.15.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 +13 -13
- package/dist/color.d.ts +11 -11
- package/dist/color.js +11 -11
- package/dist/contrast.js +2 -2
- package/dist/shape.d.ts +3 -4
- package/dist/shape.js +3 -6
- package/dist/tailwind.css +12 -5
- package/dist/tokens.css +21 -22
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -8,17 +8,17 @@ const color = {
|
|
|
8
8
|
white: "#ffffff",
|
|
9
9
|
black: "#000000",
|
|
10
10
|
blue: {
|
|
11
|
-
50: "#
|
|
12
|
-
100: "#
|
|
13
|
-
200: "#
|
|
14
|
-
300: "#
|
|
15
|
-
400: "#
|
|
16
|
-
500: "#
|
|
17
|
-
600: "#
|
|
18
|
-
700: "#
|
|
19
|
-
800: "#
|
|
20
|
-
900: "#
|
|
21
|
-
950: "#
|
|
11
|
+
50: "#ecf5ff",
|
|
12
|
+
100: "#e1eeff",
|
|
13
|
+
200: "#bfd8f7",
|
|
14
|
+
300: "#97c2f4",
|
|
15
|
+
400: "#53a3fe",
|
|
16
|
+
500: "#148cfc",
|
|
17
|
+
600: "#2f6fe0",
|
|
18
|
+
700: "#0060b3",
|
|
19
|
+
800: "#004e94",
|
|
20
|
+
900: "#00427f",
|
|
21
|
+
950: "#003568"
|
|
22
22
|
},
|
|
23
23
|
gray: {
|
|
24
24
|
50: "#f5f5f6",
|
|
@@ -678,7 +678,7 @@ const contrastPairs = [
|
|
|
678
678
|
...roles.map((role) => `border-${role}`),
|
|
679
679
|
"outline-focus"
|
|
680
680
|
], surfaces, 3),
|
|
681
|
-
...
|
|
681
|
+
...roles.flatMap((role) => pairs([`border-${role}`], [`bg-${role}-subtle`, `bg-${role}-subtle-active`], 3)),
|
|
682
682
|
...roles.flatMap((role) => pairs([`text-${role}`], [`bg-${role}-subtle-active`], 3))
|
|
683
683
|
];
|
|
684
684
|
/**
|
|
@@ -708,7 +708,7 @@ const contrastExclusions = [
|
|
|
708
708
|
},
|
|
709
709
|
...allRoles.map((role) => ({
|
|
710
710
|
token: `border-${role}-subtle`,
|
|
711
|
-
reason: "파스텔 테두리(subtle-border)는 꾸밈이다. subtle 바탕과 on-subtle 글자만으로 알아볼 수 있어 경계 대비 의무가 없다."
|
|
711
|
+
reason: "파스텔 테두리(subtle-border)는 꾸밈이다. subtle 바탕과 on-subtle 글자만으로 알아볼 수 있어 경계 대비 의무가 없다. 포커스 halo로도 쓴다. halo는 2px 포커스 링 바깥의 꾸밈이고, 3:1은 링(accent border)이 맡는다(ADR 0034)."
|
|
712
712
|
}))
|
|
713
713
|
];
|
|
714
714
|
/**
|
package/dist/color.d.ts
CHANGED
|
@@ -2,17 +2,17 @@ export declare const color: {
|
|
|
2
2
|
readonly white: "#ffffff";
|
|
3
3
|
readonly black: "#000000";
|
|
4
4
|
readonly blue: {
|
|
5
|
-
readonly 50: "#
|
|
6
|
-
readonly 100: "#
|
|
7
|
-
readonly 200: "#
|
|
8
|
-
readonly 300: "#
|
|
9
|
-
readonly 400: "#
|
|
10
|
-
readonly 500: "#
|
|
11
|
-
readonly 600: "#
|
|
12
|
-
readonly 700: "#
|
|
13
|
-
readonly 800: "#
|
|
14
|
-
readonly 900: "#
|
|
15
|
-
readonly 950: "#
|
|
5
|
+
readonly 50: "#ecf5ff";
|
|
6
|
+
readonly 100: "#e1eeff";
|
|
7
|
+
readonly 200: "#bfd8f7";
|
|
8
|
+
readonly 300: "#97c2f4";
|
|
9
|
+
readonly 400: "#53a3fe";
|
|
10
|
+
readonly 500: "#148cfc";
|
|
11
|
+
readonly 600: "#2f6fe0";
|
|
12
|
+
readonly 700: "#0060b3";
|
|
13
|
+
readonly 800: "#004e94";
|
|
14
|
+
readonly 900: "#00427f";
|
|
15
|
+
readonly 950: "#003568";
|
|
16
16
|
};
|
|
17
17
|
readonly gray: {
|
|
18
18
|
readonly 50: "#f5f5f6";
|
package/dist/color.js
CHANGED
|
@@ -3,17 +3,17 @@ const color = {
|
|
|
3
3
|
white: "#ffffff",
|
|
4
4
|
black: "#000000",
|
|
5
5
|
blue: {
|
|
6
|
-
50: "#
|
|
7
|
-
100: "#
|
|
8
|
-
200: "#
|
|
9
|
-
300: "#
|
|
10
|
-
400: "#
|
|
11
|
-
500: "#
|
|
12
|
-
600: "#
|
|
13
|
-
700: "#
|
|
14
|
-
800: "#
|
|
15
|
-
900: "#
|
|
16
|
-
950: "#
|
|
6
|
+
50: "#ecf5ff",
|
|
7
|
+
100: "#e1eeff",
|
|
8
|
+
200: "#bfd8f7",
|
|
9
|
+
300: "#97c2f4",
|
|
10
|
+
400: "#53a3fe",
|
|
11
|
+
500: "#148cfc",
|
|
12
|
+
600: "#2f6fe0",
|
|
13
|
+
700: "#0060b3",
|
|
14
|
+
800: "#004e94",
|
|
15
|
+
900: "#00427f",
|
|
16
|
+
950: "#003568"
|
|
17
17
|
},
|
|
18
18
|
gray: {
|
|
19
19
|
50: "#f5f5f6",
|
package/dist/contrast.js
CHANGED
|
@@ -61,7 +61,7 @@ const contrastPairs = [
|
|
|
61
61
|
...roles.map((role) => `border-${role}`),
|
|
62
62
|
"outline-focus"
|
|
63
63
|
], surfaces, 3),
|
|
64
|
-
...
|
|
64
|
+
...roles.flatMap((role) => pairs([`border-${role}`], [`bg-${role}-subtle`, `bg-${role}-subtle-active`], 3)),
|
|
65
65
|
...roles.flatMap((role) => pairs([`text-${role}`], [`bg-${role}-subtle-active`], 3))
|
|
66
66
|
];
|
|
67
67
|
/**
|
|
@@ -91,7 +91,7 @@ const contrastExclusions = [
|
|
|
91
91
|
},
|
|
92
92
|
...allRoles.map((role) => ({
|
|
93
93
|
token: `border-${role}-subtle`,
|
|
94
|
-
reason: "파스텔 테두리(subtle-border)는 꾸밈이다. subtle 바탕과 on-subtle 글자만으로 알아볼 수 있어 경계 대비 의무가 없다."
|
|
94
|
+
reason: "파스텔 테두리(subtle-border)는 꾸밈이다. subtle 바탕과 on-subtle 글자만으로 알아볼 수 있어 경계 대비 의무가 없다. 포커스 halo로도 쓴다. halo는 2px 포커스 링 바깥의 꾸밈이고, 3:1은 링(accent border)이 맡는다(ADR 0034)."
|
|
95
95
|
}))
|
|
96
96
|
];
|
|
97
97
|
/**
|
package/dist/shape.d.ts
CHANGED
|
@@ -64,12 +64,11 @@ export declare const shadow: {
|
|
|
64
64
|
/** Elevation 단계 이름 */
|
|
65
65
|
export type ShadowName = keyof typeof shadow;
|
|
66
66
|
/**
|
|
67
|
-
* 포커스 표시
|
|
68
|
-
* `focus-ring
|
|
67
|
+
* 포커스 표시 halo의 두께. 공개 계약은 `--tide-focus-ring-width`다.
|
|
68
|
+
* `focus-ring`·`focus-field`의 halo와 forced-colors 전용 투명 outline이 같은 값을 쓴다.
|
|
69
69
|
*/
|
|
70
70
|
export declare const focusRing: {
|
|
71
|
-
readonly width: "
|
|
72
|
-
readonly offset: "2px";
|
|
71
|
+
readonly width: "3px";
|
|
73
72
|
};
|
|
74
73
|
/**
|
|
75
74
|
* Elevation 단계를 CSS `box-shadow` 값으로 만든다. 두 레이어 모두 `color-mix()`로 `--tide-shadow-color`를 낮춘다.
|
package/dist/shape.js
CHANGED
|
@@ -53,13 +53,10 @@ const shadow = {
|
|
|
53
53
|
}]
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
56
|
-
* 포커스 표시
|
|
57
|
-
* `focus-ring
|
|
56
|
+
* 포커스 표시 halo의 두께. 공개 계약은 `--tide-focus-ring-width`다.
|
|
57
|
+
* `focus-ring`·`focus-field`의 halo와 forced-colors 전용 투명 outline이 같은 값을 쓴다.
|
|
58
58
|
*/
|
|
59
|
-
const focusRing = {
|
|
60
|
-
width: "2px",
|
|
61
|
-
offset: "2px"
|
|
62
|
-
};
|
|
59
|
+
const focusRing = { width: "3px" };
|
|
63
60
|
/** 길이 하나를 CSS로 쓴다. 0은 단위 없이 쓴다. */
|
|
64
61
|
const length = (px) => px === 0 ? "0" : `${px}px`;
|
|
65
62
|
/**
|
package/dist/tailwind.css
CHANGED
|
@@ -264,20 +264,27 @@
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
@utility focus-ring {
|
|
267
|
-
|
|
268
|
-
|
|
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;
|
|
270
|
+
outline: none;
|
|
271
|
+
outline-offset: 0;
|
|
272
|
+
@media (forced-colors: active) {
|
|
273
|
+
outline: var(--tide-focus-ring-width) solid transparent;
|
|
274
|
+
}
|
|
269
275
|
}
|
|
270
276
|
|
|
271
277
|
@utility focus-field {
|
|
272
|
-
border-color: var(--tide-
|
|
273
|
-
|
|
278
|
+
border-color: var(--tide-accent-border);
|
|
279
|
+
@apply ring-(length:--tide-focus-ring-width) ring-(--tide-accent-subtle-border);
|
|
274
280
|
outline: none;
|
|
281
|
+
outline-offset: 0;
|
|
275
282
|
@media (forced-colors: active) {
|
|
276
283
|
outline: var(--tide-focus-ring-width) solid transparent;
|
|
277
284
|
}
|
|
278
285
|
&[aria-invalid="true"] {
|
|
279
286
|
border-color: var(--tide-border-danger);
|
|
280
|
-
|
|
287
|
+
@apply ring-(--tide-border-danger-subtle);
|
|
281
288
|
}
|
|
282
289
|
}
|
|
283
290
|
|
package/dist/tokens.css
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
:root {
|
|
4
4
|
--tide-color-white: #ffffff;
|
|
5
5
|
--tide-color-black: #000000;
|
|
6
|
-
--tide-color-blue-50: #
|
|
7
|
-
--tide-color-blue-100: #
|
|
8
|
-
--tide-color-blue-200: #
|
|
9
|
-
--tide-color-blue-300: #
|
|
10
|
-
--tide-color-blue-400: #
|
|
11
|
-
--tide-color-blue-500: #
|
|
12
|
-
--tide-color-blue-600: #
|
|
13
|
-
--tide-color-blue-700: #
|
|
14
|
-
--tide-color-blue-800: #
|
|
15
|
-
--tide-color-blue-900: #
|
|
16
|
-
--tide-color-blue-950: #
|
|
6
|
+
--tide-color-blue-50: #ecf5ff;
|
|
7
|
+
--tide-color-blue-100: #e1eeff;
|
|
8
|
+
--tide-color-blue-200: #bfd8f7;
|
|
9
|
+
--tide-color-blue-300: #97c2f4;
|
|
10
|
+
--tide-color-blue-400: #53a3fe;
|
|
11
|
+
--tide-color-blue-500: #148cfc;
|
|
12
|
+
--tide-color-blue-600: #2f6fe0;
|
|
13
|
+
--tide-color-blue-700: #0060b3;
|
|
14
|
+
--tide-color-blue-800: #004e94;
|
|
15
|
+
--tide-color-blue-900: #00427f;
|
|
16
|
+
--tide-color-blue-950: #003568;
|
|
17
17
|
--tide-color-gray-50: #f5f5f6;
|
|
18
18
|
--tide-color-gray-100: #e8e8ea;
|
|
19
19
|
--tide-color-gray-200: #d7d8da;
|
|
@@ -155,8 +155,7 @@
|
|
|
155
155
|
--tide-rounded-lg: 0.5rem;
|
|
156
156
|
--tide-rounded-xl: 0.75rem;
|
|
157
157
|
--tide-rounded-full: 9999px;
|
|
158
|
-
--tide-focus-ring-width:
|
|
159
|
-
--tide-focus-ring-offset: 2px;
|
|
158
|
+
--tide-focus-ring-width: 3px;
|
|
160
159
|
--tide-duration-fast: 150ms;
|
|
161
160
|
--tide-duration-normal: 300ms;
|
|
162
161
|
--tide-ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
@@ -171,11 +170,11 @@
|
|
|
171
170
|
[data-theme="light"] {
|
|
172
171
|
color-scheme: light;
|
|
173
172
|
--tide-blue-solid: var(--tide-color-blue-600);
|
|
174
|
-
--tide-blue-solid-hover: #
|
|
175
|
-
--tide-blue-solid-active: #
|
|
173
|
+
--tide-blue-solid-hover: #285fc1;
|
|
174
|
+
--tide-blue-solid-active: #2659b3;
|
|
176
175
|
--tide-blue-subtle: var(--tide-color-blue-100);
|
|
177
|
-
--tide-blue-subtle-hover: #
|
|
178
|
-
--tide-blue-subtle-active: #
|
|
176
|
+
--tide-blue-subtle-hover: #dae6f7;
|
|
177
|
+
--tide-blue-subtle-active: #d2deee;
|
|
179
178
|
--tide-blue-faint: var(--tide-color-blue-50);
|
|
180
179
|
--tide-blue-text: var(--tide-color-blue-700);
|
|
181
180
|
--tide-blue-border: var(--tide-color-blue-600);
|
|
@@ -365,12 +364,12 @@
|
|
|
365
364
|
[data-theme="dark"] {
|
|
366
365
|
color-scheme: dark;
|
|
367
366
|
--tide-blue-solid: var(--tide-color-blue-600);
|
|
368
|
-
--tide-blue-solid-hover: #
|
|
369
|
-
--tide-blue-solid-active: #
|
|
367
|
+
--tide-blue-solid-hover: #285fc1;
|
|
368
|
+
--tide-blue-solid-active: #2659b3;
|
|
370
369
|
--tide-blue-subtle: var(--tide-color-blue-950);
|
|
371
|
-
--tide-blue-subtle-hover: #
|
|
372
|
-
--tide-blue-subtle-active: #
|
|
373
|
-
--tide-blue-faint: #
|
|
370
|
+
--tide-blue-subtle-hover: #0f4171;
|
|
371
|
+
--tide-blue-subtle-active: #1a4977;
|
|
372
|
+
--tide-blue-faint: #142f4a;
|
|
374
373
|
--tide-blue-text: var(--tide-color-blue-300);
|
|
375
374
|
--tide-blue-border: var(--tide-color-blue-400);
|
|
376
375
|
--tide-blue-subtle-border: var(--tide-color-blue-800);
|