@nurihaus/web-design-system 3.9.2 → 3.9.3

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.
Files changed (210) hide show
  1. package/dist/.storybook/preview.d.ts +49 -0
  2. package/dist/ai/components.md +675 -105
  3. package/dist/ai/motion.md +156 -134
  4. package/dist/ai/tokens.md +295 -137
  5. package/dist/asset.js +328 -0
  6. package/dist/avatar.js +208 -33
  7. package/dist/bottom-nav.js +86 -6
  8. package/dist/breadcrumb.js +6 -3
  9. package/dist/card.js +5 -2
  10. package/dist/check-box.js +81 -45
  11. package/dist/chip-group.js +50 -12
  12. package/dist/chunk-1563.js +42 -18
  13. package/dist/chunk-1983.js +100 -0
  14. package/dist/chunk-3297.js +130 -0
  15. package/dist/chunk-3640.js +94 -0
  16. package/dist/chunk-3839.js +54 -0
  17. package/dist/chunk-4558.js +13 -2
  18. package/dist/chunk-4577.js +35 -0
  19. package/dist/chunk-5302.js +111 -0
  20. package/dist/{chunk-1657.js → chunk-5589.js} +41 -5
  21. package/dist/chunk-5670.js +122 -0
  22. package/dist/chunk-6302.js +10 -10
  23. package/dist/chunk-6706.js +64 -0
  24. package/dist/chunk-7302.js +66 -0
  25. package/dist/chunk-7460.js +204 -0
  26. package/dist/{chunk-6149.js → chunk-8377.js} +36 -2
  27. package/dist/chunk-8734.js +33 -0
  28. package/dist/chunk-8787.js +260 -0
  29. package/dist/chunk-8933.js +14 -2
  30. package/dist/chunk-910.js +82 -27
  31. package/dist/chunk-948.js +166 -0
  32. package/dist/collapsible-menu.js +39 -14
  33. package/dist/components/asset/asset-props.d.ts +43 -0
  34. package/dist/components/asset/asset-type.d.ts +38 -0
  35. package/dist/components/asset/asset.d.ts +21 -0
  36. package/dist/components/asset/asset.stories.d.ts +65 -0
  37. package/dist/components/asset/base-asset.d.ts +7 -0
  38. package/dist/components/avatar/avatar-props.d.ts +1 -0
  39. package/dist/components/avatar/avatar-type.d.ts +6 -4
  40. package/dist/components/avatar/avatar.stories.d.ts +10 -0
  41. package/dist/components/badge/badge-type.d.ts +10 -4
  42. package/dist/components/badge/badge.stories.d.ts +15 -0
  43. package/dist/components/bottom-bar/bottom-bar.stories.d.ts +12 -5
  44. package/dist/components/bottom-nav/bottom-nav-type.d.ts +2 -1
  45. package/dist/components/bottom-nav/bottom-nav.stories.d.ts +16 -1
  46. package/dist/components/breadcrumb/breadcrumb-type.d.ts +2 -1
  47. package/dist/components/breadcrumb/breadcrumb.stories.d.ts +15 -0
  48. package/dist/components/button/button-appearance.d.ts +50 -0
  49. package/dist/components/button/button-props.d.ts +12 -3
  50. package/dist/components/button/button-type.d.ts +14 -4
  51. package/dist/components/button/button.stories.d.ts +34 -3
  52. package/dist/components/button/cta-button.d.ts +1 -1
  53. package/dist/components/callout/callout.stories.d.ts +11 -0
  54. package/dist/components/card/card-type.d.ts +2 -1
  55. package/dist/components/card/card.stories.d.ts +9 -0
  56. package/dist/components/check-box/check-box-props.d.ts +8 -0
  57. package/dist/components/check-box/check-box-type.d.ts +7 -3
  58. package/dist/components/check-box/check-box.stories.d.ts +32 -1
  59. package/dist/components/chip-group/chip-group-props.d.ts +13 -1
  60. package/dist/components/chip-group/chip-group-type.d.ts +5 -1
  61. package/dist/components/chip-group/chip-group.stories.d.ts +30 -0
  62. package/dist/components/collapsible-menu/collapsible-menu-type.d.ts +6 -2
  63. package/dist/components/collapsible-menu/collapsible-menu.stories.d.ts +12 -0
  64. package/dist/components/description-list/description-list.stories.d.ts +7 -0
  65. package/dist/components/drawer/base-drawer.d.ts +2 -4
  66. package/dist/components/drawer/drawer-type.d.ts +17 -2
  67. package/dist/components/drawer/drawer.stories.d.ts +21 -0
  68. package/dist/components/drop-down/drop-down-type.d.ts +4 -2
  69. package/dist/components/drop-down/drop-down.stories.d.ts +16 -0
  70. package/dist/components/elements/text/text-props.d.ts +3 -3
  71. package/dist/components/elements/text/text-type.d.ts +3 -2
  72. package/dist/components/elements/text/text.stories.d.ts +13 -1
  73. package/dist/components/empty-state/empty-state.stories.d.ts +33 -8
  74. package/dist/components/icon/icon.stories.d.ts +11 -1
  75. package/dist/components/icon-button/icon-button-type.d.ts +2 -1
  76. package/dist/components/icon-button/icon-button.stories.d.ts +9 -0
  77. package/dist/components/list/list-group.stories.d.ts +7 -0
  78. package/dist/components/list/list-row.stories.d.ts +18 -8
  79. package/dist/components/list/list-type.d.ts +2 -1
  80. package/dist/components/loading/index.d.ts +4 -0
  81. package/dist/components/loading/inline-loading/base-inline-loading.d.ts +3 -2
  82. package/dist/components/loading/inline-loading/inline-loading-props.d.ts +3 -0
  83. package/dist/components/loading/inline-loading/inline-loading-type.d.ts +6 -6
  84. package/dist/components/loading/inline-loading/inline-loading.stories.d.ts +28 -2
  85. package/dist/components/loading/loading-dots/base-loading-dots.d.ts +4 -0
  86. package/dist/components/loading/loading-dots/loading-dots-props.d.ts +4 -0
  87. package/dist/components/loading/loading-dots/loading-dots-type.d.ts +6 -0
  88. package/dist/components/loading/loading-dots/loading-dots.d.ts +4 -0
  89. package/dist/components/loading/loading-dots/loading-dots.stories.d.ts +37 -0
  90. package/dist/components/loading/loading-props.d.ts +9 -0
  91. package/dist/components/loading/loading-type.d.ts +9 -0
  92. package/dist/components/loading/loading.stories.d.ts +15 -0
  93. package/dist/components/loading/overlay-loading/overlay-loading-type.d.ts +4 -0
  94. package/dist/components/loading/overlay-loading/overlay-loading.stories.d.ts +17 -0
  95. package/dist/components/loading/progress-bar/base-progress-bar.d.ts +3 -0
  96. package/dist/components/loading/progress-bar/progress-bar-props.d.ts +4 -0
  97. package/dist/components/loading/progress-bar/progress-bar-type.d.ts +19 -0
  98. package/dist/components/loading/progress-bar/progress-bar.d.ts +4 -0
  99. package/dist/components/loading/progress-bar/progress-bar.stories.d.ts +63 -0
  100. package/dist/components/loading/spinner/spinner-props.d.ts +4 -1
  101. package/dist/components/loading/spinner/spinner-type.d.ts +3 -1
  102. package/dist/components/loading/spinner/spinner.d.ts +2 -1
  103. package/dist/components/loading/spinner/spinner.stories.d.ts +30 -4
  104. package/dist/components/logging/logging.stories.d.ts +5 -0
  105. package/dist/components/media/media-thumbnail.stories.d.ts +9 -0
  106. package/dist/components/media/media-type.d.ts +2 -1
  107. package/dist/components/media/media-viewer.stories.d.ts +7 -0
  108. package/dist/components/message/message.stories.d.ts +15 -8
  109. package/dist/components/message-composer/message-composer-type.d.ts +2 -1
  110. package/dist/components/message-composer/message-composer.stories.d.ts +10 -0
  111. package/dist/components/modal/modal-type.d.ts +22 -3
  112. package/dist/components/modal/modal-with-double-button.stories.d.ts +15 -0
  113. package/dist/components/modal/modal.stories.d.ts +16 -0
  114. package/dist/components/motion/motion.stories.d.ts +7 -0
  115. package/dist/components/notice/notice-type.d.ts +1 -1
  116. package/dist/components/notice/notice.stories.d.ts +13 -6
  117. package/dist/components/overlay/overlay-context.d.ts +34 -0
  118. package/dist/components/overlay/overlay-provider.d.ts +6 -0
  119. package/dist/components/overlay/overlay-type.d.ts +45 -0
  120. package/dist/components/overlay/overlay.d.ts +4 -0
  121. package/dist/components/overlay/overlay.stories.d.ts +34 -0
  122. package/dist/components/overlay/use-dialog.d.ts +3 -0
  123. package/dist/components/overlay/use-toast.d.ts +3 -0
  124. package/dist/components/pagination/pagination-type.d.ts +2 -1
  125. package/dist/components/pagination/pagination.stories.d.ts +15 -0
  126. package/dist/components/radio/base-radio.d.ts +5 -2
  127. package/dist/components/radio/radio-type.d.ts +11 -3
  128. package/dist/components/radio/radio.stories.d.ts +20 -2
  129. package/dist/components/skeleton/base-skeleton.d.ts +7 -3
  130. package/dist/components/skeleton/skeleton-group-props.d.ts +4 -0
  131. package/dist/components/skeleton/skeleton-group-type.d.ts +47 -0
  132. package/dist/components/skeleton/skeleton-group.d.ts +4 -0
  133. package/dist/components/skeleton/skeleton-group.stories.d.ts +57 -0
  134. package/dist/components/skeleton/skeleton-type.d.ts +1 -0
  135. package/dist/components/skeleton/skeleton.stories.d.ts +17 -6
  136. package/dist/components/step-progress/step-progress-props.d.ts +10 -0
  137. package/dist/components/step-progress/step-progress-type.d.ts +22 -3
  138. package/dist/components/step-progress/step-progress.d.ts +1 -1
  139. package/dist/components/step-progress/step-progress.stories.d.ts +40 -0
  140. package/dist/components/switch/base-switch.d.ts +2 -4
  141. package/dist/components/switch/switch-type.d.ts +5 -2
  142. package/dist/components/switch/switch.stories.d.ts +22 -0
  143. package/dist/components/table/table-type.d.ts +2 -1
  144. package/dist/components/table/table.stories.d.ts +23 -0
  145. package/dist/components/tabs/tabs-type.d.ts +4 -1
  146. package/dist/components/tabs/tabs.stories.d.ts +17 -0
  147. package/dist/components/tag/tag-type.d.ts +2 -1
  148. package/dist/components/tag/tag.stories.d.ts +9 -0
  149. package/dist/components/text-area/base-text-area.d.ts +2 -1
  150. package/dist/components/text-area/text-area-type.d.ts +11 -3
  151. package/dist/components/text-area/text-area.stories.d.ts +15 -0
  152. package/dist/components/text-field/base-text-field.d.ts +12 -6
  153. package/dist/components/text-field/text-field-type.d.ts +37 -6
  154. package/dist/components/text-field/text-field.stories.d.ts +32 -5
  155. package/dist/components/toast/toast-type.d.ts +4 -1
  156. package/dist/components/toast/toast.stories.d.ts +21 -6
  157. package/dist/components/tooltip/tooltip-type.d.ts +4 -1
  158. package/dist/components/tooltip/tooltip.stories.d.ts +11 -0
  159. package/dist/components.css +1924 -697
  160. package/dist/cta-button.js +94 -33
  161. package/dist/data-table.js +5 -3
  162. package/dist/drawer.js +79 -13
  163. package/dist/drop-down.js +18 -10
  164. package/dist/helpers/hooks/useCloseOnBackEvent.d.ts +12 -0
  165. package/dist/helpers/hooks/useFieldClear.d.ts +21 -0
  166. package/dist/helpers/hooks/useReturnFocus.d.ts +9 -0
  167. package/dist/helpers/motion/appear.d.ts +3 -0
  168. package/dist/helpers/motion/effects.d.ts +9 -0
  169. package/dist/helpers/motion/motion-props.d.ts +35 -0
  170. package/dist/helpers/motion/stagger.d.ts +3 -0
  171. package/dist/helpers/motion/use-appear.d.ts +12 -0
  172. package/dist/helpers/motion/use-attention-handle.d.ts +7 -0
  173. package/dist/helpers/motion/use-confirm-spring.d.ts +7 -0
  174. package/dist/helpers/motion/use-effect-trigger.d.ts +11 -0
  175. package/dist/helpers/motion/use-hide-on-scroll.d.ts +12 -0
  176. package/dist/helpers/motion/use-presence-callbacks.d.ts +13 -0
  177. package/dist/icon-button.js +4 -2
  178. package/dist/icon-text-badge.js +27 -17
  179. package/dist/icon-text-option-badge.js +19 -13
  180. package/dist/index.d.ts +11 -4
  181. package/dist/index.js +3992 -967
  182. package/dist/list-row.js +5 -2
  183. package/dist/loading.js +200 -39
  184. package/dist/media-thumbnail.js +9 -5
  185. package/dist/message-composer.js +15 -11
  186. package/dist/modal-with-double-button.js +71 -53
  187. package/dist/modal.js +95 -29
  188. package/dist/notice.js +14 -8
  189. package/dist/option-badge.js +27 -17
  190. package/dist/overlay.js +1213 -0
  191. package/dist/pagination.js +11 -7
  192. package/dist/radio.js +117 -21
  193. package/dist/skeleton-group.js +445 -0
  194. package/dist/skeleton.js +24 -112
  195. package/dist/step-progress.js +125 -16
  196. package/dist/styles.css +2235 -777
  197. package/dist/switch.js +89 -17
  198. package/dist/tabs.js +77 -23
  199. package/dist/tag.js +4 -2
  200. package/dist/text-area.js +81 -31
  201. package/dist/text-field.js +160 -33
  202. package/dist/toast.js +98 -241
  203. package/dist/tokens/generated/motion.d.ts +21 -4
  204. package/dist/tokens/generated/semantic-admin.d.ts +103 -46
  205. package/dist/tokens/generated/semantic-app.d.ts +164 -16
  206. package/dist/tokens.css +578 -103
  207. package/dist/tokens.js +293 -71
  208. package/dist/tooltip.js +50 -22
  209. package/package.json +14 -1
  210. package/dist/chunk-5226.js +0 -79
@@ -170,6 +170,14 @@
170
170
  overflow-y: auto;
171
171
  }
172
172
 
173
+ /* 키보드 포커스 링. 디자인 시스템 요소(.nuri-theme) 전부에 한 규칙으로 건다. 마우스 클릭에는 뜨지 않는다(:focus-visible).
174
+ :where() 로 특이도를 낮춰 두었으므로, 테두리 색 변화로 대신하는 입력 상자처럼 링을 끌 곳은 `.x:focus-visible { outline: none }` 로 덮는다. */
175
+
176
+ :where(.nuri-theme):focus-visible:not(input, textarea) {
177
+ outline: var(--focus-ring-width) solid var(--focus-ring-color);
178
+ outline-offset: var(--focus-ring-offset);
179
+ }
180
+
173
181
  /* 공용 키프레임. 컴포넌트 CSS 보다 앞에 둔다 */
174
182
 
175
183
  /*
@@ -177,6 +185,7 @@
177
185
  * 시간·곡선은 쓰는 쪽 animation 에서 --motion-{토큰}-* 로 준다. 여기는 모양만 정한다.
178
186
  * 쓰는 쪽이 두는 입력 변수: --motion-slide-offset(transform 값), --motion-swipe-from, --motion-swipe-to,
179
187
  * --motion-content-height(펼친 높이. Radix 의 --radix-collapsible-content-height 등).
188
+ * 아래쪽 공용 클래스의 입력 --i·--motion-reveal-delay·--motion-appear-delay 는 helpers/motion 이 둔다.
180
189
  */
181
190
 
182
191
  @keyframes motion-enter-fade {
@@ -300,11 +309,13 @@
300
309
  }
301
310
  }
302
311
 
312
+ /* 쉬는 모양(애니메이션 밖)이 셋 다 보이는 점이라, 동작 줄이기로 시간이 0 이면 그대로 멈춘다 */
313
+
303
314
  @keyframes motion-busy-dots {
304
315
  0%,
305
316
  80%,
306
317
  100% {
307
- opacity: 0;
318
+ opacity: 0.25;
308
319
  }
309
320
  40% {
310
321
  opacity: 1;
@@ -320,6 +331,17 @@
320
331
  }
321
332
  }
322
333
 
334
+ /* 끝을 모르는 진행 막대. 막대(폭 40%)가 왼쪽 밖에서 오른쪽 밖으로 지난다 */
335
+
336
+ @keyframes motion-busy-bar {
337
+ from {
338
+ transform: translateX(-100%);
339
+ }
340
+ to {
341
+ transform: translateX(250%);
342
+ }
343
+ }
344
+
323
345
  @keyframes motion-busy-shimmer {
324
346
  from {
325
347
  transform: translateX(-100%);
@@ -350,7 +372,11 @@
350
372
  }
351
373
  }
352
374
 
353
- @keyframes motion-enter-expand {
375
+ /* expand: 접히는 컨테이너의 높이. 펼친 높이는 쓰는 쪽이 --motion-content-height 로 준다 */
376
+
377
+ /* 펼치는 동안만 넘친 내용을 숨긴다. 끝나면 overflow 가 원래 값으로 돌아온다 */
378
+
379
+ @keyframes motion-expand-open {
354
380
  from {
355
381
  height: 0;
356
382
  overflow: hidden;
@@ -361,7 +387,7 @@
361
387
  }
362
388
  }
363
389
 
364
- @keyframes motion-exit-expand {
390
+ @keyframes motion-expand-close {
365
391
  from {
366
392
  height: var(--motion-content-height);
367
393
  }
@@ -370,24 +396,445 @@
370
396
  }
371
397
  }
372
398
 
373
- /* Component */
399
+ /* appear 의 delay 동안 가린다. opacity 0 과 달리 눌리지 않는다 */
374
400
 
375
- .base-avatar {
376
- border-radius: 50%;
377
- width: -moz-fit-content;
378
- width: fit-content;
379
- height: -moz-fit-content;
380
- height: fit-content;
401
+ @keyframes motion-appear-hold {
402
+ from,
403
+ to {
404
+ visibility: hidden;
405
+ }
406
+ }
407
+
408
+ /*
409
+ * 공용 클래스. 컴포넌트는 클래스나 data-effect 만 단다.
410
+ * position 은 :where() 로 우선순위를 0 으로 둔다. 컴포넌트가 absolute·fixed 를 주면 그것이 이긴다.
411
+ */
412
+
413
+ .motion-press {
414
+ -webkit-tap-highlight-color: transparent;
415
+ transition: transform var(--motion-press-duration) var(--motion-press-ease);
416
+ }
417
+
418
+ .motion-press:active:not(:disabled):not([data-disabled]):not([aria-disabled='true']) {
419
+ transform: scale(var(--motion-press-scale));
420
+ }
421
+
422
+ /* ::after 를 딤 레이어로 쓴다. 자기 ::after 가 있는 컴포넌트는 쓰지 않는다 */
423
+
424
+ :where(.motion-press-dim) {
425
+ position: relative;
426
+ isolation: isolate;
427
+ }
428
+
429
+ .motion-press-dim::after {
430
+ content: '';
431
+ position: absolute;
432
+ inset: 0;
433
+ border-radius: inherit;
434
+ background: currentColor;
435
+ opacity: 0;
436
+ pointer-events: none;
437
+ transition: opacity var(--motion-press-duration) var(--motion-press-ease);
438
+ }
439
+
440
+ .motion-press-dim:active:not(:disabled):not([data-disabled]):not([aria-disabled='true'])::after {
441
+ opacity: var(--motion-press-dim);
442
+ }
443
+
444
+ @keyframes motion-unfold-open {
445
+ from {
446
+ opacity: 0;
447
+ transform: scaleY(var(--motion-unfold-scale-from));
448
+ }
449
+ to {
450
+ opacity: 1;
451
+ transform: none;
452
+ }
453
+ }
454
+
455
+ @keyframes motion-unfold-item {
456
+ from {
457
+ opacity: 0;
458
+ transform: translateY(var(--motion-unfold-offset));
459
+ }
460
+ to {
461
+ opacity: 1;
462
+ transform: none;
463
+ }
464
+ }
465
+
466
+ /* unfold: 컨테이너는 트리거 쪽(기본 위)을 축으로 펼쳐지고, 항목은 --i 순서로 gap 만큼 늦게 나타난다. --i 는 helpers/motion/stagger.ts 가 둔다 */
467
+
468
+ .motion-unfold {
469
+ transform-origin: top center;
470
+ animation: motion-unfold-open var(--motion-unfold-duration) var(--motion-unfold-ease);
471
+ }
472
+
473
+ .motion-unfold[data-side='top'] {
474
+ transform-origin: bottom center;
475
+ }
476
+
477
+ /* backwards 만 쓴다. both 면 끝난 뒤에도 transform: none 이 남아 .motion-press 의 :active scale 을 덮는다 */
478
+
479
+ .motion-unfold-item {
480
+ animation: motion-unfold-item var(--motion-unfold-duration) var(--motion-unfold-ease) backwards;
481
+ animation-delay: calc(var(--i, 0) * var(--motion-unfold-gap));
482
+ }
483
+
484
+ /* --i 와 --motion-reveal-delay 는 helpers/motion/stagger.ts 가 둔다 */
485
+
486
+ .motion-reveal {
487
+ animation: motion-enter-fade var(--motion-reveal-duration) var(--motion-reveal-ease) both;
488
+ animation-delay: calc(var(--i, 0) * var(--motion-reveal-gap) + var(--motion-reveal-delay, 0ms));
489
+ }
490
+
491
+ /* --motion-appear-delay 는 helpers/motion/appear.ts 가 둔다 */
492
+
493
+ .motion-appear-fade {
494
+ animation:
495
+ motion-enter-fade var(--motion-appear-duration) var(--motion-appear-ease)
496
+ var(--motion-appear-delay, 0ms) both,
497
+ motion-appear-hold var(--motion-appear-delay, 0ms) linear;
498
+ }
499
+
500
+ .motion-appear-scale {
501
+ animation:
502
+ motion-enter-scale var(--motion-appear-duration) var(--motion-appear-ease)
503
+ var(--motion-appear-delay, 0ms) both,
504
+ motion-appear-hold var(--motion-appear-delay, 0ms) linear;
505
+ }
506
+
507
+ .motion-appear-slide {
508
+ --motion-slide-offset: translateY(var(--motion-enter-offset));
509
+ animation:
510
+ motion-enter-slide var(--motion-appear-duration) var(--motion-appear-ease)
511
+ var(--motion-appear-delay, 0ms) both,
512
+ motion-appear-hold var(--motion-appear-delay, 0ms) linear;
513
+ }
514
+
515
+ /* 생성 CSS 는 토큰 시간만 0 으로 만든다. 컴포넌트가 준 delay 도 없애야 바로 보인다 */
516
+
517
+ @media (prefers-reduced-motion: reduce) {
518
+ .motion-reveal,
519
+ .motion-unfold,
520
+ .motion-unfold-item,
521
+ .motion-appear-fade,
522
+ .motion-appear-scale,
523
+ .motion-appear-slide {
524
+ animation: none;
525
+ }
526
+ }
527
+
528
+ /*
529
+ * 효과. helpers/motion/use-effect-trigger.ts 가 data-effect 를 달고 animationend 에 뗀다.
530
+ * 등장 클래스보다 뒤에 두어 같은 요소에 둘 다 있으면 효과가 이긴다.
531
+ */
532
+
533
+ [data-effect='shake'] {
534
+ animation: motion-reject-shake var(--motion-reject-duration) var(--motion-reject-ease);
535
+ }
536
+
537
+ [data-effect='wiggle'] {
538
+ animation: motion-reject-wiggle var(--motion-reject-duration) var(--motion-reject-ease);
539
+ }
540
+
541
+ [data-effect='blink'] {
542
+ animation: motion-attention-blink var(--motion-attention-blink) linear;
543
+ }
544
+
545
+ :where([data-effect='shine']) {
546
+ position: relative;
547
+ }
548
+
549
+ [data-effect='shine'] {
381
550
  overflow: hidden;
382
551
  }
383
552
 
384
- .base-avatar.avatar-image {
553
+ /* ::after 의 animationend 는 요소 자신에서 난다(pseudoElement '::after'). 훅은 그것으로 끝을 안다 */
554
+
555
+ [data-effect='shine']::after {
556
+ content: '';
557
+ position: absolute;
558
+ inset: 0;
559
+ background: linear-gradient(
560
+ 90deg,
561
+ transparent,
562
+ color-mix(in srgb, var(--surface-highlight) 45%, transparent),
563
+ transparent
564
+ );
565
+ transform: translateX(-100%);
566
+ pointer-events: none;
567
+ animation: motion-attention-shine var(--motion-attention-shine) linear;
568
+ }
569
+
570
+ /* 로딩 가족의 색·늦게 보이기. 컴포넌트 CSS 보다 앞에 둔다 */
571
+
572
+ /*
573
+ * 로딩 가족(components/loading)이 함께 쓰는 색과 늦게 보이기. 크기는 token/size.css 의 --loading-* 다.
574
+ * 기다림을 그리는 것은 이 가족뿐이다. 다른 컴포넌트는 Spinner·LoadingDots·ProgressBar 를 가져다 쓴다(빌드 R21).
575
+ */
576
+
577
+ /* 우선순위 0 이라 넘겨받은 className·style 의 color 가 이긴다(ADR 0004). 링·점·막대는 모두 currentColor 다 */
578
+
579
+ :where(.loading.variant-neutral) {
580
+ color: var(--text-muted);
581
+ }
582
+
583
+ :where(.loading.variant-brand) {
584
+ color: var(--text-brand-emphasis);
585
+ }
586
+
587
+ :where(.loading.variant-inverse) {
588
+ color: var(--text-on-overlay);
589
+ }
590
+
591
+ /* 짧게 끝나는 로딩은 보이지 않게 delay 동안 숨었다가 나타난다. 자리와 role·aria 는 처음부터 있다 */
592
+
593
+ .loading-delay {
594
+ animation: motion-enter-fade var(--motion-busy-fade-duration) var(--motion-busy-fade-ease)
595
+ var(--motion-busy-delay) backwards;
596
+ }
597
+
598
+ /* Component */
599
+
600
+ /* 틀(frame)은 모서리를 자르고, 액세서리는 틀의 형제라 잘리지 않는다. anchor 가 둘을 겹쳐 놓는다 */
601
+
602
+ .base-asset:where(.anchor) {
603
+ position: relative;
604
+ display: inline-block;
605
+ }
606
+
607
+ .base-asset:where(.frame) {
608
+ display: flex;
609
+ align-items: center;
610
+ justify-content: center;
611
+ overflow: hidden;
612
+ }
613
+
614
+ .base-asset:where(.accessory) {
615
+ position: absolute;
616
+ display: flex;
617
+ align-items: center;
618
+ justify-content: center;
619
+ }
620
+
621
+ .base-asset:where(.image) {
622
+ display: block;
385
623
  width: 100%;
386
624
  height: 100%;
625
+ }
626
+
627
+ .base-asset:where(.text) {
628
+ white-space: nowrap;
629
+ }
630
+
631
+ /***************************************************************************************************
632
+ * *
633
+ * asset *
634
+ * *
635
+ ***************************************************************************************************/
636
+
637
+ .base-asset.anchor.overlap + .base-asset.anchor.overlap {
638
+ margin-inline-start: calc(var(--asset-overlap) * -1);
639
+ }
640
+
641
+ .asset-frame.shape-square {
642
+ border-radius: var(--radius-control);
643
+ }
644
+
645
+ .asset-frame.shape-circle {
646
+ border-radius: var(--radius-circle);
647
+ }
648
+
649
+ .asset-frame.shape-squircle {
650
+ border-radius: var(--radius-surface);
651
+ }
652
+
653
+ .asset-frame.shape-card {
654
+ border-radius: var(--radius-surface);
655
+ }
656
+
657
+ .asset-frame.shape-square.size-xs {
658
+ width: var(--asset-square-xs);
659
+ height: var(--asset-square-xs);
660
+ }
661
+
662
+ .asset-frame.shape-square.size-s {
663
+ width: var(--asset-square-s);
664
+ height: var(--asset-square-s);
665
+ }
666
+
667
+ .asset-frame.shape-square.size-m {
668
+ width: var(--asset-square-m);
669
+ height: var(--asset-square-m);
670
+ }
671
+
672
+ .asset-frame.shape-square.size-l {
673
+ width: var(--asset-square-l);
674
+ height: var(--asset-square-l);
675
+ }
676
+
677
+ .asset-frame.shape-square.size-xl {
678
+ width: var(--asset-square-xl);
679
+ height: var(--asset-square-xl);
680
+ }
681
+
682
+ .asset-frame.shape-circle.size-s {
683
+ width: var(--asset-circle-s);
684
+ height: var(--asset-circle-s);
685
+ }
686
+
687
+ .asset-frame.shape-circle.size-m {
688
+ width: var(--asset-circle-m);
689
+ height: var(--asset-circle-m);
690
+ }
691
+
692
+ .asset-frame.shape-circle.size-l {
693
+ width: var(--asset-circle-l);
694
+ height: var(--asset-circle-l);
695
+ }
696
+
697
+ .asset-frame.shape-circle.size-xl {
698
+ width: var(--asset-circle-xl);
699
+ height: var(--asset-circle-xl);
700
+ }
701
+
702
+ .asset-frame.shape-squircle.size-s {
703
+ width: var(--asset-squircle-s);
704
+ height: var(--asset-squircle-s);
705
+ }
706
+
707
+ .asset-frame.shape-squircle.size-m {
708
+ width: var(--asset-squircle-m);
709
+ height: var(--asset-squircle-m);
710
+ }
711
+
712
+ .asset-frame.shape-squircle.size-l {
713
+ width: var(--asset-squircle-l);
714
+ height: var(--asset-squircle-l);
715
+ }
716
+
717
+ .asset-frame.shape-squircle.size-xl {
718
+ width: var(--asset-squircle-xl);
719
+ height: var(--asset-squircle-xl);
720
+ }
721
+
722
+ .asset-frame.shape-card.size-m {
723
+ width: var(--asset-card-m);
724
+ height: var(--asset-card-m);
725
+ }
726
+
727
+ .asset-frame.shape-card.size-l {
728
+ width: var(--asset-card-l);
729
+ height: var(--asset-card-l);
730
+ }
731
+
732
+ .asset-frame.shape-card.size-xl {
733
+ width: var(--asset-card-xl);
734
+ height: var(--asset-card-xl);
735
+ }
736
+
737
+ /* 글자색은 아이콘(currentColor)과 Text 가 함께 따른다. none 은 감싼 곳의 색을 물려받는다 */
738
+
739
+ .asset-frame.background-neutral {
740
+ background-color: var(--surface-muted);
741
+ color: var(--text-tertiary);
742
+ }
743
+
744
+ .asset-frame.background-primary {
745
+ background-color: var(--surface-brand-subtle);
746
+ color: var(--text-brand);
747
+ }
748
+
749
+ /* Icon 의 .icon.size-* 를 이기려고 세 클래스로 잡는다. 아이콘은 틀의 절반이다(EmptyState 의 64px 원 · 32px 아이콘) */
750
+
751
+ .asset-frame > .base-asset.asset-icon {
752
+ width: 50%;
753
+ height: 50%;
754
+ }
755
+
756
+ .asset-frame.size-xs > .asset-text {
757
+ font-size: var(--font-size-xsm);
758
+ line-height: var(--line-height-xsm);
759
+ }
760
+
761
+ .asset-frame.size-s > .asset-text {
762
+ font-size: var(--font-size-sm);
763
+ line-height: var(--line-height-sm);
764
+ }
765
+
766
+ .asset-frame.size-m > .asset-text {
767
+ font-size: var(--font-size-lg);
768
+ line-height: var(--line-height-lg);
769
+ }
770
+
771
+ .asset-frame.size-l > .asset-text {
772
+ font-size: var(--font-size-xl);
773
+ line-height: var(--line-height-xl);
774
+ }
775
+
776
+ .asset-frame.size-xl > .asset-text {
777
+ font-size: var(--font-size-3xl);
778
+ line-height: var(--line-height-3xl);
779
+ }
780
+
781
+ .asset-frame.size-xs + .asset-accessory {
782
+ width: var(--asset-accessory-xs);
783
+ height: var(--asset-accessory-xs);
784
+ }
785
+
786
+ .asset-frame.size-s + .asset-accessory {
787
+ width: var(--asset-accessory-s);
788
+ height: var(--asset-accessory-s);
789
+ }
790
+
791
+ .asset-frame.size-m + .asset-accessory {
792
+ width: var(--asset-accessory-m);
793
+ height: var(--asset-accessory-m);
794
+ }
795
+
796
+ .asset-frame.size-l + .asset-accessory {
797
+ width: var(--asset-accessory-l);
798
+ height: var(--asset-accessory-l);
799
+ }
800
+
801
+ .asset-frame.size-xl + .asset-accessory {
802
+ width: var(--asset-accessory-xl);
803
+ height: var(--asset-accessory-xl);
804
+ }
805
+
806
+ .asset-accessory.position-top-left {
807
+ top: 0;
808
+ left: 0;
809
+ }
810
+
811
+ .asset-accessory.position-top-right {
812
+ top: 0;
813
+ right: 0;
814
+ }
815
+
816
+ .asset-accessory.position-bottom-left {
817
+ bottom: 0;
818
+ left: 0;
819
+ }
820
+
821
+ .asset-accessory.position-bottom-right {
822
+ right: 0;
823
+ bottom: 0;
824
+ }
825
+
826
+ .asset-image.fit-cover {
387
827
  -o-object-fit: cover;
388
828
  object-fit: cover;
389
829
  }
390
830
 
831
+ .asset-image.fit-contain {
832
+ -o-object-fit: contain;
833
+ object-fit: contain;
834
+ }
835
+
836
+ /* 원·크기·자르기·배지 자리는 Asset.Frame(shape circle)이 그린다. 여기는 아바타만의 것이다 */
837
+
391
838
  .base-avatar .avatar-fallback {
392
839
  display: block;
393
840
  width: 100%;
@@ -405,79 +852,29 @@
405
852
  * *
406
853
  ***************************************************************************************************/
407
854
 
408
- .avatar-wrapper {
409
- position: relative;
410
- display: inline-block;
411
- }
412
-
413
855
  .avatar {
414
- display: flex;
415
- align-items: center;
416
- justify-content: center;
856
+ border: var(--hairline) solid var(--border-subtle);
417
857
  }
418
858
 
419
- .avatar.size-xl {
420
- width: var(--avatar-size-xl);
421
- height: var(--avatar-size-xl);
422
- border: var(--hairline) solid var(--color-grey-scale-200);
423
- }
424
-
425
- .avatar.size-l {
426
- width: var(--avatar-size-l);
427
- height: var(--avatar-size-l);
428
- border: var(--hairline) solid var(--color-grey-scale-200);
429
- }
430
-
431
- .avatar.size-m {
432
- width: var(--avatar-size-m);
433
- height: var(--avatar-size-m);
434
- border: var(--hairline) solid var(--color-grey-scale-200);
435
- }
436
-
437
- .avatar.size-s {
438
- width: var(--avatar-size-s);
439
- height: var(--avatar-size-s);
440
- border: var(--hairline) solid var(--color-grey-scale-200);
441
- }
859
+ /* 액세서리 자리(--asset-accessory-*)를 채운다 */
442
860
 
443
861
  .avatar-badge {
444
- position: absolute;
445
- right: 0;
446
- bottom: 0;
447
862
  display: flex;
448
863
  align-items: center;
449
864
  justify-content: center;
450
865
  gap: var(--spacing-4);
451
- border-radius: var(--radius-full);
452
- border: var(--hairline) solid var(--color-grey-scale-200);
866
+ width: 100%;
867
+ height: 100%;
868
+ border-radius: var(--radius-pill);
869
+ border: var(--hairline) solid var(--border-subtle);
453
870
  }
454
871
 
455
- .avatar-badge.size-xl {
456
- width: var(--avatar-badge-size-xl);
457
- height: var(--avatar-badge-size-xl);
458
- }
459
-
460
- .avatar-badge.size-l {
461
- width: var(--avatar-badge-size-l);
462
- height: var(--avatar-badge-size-l);
463
- }
464
-
465
- .avatar-badge.size-m {
466
- width: var(--avatar-badge-size-m);
467
- height: var(--avatar-badge-size-m);
468
- }
469
-
470
- .avatar-badge.size-s {
471
- width: var(--avatar-badge-size-s);
472
- height: var(--avatar-badge-size-s);
473
- }
474
-
475
872
  .base-badge {
476
873
  position: relative;
477
874
  display: flex;
478
875
  align-items: center;
479
876
  gap: var(--spacing-4);
480
- border-radius: var(--radius-full);
877
+ border-radius: var(--radius-pill);
481
878
  }
482
879
 
483
880
  .base-badge.size-xl {
@@ -534,7 +931,10 @@
534
931
  * *
535
932
  ***************************************************************************************************/
536
933
 
537
- .option {
934
+ /* option·icon-text 는 흔한 이름이라 뱃지 안으로 묶는다. 묶지 않으면 Radio 의 li.option 에 테두리가 샌다.
935
+ :where 라 우선순위는 그대로다 */
936
+
937
+ :where(.base-badge).option {
538
938
  display: flex;
539
939
  align-items: center;
540
940
  justify-content: center;
@@ -553,7 +953,7 @@
553
953
  * *
554
954
  ***************************************************************************************************/
555
955
 
556
- .icon-text {
956
+ :where(.base-badge).icon-text {
557
957
  display: flex;
558
958
  align-items: center;
559
959
  justify-content: center;
@@ -572,7 +972,7 @@
572
972
  * *
573
973
  ***************************************************************************************************/
574
974
 
575
- .icon-text-option {
975
+ :where(.base-badge).icon-text-option {
576
976
  display: flex;
577
977
  align-items: center;
578
978
  justify-content: space-between;
@@ -580,7 +980,7 @@
580
980
  padding: 0 var(--spacing-20);
581
981
  }
582
982
 
583
- .icon-text-option > span {
983
+ .icon-text-option:where(.base-badge) > span {
584
984
  display: flex;
585
985
  align-items: center;
586
986
  gap: var(--spacing-4);
@@ -592,44 +992,44 @@
592
992
  * *
593
993
  ***************************************************************************************************/
594
994
 
595
- .variant-neutral:is(.option,.icon-text,.icon-text-option) {
596
- color: var(--color-black);
597
- background-color: var(--color-white);
995
+ .variant-neutral:where(.base-badge):is(.option,.icon-text,.icon-text-option) {
996
+ color: var(--text-primary);
997
+ background-color: var(--surface-base);
598
998
  border-color: transparent;
599
999
  }
600
1000
 
601
- .variant-primary:is(.option,.icon-text,.icon-text-option) {
602
- color: var(--color-purple-900);
603
- background-color: var(--color-purple-50);
1001
+ .variant-primary:where(.base-badge):is(.option,.icon-text,.icon-text-option) {
1002
+ color: var(--text-brand);
1003
+ background-color: var(--surface-brand-subtle);
604
1004
  border-color: transparent;
605
1005
  }
606
1006
 
607
- .variant-danger:is(.option,.icon-text,.icon-text-option) {
608
- color: var(--color-accent-red-700);
609
- background-color: var(--color-accent-red-50);
1007
+ .variant-danger:where(.base-badge):is(.option,.icon-text,.icon-text-option) {
1008
+ color: var(--text-danger);
1009
+ background-color: var(--surface-danger-subtle);
610
1010
  border-color: transparent;
611
1011
  }
612
1012
 
613
1013
  /* Toast 의 success·warning 과 같은 계열. 글자는 800 단계라 50 바탕에서 대비 6.8:1 */
614
1014
 
615
- .variant-success:is(.option,.icon-text,.icon-text-option) {
616
- color: var(--color-accent-green-800);
617
- background-color: var(--color-accent-green-50);
1015
+ .variant-success:where(.base-badge):is(.option,.icon-text,.icon-text-option) {
1016
+ color: var(--text-success);
1017
+ background-color: var(--surface-success-subtle);
618
1018
  border-color: transparent;
619
1019
  }
620
1020
 
621
- .variant-warning:is(.option,.icon-text,.icon-text-option) {
622
- color: var(--color-accent-orange-800);
623
- background-color: var(--color-accent-orange-50);
1021
+ .variant-warning:where(.base-badge):is(.option,.icon-text,.icon-text-option) {
1022
+ color: var(--text-warning);
1023
+ background-color: var(--surface-warning-subtle);
624
1024
  border-color: transparent;
625
1025
  }
626
1026
 
627
1027
  /* icon-text-option 은 테두리가 없는 모양이라 두께·스타일까지 여기서 준다. */
628
1028
 
629
- .variant-outlined:is(.option,.icon-text,.icon-text-option) {
630
- color: var(--color-black);
631
- background-color: var(--color-white);
632
- border: var(--hairline) solid var(--color-grey-scale-300);
1029
+ .variant-outlined:where(.base-badge):is(.option,.icon-text,.icon-text-option) {
1030
+ color: var(--text-primary);
1031
+ background-color: var(--surface-base);
1032
+ border: var(--hairline) solid var(--border-default);
633
1033
  }
634
1034
 
635
1035
  /* 스크롤하는 조상의 맨 아래에 붙는다. 모션은 없다 — 주 행동·입력을 담아 스크롤로 숨기지 않는다 */
@@ -657,8 +1057,8 @@
657
1057
  padding: var(--spacing-12) var(--spacing-16);
658
1058
  /* 기기 홈 막대만큼 아래를 더 비운다. env() 의 대체값 0 은 단위가 있어야 calc 가 성립한다 */
659
1059
  padding-bottom: calc(var(--spacing-12) + env(safe-area-inset-bottom, 0px)); /* raw-px */
660
- border-top: var(--hairline) solid var(--color-grey-scale-200);
661
- background-color: var(--color-white);
1060
+ border-top: var(--hairline) solid var(--border-subtle);
1061
+ background-color: var(--surface-base);
662
1062
  }
663
1063
 
664
1064
  .base-bottom-nav:where(.root) {
@@ -673,7 +1073,7 @@
673
1073
  height: var(--bottom-nav-height);
674
1074
  padding: var(--bottom-nav-padding);
675
1075
  box-sizing: border-box;
676
- border-radius: var(--radius-full);
1076
+ border-radius: var(--radius-pill);
677
1077
  isolation: isolate;
678
1078
  }
679
1079
 
@@ -711,73 +1111,73 @@
711
1111
  background:
712
1112
  linear-gradient(
713
1113
  180deg,
714
- color-mix(in srgb, var(--color-grey-scale-50) 55%, transparent),
1114
+ color-mix(in srgb, var(--surface-subtle) 55%, transparent),
715
1115
  transparent 55%
716
1116
  ),
717
- color-mix(in srgb, var(--color-grey-scale-50) 62%, transparent);
1117
+ color-mix(in srgb, var(--surface-subtle) 62%, transparent);
718
1118
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
719
1119
  box-shadow:
720
- inset 0 var(--hairline) 0 color-mix(in srgb, var(--color-grey-scale-50) 75%, transparent),
721
- inset 0 0 0 var(--hairline) color-mix(in srgb, var(--color-grey-scale-50) 35%, transparent),
1120
+ inset 0 var(--hairline) 0 color-mix(in srgb, var(--surface-subtle) 75%, transparent),
1121
+ inset 0 0 0 var(--hairline) color-mix(in srgb, var(--surface-subtle) 35%, transparent),
722
1122
  var(--shadow-floating);
723
1123
 
724
1124
  /* 흐림을 못 하는 브라우저, 투명도 줄이기 설정에서는 거의 불투명하게 */
1125
+
1126
+ /* hideOnScroll: 아래 여백까지 더해 화면 밖으로 내린다. 키보드로 탭에 들어오면 다시 올린다 */
1127
+ transition: transform var(--motion-dismiss-on-scroll-duration)
1128
+ var(--motion-dismiss-on-scroll-ease);
725
1129
  }
726
1130
 
727
1131
  @supports not ((backdrop-filter: none) or (-webkit-backdrop-filter: none)) {
728
1132
 
729
1133
  .bottom-nav {
730
- background: color-mix(in srgb, var(--color-grey-scale-50) 96%, transparent);
1134
+ background: color-mix(in srgb, var(--surface-subtle) 96%, transparent);
731
1135
  }
732
1136
  }
733
1137
 
734
1138
  @media (prefers-reduced-transparency: reduce) {
735
1139
 
736
1140
  .bottom-nav {
737
- background: color-mix(in srgb, var(--color-grey-scale-50) 98%, transparent);
1141
+ background: color-mix(in srgb, var(--surface-subtle) 98%, transparent);
738
1142
  }
739
1143
  }
740
1144
 
741
- .bottom-nav-indicator {
742
- background: color-mix(in srgb, var(--color-purple-900) 10%, transparent);
743
- box-shadow: inset 0 var(--hairline) 0
744
- color-mix(in srgb, var(--color-grey-scale-50) 50%, transparent);
745
- transition: transform var(--motion-slow) var(--motion-spring);
746
- }
747
-
748
- @media (prefers-reduced-motion: reduce) {
1145
+ .bottom-nav[data-hidden]:not(:focus-within) {
1146
+ transform: translateY(calc(100% + var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px))); /* raw-px */
1147
+ }
749
1148
 
750
1149
  .bottom-nav-indicator {
751
- transition: none;
1150
+ background: color-mix(in srgb, var(--surface-brand) 10%, transparent);
1151
+ box-shadow: inset 0 var(--hairline) 0
1152
+ color-mix(in srgb, var(--surface-subtle) 50%, transparent);
1153
+ transition: transform var(--motion-indicate-spring-duration) var(--motion-indicate-spring-ease);
752
1154
  }
753
- }
754
1155
 
755
1156
  .bottom-nav-item {
756
- color: var(--color-grey-scale-600);
1157
+ color: var(--text-tertiary);
757
1158
  font-size: var(--font-size-xsm);
758
1159
  font-weight: var(--font-weight-medium);
759
1160
  -webkit-tap-highlight-color: transparent;
760
- transition: color var(--motion-fast) var(--motion-ease);
1161
+ /* .motion-press 의 transform 전환을 이 줄이 덮으므로 함께 적는다 */
1162
+ transition-property: color, transform;
1163
+ transition-duration: var(--motion-press-duration);
1164
+ transition-timing-function: var(--motion-press-ease);
761
1165
  }
762
1166
 
763
1167
  .bottom-nav-item[aria-current='page'] {
764
- color: var(--color-purple-900);
1168
+ color: var(--text-brand);
765
1169
  font-weight: var(--font-weight-bold);
766
1170
  }
767
1171
 
768
- .bottom-nav-item:focus-visible {
769
- outline: var(--hairline) solid var(--color-purple-600);
770
- outline-offset: calc(-1 * var(--spacing-2));
771
- }
1172
+ /* 캡슐 안이라 링을 안쪽으로 넣는다. 색·두께는 전역(styles/focus.css) */
772
1173
 
773
- .bottom-nav-item:active .bottom-nav-icon {
774
- transform: scale(0.88);
1174
+ .bottom-nav-item:focus-visible {
1175
+ outline-offset: calc(-1 * var(--focus-ring-offset));
775
1176
  }
776
1177
 
777
1178
  .bottom-nav-icon {
778
1179
  position: relative;
779
1180
  display: flex;
780
- transition: transform var(--motion-fast) var(--motion-spring);
781
1181
  }
782
1182
 
783
1183
  .bottom-nav-badge {
@@ -787,9 +1187,9 @@
787
1187
  min-width: var(--bottom-nav-badge-dot);
788
1188
  height: var(--bottom-nav-badge-dot);
789
1189
  box-sizing: border-box;
790
- border-radius: var(--radius-full);
791
- background: var(--color-accent-red-500);
792
- box-shadow: 0 0 0 var(--spacing-2) var(--color-grey-scale-50);
1190
+ border-radius: var(--radius-pill);
1191
+ background: var(--surface-danger);
1192
+ box-shadow: 0 0 0 var(--spacing-2) var(--surface-subtle);
793
1193
  }
794
1194
 
795
1195
  .bottom-nav-badge[data-count] {
@@ -801,7 +1201,7 @@
801
1201
  display: flex;
802
1202
  align-items: center;
803
1203
  justify-content: center;
804
- color: var(--color-grey-scale-50);
1204
+ color: var(--text-on-brand-subtle);
805
1205
  font-size: var(--font-size-xsm);
806
1206
  font-weight: var(--font-weight-bold);
807
1207
  font-variant-numeric: tabular-nums;
@@ -841,7 +1241,7 @@
841
1241
 
842
1242
  .breadcrumb {
843
1243
  font-weight: var(--font-weight-medium);
844
- color: var(--color-grey-scale-500);
1244
+ color: var(--text-muted);
845
1245
 
846
1246
  /* 글자와 화살표가 같이 커진다. 화살표 치수는 size.css 의 --breadcrumb-chevron-* */
847
1247
  }
@@ -877,31 +1277,43 @@
877
1277
  }
878
1278
 
879
1279
  .breadcrumb-list {
880
- gap: var(--spacing-4);
1280
+ gap: var(--spacing-2);
1281
+ /* 첫 항목의 알약 여백만큼 당겨 글자가 콘텐츠 왼쪽 선에 맞는다 */
1282
+ margin-left: calc(var(--spacing-8) * -1);
1283
+ }
1284
+
1285
+ /* 항목은 전부 알약 자리를 가진다. 상위 경로는 올리면 연한 바탕이 깔리고, 지금 위치는 늘 바탕이 깔린 채 진하다 */
1286
+
1287
+ .breadcrumb-link,
1288
+ .breadcrumb-page,
1289
+ .breadcrumb-text {
1290
+ display: inline-flex;
1291
+ align-items: center;
1292
+ padding: var(--spacing-2) var(--spacing-8);
1293
+ border-radius: var(--radius-pill);
881
1294
  }
882
1295
 
883
1296
  .breadcrumb-link {
884
- border-radius: var(--radius-4);
885
- transition: color var(--motion-fast) var(--motion-ease);
1297
+ /* .motion-press 의 transform 전환을 같은 선언에 다시 적는다. 이 규칙이 뒤에 와서 그것을 덮기 때문이다 */
1298
+ transition:
1299
+ color var(--motion-press-duration) var(--motion-press-ease),
1300
+ background-color var(--motion-press-duration) var(--motion-press-ease),
1301
+ transform var(--motion-press-duration) var(--motion-press-ease);
886
1302
  }
887
1303
 
888
1304
  .breadcrumb-link:hover {
889
- color: var(--color-grey-scale-800);
890
- text-decoration: underline;
891
- }
892
-
893
- .breadcrumb-link:focus-visible {
894
- outline: var(--hairline) solid var(--color-purple-900);
895
- outline-offset: var(--spacing-2);
1305
+ color: var(--text-body);
1306
+ background-color: var(--surface-muted);
896
1307
  }
897
1308
 
898
1309
  .breadcrumb-page {
899
- color: var(--color-grey-scale-900);
1310
+ color: var(--text-body);
1311
+ background-color: var(--surface-muted);
900
1312
  font-weight: var(--font-weight-semibold);
901
1313
  }
902
1314
 
903
1315
  .breadcrumb-separator {
904
- color: var(--color-grey-scale-400);
1316
+ color: var(--text-disabled);
905
1317
  }
906
1318
 
907
1319
  .breadcrumb-chevron {
@@ -915,14 +1327,19 @@
915
1327
  justify-content: center;
916
1328
  align-items: center;
917
1329
  gap: var(--spacing-10);
918
- border-radius: var(--radius-6);
1330
+ border-radius: var(--radius-control);
919
1331
  border: none;
920
1332
  cursor: pointer;
921
1333
  }
922
1334
 
923
- .base-button:focus-visible {
924
- outline: none;
925
- box-shadow: none;
1335
+ /* children 을 감싸지만 상자를 만들지 않아 flex 배치(gap)는 그대로다. visibility 는 자식에게 이어진다 */
1336
+
1337
+ .base-button-content {
1338
+ display: contents;
1339
+ }
1340
+
1341
+ .base-button-content[data-loading] {
1342
+ visibility: hidden;
926
1343
  }
927
1344
 
928
1345
  /***************************************************************************************************
@@ -931,101 +1348,194 @@
931
1348
  * *
932
1349
  ***************************************************************************************************/
933
1350
 
1351
+ /* 모든 조합이 같은 두께의 테두리 칸을 갖는다. 선이 없는 조합은 테두리 토큰이 바탕과 같은 색이라 크기가 흔들리지 않는다.
1352
+ 색은 color × variant 조합 선택자 하나가 --button-{color}-{variant}-* 토큰으로 정한다 (ADR 0011) */
1353
+
934
1354
  .cta-button {
935
- border-radius: var(--radius-6);
1355
+ border-radius: var(--radius-control);
1356
+ border: var(--hairline) solid transparent;
936
1357
  /* 좌우 여백은 size 가 정한다. 글자 길이와 상관없이 양쪽에 같은 여백이 남는다 */
937
1358
  }
938
1359
 
939
- .cta-button.variant-primary {
940
- background-color: var(--color-purple-900);
941
- border: var(--hairline) solid var(--color-purple-900);
942
- color: var(--color-white);
1360
+ .cta-button.color-primary.variant-fill {
1361
+ background-color: var(--button-primary-fill-background);
1362
+ border-color: var(--button-primary-fill-border);
1363
+ color: var(--button-primary-fill-text);
943
1364
  }
944
1365
 
945
- .cta-button.variant-primary:not(:disabled):hover {
946
- background-color: var(--color-purple-900);
947
- border-color: var(--color-purple-900);
948
- color: var(--color-white);
1366
+ .cta-button.color-primary.variant-fill:not(:disabled):hover {
1367
+ background-color: var(--button-primary-fill-hover-background);
1368
+ border-color: var(--button-primary-fill-hover-border);
1369
+ color: var(--button-primary-fill-hover-text);
949
1370
  }
950
1371
 
951
- .cta-button.variant-secondary {
952
- background-color: var(--color-purple-50);
953
- color: var(--color-purple-900);
1372
+ .cta-button.color-primary.variant-weak {
1373
+ background-color: var(--button-primary-weak-background);
1374
+ border-color: var(--button-primary-weak-border);
1375
+ color: var(--button-primary-weak-text);
954
1376
  }
955
1377
 
956
- .cta-button.variant-secondary:not(:disabled):hover {
957
- background-color: var(--color-purple-100);
958
- border-color: var(--color-purple-100);
959
- color: var(--color-purple-900);
1378
+ .cta-button.color-primary.variant-weak:not(:disabled):hover {
1379
+ background-color: var(--button-primary-weak-hover-background);
1380
+ border-color: var(--button-primary-weak-hover-border);
1381
+ color: var(--button-primary-weak-hover-text);
960
1382
  }
961
1383
 
962
- .cta-button.variant-ghost {
963
- background-color: var(--color-white);
964
- border: var(--hairline) solid var(--color-grey-scale-300);
965
- color: var(--color-purple-900);
1384
+ .cta-button.color-primary.variant-outline {
1385
+ background-color: var(--button-primary-outline-background);
1386
+ border-color: var(--button-primary-outline-border);
1387
+ color: var(--button-primary-outline-text);
966
1388
  }
967
1389
 
968
- .cta-button.variant-ghost:not(:disabled):hover {
969
- background-color: var(--color-white);
970
- border-color: var(--color-purple-900);
971
- color: var(--color-purple-900);
1390
+ .cta-button.color-primary.variant-outline:not(:disabled):hover {
1391
+ background-color: var(--button-primary-outline-hover-background);
1392
+ border-color: var(--button-primary-outline-hover-border);
1393
+ color: var(--button-primary-outline-hover-text);
972
1394
  }
973
1395
 
974
- .cta-button.variant-neutral {
975
- background-color: var(--color-white);
976
- color: var(--color-purple-900);
1396
+ .cta-button.color-primary.variant-ghost {
1397
+ background-color: var(--button-primary-ghost-background);
1398
+ border-color: var(--button-primary-ghost-border);
1399
+ color: var(--button-primary-ghost-text);
1400
+ }
1401
+
1402
+ .cta-button.color-primary.variant-ghost:not(:disabled):hover {
1403
+ background-color: var(--button-primary-ghost-hover-background);
1404
+ border-color: var(--button-primary-ghost-hover-border);
1405
+ color: var(--button-primary-ghost-hover-text);
1406
+ }
977
1407
 
978
- /* 호버 때만 테두리를 그리면 그만큼 커져 덜컹거린다. 배경과 같은 색이라 보이지도 않아 테두리는 두지 않는다 */
1408
+ .cta-button.color-neutral.variant-fill {
1409
+ background-color: var(--button-neutral-fill-background);
1410
+ border-color: var(--button-neutral-fill-border);
1411
+ color: var(--button-neutral-fill-text);
979
1412
  }
980
1413
 
981
- .cta-button.variant-neutral:not(:disabled):hover {
982
- background-color: var(--color-grey-scale-100);
983
- color: var(--color-purple-900);
1414
+ .cta-button.color-neutral.variant-fill:not(:disabled):hover {
1415
+ background-color: var(--button-neutral-fill-hover-background);
1416
+ border-color: var(--button-neutral-fill-hover-border);
1417
+ color: var(--button-neutral-fill-hover-text);
984
1418
  }
985
1419
 
986
- .cta-button.variant-confirm {
987
- background-color: var(--color-accent-red-500);
988
- border: var(--hairline) solid var(--color-accent-red-500);
989
- color: var(--color-white);
1420
+ .cta-button.color-neutral.variant-weak {
1421
+ background-color: var(--button-neutral-weak-background);
1422
+ border-color: var(--button-neutral-weak-border);
1423
+ color: var(--button-neutral-weak-text);
990
1424
  }
991
1425
 
992
- .cta-button.variant-confirm:not(:disabled):hover {
993
- background-color: var(--color-accent-red-700);
994
- border-color: var(--color-accent-red-700);
995
- color: var(--color-white);
1426
+ .cta-button.color-neutral.variant-weak:not(:disabled):hover {
1427
+ background-color: var(--button-neutral-weak-hover-background);
1428
+ border-color: var(--button-neutral-weak-hover-border);
1429
+ color: var(--button-neutral-weak-hover-text);
1430
+ }
1431
+
1432
+ .cta-button.color-neutral.variant-outline {
1433
+ background-color: var(--button-neutral-outline-background);
1434
+ border-color: var(--button-neutral-outline-border);
1435
+ color: var(--button-neutral-outline-text);
1436
+ }
1437
+
1438
+ .cta-button.color-neutral.variant-outline:not(:disabled):hover {
1439
+ background-color: var(--button-neutral-outline-hover-background);
1440
+ border-color: var(--button-neutral-outline-hover-border);
1441
+ color: var(--button-neutral-outline-hover-text);
1442
+ }
1443
+
1444
+ .cta-button.color-neutral.variant-ghost {
1445
+ background-color: var(--button-neutral-ghost-background);
1446
+ border-color: var(--button-neutral-ghost-border);
1447
+ color: var(--button-neutral-ghost-text);
1448
+ }
1449
+
1450
+ .cta-button.color-neutral.variant-ghost:not(:disabled):hover {
1451
+ background-color: var(--button-neutral-ghost-hover-background);
1452
+ border-color: var(--button-neutral-ghost-hover-border);
1453
+ color: var(--button-neutral-ghost-hover-text);
996
1454
  }
997
1455
 
998
- .cta-button.variant-outlined {
999
- background-color: var(--color-white);
1000
- border: var(--hairline) solid var(--color-accent-red-700);
1001
- color: var(--color-accent-red-700);
1456
+ .cta-button.color-danger.variant-fill {
1457
+ background-color: var(--button-danger-fill-background);
1458
+ border-color: var(--button-danger-fill-border);
1459
+ color: var(--button-danger-fill-text);
1002
1460
  }
1003
1461
 
1004
- /* 소셜 로그인. Google·Apple 가이드의 흰 바탕·검정 글자 — 공급자 로고는 쓰는 쪽이 leftIcon 으로 (ADR 0006) */
1462
+ .cta-button.color-danger.variant-fill:not(:disabled):hover {
1463
+ background-color: var(--button-danger-fill-hover-background);
1464
+ border-color: var(--button-danger-fill-hover-border);
1465
+ color: var(--button-danger-fill-hover-text);
1466
+ }
1467
+
1468
+ .cta-button.color-danger.variant-weak {
1469
+ background-color: var(--button-danger-weak-background);
1470
+ border-color: var(--button-danger-weak-border);
1471
+ color: var(--button-danger-weak-text);
1472
+ }
1473
+
1474
+ .cta-button.color-danger.variant-weak:not(:disabled):hover {
1475
+ background-color: var(--button-danger-weak-hover-background);
1476
+ border-color: var(--button-danger-weak-hover-border);
1477
+ color: var(--button-danger-weak-hover-text);
1478
+ }
1005
1479
 
1006
- .cta-button.variant-social {
1007
- background-color: var(--color-white);
1008
- border: var(--hairline) solid var(--color-grey-scale-300);
1009
- color: var(--color-black);
1480
+ .cta-button.color-danger.variant-outline {
1481
+ background-color: var(--button-danger-outline-background);
1482
+ border-color: var(--button-danger-outline-border);
1483
+ color: var(--button-danger-outline-text);
1010
1484
  }
1011
1485
 
1012
- .cta-button.variant-social:not(:disabled):hover {
1013
- background-color: var(--color-grey-scale-100);
1486
+ .cta-button.color-danger.variant-outline:not(:disabled):hover {
1487
+ background-color: var(--button-danger-outline-hover-background);
1488
+ border-color: var(--button-danger-outline-hover-border);
1489
+ color: var(--button-danger-outline-hover-text);
1490
+ }
1491
+
1492
+ .cta-button.color-danger.variant-ghost {
1493
+ background-color: var(--button-danger-ghost-background);
1494
+ border-color: var(--button-danger-ghost-border);
1495
+ color: var(--button-danger-ghost-text);
1496
+ }
1497
+
1498
+ .cta-button.color-danger.variant-ghost:not(:disabled):hover {
1499
+ background-color: var(--button-danger-ghost-hover-background);
1500
+ border-color: var(--button-danger-ghost-hover-border);
1501
+ color: var(--button-danger-ghost-hover-text);
1014
1502
  }
1015
1503
 
1016
1504
  /* callout prop: 오른쪽 위 모서리에 반쯤 걸친 말풍선 (ADR 0007). 글자 흐름 밖이라 글자가 움직이지 않는다.
1017
- .base-callout 의 position: relative 를 순서와 상관없이 이기도록 .cta-button > 로 한 단계 높인다 */
1505
+ .base-callout 의 position: relative 를 순서와 상관없이 이기도록 .cta-button 으로 한 단계 높인다.
1506
+ z-index 는 눌림 딤(::after)이 말풍선 아래쪽을 덮지 않게 한다 */
1018
1507
 
1019
1508
  .cta-button.with-callout {
1020
1509
  position: relative;
1021
1510
  }
1022
1511
 
1023
- .cta-button > .cta-button-callout {
1512
+ .cta-button .cta-button-callout {
1024
1513
  position: absolute;
1514
+ z-index: var(--z-raised);
1025
1515
  top: calc(var(--spacing-12) * -1);
1026
1516
  right: var(--spacing-14);
1027
1517
  }
1028
1518
 
1519
+ /* loading: 글자는 자리만 지키고 로딩 표시를 가운데에 띄운다. 너비가 변하지 않는다 */
1520
+
1521
+ .cta-button[aria-busy='true'] {
1522
+ position: relative;
1523
+ }
1524
+
1525
+ /* 로딩 표시(점 셋)는 그 버튼의 글자색을 따른다. styles/loading.css 의 variant 색은 우선순위 0 이라 이것이 이긴다.
1526
+ inset 0 + margin auto 로 가운데에 놓이려면 크기가 내용만큼이어야 한다 */
1527
+
1528
+ .cta-button .cta-button-indicator {
1529
+ position: absolute;
1530
+ inset: 0;
1531
+ width: -moz-fit-content;
1532
+ width: fit-content;
1533
+ height: -moz-fit-content;
1534
+ height: fit-content;
1535
+ margin: auto;
1536
+ color: inherit;
1537
+ }
1538
+
1029
1539
  .cta-button.size-xl {
1030
1540
  height: var(--control-height-xl);
1031
1541
  padding: 0 var(--spacing-24);
@@ -1071,44 +1581,47 @@
1071
1581
  font-weight: var(--font-weight-semibold);
1072
1582
  }
1073
1583
 
1074
- .cta-button:disabled {
1075
- background-color: var(--color-grey-scale-200);
1076
- color: var(--color-white);
1584
+ /* 조합 선택자(0-3-0)를 이기도록 .base-button 으로 한 단계 높인다. 테두리 칸은 남겨 꺼져도 크기가 그대로다 */
1585
+
1586
+ .cta-button.base-button:disabled {
1587
+ background-color: var(--button-disabled-background);
1588
+ border-color: var(--button-disabled-border);
1589
+ color: var(--button-disabled-text);
1077
1590
  cursor: not-allowed;
1078
- border: none;
1079
1591
  }
1080
1592
 
1081
1593
  /* 대상에 붙어 늘 떠 있는 작은 말풍선 (ADR 0007).
1082
- 연보라(primary 뱃지·secondary 버튼과 같은 색)는 흰 면 위에서 묻혀서 purple-300 테두리로 윤곽을 잡는다. */
1594
+ 짙은 바탕에 흰 글자의 알약 모양. 테두리 없이 색 대비로만 윤곽을 잡아 어떤 면 위에서도 묻히지 않는다. */
1083
1595
 
1084
1596
  .base-callout {
1085
1597
  position: relative;
1086
1598
  display: inline-flex;
1087
1599
  align-items: center;
1088
1600
  height: var(--label-height-xs);
1089
- padding: 0 var(--spacing-10);
1090
- border: var(--hairline) solid var(--color-purple-300);
1091
- border-radius: var(--radius-6);
1601
+ padding: 0 var(--spacing-12);
1602
+ border-radius: var(--radius-pill);
1092
1603
 
1093
- background-color: var(--color-purple-50);
1094
- color: var(--color-purple-900);
1604
+ background-color: var(--surface-inverse);
1605
+ color: var(--text-inverse);
1095
1606
  box-shadow: var(--shadow-popover);
1096
1607
 
1097
1608
  font-size: var(--font-size-xsm);
1098
1609
  line-height: var(--line-height-xsm);
1099
- font-weight: var(--font-weight-bold);
1610
+ font-weight: var(--font-weight-semibold);
1100
1611
  white-space: nowrap;
1101
1612
 
1102
1613
  /* 나타날 때 꼬리에서 튀어나온 뒤 세 번 둥실 움직이고 멈춘다 (ADR 0007). 계속 움직이면 거슬린다.
1103
- 둥실 지연 = 팝 지연 + 팝 시간. 팝 쪽을 바꾸면 둥실 지연도 같이 바꾼다 */
1614
+ 둥실 지연 = 팝 지연 + 팝 시간. 팝 쪽을 바꾸면 둥실 지연도 같이 바꾼다.
1615
+ attention 에 둥실 주기 토큰이 따로 없어 shine 한 번의 길이를 둥실 한 번의 주기로 쓴다 */
1104
1616
  --callout-origin: var(--spacing-16) 100%;
1105
1617
  --motion-slide-offset: translateY(var(--spacing-4));
1106
1618
 
1107
1619
  transform-origin: var(--callout-origin);
1108
1620
  animation:
1109
- motion-enter-pop var(--motion-slow) var(--motion-spring) var(--motion-fast) both,
1110
- motion-attention-float calc(var(--motion-base) * 8) var(--motion-ease)
1111
- calc(var(--motion-fast) + var(--motion-slow)) 3;
1621
+ motion-enter-pop var(--motion-enter-strong-duration) var(--motion-enter-strong-ease)
1622
+ var(--motion-enter-duration) both,
1623
+ motion-attention-float var(--motion-attention-shine) var(--motion-enter-ease)
1624
+ calc(var(--motion-enter-duration) + var(--motion-enter-strong-duration)) 3;
1112
1625
  }
1113
1626
 
1114
1627
  .base-callout.tail-bottom-end {
@@ -1124,30 +1637,23 @@
1124
1637
  --callout-origin: calc(100% - var(--spacing-16)) 0;
1125
1638
  }
1126
1639
 
1127
- /* 꼬리: --spacing-8 정사각형을 45도 돌린다. 한 변의 절반에 테두리 두께만큼 더 밖으로 내어 몸통 테두리를 덮는다 */
1640
+ /* 꼬리: --spacing-6 정사각형을 45도 돌려 한 변의 절반만큼 몸통 밖으로 낸다. 몸통과 같은 색이라 이음새가 없다 */
1128
1641
 
1129
1642
  .base-callout::after {
1130
1643
  content: '';
1131
1644
  position: absolute;
1132
- /* reset.css 가 가상 요소도 border-box 로 바꿔도 테두리가 정사각형 밖에 붙게 둔다 */
1133
- box-sizing: content-box;
1134
- width: var(--spacing-8);
1135
- height: var(--spacing-8);
1136
- border: 0 solid var(--color-purple-300);
1645
+ width: var(--spacing-6);
1646
+ height: var(--spacing-6);
1137
1647
  background-color: inherit;
1138
1648
  transform: rotate(45deg);
1139
1649
  }
1140
1650
 
1141
1651
  .base-callout:is(.tail-bottom-start,.tail-bottom-end)::after {
1142
- bottom: calc((var(--spacing-4) + var(--hairline)) * -1);
1143
- border-right-width: var(--hairline);
1144
- border-bottom-width: var(--hairline);
1652
+ bottom: calc(var(--spacing-6) / -2);
1145
1653
  }
1146
1654
 
1147
1655
  .base-callout:is(.tail-top-start,.tail-top-end)::after {
1148
- top: calc((var(--spacing-4) + var(--hairline)) * -1);
1149
- border-left-width: var(--hairline);
1150
- border-top-width: var(--hairline);
1656
+ top: calc(var(--spacing-6) / -2);
1151
1657
  }
1152
1658
 
1153
1659
  .base-callout:is(.tail-bottom-start,.tail-top-start)::after {
@@ -1158,12 +1664,6 @@
1158
1664
  right: var(--spacing-12);
1159
1665
  }
1160
1666
 
1161
- @media (prefers-reduced-motion: reduce) {
1162
- .base-callout {
1163
- animation: none;
1164
- }
1165
- }
1166
-
1167
1667
  .base-card {
1168
1668
  display: flex;
1169
1669
  flex-direction: column;
@@ -1178,17 +1678,17 @@
1178
1678
  .card {
1179
1679
  gap: var(--spacing-12);
1180
1680
  padding: var(--spacing-16);
1181
- border: var(--hairline) solid var(--color-grey-scale-200);
1182
- border-radius: var(--radius-16);
1183
- background-color: var(--color-white);
1681
+ border: var(--hairline) solid var(--border-subtle);
1682
+ border-radius: var(--radius-surface);
1683
+ background-color: var(--surface-base);
1184
1684
  }
1185
1685
 
1186
1686
  .card.variant-tinted {
1187
- border-color: var(--color-purple-100);
1188
- background-color: var(--color-purple-50);
1687
+ border-color: transparent;
1688
+ background-color: var(--surface-brand-subtle);
1189
1689
  }
1190
1690
 
1191
- /* 누르는 카드(링크·버튼)만 눌림 모션을 받는다. 보기만 하는 카드는 움직이지 않는다 */
1691
+ /* 누르는 카드(링크·버튼). 눌림은 card.tsx 가 다는 공용 .motion-press 가, 포커스 링은 전역 규칙이 그린다 */
1192
1692
 
1193
1693
  .card:is(a[href],button) {
1194
1694
  width: 100%;
@@ -1196,22 +1696,12 @@
1196
1696
  text-align: start;
1197
1697
  text-decoration: none;
1198
1698
  cursor: pointer;
1199
- transition: transform var(--motion-press-duration) var(--motion-press-ease);
1200
1699
  }
1201
1700
 
1202
- .card:is(a[href],button):active {
1203
- transform: scale(var(--motion-press-scale));
1204
- }
1205
-
1206
- .card:is(a[href],button):focus-visible {
1207
- outline: var(--hairline) solid var(--color-purple-600);
1208
- outline-offset: var(--spacing-2);
1209
- }
1210
-
1211
1701
  .base-check-box.label {
1212
1702
  font-size: var(--font-size-sm);
1213
1703
  font-weight: var(--font-weight-medium);
1214
- color: var(--color-black);
1704
+ color: var(--text-primary);
1215
1705
  }
1216
1706
 
1217
1707
  /***************************************************************************************************
@@ -1233,8 +1723,10 @@
1233
1723
  display: flex;
1234
1724
  align-items: center;
1235
1725
  justify-content: center;
1236
- border-radius: var(--radius-4);
1237
- border: var(--checkbox-border) solid var(--color-purple-900);
1726
+ border-radius: var(--radius-mark);
1727
+ border: var(--border-width-strong) solid var(--border-accent);
1728
+ background-color: var(--surface-base);
1729
+ overflow: hidden;
1238
1730
  }
1239
1731
 
1240
1732
  .check-box-indicator {
@@ -1249,13 +1741,68 @@
1249
1741
  display: flex;
1250
1742
  align-items: center;
1251
1743
  justify-content: center;
1744
+
1745
+ /* 켜지면 보라 채움과 흰 체크가 한 겹으로 짧게 떠오른다(confirm fade). --confirm-delay 는 base 가 delay prop 으로 둔다 */
1746
+ opacity: 0;
1747
+ background-color: var(--surface-brand);
1748
+ border-radius: calc(var(--radius-mark) - var(--border-width-strong));
1749
+ transition: opacity var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
1750
+ var(--confirm-delay, 0ms);
1751
+
1752
+ color: var(--text-on-brand);
1252
1753
  }
1253
1754
 
1755
+ .check-box-indicator[data-state='checked']:not(.wrapper) {
1756
+ opacity: 1;
1757
+ }
1758
+
1254
1759
  .check-box-indicator:not(.wrapper) > svg {
1255
1760
  display: block;
1256
1761
  flex-shrink: 0;
1762
+
1763
+ /* 아이콘 파일의 stroke 는 흰색 고정이다. variant 가 색을 정하게 currentColor 로 덮는다 */
1764
+ }
1765
+
1766
+ :is(.check-box-indicator:not(.wrapper) > svg) path {
1767
+ stroke: currentColor;
1768
+ }
1769
+
1770
+ /* outlined: 네모 없이 체크만. 쉴 때는 회색 체크(rest-icon)가 보이고, 켜면 그 위로 보라 체크가 떠오른다 */
1771
+
1772
+ .check-box-indicator.wrapper.variant-outlined {
1773
+ position: relative;
1774
+ border: none;
1775
+ background-color: transparent;
1776
+ }
1777
+
1778
+ .check-box-indicator.wrapper.variant-outlined > .check-box-rest-icon {
1779
+ display: block;
1780
+ position: absolute;
1781
+ color: var(--text-placeholder);
1782
+ }
1783
+
1784
+ :is(.check-box-indicator.wrapper.variant-outlined > .check-box-rest-icon) path {
1785
+ stroke: currentColor;
1786
+ }
1787
+
1788
+ .check-box-indicator.wrapper.variant-outlined > .check-box-indicator:not(.wrapper) {
1789
+ position: relative;
1790
+ background-color: transparent;
1791
+ color: var(--text-brand);
1792
+ }
1793
+
1794
+ .check-box-indicator.wrapper.variant-outlined[data-disabled='true'] {
1795
+ background-color: transparent;
1257
1796
  }
1258
1797
 
1798
+ .check-box-indicator.wrapper.variant-outlined[data-disabled='true'] > .check-box-rest-icon,.check-box-indicator.wrapper.variant-outlined[data-disabled='true'] > .check-box-indicator:not(.wrapper) {
1799
+ color: var(--text-disabled);
1800
+ }
1801
+
1802
+ .check-box-indicator > .check-box-rest-icon {
1803
+ display: none;
1804
+ }
1805
+
1259
1806
  .check-box-indicator.size-l {
1260
1807
  width: var(--checkbox-size-l);
1261
1808
  height: var(--checkbox-size-l);
@@ -1271,18 +1818,10 @@
1271
1818
  height: var(--checkbox-size-s);
1272
1819
  }
1273
1820
 
1274
- .check-box-indicator[data-state='unchecked'] {
1275
- background-color: var(--color-white);
1276
- }
1277
-
1278
- .check-box-indicator[data-state='checked'] {
1279
- background-color: var(--color-purple-900);
1280
- }
1281
-
1282
1821
  .check-box-indicator[data-disabled='true'] {
1283
1822
  border: none;
1284
- border-radius: var(--radius-4);
1285
- background-color: var(--color-grey-scale-300);
1823
+ border-radius: var(--radius-mark);
1824
+ background-color: var(--surface-control);
1286
1825
  }
1287
1826
 
1288
1827
  .base-chip-group:where(.root) {
@@ -1306,55 +1845,88 @@
1306
1845
  gap: var(--spacing-6);
1307
1846
  cursor: pointer;
1308
1847
 
1309
- /* 36 높이를 터치 44 로 넓힌다 */
1848
+ /* 36 높이를 터치 44 로 넓힌다. ::after 는 .motion-press-dim 의 딤 레이어가 쓴다 */
1310
1849
  }
1311
1850
 
1312
- .base-chip-group:where(.chip)::after {
1851
+ .base-chip-group:where(.chip)::before {
1313
1852
  content: '';
1314
1853
  position: absolute;
1315
1854
  inset: calc(-1 * var(--spacing-4)) 0;
1316
1855
  }
1317
1856
 
1318
- .base-chip-group[data-disabled]:where(.chip) {
1319
- cursor: not-allowed;
1857
+ .base-chip-group[data-disabled]:where(.chip) {
1858
+ cursor: not-allowed;
1859
+ }
1860
+
1861
+ /***************************************************************************************************
1862
+ * *
1863
+ * chip-group *
1864
+ * *
1865
+ ***************************************************************************************************/
1866
+
1867
+ .chip-group.size-s .chip-group-chip {
1868
+ height: var(--control-height-s);
1869
+ padding: 0 var(--spacing-14);
1870
+ font-size: var(--font-size-sm);
1871
+ }
1872
+
1873
+ .chip-group.size-xs .chip-group-chip {
1874
+ height: var(--control-height-xs);
1875
+ padding: 0 var(--spacing-10);
1876
+ font-size: var(--font-size-xsm);
1877
+ }
1878
+
1879
+ /* outlined: 카드·시트 안. 채우지 않고 선만, 고르면 보라 선과 보라 글자 */
1880
+
1881
+ .chip-group.variant-outlined .chip-group-chip {
1882
+ background: transparent;
1883
+ }
1884
+
1885
+ [data-state='on']:is(.chip-group.variant-outlined .chip-group-chip) {
1886
+ background: transparent;
1887
+ border-color: var(--border-accent);
1888
+ color: var(--text-brand);
1889
+ }
1890
+
1891
+ /* ghost: 촘촘하거나 보조 필터. 선도 바탕도 없다가 고르면 연보라 바탕 */
1892
+
1893
+ .chip-group.variant-ghost .chip-group-chip {
1894
+ border-color: transparent;
1895
+ background: transparent;
1896
+ }
1897
+
1898
+ [data-state='on']:is(.chip-group.variant-ghost .chip-group-chip) {
1899
+ border-color: transparent;
1900
+ background: var(--surface-brand-subtle);
1901
+ color: var(--text-brand);
1320
1902
  }
1321
1903
 
1322
- /***************************************************************************************************
1323
- * *
1324
- * chip-group *
1325
- * *
1326
- ***************************************************************************************************/
1904
+ /* filled(기본): 페이지 바탕 위. 연회색 바탕과 선, 고르면 보라 채움 */
1327
1905
 
1328
1906
  .chip-group-chip {
1329
- height: var(--control-height-s);
1330
- padding: 0 var(--spacing-14);
1331
- border: var(--hairline) solid var(--color-grey-scale-300);
1332
- border-radius: var(--radius-full);
1333
- background: var(--color-grey-scale-50);
1334
- color: var(--color-grey-scale-600);
1335
- font-size: var(--font-size-sm);
1907
+ border: var(--hairline) solid var(--border-default);
1908
+ border-radius: var(--radius-pill);
1909
+ background: var(--surface-subtle);
1910
+ color: var(--text-tertiary);
1336
1911
  font-weight: var(--font-weight-medium);
1912
+ /* .motion-press 의 transform 전환을 같은 선언에 다시 적는다. 이 규칙이 뒤에 와서 그것을 덮기 때문이다 */
1337
1913
  transition:
1338
- background-color var(--motion-fast) var(--motion-ease),
1339
- color var(--motion-fast) var(--motion-ease),
1340
- border-color var(--motion-fast) var(--motion-ease);
1914
+ background-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease),
1915
+ color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease),
1916
+ border-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease),
1917
+ transform var(--motion-press-duration) var(--motion-press-ease);
1341
1918
  }
1342
1919
 
1343
1920
  .chip-group-chip[data-state='on'] {
1344
- border-color: var(--color-purple-900);
1345
- background: var(--color-purple-900);
1346
- color: var(--color-grey-scale-50);
1921
+ border-color: var(--border-accent);
1922
+ background: var(--surface-brand);
1923
+ color: var(--text-on-brand-subtle);
1347
1924
  font-weight: var(--font-weight-semibold);
1348
1925
  }
1349
1926
 
1350
1927
  .chip-group-chip[data-disabled] {
1351
- border-color: var(--color-grey-scale-200);
1352
- color: var(--color-grey-scale-300);
1353
- }
1354
-
1355
- .chip-group-chip:focus-visible {
1356
- outline: var(--hairline) solid var(--color-purple-600);
1357
- outline-offset: var(--spacing-2);
1928
+ border-color: var(--border-disabled);
1929
+ color: var(--text-disabled);
1358
1930
  }
1359
1931
 
1360
1932
  .chip-group-count {
@@ -1414,7 +1986,7 @@
1414
1986
  font-size: var(--font-size-xsm);
1415
1987
  line-height: var(--line-height-xsm);
1416
1988
  font-weight: var(--font-weight-medium);
1417
- color: var(--collapsible-menu-section-title-color, var(--color-grey-scale-500));
1989
+ color: var(--collapsible-menu-section-title-color, var(--text-muted));
1418
1990
  }
1419
1991
 
1420
1992
  .collapsible-menu.size-s .collapsible-menu-row {
@@ -1435,29 +2007,43 @@
1435
2007
 
1436
2008
  width: 100%;
1437
2009
  padding: 0 var(--spacing-12);
1438
- /* figma 토큰에 --radius-8 없음. 디자이너 확인 전까지 숫자 유지 */
1439
- border-radius: 8px; /* raw-px */
2010
+ border-radius: var(--radius-control);
1440
2011
  cursor: pointer;
1441
2012
 
1442
2013
  font-size: var(--font-size-sm);
1443
2014
  line-height: var(--line-height-sm);
1444
2015
  font-weight: var(--font-weight-medium);
1445
- color: var(--collapsible-menu-text-color, var(--color-grey-scale-700));
2016
+ color: var(--collapsible-menu-text-color, var(--text-secondary));
1446
2017
  }
1447
2018
 
1448
2019
  .collapsible-menu-row:hover {
1449
- background-color: var(--collapsible-menu-hover-bg-color, var(--color-grey-scale-100));
2020
+ background-color: var(--collapsible-menu-hover-bg-color, var(--surface-muted));
1450
2021
  }
1451
2022
 
1452
2023
  .collapsible-menu-row.is-active {
1453
- background-color: var(--collapsible-menu-active-bg-color, var(--color-grey-scale-100));
1454
- color: var(--collapsible-menu-active-text-color, var(--color-purple-800));
2024
+ background-color: var(--collapsible-menu-active-bg-color, var(--surface-muted));
2025
+ color: var(--collapsible-menu-active-text-color, var(--text-brand-emphasis));
1455
2026
  font-weight: var(--collapsible-menu-active-font-weight, 600);
1456
2027
  }
1457
2028
 
1458
2029
  .collapsible-menu-row:disabled,.collapsible-menu-row[aria-disabled='true'] {
1459
2030
  cursor: not-allowed;
1460
- color: var(--collapsible-menu-disabled-text-color, var(--color-grey-scale-400));
2031
+ color: var(--collapsible-menu-disabled-text-color, var(--text-placeholder));
2032
+ }
2033
+
2034
+ /* 눌림은 딤만(press form dim). 위의 all: unset 이 .motion-press-dim 의 position 을 지우므로 다시 적는다 */
2035
+
2036
+ .collapsible-menu-row.motion-press-dim {
2037
+ position: relative;
2038
+ isolation: isolate;
2039
+ -webkit-tap-highlight-color: transparent;
2040
+ }
2041
+
2042
+ /* 같은 이유로 .motion-unfold-item 의 animation 도 다시 적는다 */
2043
+
2044
+ .collapsible-menu-row.motion-unfold-item {
2045
+ animation: motion-unfold-item var(--motion-unfold-duration) var(--motion-unfold-ease) backwards;
2046
+ animation-delay: calc(var(--i, 0) * var(--motion-unfold-gap));
1461
2047
  }
1462
2048
 
1463
2049
  .collapsible-menu-left {
@@ -1472,46 +2058,44 @@
1472
2058
  }
1473
2059
 
1474
2060
  .collapsible-menu-chevron {
2061
+ display: inline-flex;
2062
+ flex-shrink: 0;
1475
2063
  width: var(--icon-size-s);
1476
2064
  height: var(--icon-size-s);
1477
- color: var(--color-grey-scale-500);
1478
- transition: transform var(--motion-fast) var(--motion-ease);
2065
+ color: var(--text-muted);
2066
+ transition: transform var(--motion-expand-duration) var(--motion-expand-ease);
1479
2067
  }
1480
2068
 
2069
+ .collapsible-menu-chevron svg {
2070
+ width: 100%;
2071
+ height: 100%;
2072
+ }
2073
+
1481
2074
  .base-collapsible-menu.trigger[data-state='open'] .collapsible-menu-chevron {
1482
- transform: rotate(180deg);
2075
+ transform: rotate(var(--motion-expand-rotate));
1483
2076
  }
1484
2077
 
1485
2078
  .collapsible-menu-content {
1486
- display: flex;
1487
- flex-direction: column;
1488
- gap: var(--spacing-2);
1489
- margin-top: var(--spacing-2);
1490
- margin-bottom: var(--spacing-4);
1491
- /* 여닫는 높이. 여백은 이 상자 밖에 있어 Radix 가 잰 높이와 맞고, 열린 채로 둘 때는 overflow 를 숨기지 않는다. */
2079
+ /* 블록 그대로 둔다. display 를 주면 Radix 가 접힌 뒤 다는 hidden 이 무력해져, 남은 본문을 Radix 가 다시 재면서
2080
+ 접힘 애니메이션이 한 번 더 돈다. 위아래 여백은 padding 이라 Radix 가 재는 높이 안에 들고 함께 접힌다.
2081
+ 열린 채로 둘 때는 overflow 를 숨기지 않는다(포커스 링이 잘리지 않게). 여닫는 동안은 키프레임이 숨긴다 */
2082
+ padding: var(--spacing-2) 0 var(--spacing-4);
1492
2083
  --motion-content-height: var(--radix-collapsible-content-height);
1493
2084
  }
1494
2085
 
1495
2086
  .collapsible-menu-content[data-state='open'] {
1496
- animation: motion-enter-expand var(--motion-expand-duration) var(--motion-expand-ease);
2087
+ animation: motion-expand-open var(--motion-expand-duration) var(--motion-expand-ease);
1497
2088
  }
1498
2089
 
1499
2090
  .collapsible-menu-content[data-state='closed'] {
1500
2091
  overflow: hidden;
1501
- animation: motion-exit-expand var(--motion-expand-duration) var(--motion-expand-ease);
2092
+ animation: motion-expand-close var(--motion-expand-duration) var(--motion-expand-ease) forwards;
1502
2093
  }
1503
2094
 
1504
2095
  .collapsible-menu-content .collapsible-menu-list {
1505
2096
  gap: var(--spacing-2);
1506
2097
  }
1507
2098
 
1508
- @media (prefers-reduced-motion: reduce) {
1509
- .collapsible-menu-content[data-state='open'],
1510
- .collapsible-menu-content[data-state='closed'] {
1511
- animation: none;
1512
- }
1513
- }
1514
-
1515
2099
  .base-description-list {
1516
2100
  display: flex;
1517
2101
  flex-direction: column;
@@ -1535,14 +2119,14 @@
1535
2119
  }
1536
2120
 
1537
2121
  .description-list-item > dt {
1538
- color: var(--color-grey-scale-500);
2122
+ color: var(--text-muted);
1539
2123
  font-size: var(--font-size-sm);
1540
2124
  line-height: var(--line-height-sm);
1541
2125
  }
1542
2126
 
1543
2127
  .description-list-item > dd {
1544
2128
  margin: 0;
1545
- color: var(--color-grey-scale-900);
2129
+ color: var(--text-body);
1546
2130
  font-size: var(--font-size-sm);
1547
2131
  line-height: var(--line-height-sm);
1548
2132
  font-weight: var(--font-weight-medium);
@@ -1555,11 +2139,11 @@
1555
2139
  align-items: baseline;
1556
2140
  margin-top: var(--spacing-4);
1557
2141
  padding-top: var(--spacing-12);
1558
- border-top: var(--hairline) solid var(--color-grey-scale-200);
2142
+ border-top: var(--hairline) solid var(--border-subtle);
1559
2143
  }
1560
2144
 
1561
2145
  .description-list-item.total > dt {
1562
- color: var(--color-grey-scale-900);
2146
+ color: var(--text-body);
1563
2147
  font-weight: var(--font-weight-semibold);
1564
2148
  }
1565
2149
 
@@ -1577,16 +2161,16 @@
1577
2161
  left: 0;
1578
2162
  right: 0;
1579
2163
  bottom: 0;
1580
- background-color: rgba(0, 0, 0, 0.5);
2164
+ background-color: color-mix(in srgb, var(--surface-overlay) 50%, transparent);
1581
2165
  z-index: var(--z-overlay);
1582
2166
  }
1583
2167
 
1584
2168
  .base-drawer[data-state='open']:where(.overlay) {
1585
- animation: motion-enter-fade var(--motion-base) var(--motion-ease);
2169
+ animation: motion-enter-fade var(--motion-enter-duration) var(--motion-enter-ease);
1586
2170
  }
1587
2171
 
1588
2172
  .base-drawer[data-state='closed']:where(.overlay) {
1589
- animation: motion-exit-fade var(--motion-base) var(--motion-ease);
2173
+ animation: motion-exit-fade var(--motion-exit-duration) var(--motion-exit-ease) forwards;
1590
2174
  }
1591
2175
 
1592
2176
  .base-drawer:where(.content) {
@@ -1594,21 +2178,21 @@
1594
2178
  display: flex;
1595
2179
  flex-direction: column;
1596
2180
  z-index: var(--z-modal);
1597
- background-color: var(--color-white);
2181
+ background-color: var(--surface-base);
1598
2182
  }
1599
2183
 
1600
2184
  .base-drawer:where(.title) {
1601
2185
  margin: 0;
1602
2186
  font-size: var(--font-size-lg);
1603
2187
  font-weight: var(--font-weight-bold);
1604
- color: var(--color-black);
2188
+ color: var(--text-primary);
1605
2189
  }
1606
2190
 
1607
2191
  .base-drawer:where(.description) {
1608
2192
  margin: 0;
1609
2193
  font-size: var(--font-size-sm);
1610
2194
  font-weight: var(--font-weight-medium);
1611
- color: var(--color-grey-scale-600);
2195
+ color: var(--text-tertiary);
1612
2196
  }
1613
2197
 
1614
2198
  .base-drawer:where(.close) {
@@ -1674,17 +2258,35 @@
1674
2258
  bottom: 0;
1675
2259
  height: var(--drawer-height);
1676
2260
  max-height: 100%;
1677
- border-top-left-radius: var(--radius-16);
1678
- border-top-right-radius: var(--radius-16);
2261
+ border-top-left-radius: var(--radius-surface);
2262
+ border-top-right-radius: var(--radius-surface);
1679
2263
  --motion-slide-offset: translateY(100%);
1680
2264
  }
1681
2265
 
1682
2266
  .drawer[data-state='open'] {
1683
- animation: motion-enter-slide var(--motion-base) var(--motion-ease);
2267
+ animation: motion-enter-slide var(--motion-enter-duration) var(--motion-enter-ease);
2268
+ }
2269
+
2270
+ .drawer.motion-strong[data-state='open'] {
2271
+ animation-duration: var(--motion-enter-strong-duration);
2272
+ animation-timing-function: var(--motion-enter-strong-ease);
1684
2273
  }
1685
2274
 
1686
2275
  .drawer[data-state='closed'] {
1687
- animation: motion-exit-slide var(--motion-base) var(--motion-ease);
2276
+ animation: motion-exit-slide var(--motion-exit-duration) var(--motion-exit-ease) forwards;
2277
+ }
2278
+
2279
+ /* 등장 뒤에 덧붙이고 등장의 시간·곡선은 그대로 둔다. 바꾸면 data-effect 가 떨어질 때 등장이 다시 돈다 */
2280
+
2281
+ .drawer[data-state='open'][data-effect='wiggle'] {
2282
+ animation:
2283
+ motion-enter-slide var(--motion-enter-duration) var(--motion-enter-ease),
2284
+ motion-reject-wiggle var(--motion-reject-duration) var(--motion-reject-ease);
2285
+ }
2286
+
2287
+ .drawer.motion-strong[data-state='open'][data-effect='wiggle'] {
2288
+ animation-duration: var(--motion-enter-strong-duration), var(--motion-reject-duration);
2289
+ animation-timing-function: var(--motion-enter-strong-ease), var(--motion-reject-ease);
1688
2290
  }
1689
2291
 
1690
2292
  .drawer-header {
@@ -1715,7 +2317,7 @@
1715
2317
  /* placeholder 로 넘기는 span 의 색. base-drop-down 이 기본 placeholder 에 붙인다. */
1716
2318
 
1717
2319
  .nuri-placeholder {
1718
- color: var(--color-grey-scale-400);
2320
+ color: var(--text-placeholder);
1719
2321
  }
1720
2322
 
1721
2323
  .base-drop-down.trigger {
@@ -1777,39 +2379,40 @@
1777
2379
 
1778
2380
  .drop-down-single-trigger {
1779
2381
 
1780
- border: var(--hairline) solid var(--color-grey-scale-300);
1781
- border-radius: var(--radius-4);
2382
+ border: var(--hairline) solid var(--border-default);
2383
+ border-radius: var(--radius-control);
1782
2384
  width: -moz-fit-content;
1783
2385
  width: fit-content;
1784
- background-color: var(--color-white);
2386
+ background-color: var(--surface-base);
1785
2387
  }
1786
2388
 
1787
2389
  .drop-down-single-trigger:focus {
1788
- border-color: var(--color-purple-900);
2390
+ border-color: var(--border-accent);
1789
2391
  }
1790
2392
 
1791
2393
  .drop-down-single-trigger[data-placeholder] .drop-down-single-icon {
1792
- color: var(--color-grey-scale-400);
2394
+ color: var(--text-placeholder);
1793
2395
  }
1794
2396
 
1795
2397
  .drop-down-single-trigger[data-placeholder] svg {
1796
- color: var(--color-grey-scale-400);
2398
+ color: var(--text-placeholder);
1797
2399
  }
1798
2400
 
1799
2401
  .drop-down-single-trigger:not([data-placeholder]) .drop-down-single-icon {
1800
- color: var(--color-black);
2402
+ color: var(--text-primary);
1801
2403
  }
1802
2404
 
1803
2405
  .drop-down-single-trigger:not([data-placeholder]) svg {
1804
- color: var(--color-black);
2406
+ color: var(--text-primary);
1805
2407
  }
1806
2408
 
2409
+ .drop-down-single-trigger .rotate {
2410
+ transition: transform var(--motion-expand-duration) var(--motion-expand-ease);
2411
+ }
2412
+
1807
2413
  .drop-down-single-trigger[data-state='open'] .rotate {
1808
- transform: rotate(180deg);
1809
- transform-origin: 50% 50%;
1810
- transition: transform var(--motion-fast) var(--motion-ease);
1811
- will-change: transform;
1812
- }
2414
+ transform: rotate(var(--motion-expand-rotate));
2415
+ }
1813
2416
 
1814
2417
  .drop-down-single-label {
1815
2418
  gap: var(--spacing-10);
@@ -1824,11 +2427,11 @@
1824
2427
  }
1825
2428
 
1826
2429
  .drop-down-single-value ::-moz-placeholder {
1827
- color: var(--color-grey-scale-400);
2430
+ color: var(--text-placeholder);
1828
2431
  }
1829
2432
 
1830
2433
  .drop-down-single-value ::placeholder {
1831
- color: var(--color-grey-scale-400);
2434
+ color: var(--text-placeholder);
1832
2435
  }
1833
2436
 
1834
2437
  .drop-down-single-content {
@@ -1836,13 +2439,14 @@
1836
2439
  min-width: var(--radix-select-trigger-width);
1837
2440
  overflow: hidden;
1838
2441
  box-shadow: var(--shadow-popover);
1839
- border-radius: var(--radius-6);
2442
+ border-radius: var(--radius-control);
2443
+
2444
+ /* 펼침(unfold)은 공용 .motion-unfold 클래스가 그린다. Radix Select 는 닫히면 목록을 바로 지워 퇴장 애니메이션을 둘 수 없다 */
1840
2445
  }
1841
2446
 
1842
2447
  .drop-down-single-item {
1843
2448
  padding: var(--spacing-14);
1844
- background-color: var(--color-white);
1845
- outline: none;
2449
+ background-color: var(--surface-base);
1846
2450
  height: var(--drop-down-item-height);
1847
2451
 
1848
2452
  font-size: var(--font-size-sm);
@@ -1853,13 +2457,25 @@
1853
2457
  }
1854
2458
 
1855
2459
  .drop-down-single-item[data-highlighted] {
1856
- background-color: var(--color-purple-50);
2460
+ background-color: var(--surface-brand-subtle);
2461
+ }
2462
+
2463
+ /* 눌림은 딤만(press form dim). 행이 줄면 목록 가장자리에 틈이 보인다.
2464
+ 딤 색은 브랜드 보라라서 강조 배경(purple-50)이 같은 색조로 한 단계 진해진다 */
2465
+
2466
+ .drop-down-single-item.motion-press-dim::after {
2467
+ background: var(--surface-brand);
2468
+ }
2469
+
2470
+ /* 키보드 이동은 data-highlighted 배경이 보여 준다. 전역 포커스 링은 끈다 */
2471
+
2472
+ .drop-down-single-item:focus-visible {
1857
2473
  outline: none;
1858
2474
  }
1859
2475
 
1860
2476
  .drop-down-single-item:disabled {
1861
- background-color: var(--color-grey-scale-100);
1862
- color: var(--color-grey-scale-400);
2477
+ background-color: var(--surface-muted);
2478
+ color: var(--text-placeholder);
1863
2479
  cursor: not-allowed;
1864
2480
  }
1865
2481
 
@@ -2009,6 +2625,90 @@
2009
2625
  white-space: pre-wrap;
2010
2626
  }
2011
2627
 
2628
+ /* 의미 이름(--text-*). 다크에서 값이 바뀐다(ADR 0012). 아래 원시 이름은 라이트 값에 묶인다 */
2629
+
2630
+ .base-text.color-text-primary[class*='color-'] {
2631
+ color: var(--text-primary);
2632
+ }
2633
+
2634
+ .base-text.color-text-body[class*='color-'] {
2635
+ color: var(--text-body);
2636
+ }
2637
+
2638
+ .base-text.color-text-secondary[class*='color-'] {
2639
+ color: var(--text-secondary);
2640
+ }
2641
+
2642
+ .base-text.color-text-tertiary[class*='color-'] {
2643
+ color: var(--text-tertiary);
2644
+ }
2645
+
2646
+ .base-text.color-text-muted[class*='color-'] {
2647
+ color: var(--text-muted);
2648
+ }
2649
+
2650
+ .base-text.color-text-placeholder[class*='color-'] {
2651
+ color: var(--text-placeholder);
2652
+ }
2653
+
2654
+ .base-text.color-text-disabled[class*='color-'] {
2655
+ color: var(--text-disabled);
2656
+ }
2657
+
2658
+ .base-text.color-text-inverse[class*='color-'] {
2659
+ color: var(--text-inverse);
2660
+ }
2661
+
2662
+ .base-text.color-text-on-brand[class*='color-'] {
2663
+ color: var(--text-on-brand);
2664
+ }
2665
+
2666
+ .base-text.color-text-on-brand-subtle[class*='color-'] {
2667
+ color: var(--text-on-brand-subtle);
2668
+ }
2669
+
2670
+ .base-text.color-text-on-overlay[class*='color-'] {
2671
+ color: var(--text-on-overlay);
2672
+ }
2673
+
2674
+ .base-text.color-text-on-disabled[class*='color-'] {
2675
+ color: var(--text-on-disabled);
2676
+ }
2677
+
2678
+ .base-text.color-text-brand[class*='color-'] {
2679
+ color: var(--text-brand);
2680
+ }
2681
+
2682
+ .base-text.color-text-brand-active[class*='color-'] {
2683
+ color: var(--text-brand-active);
2684
+ }
2685
+
2686
+ .base-text.color-text-brand-emphasis[class*='color-'] {
2687
+ color: var(--text-brand-emphasis);
2688
+ }
2689
+
2690
+ .base-text.color-text-brand-secondary[class*='color-'] {
2691
+ color: var(--text-brand-secondary);
2692
+ }
2693
+
2694
+ .base-text.color-text-danger[class*='color-'] {
2695
+ color: var(--text-danger);
2696
+ }
2697
+
2698
+ .base-text.color-text-error[class*='color-'] {
2699
+ color: var(--text-error);
2700
+ }
2701
+
2702
+ .base-text.color-text-success[class*='color-'] {
2703
+ color: var(--text-success);
2704
+ }
2705
+
2706
+ .base-text.color-text-warning[class*='color-'] {
2707
+ color: var(--text-warning);
2708
+ }
2709
+
2710
+ /* 원시 이름(ADR 0004) */
2711
+
2012
2712
  .base-text.color-black[class*='color-'] {
2013
2713
  color: var(--color-black);
2014
2714
  }
@@ -2440,8 +3140,8 @@
2440
3140
  }
2441
3141
 
2442
3142
  .empty-state.variant-neutral .empty-state-icon {
2443
- background-color: var(--color-grey-scale-100);
2444
- color: var(--color-grey-scale-600);
3143
+ background-color: var(--surface-muted);
3144
+ color: var(--text-tertiary);
2445
3145
  }
2446
3146
 
2447
3147
  .empty-state-icon {
@@ -2451,23 +3151,23 @@
2451
3151
  width: var(--empty-state-icon-box);
2452
3152
  height: var(--empty-state-icon-box);
2453
3153
  margin-bottom: var(--spacing-8);
2454
- border-radius: var(--radius-full);
2455
- background-color: var(--color-purple-50);
2456
- color: var(--color-purple-900);
3154
+ border-radius: var(--radius-circle);
3155
+ background-color: var(--surface-brand-subtle);
3156
+ color: var(--text-brand);
2457
3157
  }
2458
3158
 
2459
3159
  .empty-state-title {
2460
3160
  font-size: var(--font-size-base);
2461
3161
  line-height: var(--line-height-base);
2462
3162
  font-weight: var(--font-weight-semibold);
2463
- color: var(--color-grey-scale-900);
3163
+ color: var(--text-body);
2464
3164
  word-break: break-word;
2465
3165
  }
2466
3166
 
2467
3167
  .empty-state-description {
2468
3168
  font-size: var(--font-size-sm);
2469
3169
  line-height: var(--line-height-sm);
2470
- color: var(--color-grey-scale-500);
3170
+ color: var(--text-muted);
2471
3171
  word-break: break-word;
2472
3172
  }
2473
3173
 
@@ -2538,22 +3238,16 @@
2538
3238
  * *
2539
3239
  ***************************************************************************************************/
2540
3240
 
3241
+ /* 눌림 scale 은 공용 .motion-press 가, 포커스 링은 전역 규칙이 그린다 */
3242
+
2541
3243
  .icon-button {
2542
- border-radius: var(--radius-full);
3244
+ border-radius: var(--radius-circle);
3245
+ /* .motion-press 의 transform 전환을 같은 선언에 다시 적는다. 이 규칙이 뒤에 와서 그것을 덮기 때문이다 */
2543
3246
  transition:
2544
3247
  transform var(--motion-press-duration) var(--motion-press-ease),
2545
3248
  background-color var(--motion-press-duration) var(--motion-press-ease);
2546
3249
  }
2547
3250
 
2548
- .icon-button:active:not([data-disabled]) {
2549
- transform: scale(var(--motion-press-scale));
2550
- }
2551
-
2552
- .icon-button:focus-visible {
2553
- outline: var(--hairline) solid var(--color-purple-600);
2554
- outline-offset: var(--spacing-2);
2555
- }
2556
-
2557
3251
  .icon-button.size-s {
2558
3252
  width: var(--icon-button-size-s);
2559
3253
  height: var(--icon-button-size-s);
@@ -2573,32 +3267,32 @@
2573
3267
 
2574
3268
  .icon-button.variant-ghost {
2575
3269
  background-color: transparent;
2576
- color: var(--color-grey-scale-700);
3270
+ color: var(--text-secondary);
2577
3271
  }
2578
3272
 
2579
3273
  .icon-button.variant-ghost:active:not([data-disabled]) {
2580
- background-color: var(--color-grey-scale-100);
3274
+ background-color: var(--surface-muted);
2581
3275
  }
2582
3276
 
2583
- /* CTAButton secondary 와 같은 연보라 */
3277
+ /* CTAButton primary·weak 와 같은 연보라 */
2584
3278
 
2585
3279
  .icon-button.variant-secondary {
2586
- background-color: var(--color-purple-50);
2587
- color: var(--color-purple-900);
3280
+ background-color: var(--surface-brand-subtle);
3281
+ color: var(--text-brand);
2588
3282
  }
2589
3283
 
2590
3284
  .icon-button.variant-primary {
2591
- background-color: var(--color-purple-900);
2592
- color: var(--color-white);
3285
+ background-color: var(--surface-brand);
3286
+ color: var(--text-on-brand);
2593
3287
  }
2594
3288
 
2595
3289
  .icon-button[data-disabled] {
2596
- color: var(--color-grey-scale-300);
3290
+ color: var(--text-disabled);
2597
3291
  }
2598
3292
 
2599
3293
  .icon-button[data-disabled]:is(.variant-secondary,.variant-primary) {
2600
- background-color: var(--color-grey-scale-200);
2601
- color: var(--color-white);
3294
+ background-color: var(--surface-disabled);
3295
+ color: var(--text-on-disabled);
2602
3296
  }
2603
3297
 
2604
3298
  .base-list:where(.group) {
@@ -2633,7 +3327,7 @@
2633
3327
 
2634
3328
  .list-group-label {
2635
3329
  padding: 0 var(--spacing-4);
2636
- color: var(--color-grey-scale-500);
3330
+ color: var(--text-muted);
2637
3331
  font-size: var(--font-size-sm);
2638
3332
  line-height: var(--line-height-sm);
2639
3333
  font-weight: var(--font-weight-semibold);
@@ -2643,9 +3337,9 @@
2643
3337
  display: flex;
2644
3338
  flex-direction: column;
2645
3339
  overflow: hidden;
2646
- border: var(--hairline) solid var(--color-grey-scale-200);
2647
- border-radius: var(--radius-16);
2648
- background-color: var(--color-white);
3340
+ border: var(--hairline) solid var(--border-subtle);
3341
+ border-radius: var(--radius-surface);
3342
+ background-color: var(--surface-base);
2649
3343
  }
2650
3344
 
2651
3345
  /***************************************************************************************************
@@ -2659,23 +3353,17 @@
2659
3353
  gap: var(--spacing-12);
2660
3354
  padding: var(--spacing-10) var(--spacing-16);
2661
3355
 
2662
- /* 누르는 행(링크·버튼)은 줄어들지 않고 배경이 어두워진다. 폭이 꽉 찬 면이라 scale 이 어색하다 */
3356
+ /* 누르는 행(링크·버튼)은 줄어들지 않고 공용 .motion-press-dim 으로 어두워진다. 폭이 꽉 찬 면이라 scale 이 어색하다 */
2663
3357
  }
2664
3358
 
2665
3359
  .list-row:is(a[href],button) {
2666
3360
  cursor: pointer;
2667
- transition: background-color var(--motion-press-duration) var(--motion-press-ease);
2668
- }
2669
-
2670
- .list-row:is(a[href],button):active {
2671
- background-color: var(--color-grey-scale-100);
2672
- }
2673
3361
 
2674
- /* 면이 overflow: hidden 이라 테두리 안쪽에 그린다 */
3362
+ /* 면이 overflow: hidden 이라 전역 포커스 링을 테두리 안쪽에 그린다 */
3363
+ }
2675
3364
 
2676
3365
  .list-row:is(a[href],button):focus-visible {
2677
- outline: var(--hairline) solid var(--color-purple-600);
2678
- outline-offset: calc(var(--spacing-2) * -1);
3366
+ outline-offset: calc(var(--focus-ring-width) * -1);
2679
3367
  }
2680
3368
 
2681
3369
  /* 행 사이 구분선. 왼쪽은 안쪽 여백만큼 띄운다 */
@@ -2687,13 +3375,13 @@
2687
3375
  right: 0;
2688
3376
  left: var(--spacing-16);
2689
3377
  height: var(--hairline);
2690
- background-color: var(--color-grey-scale-100);
3378
+ background-color: var(--surface-muted);
2691
3379
  }
2692
3380
 
2693
3381
  .list-row-leading {
2694
3382
  display: flex;
2695
3383
  flex: none;
2696
- color: var(--color-grey-scale-700);
3384
+ color: var(--text-secondary);
2697
3385
  }
2698
3386
 
2699
3387
  .list-row-text {
@@ -2705,14 +3393,14 @@
2705
3393
  }
2706
3394
 
2707
3395
  .list-row-label {
2708
- color: var(--color-grey-scale-900);
3396
+ color: var(--text-body);
2709
3397
  font-size: var(--font-size-base);
2710
3398
  line-height: var(--line-height-base);
2711
3399
  font-weight: var(--font-weight-medium);
2712
3400
  }
2713
3401
 
2714
3402
  .list-row-description {
2715
- color: var(--color-grey-scale-500);
3403
+ color: var(--text-muted);
2716
3404
  font-size: var(--font-size-sm);
2717
3405
  line-height: var(--line-height-sm);
2718
3406
  }
@@ -2721,14 +3409,14 @@
2721
3409
  display: flex;
2722
3410
  flex: none;
2723
3411
  align-items: center;
2724
- color: var(--color-grey-scale-500);
3412
+ color: var(--text-muted);
2725
3413
  font-size: var(--font-size-sm);
2726
3414
  line-height: var(--line-height-sm);
2727
3415
  }
2728
3416
 
2729
3417
  .list-row-chevron {
2730
3418
  flex: none;
2731
- color: var(--color-grey-scale-400);
3419
+ color: var(--text-placeholder);
2732
3420
  }
2733
3421
 
2734
3422
  .base-inline-loading {
@@ -2736,14 +3424,35 @@
2736
3424
  width: 100%;
2737
3425
  height: 100%;
2738
3426
  align-items: center;
3427
+ gap: var(--spacing-8);
2739
3428
  }
2740
3429
 
2741
- /* 링은 currentColor 다. 우선순위 0 이라 넘겨받은 className 이나 style 의 color 가 늘 이긴다. */
3430
+ .base-inline-loading.size-s {
3431
+ gap: var(--spacing-6);
3432
+ }
3433
+
3434
+ .base-inline-loading.size-l {
3435
+ flex-direction: column;
3436
+ justify-content: center;
3437
+ gap: var(--spacing-12);
3438
+ }
3439
+
3440
+ /* 글자는 스피너와 같은 색이다. variant 가 둘을 함께 바꾼다 */
2742
3441
 
2743
- :where(.base-inline-loading) {
2744
- color: var(--color-grey-scale-200);
3442
+ .inline-loading-label {
3443
+ font-size: var(--font-size-sm);
3444
+ line-height: var(--line-height-sm);
3445
+ font-weight: var(--font-weight-medium);
2745
3446
  }
2746
3447
 
3448
+ .base-inline-loading.size-s .inline-loading-label {
3449
+ font-size: var(--font-size-xsm);
3450
+ line-height: var(--line-height-xsm);
3451
+ }
3452
+
3453
+ /* open 이 false 면 바로 지우므로 퇴장은 없다. 나타날 때만 흐리게 들어온다.
3454
+ delay 가 켜지면 styles/loading.css 의 .loading-delay 가 이 등장을 늦춘다. 바탕은 처음부터 조작을 막는다 */
3455
+
2747
3456
  .base-overlay-loading {
2748
3457
  position: fixed;
2749
3458
  inset: 0;
@@ -2752,6 +3461,10 @@
2752
3461
  justify-content: center;
2753
3462
  }
2754
3463
 
3464
+ .base-overlay-loading:not(.loading-delay) {
3465
+ animation: motion-enter-fade var(--motion-enter-duration) var(--motion-enter-ease);
3466
+ }
3467
+
2755
3468
  .page-loading-backdrop {
2756
3469
  position: absolute;
2757
3470
  inset: 0;
@@ -2765,76 +3478,133 @@
2765
3478
  gap: var(--spacing-16);
2766
3479
  }
2767
3480
 
2768
- /* 스피너를 레이아웃 크기로 키운다. transform: scale 은 보이는 크기만 키워 아래 글자와 겹친다 */
3481
+ /* progress-bar-style.css 의 width: 100% 가 뒤에 오므로 한 단계 구체적으로 쓴다 */
2769
3482
 
2770
- .page-loading-indicator {
2771
- --spinner-stroke: var(--overlay-spinner-stroke);
3483
+ .base-overlay-loading .page-loading-progress {
3484
+ width: var(--overlay-progress-width);
2772
3485
  }
2773
3486
 
2774
- .page-loading-indicator .base-spinner,.page-loading-indicator .loading-indicator-ring {
2775
- width: var(--overlay-spinner-size);
2776
- height: var(--overlay-spinner-size);
2777
- }
2778
-
2779
3487
  .page-loading-text {
2780
3488
  position: relative;
2781
3489
  }
2782
3490
 
3491
+ /* 링 하나. 연한 바탕 원 위로 currentColor 호가 돈다. 색은 styles/loading.css 의 variant 가 정한다 */
3492
+
2783
3493
  .base-spinner {
2784
- display: flex;
2785
- width: var(--icon-size-m);
2786
- height: var(--icon-size-m);
2787
- align-items: center;
2788
- justify-content: center;
3494
+ --spinner-diameter: var(--loading-size-m);
3495
+ --spinner-stroke: var(--loading-stroke-m);
3496
+
3497
+ display: inline-flex;
3498
+ flex-shrink: 0;
3499
+ width: var(--spinner-diameter);
3500
+ height: var(--spinner-diameter);
2789
3501
  }
2790
3502
 
2791
- /* 우선순위 0 이라 넘겨받은 className 이나 style 의 color 가 늘 이긴다. */
3503
+ .base-spinner.size-s {
3504
+ --spinner-diameter: var(--loading-size-s);
3505
+ --spinner-stroke: var(--loading-stroke-s);
3506
+ }
2792
3507
 
2793
- :where(.base-spinner) {
2794
- color: var(--color-grey-scale-200);
2795
- }
3508
+ .base-spinner.size-l {
3509
+ --spinner-diameter: var(--loading-size-l);
3510
+ --spinner-stroke: var(--loading-stroke-l);
3511
+ }
2796
3512
 
2797
3513
  .loading-indicator-ring {
3514
+ box-sizing: border-box;
3515
+ display: block;
3516
+ width: 100%;
3517
+ height: 100%;
3518
+ border: var(--spinner-stroke) solid color-mix(in srgb, currentColor 20%, transparent);
3519
+ border-top-color: currentColor;
3520
+ border-radius: var(--radius-circle);
3521
+ animation: motion-busy-ring var(--motion-busy-ring) var(--motion-busy-ring-ease) infinite;
3522
+ }
3523
+
3524
+ /* 바탕은 연한 currentColor, 막대는 currentColor. 색은 styles/loading.css 의 variant 가 정한다 */
3525
+
3526
+ .base-progress-bar {
3527
+ --progress-bar-thickness: var(--progress-thickness-m);
3528
+
2798
3529
  position: relative;
2799
- width: var(--icon-size-m);
2800
- height: var(--icon-size-m);
3530
+ overflow: hidden;
3531
+ width: 100%;
3532
+ height: var(--progress-bar-thickness);
3533
+ border-radius: var(--radius-pill);
3534
+ background-color: color-mix(in srgb, currentColor 15%, transparent);
2801
3535
  }
2802
3536
 
2803
- .loading-indicator-single-ring {
2804
- box-sizing: border-box;
2805
- display: block;
2806
- position: absolute;
3537
+ .base-progress-bar.size-s {
3538
+ --progress-bar-thickness: var(--progress-thickness-s);
3539
+ }
3540
+
3541
+ .base-progress-bar.size-l {
3542
+ --progress-bar-thickness: var(--progress-thickness-l);
3543
+ }
3544
+
3545
+ .progress-bar-indicator {
2807
3546
  width: 100%;
2808
3547
  height: 100%;
2809
- border: var(--spinner-stroke) solid;
2810
- border-radius: 50%;
2811
- animation: motion-busy-ring var(--spinner-duration) var(--spinner-ease) infinite;
2812
- border-color: currentColor transparent transparent transparent;
3548
+ border-radius: inherit;
3549
+ background-color: currentColor;
3550
+ transform: translateX(calc((var(--progress-bar-ratio, 0) - 1) * 100%));
2813
3551
  }
2814
3552
 
2815
- .loading-indicator-single-ring:nth-child(1) {
2816
- animation-delay: calc(var(--spinner-duration) * -0.375);
3553
+ .base-progress-bar[data-animated] .progress-bar-indicator {
3554
+ transition: transform var(--motion-progress-duration) var(--motion-progress-ease);
2817
3555
  }
2818
3556
 
2819
- .loading-indicator-single-ring:nth-child(2) {
2820
- animation-delay: calc(var(--spinner-duration) * -0.25);
3557
+ /* 끝을 모르는 진행. 쉬는 자리가 가운데라 동작 줄이기로 시간이 0 이면 거기 멈춘다 */
3558
+
3559
+ .base-progress-bar[data-state='indeterminate'] .progress-bar-indicator {
3560
+ width: 40%;
3561
+ transform: translateX(75%);
3562
+ transition: none;
3563
+ animation: motion-busy-bar var(--motion-busy-bar) var(--motion-busy-bar-ease) infinite;
2821
3564
  }
2822
3565
 
2823
- .loading-indicator-single-ring:nth-child(3) {
2824
- animation-delay: calc(var(--spinner-duration) * -0.125);
3566
+ /* 점 셋이 차례로 밝아진다. 음수 지연으로 처음부터 물결 중간에서 시작한다 */
3567
+
3568
+ .base-loading-dots {
3569
+ --loading-dot-diameter: var(--loading-dot-m);
3570
+
3571
+ display: inline-flex;
3572
+ align-items: center;
3573
+ gap: calc(var(--loading-dot-diameter) * 0.75);
3574
+ vertical-align: middle;
2825
3575
  }
2826
3576
 
2827
- .loading-indicator-single-ring:nth-child(4) {
2828
- animation-delay: 0s;
3577
+ .base-loading-dots.size-s {
3578
+ --loading-dot-diameter: var(--loading-dot-s);
3579
+ }
3580
+
3581
+ .base-loading-dots.size-l {
3582
+ --loading-dot-diameter: var(--loading-dot-l);
3583
+ }
3584
+
3585
+ .loading-dot {
3586
+ width: var(--loading-dot-diameter);
3587
+ height: var(--loading-dot-diameter);
3588
+ border-radius: var(--radius-circle);
3589
+ background-color: currentColor;
3590
+ animation: motion-busy-dots var(--motion-busy-dots) linear infinite;
2829
3591
  }
2830
3592
 
3593
+ .loading-dot:nth-child(1) {
3594
+ animation-delay: calc(var(--motion-busy-dots) * -2 / 3);
3595
+ }
3596
+
3597
+ .loading-dot:nth-child(2) {
3598
+ animation-delay: calc(var(--motion-busy-dots) * -1 / 3);
3599
+ }
3600
+
2831
3601
  /* Title·Close 같은 조각도 base-media 를 달므로 상자 스타일은 overlay·content 에만 건다. */
2832
3602
 
2833
3603
  .base-media:where(.overlay) {
2834
3604
  position: fixed;
2835
3605
  inset: 0;
2836
3606
  z-index: var(--z-overlay);
2837
- background-color: color-mix(in srgb, var(--color-black) 90%, transparent);
3607
+ background-color: color-mix(in srgb, var(--surface-overlay) 90%, transparent);
2838
3608
  }
2839
3609
 
2840
3610
  .base-media[data-state='open']:where(.overlay) {
@@ -2896,7 +3666,7 @@
2896
3666
  right: calc(env(safe-area-inset-right) + var(--spacing-8));
2897
3667
  width: var(--touch-target);
2898
3668
  height: var(--touch-target);
2899
- color: var(--color-white);
3669
+ color: var(--text-on-overlay);
2900
3670
  }
2901
3671
 
2902
3672
  /***************************************************************************************************
@@ -2937,22 +3707,14 @@
2937
3707
  padding: 0;
2938
3708
  overflow: hidden;
2939
3709
  box-sizing: border-box;
2940
- border-radius: var(--radius-6);
2941
- background-color: var(--color-grey-scale-200);
3710
+ border-radius: var(--radius-control);
3711
+ background-color: var(--surface-strong);
3712
+ /* .motion-press 의 transform 전환을 다시 적는다. base-button 초기화보다 뒤에 와서 덮기 때문이다 */
2942
3713
  transition: transform var(--motion-press-duration) var(--motion-press-ease);
2943
3714
  }
2944
3715
 
2945
- :is(.media-thumbnail .media-thumbnail-open):active:not([data-disabled]) {
2946
- transform: scale(var(--motion-press-scale));
2947
- }
2948
-
2949
3716
  [data-invalid]:is(.media-thumbnail .media-thumbnail-open) {
2950
- border: var(--media-invalid-border) solid var(--color-accent-red-500);
2951
- }
2952
-
2953
- :is(.media-thumbnail .media-thumbnail-open):focus-visible {
2954
- outline: var(--hairline) solid var(--color-purple-600);
2955
- outline-offset: var(--spacing-2);
3717
+ border: var(--media-invalid-border) solid var(--border-error);
2956
3718
  }
2957
3719
 
2958
3720
  .media-thumbnail .media-thumbnail-remove {
@@ -2962,9 +3724,9 @@
2962
3724
  width: var(--media-remove-size);
2963
3725
  height: var(--media-remove-size);
2964
3726
  padding: 0;
2965
- border-radius: var(--radius-full);
2966
- background-color: color-mix(in srgb, var(--color-grey-scale-900) 80%, transparent);
2967
- color: var(--color-white);
3727
+ border-radius: var(--radius-circle);
3728
+ background-color: color-mix(in srgb, var(--surface-inverse) 80%, transparent);
3729
+ color: var(--text-on-overlay);
2968
3730
 
2969
3731
  /* 20 원을 터치 44 로 넓힌다 */
2970
3732
  }
@@ -2979,11 +3741,6 @@
2979
3741
  transform: translate(-50%, -50%);
2980
3742
  }
2981
3743
 
2982
- :is(.media-thumbnail .media-thumbnail-remove):focus-visible {
2983
- outline: var(--hairline) solid var(--color-purple-600);
2984
- outline-offset: var(--spacing-2);
2985
- }
2986
-
2987
3744
  .media-thumbnail-media {
2988
3745
  display: block;
2989
3746
  width: 100%;
@@ -3001,9 +3758,9 @@
3001
3758
  justify-content: center;
3002
3759
  width: var(--media-overlay-button-size);
3003
3760
  height: var(--media-overlay-button-size);
3004
- border-radius: var(--radius-full);
3005
- background-color: color-mix(in srgb, var(--color-black) 50%, transparent);
3006
- color: var(--color-white);
3761
+ border-radius: var(--radius-circle);
3762
+ background-color: color-mix(in srgb, var(--surface-overlay) 50%, transparent);
3763
+ color: var(--text-on-overlay);
3007
3764
  transform: translate(-50%, -50%);
3008
3765
  pointer-events: none;
3009
3766
  }
@@ -3014,13 +3771,13 @@
3014
3771
  display: flex;
3015
3772
  align-items: center;
3016
3773
  justify-content: center;
3017
- background-color: color-mix(in srgb, var(--color-white) 60%, transparent);
3774
+ background-color: color-mix(in srgb, var(--surface-highlight) 60%, transparent);
3018
3775
  }
3019
3776
 
3020
3777
  /* 흰 막 위라 기본 링 색(grey-200)은 안 보인다 */
3021
3778
 
3022
3779
  .media-thumbnail-spinner {
3023
- color: var(--color-grey-scale-600);
3780
+ color: var(--text-tertiary);
3024
3781
  }
3025
3782
 
3026
3783
  .base-message-composer:where(.root) {
@@ -3083,29 +3840,29 @@
3083
3840
  max-height: var(--composer-max-height);
3084
3841
  field-sizing: content;
3085
3842
  padding: var(--spacing-10) var(--spacing-16);
3086
- border: var(--hairline) solid var(--color-grey-scale-300);
3087
- border-radius: var(--radius-20);
3843
+ border: var(--hairline) solid var(--border-default);
3844
+ border-radius: var(--radius-surface);
3088
3845
  outline: none;
3089
- background-color: var(--color-white);
3090
- color: var(--color-grey-scale-900);
3846
+ background-color: var(--surface-base);
3847
+ color: var(--text-body);
3091
3848
  font-size: var(--font-size-base);
3092
3849
  line-height: var(--line-height-base);
3093
3850
  }
3094
3851
 
3095
3852
  .message-composer-textarea::-moz-placeholder {
3096
- color: var(--color-grey-scale-400);
3853
+ color: var(--text-placeholder);
3097
3854
  }
3098
3855
 
3099
3856
  .message-composer-textarea::placeholder {
3100
- color: var(--color-grey-scale-400);
3857
+ color: var(--text-placeholder);
3101
3858
  }
3102
3859
 
3103
3860
  .message-composer-textarea:focus {
3104
- border-color: var(--color-purple-900);
3861
+ border-color: var(--border-accent);
3105
3862
  }
3106
3863
 
3107
3864
  .message-composer-textarea[data-disabled] {
3108
- background-color: var(--color-grey-scale-100);
3865
+ background-color: var(--surface-muted);
3109
3866
  }
3110
3867
 
3111
3868
  /* 누르는 곳은 --touch-target, 보이는 원은 --composer-send-size */
@@ -3113,15 +3870,12 @@
3113
3870
  .message-composer-send {
3114
3871
  width: var(--touch-target);
3115
3872
  height: var(--touch-target);
3116
- transition: transform var(--motion-press-duration) var(--motion-press-ease);
3873
+ /* 눌림은 공용 .motion-press(보내는 중에는 빠진다). 막힌 누름은 아래 흔들림이다 */
3874
+ -webkit-tap-highlight-color: transparent;
3117
3875
  }
3118
3876
 
3119
- .message-composer-send:not([aria-disabled='true'],[aria-busy='true']):active {
3120
- transform: scale(var(--motion-press-scale));
3121
- }
3122
-
3123
3877
  .message-composer-send[aria-disabled='true'] .message-composer-send-circle {
3124
- background-color: var(--color-grey-scale-200);
3878
+ background-color: var(--surface-disabled);
3125
3879
  }
3126
3880
 
3127
3881
  .message-composer-send[data-rejecting] .message-composer-send-circle {
@@ -3133,13 +3887,13 @@
3133
3887
  place-items: center;
3134
3888
  width: var(--composer-send-size);
3135
3889
  height: var(--composer-send-size);
3136
- border-radius: var(--radius-full);
3137
- background-color: var(--color-purple-900);
3138
- color: var(--color-white);
3890
+ border-radius: var(--radius-circle);
3891
+ background-color: var(--surface-brand);
3892
+ color: var(--text-on-brand);
3139
3893
  }
3140
3894
 
3141
3895
  .message-composer-spinner {
3142
- color: var(--color-white);
3896
+ color: var(--text-on-brand);
3143
3897
  }
3144
3898
 
3145
3899
  .base-message:where(.root) {
@@ -3185,9 +3939,9 @@
3185
3939
  }
3186
3940
 
3187
3941
  .message.side-end .message-bubble {
3188
- border-radius: var(--radius-16) var(--radius-16) var(--radius-4) var(--radius-16);
3189
- background-color: var(--color-purple-900);
3190
- color: var(--color-white);
3942
+ border-radius: var(--radius-surface) var(--radius-surface) var(--radius-mark) var(--radius-surface);
3943
+ background-color: var(--surface-brand);
3944
+ color: var(--text-on-brand);
3191
3945
  }
3192
3946
 
3193
3947
  /* 방금 보내거나 받은 메시지만 움직인다. 처음 그린 대화는 motion 이 없어 가만히 있다 */
@@ -3212,7 +3966,7 @@
3212
3966
  font-size: var(--font-size-xsm);
3213
3967
  line-height: var(--line-height-xsm);
3214
3968
  font-weight: var(--font-weight-semibold);
3215
- color: var(--color-grey-scale-700);
3969
+ color: var(--text-secondary);
3216
3970
  }
3217
3971
 
3218
3972
  .message-row {
@@ -3227,9 +3981,9 @@
3227
3981
  .message-bubble {
3228
3982
  gap: var(--spacing-6);
3229
3983
  padding: var(--spacing-10) var(--spacing-14);
3230
- border-radius: var(--radius-16) var(--radius-16) var(--radius-16) var(--radius-4);
3231
- background-color: var(--color-grey-scale-100);
3232
- color: var(--color-grey-scale-900);
3984
+ border-radius: var(--radius-surface) var(--radius-surface) var(--radius-surface) var(--radius-mark);
3985
+ background-color: var(--surface-muted);
3986
+ color: var(--text-body);
3233
3987
  font-size: var(--font-size-base);
3234
3988
  line-height: var(--line-height-base);
3235
3989
  white-space: pre-wrap;
@@ -3244,15 +3998,15 @@
3244
3998
  flex: none;
3245
3999
  font-size: var(--font-size-xsm);
3246
4000
  line-height: var(--line-height-xsm);
3247
- color: var(--color-grey-scale-500);
4001
+ color: var(--text-muted);
3248
4002
  }
3249
4003
 
3250
4004
  .message-event {
3251
4005
  align-self: center;
3252
4006
  padding: var(--spacing-2) var(--spacing-10);
3253
- border-radius: var(--radius-full);
3254
- background-color: var(--color-grey-scale-100);
3255
- color: var(--color-grey-scale-600);
4007
+ border-radius: var(--radius-pill);
4008
+ background-color: var(--surface-muted);
4009
+ color: var(--text-tertiary);
3256
4010
  font-size: var(--font-size-xsm);
3257
4011
  line-height: var(--line-height-xsm);
3258
4012
  font-weight: var(--font-weight-medium);
@@ -3266,39 +4020,99 @@
3266
4020
  align-items: center;
3267
4021
 
3268
4022
  padding: var(--spacing-30);
3269
- border-radius: var(--radius-6);
4023
+ border-radius: var(--radius-surface);
3270
4024
  }
3271
4025
 
4026
+ /*
4027
+ * 본문이 길면 본문만 스크롤된다. 상자는 화면 안에 갇히고(max-height) 넘치지 않는다.
4028
+ * 닫기 아이콘·제목이 있는 위쪽과 버튼이 있는 아래쪽은 줄지 않고 제자리에 있다.
4029
+ * 스크롤 칸은 안쪽 여백만큼 넓혀 포커스 링이 잘리지 않게 한다.
4030
+ */
4031
+
3272
4032
  .base-modal.modal-container {
4033
+ max-width: calc(100% - var(--spacing-30) * 2);
4034
+ max-height: calc(100% - var(--spacing-30) * 2);
4035
+ overflow: hidden;
3273
4036
  position: fixed;
3274
4037
  top: 50%;
3275
4038
  left: 50%;
3276
- transform: translate(-50%, -50%);
4039
+ /* transform 은 등장·퇴장·흔들림 키프레임이 쓴다. 가운데 맞춤은 따로 둔다 */
4040
+ translate: -50% -50%;
3277
4041
  z-index: var(--z-modal);
3278
- background-color: var(--color-white);
4042
+ background-color: var(--surface-base);
4043
+ }
4044
+
4045
+ .base-modal.modal-container > * {
4046
+ flex-shrink: 0;
4047
+ }
4048
+
4049
+ .base-modal.modal-container > :is(.modal-body,.modal-with-double-button-content) {
4050
+ --modal-scroll-inset: calc(var(--focus-ring-width) + var(--focus-ring-offset));
4051
+
4052
+ flex: 0 1 auto;
4053
+ min-height: 0;
4054
+ overflow-y: auto;
4055
+ overscroll-behavior: contain;
4056
+ padding: var(--modal-scroll-inset);
4057
+ margin: calc(var(--modal-scroll-inset) * -1);
4058
+ }
4059
+
4060
+ .base-modal.modal-container > .modal-with-double-button-content {
4061
+ margin-top: calc(var(--spacing-20) - var(--modal-scroll-inset));
3279
4062
  }
3280
4063
 
4064
+ /* force-mount 는 부르는 쪽이 마운트를 정한다. 마운트할 때 등장만 하고 퇴장은 없다 */
4065
+
4066
+ .base-modal.modal-container:is([data-state='open'],.force-mount) {
4067
+ animation: motion-enter-scale var(--motion-enter-duration) var(--motion-enter-ease);
4068
+ }
4069
+
4070
+ .base-modal.modal-container[data-state='closed']:not(.force-mount) {
4071
+ animation: motion-exit-scale var(--motion-exit-duration) var(--motion-exit-ease) forwards;
4072
+ }
4073
+
4074
+ /* 등장 뒤에 덧붙인다. 등장을 빼면 data-effect 가 떨어질 때 등장이 다시 돈다 */
4075
+
4076
+ .base-modal.modal-container[data-state='open'][data-effect='wiggle'] {
4077
+ animation:
4078
+ motion-enter-scale var(--motion-enter-duration) var(--motion-enter-ease),
4079
+ motion-reject-wiggle var(--motion-reject-duration) var(--motion-reject-ease);
4080
+ }
4081
+
3281
4082
  .base-modal.modal-overlay {
3282
4083
  position: fixed;
3283
4084
  top: 0;
3284
4085
  left: 0;
3285
4086
  right: 0;
3286
4087
  bottom: 0;
3287
- background-color: rgba(0, 0, 0, 0.5);
4088
+ background-color: color-mix(in srgb, var(--surface-overlay) 50%, transparent);
3288
4089
  z-index: var(--z-overlay);
3289
4090
  }
3290
4091
 
4092
+ .base-modal.modal-overlay:is([data-state='open'],.force-mount) {
4093
+ animation: motion-enter-fade var(--motion-enter-duration) var(--motion-enter-ease);
4094
+ }
4095
+
4096
+ .base-modal.modal-overlay[data-state='closed']:not(.force-mount) {
4097
+ animation: motion-exit-fade var(--motion-exit-duration) var(--motion-exit-ease) forwards;
4098
+ }
4099
+
3291
4100
  /***************************************************************************************************
3292
4101
  * *
3293
4102
  * modal-with-double-button *
3294
4103
  * *
3295
4104
  ***************************************************************************************************/
3296
4105
 
4106
+ /* 오른쪽 위에 아이콘 크기로 둔다. 폭을 100% 로 주면 svg 가 늘어나 그림이 가운데에 그려진다 */
4107
+
3297
4108
  .modal-with-double-button-close-button {
3298
4109
  display: flex;
3299
- justify-content: flex-start;
3300
4110
  align-items: center;
3301
- width: 100%;
4111
+ justify-content: center;
4112
+ align-self: flex-end;
4113
+ flex-shrink: 0;
4114
+ width: var(--icon-size-m);
4115
+ height: var(--icon-size-m);
3302
4116
  }
3303
4117
 
3304
4118
  /* open 을 넘기면 X 가 진짜 닫기 버튼이 된다. 버튼 기본 모양을 지워 예전 아이콘과 같게 보이게 한다 */
@@ -3306,7 +4120,7 @@
3306
4120
  button.modal-with-double-button-close-button {
3307
4121
  padding: 0;
3308
4122
  background-color: transparent;
3309
- color: var(--color-grey-scale-600);
4123
+ color: var(--text-tertiary);
3310
4124
  }
3311
4125
 
3312
4126
  .modal-with-double-button-container {
@@ -3336,7 +4150,7 @@ button.modal-with-double-button-close-button {
3336
4150
  font-size: var(--font-size-lg);
3337
4151
  font-weight: var(--font-weight-bold);
3338
4152
  text-align: center;
3339
- color: var(--color-black);
4153
+ color: var(--text-primary);
3340
4154
  }
3341
4155
 
3342
4156
  .modal-with-double-button-sub-title {
@@ -3344,10 +4158,11 @@ button.modal-with-double-button-close-button {
3344
4158
  font-size: var(--font-size-sm);
3345
4159
  font-weight: var(--font-weight-medium);
3346
4160
  text-align: center;
3347
- color: var(--color-grey-scale-600);
4161
+ color: var(--text-tertiary);
3348
4162
  }
3349
4163
 
3350
4164
  .modal-with-double-button-content {
4165
+ align-self: stretch;
3351
4166
  margin-top: var(--spacing-20);
3352
4167
  }
3353
4168
 
@@ -3392,9 +4207,6 @@ button.modal-with-double-button-close-button {
3392
4207
  .modal {
3393
4208
  align-items: stretch;
3394
4209
  gap: var(--spacing-20);
3395
- max-width: calc(100% - var(--spacing-30) * 2);
3396
- max-height: calc(100% - var(--spacing-30) * 2);
3397
- overflow: auto;
3398
4210
  }
3399
4211
 
3400
4212
  .modal.size-s {
@@ -3421,7 +4233,7 @@ button.modal-with-double-button-close-button {
3421
4233
  margin: 0;
3422
4234
  font-size: var(--font-size-lg);
3423
4235
  font-weight: var(--font-weight-bold);
3424
- color: var(--color-black);
4236
+ color: var(--text-primary);
3425
4237
  }
3426
4238
 
3427
4239
  .modal-close-icon {
@@ -3430,19 +4242,19 @@ button.modal-with-double-button-close-button {
3430
4242
  height: var(--icon-size-m);
3431
4243
  padding: 0;
3432
4244
  background-color: transparent;
3433
- color: var(--color-grey-scale-600);
4245
+ color: var(--text-tertiary);
3434
4246
  }
3435
4247
 
3436
4248
  .modal-description {
3437
4249
  margin: 0;
3438
4250
  font-size: var(--font-size-sm);
3439
4251
  font-weight: var(--font-weight-medium);
3440
- color: var(--color-grey-scale-600);
4252
+ color: var(--text-tertiary);
3441
4253
  }
3442
4254
 
3443
4255
  .modal-body {
3444
4256
  font-size: var(--font-size-sm);
3445
- color: var(--color-black);
4257
+ color: var(--text-primary);
3446
4258
  }
3447
4259
 
3448
4260
  .modal-footer {
@@ -3470,26 +4282,26 @@ button.modal-with-double-button-close-button {
3470
4282
 
3471
4283
  .notice {
3472
4284
  padding: var(--spacing-12) var(--spacing-14);
3473
- border-radius: var(--radius-6);
3474
- background-color: var(--color-grey-scale-100);
3475
- color: var(--color-grey-scale-700);
4285
+ border-radius: var(--radius-control);
4286
+ background-color: var(--surface-muted);
4287
+ color: var(--text-secondary);
3476
4288
  font-size: var(--font-size-sm);
3477
4289
  line-height: var(--line-height-sm);
3478
4290
  }
3479
4291
 
3480
4292
  .notice.variant-success {
3481
- background-color: var(--color-accent-green-50);
3482
- color: var(--color-accent-green-800);
4293
+ background-color: var(--surface-success-subtle);
4294
+ color: var(--text-success);
3483
4295
  }
3484
4296
 
3485
4297
  .notice.variant-warning {
3486
- background-color: var(--color-accent-orange-50);
3487
- color: var(--color-accent-orange-800);
4298
+ background-color: var(--surface-warning-subtle);
4299
+ color: var(--text-warning);
3488
4300
  }
3489
4301
 
3490
4302
  .notice.variant-danger {
3491
- background-color: var(--color-accent-red-50);
3492
- color: var(--color-accent-red-700);
4303
+ background-color: var(--surface-danger-subtle);
4304
+ color: var(--text-danger);
3493
4305
  }
3494
4306
 
3495
4307
  /* 조건부로 나타나는 안내만 motion 을 준다. 사라질 때는 움직이지 않는다 */
@@ -3527,7 +4339,7 @@ button.modal-with-double-button-close-button {
3527
4339
  font-weight: var(--font-weight-semibold);
3528
4340
  }
3529
4341
 
3530
- /* action 은 CTAButton(xs·neutral) 이라 모양은 버튼 CSS 가 정한다. 폭은 글자만큼 */
4342
+ /* action 은 CTAButton(xs·primary·outline). 바탕이 회색이라 흰 바탕에 선이 있는 조합이 눌리는 자리로 보인다 이라 모양은 버튼 CSS 가 정한다. 폭은 글자만큼 */
3531
4343
 
3532
4344
  .notice-action {
3533
4345
  align-self: flex-start;
@@ -3586,36 +4398,38 @@ button.modal-with-double-button-close-button {
3586
4398
  min-width: var(--pagination-item-size);
3587
4399
  height: var(--pagination-item-size);
3588
4400
  padding: 0 var(--spacing-4);
3589
- border-radius: var(--radius-6);
3590
- color: var(--color-grey-scale-600);
4401
+ border-radius: var(--radius-control);
4402
+ color: var(--text-tertiary);
3591
4403
  font-size: inherit;
3592
4404
  line-height: inherit;
3593
4405
  font-weight: var(--font-weight-medium);
4406
+ /* .motion-press 의 transform 전환을 같은 선언에 다시 적는다. 이 규칙이 뒤에 와서 그것을 덮기 때문이다 */
3594
4407
  transition:
3595
- background-color var(--motion-fast) var(--motion-ease),
3596
- color var(--motion-fast) var(--motion-ease);
4408
+ background-color var(--motion-press-duration) var(--motion-press-ease),
4409
+ color var(--motion-press-duration) var(--motion-press-ease),
4410
+ transform var(--motion-press-duration) var(--motion-press-ease);
3597
4411
  }
3598
4412
 
3599
4413
  .pagination-item:not(:disabled):hover {
3600
- background-color: var(--color-grey-scale-100);
3601
- color: var(--color-purple-900);
4414
+ background-color: var(--surface-muted);
4415
+ color: var(--text-brand);
3602
4416
  }
3603
4417
 
3604
4418
  .pagination-item[data-state='active'] {
3605
- background-color: var(--color-purple-50);
3606
- color: var(--color-purple-900);
4419
+ background-color: var(--surface-brand-subtle);
4420
+ color: var(--text-brand);
3607
4421
  font-weight: var(--font-weight-bold);
3608
4422
  }
3609
4423
 
3610
4424
  .pagination-item:disabled {
3611
4425
  background-color: transparent;
3612
- color: var(--color-grey-scale-300);
4426
+ color: var(--text-disabled);
3613
4427
  }
3614
4428
 
3615
4429
  .pagination-ellipsis {
3616
4430
  min-width: var(--pagination-item-size);
3617
4431
  height: var(--pagination-item-size);
3618
- color: var(--color-grey-scale-400);
4432
+ color: var(--text-placeholder);
3619
4433
  }
3620
4434
 
3621
4435
  .pagination-icon {
@@ -3661,49 +4475,81 @@ button.modal-with-double-button-close-button {
3661
4475
  gap: var(--spacing-16);
3662
4476
  }
3663
4477
 
4478
+ /* 라벨이 두 줄이 되면 동그라미는 첫 줄에 맞춘다. 동그라미 지름과 라벨 줄 높이가 같은 18px 이다 */
4479
+
3664
4480
  .radio:where(.radio-option) {
3665
4481
  display: flex;
3666
- align-items: center;
3667
- gap: var(--spacing-6);
4482
+ align-items: flex-start;
4483
+ gap: var(--spacing-10);
3668
4484
  }
3669
4485
 
4486
+ /* Checkbox(filled) 와 같은 말: 꺼짐은 흰 바탕에 보라 테두리, 켜짐은 보라 채움에 흰 표시.
4487
+ 채움은 색만 바뀌는 확정이라 confirm fade, 흰 점은 움직임이라 confirm 스프링이다 */
4488
+
3670
4489
  .radio:where(.radio-button) {
4490
+ box-sizing: border-box;
3671
4491
  display: flex;
3672
4492
  align-items: center;
3673
4493
  justify-content: center;
3674
4494
  width: var(--radio-size);
3675
4495
  height: var(--radio-size);
3676
- border-radius: 50%;
3677
- background-color: var(--color-grey-scale-200);
4496
+ flex-shrink: 0;
4497
+ border-radius: var(--radius-circle);
4498
+ border: var(--border-width-strong) solid var(--border-accent);
4499
+ background-color: var(--surface-base);
4500
+ }
4501
+
4502
+ .radio.radio-button {
4503
+ /* .motion-press 의 transform 전환을 같은 선언에 다시 적는다. 이 규칙이 뒤에 와서 그것을 덮기 때문이다 */
4504
+ transition:
4505
+ background-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
4506
+ var(--confirm-delay, 0ms),
4507
+ transform var(--motion-press-duration) var(--motion-press-ease);
3678
4508
  }
3679
4509
 
4510
+ .radio.radio-button[data-state='checked'] {
4511
+ background-color: var(--surface-brand);
4512
+ }
4513
+
3680
4514
  .radio:where(.radio-indicator) {
4515
+ display: block;
3681
4516
  width: var(--radio-dot-size);
3682
4517
  height: var(--radio-dot-size);
3683
- border-radius: 50%;
3684
- background-color: var(--color-purple-900);
4518
+ border-radius: var(--radius-circle);
4519
+ background-color: var(--surface-base);
3685
4520
  }
3686
4521
 
4522
+ /* 고름은 data-state 가 정하고 --confirm-lag(use-confirm-spring) 은 스프링이 아직 남긴 거리다 */
4523
+
4524
+ .radio.radio-indicator {
4525
+ --confirm-on: 0;
4526
+ transform: scale(max(0, var(--confirm-on) - var(--confirm-lag, 0)));
4527
+ }
4528
+
4529
+ .radio.radio-indicator[data-state='checked'] {
4530
+ --confirm-on: 1;
4531
+ }
4532
+
3687
4533
  .radio:where(.radio-label) {
3688
4534
  font-size: var(--font-size-sm);
4535
+ line-height: var(--line-height-sm);
3689
4536
  font-weight: var(--font-weight-medium);
3690
- color: var(--color-black);
4537
+ color: var(--text-primary);
3691
4538
  }
3692
4539
 
3693
4540
  /* disabled: 글자·점은 회색, 커서는 비활성. 버튼은 BaseButton 이, 라벨은 RadioLabel 이 data-disabled 를 단다 */
3694
4541
 
3695
4542
  .radio.radio-label[data-disabled] {
3696
- color: var(--color-grey-scale-400);
4543
+ color: var(--text-placeholder);
3697
4544
  cursor: var(--cursor-disabled);
3698
4545
  }
3699
4546
 
4547
+ /* disabled 는 Checkbox 와 같이 회색 채움에 테두리 없음. 골라진 것은 흰 점이 남는다 */
4548
+
3700
4549
  .radio.radio-button[data-disabled] {
3701
4550
  cursor: var(--cursor-disabled);
3702
- background-color: var(--color-grey-scale-100);
3703
- }
3704
-
3705
- .radio.radio-button[data-disabled] .radio-indicator {
3706
- background-color: var(--color-grey-scale-400);
4551
+ border-color: var(--border-disabled);
4552
+ background-color: var(--surface-control);
3707
4553
  }
3708
4554
 
3709
4555
  /* chip: 줄을 바꿔 가로로 늘어놓는다 */
@@ -3714,46 +4560,43 @@ button.modal-with-double-button-close-button {
3714
4560
  gap: var(--spacing-8);
3715
4561
  }
3716
4562
 
3717
- /* 모양은 ChipGroup 칩과 같다. .base-button 의 border·radius·focus 초기화를 이기려고 .radio.radio-chip 으로 건다 */
4563
+ /* 모양은 ChipGroup 칩과 같다. .base-button 의 border·radius 초기화를 이기려고 .radio.radio-chip 으로 건다.
4564
+ 색만 바뀌는 확정이라 confirm fade, 눌림은 공용 .motion-press(::after 는 터치 영역이라 딤은 쓰지 않는다),
4565
+ 포커스 링은 전역 규칙이 그린다 */
3718
4566
 
3719
4567
  .radio.radio-chip {
3720
4568
  height: var(--control-height-s);
3721
4569
  padding: 0 var(--spacing-14);
3722
- border: var(--hairline) solid var(--color-grey-scale-300);
3723
- border-radius: var(--radius-full);
3724
- background-color: var(--color-grey-scale-50);
3725
- color: var(--color-grey-scale-600);
4570
+ border: var(--hairline) solid var(--border-default);
4571
+ border-radius: var(--radius-pill);
4572
+ background-color: var(--surface-subtle);
4573
+ color: var(--text-tertiary);
3726
4574
  font-size: var(--font-size-sm);
3727
4575
  font-weight: var(--font-weight-medium);
4576
+ /* .motion-press 의 transform 전환을 같은 선언에 다시 적는다 */
3728
4577
  transition:
3729
4578
  transform var(--motion-press-duration) var(--motion-press-ease),
3730
- background-color var(--motion-confirm-weak-duration) var(--motion-confirm-weak-ease),
3731
- color var(--motion-confirm-weak-duration) var(--motion-confirm-weak-ease),
3732
- border-color var(--motion-confirm-weak-duration) var(--motion-confirm-weak-ease);
3733
- }
3734
-
3735
- .radio.radio-chip:active:not([data-disabled]) {
3736
- transform: scale(var(--motion-press-scale));
3737
- }
4579
+ background-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
4580
+ var(--confirm-delay, 0ms),
4581
+ color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
4582
+ var(--confirm-delay, 0ms),
4583
+ border-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
4584
+ var(--confirm-delay, 0ms);
4585
+ }
3738
4586
 
3739
4587
  .radio.radio-chip[data-state='checked'] {
3740
- border-color: var(--color-purple-900);
3741
- background-color: var(--color-purple-900);
3742
- color: var(--color-grey-scale-50);
4588
+ border-color: var(--border-accent);
4589
+ background-color: var(--surface-brand);
4590
+ color: var(--text-on-brand-subtle);
3743
4591
  font-weight: var(--font-weight-semibold);
3744
4592
  }
3745
4593
 
3746
4594
  .radio.radio-chip[data-disabled] {
3747
- border-color: var(--color-grey-scale-200);
3748
- color: var(--color-grey-scale-300);
4595
+ border-color: var(--border-disabled);
4596
+ color: var(--text-disabled);
3749
4597
  cursor: var(--cursor-disabled);
3750
4598
  }
3751
4599
 
3752
- .radio.radio-chip:focus-visible {
3753
- outline: var(--hairline) solid var(--color-purple-600);
3754
- outline-offset: var(--spacing-2);
3755
- }
3756
-
3757
4600
  .base-skeleton {
3758
4601
  display: block;
3759
4602
  box-sizing: border-box;
@@ -3771,12 +4614,12 @@ button.modal-with-double-button-close-button {
3771
4614
  position: relative;
3772
4615
  overflow: hidden;
3773
4616
  height: var(--skeleton-text-height);
3774
- border-radius: var(--radius-4);
3775
- background-color: var(--color-grey-scale-200);
4617
+ border-radius: var(--radius-mark);
4618
+ background-color: var(--surface-strong);
3776
4619
  }
3777
4620
 
3778
4621
  .skeleton.shape-circle {
3779
- border-radius: var(--radius-full);
4622
+ border-radius: var(--radius-circle);
3780
4623
  aspect-ratio: 1;
3781
4624
  flex-shrink: 0;
3782
4625
  }
@@ -3796,8 +4639,8 @@ button.modal-with-double-button-close-button {
3796
4639
  overflow: hidden;
3797
4640
  width: 100%;
3798
4641
  height: var(--skeleton-text-height);
3799
- border-radius: var(--radius-4);
3800
- background-color: var(--color-grey-scale-200);
4642
+ border-radius: var(--radius-mark);
4643
+ background-color: var(--surface-strong);
3801
4644
  }
3802
4645
 
3803
4646
  .skeleton-line:last-child:not(:only-child) {
@@ -3812,18 +4655,44 @@ button.modal-with-double-button-close-button {
3812
4655
  background: linear-gradient(
3813
4656
  90deg,
3814
4657
  transparent 0%,
3815
- var(--color-grey-scale-100) 50%,
4658
+ var(--surface-muted) 50%,
3816
4659
  transparent 100%
3817
4660
  );
3818
4661
  transform: translateX(-100%);
3819
- animation: motion-busy-shimmer var(--skeleton-duration) var(--motion-ease) infinite;
4662
+ animation: motion-busy-shimmer var(--motion-busy-shimmer) var(--motion-busy-ring-ease) infinite;
3820
4663
  }
3821
4664
 
3822
- @media (prefers-reduced-motion: reduce) {
3823
- .skeleton.animated:not(.multiline)::after,
3824
- .skeleton.animated .skeleton-line::after {
3825
- animation: none;
3826
- }
4665
+ /***************************************************************************************************
4666
+ * *
4667
+ * SkeletonGroup *
4668
+ * *
4669
+ ***************************************************************************************************/
4670
+
4671
+ .base-skeleton:where(.group) {
4672
+ display: flex;
4673
+ flex-direction: column;
4674
+ }
4675
+
4676
+ /* 블록 사이는 gap 하나다. spacer 블록은 그 위에 더 띄운다.
4677
+ 폭은 Skeleton 처럼 100% 다. align-items: flex-start 인 부모 안에서도 0 으로 줄지 않는다 */
4678
+
4679
+ .skeleton-group {
4680
+ width: 100%;
4681
+ gap: var(--spacing-12);
4682
+ }
4683
+
4684
+ .skeleton-block-row {
4685
+ display: flex;
4686
+ align-items: center;
4687
+ gap: var(--spacing-12);
4688
+ min-width: 0;
4689
+ }
4690
+
4691
+ /* 세로 묶음에서는 높이, row 안에서는 폭이 된다 */
4692
+
4693
+ .skeleton-block-spacer {
4694
+ display: block;
4695
+ flex: 0 0 var(--skeleton-spacer-size);
3827
4696
  }
3828
4697
 
3829
4698
  .base-step-progress:where(.root) {
@@ -3838,7 +4707,7 @@ button.modal-with-double-button-close-button {
3838
4707
  .base-step-progress:where(.step) {
3839
4708
  display: flex;
3840
4709
  flex-direction: column;
3841
- gap: var(--spacing-6);
4710
+ gap: var(--step-progress-name-gap);
3842
4711
  min-width: 0;
3843
4712
  }
3844
4713
 
@@ -3848,39 +4717,160 @@ button.modal-with-double-button-close-button {
3848
4717
  * *
3849
4718
  ***************************************************************************************************/
3850
4719
 
4720
+ /* size 하나가 막대 두께·이름 글자·막대와 이름 사이를 함께 정한다. 기본 m 은 예전 모양 그대로다 */
4721
+
4722
+ .step-progress {
4723
+ --step-progress-thickness: var(--progress-thickness-m);
4724
+ --step-progress-name-gap: var(--spacing-6);
4725
+ --step-progress-name-size: var(--font-size-xsm);
4726
+ }
4727
+
4728
+ .step-progress.size-s {
4729
+ --step-progress-thickness: var(--progress-thickness-s);
4730
+ --step-progress-name-gap: var(--spacing-4);
4731
+ }
4732
+
4733
+ .step-progress.size-l {
4734
+ --step-progress-thickness: var(--progress-thickness-l);
4735
+ --step-progress-name-gap: var(--spacing-8);
4736
+ --step-progress-name-size: var(--font-size-sm);
4737
+ }
4738
+
3851
4739
  .step-progress-bar {
3852
4740
  display: block;
3853
- height: var(--step-bar-height);
3854
- border-radius: var(--radius-full);
3855
- background: var(--color-grey-scale-200);
3856
- transition: background-color var(--motion-base) var(--motion-ease);
4741
+ height: var(--step-progress-thickness);
4742
+ overflow: hidden;
4743
+ border-radius: var(--radius-pill);
4744
+ background: var(--surface-strong);
4745
+ }
4746
+
4747
+ /* --step-fill 은 0~1. 남은 단계도 지금 단계 색이라 뒤로 갈 때 그 색으로 줄어든다 */
4748
+
4749
+ .step-progress-fill {
4750
+ display: block;
4751
+ height: 100%;
4752
+ background: var(--surface-brand-secondary);
4753
+ transform-origin: left;
4754
+ transform: scaleX(var(--step-fill, 0));
4755
+ }
4756
+
4757
+ .step-progress[data-animated] .step-progress-fill {
4758
+ transition-property: transform, background-color;
4759
+ transition-duration: var(--motion-progress-duration);
4760
+ transition-timing-function: var(--motion-progress-ease);
3857
4761
  }
3858
4762
 
3859
4763
  .step-progress-name {
3860
4764
  overflow: hidden;
3861
- color: var(--color-grey-scale-500);
3862
- font-size: var(--font-size-xsm);
4765
+ color: var(--text-muted);
4766
+ font-size: var(--step-progress-name-size);
3863
4767
  white-space: nowrap;
3864
4768
  text-overflow: ellipsis;
3865
4769
  }
3866
4770
 
3867
- .step-progress-step[data-state='done'] .step-progress-bar {
3868
- background: var(--color-purple-900);
4771
+ .step-progress-step[data-state='done'] .step-progress-fill {
4772
+ background: var(--surface-brand);
3869
4773
  }
3870
4774
 
3871
4775
  .step-progress-step[data-state='done'] .step-progress-name {
3872
- color: var(--color-grey-scale-600);
3873
- }
3874
-
3875
- .step-progress-step[data-state='current'] .step-progress-bar {
3876
- background: var(--color-purple-600);
4776
+ color: var(--text-tertiary);
3877
4777
  }
3878
4778
 
3879
4779
  .step-progress-step[data-state='current'] .step-progress-name {
3880
- color: var(--color-purple-900);
4780
+ color: var(--text-brand);
3881
4781
  font-weight: var(--font-weight-semibold);
3882
4782
  }
3883
4783
 
4784
+ /* variant='icon'. 단계마다 둥근 표시가 칸 가운데에 서고, 막대는 다음 칸 표시까지 잇는 이음선이 된다.
4785
+ 칸 사이 틈은 단계 안쪽 여백으로 두어 이음선이 칸 폭(100%)만큼 정확히 닿게 한다 */
4786
+
4787
+ .step-progress.variant-icon {
4788
+ --step-marker-size: var(--step-marker-size-m);
4789
+ --step-marker-icon-size: var(--icon-size-s);
4790
+ --step-marker-font-size: var(--font-size-sm);
4791
+ --step-connector-gap: var(--spacing-4);
4792
+ gap: 0;
4793
+ }
4794
+
4795
+ .step-progress.variant-icon.size-s {
4796
+ --step-marker-size: var(--step-marker-size-s);
4797
+ --step-marker-icon-size: var(--icon-size-xs);
4798
+ --step-marker-font-size: var(--font-size-xsm);
4799
+ }
4800
+
4801
+ .step-progress.variant-icon.size-l {
4802
+ --step-marker-size: var(--step-marker-size-l);
4803
+ --step-marker-icon-size: var(--icon-size-l);
4804
+ --step-marker-font-size: var(--font-size-base);
4805
+ }
4806
+
4807
+ .step-progress.variant-icon .step-progress-step {
4808
+ position: relative;
4809
+ align-items: center;
4810
+ padding-inline: var(--spacing-4);
4811
+ }
4812
+
4813
+ .step-progress.variant-icon .step-progress-marker {
4814
+ display: flex;
4815
+ align-items: center;
4816
+ justify-content: center;
4817
+ box-sizing: border-box;
4818
+ width: var(--step-marker-size);
4819
+ height: var(--step-marker-size);
4820
+ flex-shrink: 0;
4821
+ border: var(--hairline) solid var(--border-default);
4822
+ border-radius: var(--radius-circle);
4823
+ background: var(--surface-base);
4824
+ color: var(--text-muted);
4825
+ font-size: var(--step-marker-font-size);
4826
+ font-weight: var(--font-weight-semibold);
4827
+ line-height: 1;
4828
+ }
4829
+
4830
+ :is(.step-progress.variant-icon .step-progress-marker) > svg {
4831
+ width: var(--step-marker-icon-size);
4832
+ height: var(--step-marker-icon-size);
4833
+ }
4834
+
4835
+ .step-progress.variant-icon .step-progress-bar {
4836
+ position: absolute;
4837
+ top: calc((var(--step-marker-size) - var(--step-progress-thickness)) / 2);
4838
+ left: calc(50% + var(--step-marker-size) / 2 + var(--step-connector-gap));
4839
+ width: calc(100% - var(--step-marker-size) - var(--step-connector-gap) * 2);
4840
+ }
4841
+
4842
+ .step-progress.variant-icon .step-progress-step:last-child .step-progress-bar {
4843
+ display: none;
4844
+ }
4845
+
4846
+ /* 긴 이름은 말줄임 대신 표시 아래에서 줄을 바꾼다 */
4847
+
4848
+ .step-progress.variant-icon .step-progress-name {
4849
+ max-width: 100%;
4850
+ overflow: visible;
4851
+ text-align: center;
4852
+ white-space: normal;
4853
+ overflow-wrap: anywhere;
4854
+ }
4855
+
4856
+ .step-progress.variant-icon .step-progress-step[data-state='done'] .step-progress-marker {
4857
+ border-color: transparent;
4858
+ background: var(--surface-brand-subtle);
4859
+ color: var(--text-brand);
4860
+ }
4861
+
4862
+ .step-progress.variant-icon .step-progress-step[data-state='current'] .step-progress-marker {
4863
+ border-color: transparent;
4864
+ background: var(--surface-brand);
4865
+ color: var(--text-on-brand);
4866
+ }
4867
+
4868
+ .step-progress.variant-icon[data-animated] .step-progress-marker {
4869
+ transition-property: background-color, border-color, color;
4870
+ transition-duration: var(--motion-progress-duration);
4871
+ transition-timing-function: var(--motion-progress-ease);
4872
+ }
4873
+
3884
4874
  /* 지금 단계 이름만 보인다. 다른 이름은 낭독기에는 남긴다 */
3885
4875
 
3886
4876
  .step-progress.label-visibility-current .step-progress-step:not([data-state='current']) .step-progress-name {
@@ -3903,7 +4893,7 @@ button.modal-with-double-button-close-button {
3903
4893
  .base-switch:where(.label) {
3904
4894
  font-size: var(--font-size-sm);
3905
4895
  font-weight: var(--font-weight-medium);
3906
- color: var(--color-black);
4896
+ color: var(--text-primary);
3907
4897
  }
3908
4898
 
3909
4899
  /***************************************************************************************************
@@ -3933,9 +4923,12 @@ button.modal-with-double-button-close-button {
3933
4923
  align-items: center;
3934
4924
  flex-shrink: 0;
3935
4925
  padding: var(--switch-thumb-inset);
3936
- border-radius: var(--radius-full);
3937
- background-color: var(--color-grey-scale-300);
3938
- transition: background-color var(--motion-fast) var(--motion-ease);
4926
+ border-radius: var(--radius-pill);
4927
+ background-color: var(--surface-control);
4928
+ /* .motion-press 의 transform 전환을 같은 선언에 다시 적는다. 이 규칙이 뒤에 와서 그것을 덮기 때문이다 */
4929
+ transition:
4930
+ background-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease),
4931
+ transform var(--motion-press-duration) var(--motion-press-ease);
3939
4932
  }
3940
4933
 
3941
4934
  .switch-track.size-s {
@@ -3957,27 +4950,29 @@ button.modal-with-double-button-close-button {
3957
4950
  }
3958
4951
 
3959
4952
  .switch-track[data-disabled] {
3960
- background-color: var(--color-grey-scale-200);
4953
+ background-color: var(--surface-disabled);
3961
4954
  }
3962
4955
 
3963
4956
  .switch[data-state='checked'] .switch-track {
3964
- background-color: var(--color-purple-900);
4957
+ background-color: var(--surface-brand);
3965
4958
  }
3966
4959
 
3967
4960
  .switch-thumb {
3968
4961
  aspect-ratio: 1;
3969
4962
  height: 100%;
3970
- border-radius: var(--radius-full);
3971
- background-color: var(--color-white);
3972
- transition: transform var(--motion-fast) var(--motion-ease);
4963
+ border-radius: var(--radius-pill);
4964
+ background-color: var(--surface-base);
4965
+ /* 켜짐은 data-state 가 정하고 --confirm-lag(use-confirm-spring) 은 스프링이 아직 남긴 거리다 */
4966
+ --confirm-on: 0;
4967
+ transform: translateX(calc(var(--switch-travel) * (var(--confirm-on) - var(--confirm-lag, 0))));
3973
4968
  }
3974
4969
 
3975
4970
  .switch-thumb[data-state='checked'] {
3976
- transform: translateX(var(--switch-travel));
4971
+ --confirm-on: 1;
3977
4972
  }
3978
4973
 
3979
4974
  .switch-thumb[data-disabled] {
3980
- background-color: var(--color-grey-scale-100);
4975
+ background-color: var(--surface-muted);
3981
4976
  }
3982
4977
 
3983
4978
  .base-table {
@@ -4009,9 +5004,9 @@ button.modal-with-double-button-close-button {
4009
5004
  .data-table-header {
4010
5005
  position: sticky;
4011
5006
  top: 0;
4012
- background-color: var(--color-white);
5007
+ background-color: var(--surface-base);
4013
5008
  z-index: var(--z-sticky-header);
4014
- border-bottom: var(--hairline) solid var(--color-grey-scale-200);
5009
+ border-bottom: var(--hairline) solid var(--border-subtle);
4015
5010
  }
4016
5011
 
4017
5012
  /*
@@ -4024,30 +5019,30 @@ button.modal-with-double-button-close-button {
4024
5019
  font-size: var(--font-size-sm);
4025
5020
  line-height: var(--line-height-sm);
4026
5021
  font-weight: var(--font-weight-semibold);
4027
- color: var(--data-table-header-color, var(--color-grey-scale-500));
5022
+ color: var(--data-table-header-color, var(--text-muted));
4028
5023
  }
4029
5024
 
4030
5025
  :where(.data-table.variant-padded) .body .cell {
4031
5026
  padding: var(--data-table-cell-padding, var(--spacing-8) var(--spacing-12));
4032
5027
  font-size: var(--font-size-sm);
4033
5028
  line-height: var(--line-height-sm);
4034
- color: var(--data-table-cell-color, var(--color-grey-scale-900));
5029
+ color: var(--data-table-cell-color, var(--text-body));
4035
5030
  }
4036
5031
 
4037
5032
  /* 마지막 고정 열의 경계선. border-collapse 표의 border 는 sticky 셀과 함께 움직이지 않아 그림자로 셀 안에 그린다 */
4038
5033
 
4039
5034
  :where(.data-table.variant-padded) .fixed-last {
4040
- box-shadow: inset calc(var(--hairline) * -1) 0 0 var(--color-grey-scale-200);
5035
+ box-shadow: inset calc(var(--hairline) * -1) 0 0 var(--border-subtle);
4041
5036
  }
4042
5037
 
4043
5038
  .data-table-row {
4044
5039
  position: relative;
4045
- border-bottom: var(--hairline) solid var(--color-grey-scale-200);
5040
+ border-bottom: var(--hairline) solid var(--border-subtle);
4046
5041
  }
4047
5042
 
4048
5043
  .data-table-row .fixed {
4049
5044
  position: sticky;
4050
- background-color: var(--color-white);
5045
+ background-color: var(--surface-base);
4051
5046
  z-index: var(--z-sticky);
4052
5047
  }
4053
5048
 
@@ -4057,11 +5052,11 @@ button.modal-with-double-button-close-button {
4057
5052
  }
4058
5053
 
4059
5054
  .body .data-table-row:hover {
4060
- background-color: var(--color-grey-scale-100);
5055
+ background-color: var(--surface-muted);
4061
5056
  }
4062
5057
 
4063
5058
  :is(.body .data-table-row:hover) .fixed {
4064
- background-color: var(--color-grey-scale-100);
5059
+ background-color: var(--surface-muted);
4065
5060
  }
4066
5061
 
4067
5062
  .fixed-cell {
@@ -4084,10 +5079,16 @@ button.modal-with-double-button-close-button {
4084
5079
  display: flex;
4085
5080
  align-items: center;
4086
5081
  position: relative;
5082
+
5083
+ /* 인디케이터가 목록 높이(top·bottom 0)를 채우므로 탭도 같은 높이로 늘려야 선택 배경과 탭이 맞는다 */
4087
5084
  }
4088
5085
 
5086
+ .tabs-list.variant-filled {
5087
+ align-items: stretch;
5088
+ }
5089
+
4089
5090
  .tabs-list.variant-underline {
4090
- border-bottom: var(--hairline) solid var(--color-grey-scale-200);
5091
+ border-bottom: var(--hairline) solid var(--border-subtle);
4091
5092
 
4092
5093
  /* Scrollable logic */
4093
5094
  overflow-x: auto;
@@ -4111,19 +5112,26 @@ button.modal-with-double-button-close-button {
4111
5112
  /* 2. 테마 스타일 (Theme) */
4112
5113
  /* figma 토큰에 11px 없음. 디자이너 확인 전까지 숫자 유지 */
4113
5114
  padding: 10px 30px 11px 30px; /* raw-px */
4114
- color: var(--color-grey-scale-400);
5115
+ color: var(--text-placeholder);
4115
5116
  font-size: var(--font-size-sm);
4116
5117
  font-weight: var(--font-weight-medium);
4117
- border-bottom: var(--hairline) solid var(--color-grey-scale-200);
4118
- transition: color var(--motion-base) var(--motion-ease);
5118
+ border-bottom: var(--hairline) solid var(--border-subtle);
5119
+ transition: color var(--motion-press-duration) var(--motion-press-ease);
5120
+
5121
+ /* 눌림은 딤만(scale 없음). 배경은 뒤의 인디케이터가 따로 움직이므로 글자만 줄면 어색하다.
5122
+ 딤 색은 글자색이 아니라 브랜드 보라라서, 눌렀을 때 색이 선택 배경(purple-50)과 같은 색조로 이어진다 */
4119
5123
  }
4120
5124
 
5125
+ .tabs-trigger.motion-press-dim::after {
5126
+ background: var(--surface-brand);
5127
+ }
5128
+
4121
5129
  .tabs-trigger:hover {
4122
- color: var(--color-purple-700);
5130
+ color: var(--text-brand-active);
4123
5131
  }
4124
5132
 
4125
5133
  .tabs-trigger[data-state='active'] {
4126
- color: var(--color-purple-700);
5134
+ color: var(--text-brand-active);
4127
5135
  font-weight: var(--font-weight-bold);
4128
5136
  }
4129
5137
 
@@ -4132,10 +5140,22 @@ button.modal-with-double-button-close-button {
4132
5140
  opacity: 0.5;
4133
5141
  }
4134
5142
 
5143
+ /* 목록이 가로 스크롤(overflow-x)이라 바깥 링은 위아래가 잘려 양옆 줄만 남는다 — 안쪽으로 넣는다. 색·두께는 전역(styles/focus.css) */
5144
+
5145
+ .tabs-trigger:focus-visible {
5146
+ outline-offset: calc(-1 * var(--focus-ring-width));
5147
+ }
5148
+
5149
+ .tabs-trigger.full-width {
5150
+ flex: 1;
5151
+ }
5152
+
4135
5153
  /* 3. 변이 스타일 (Variants) */
4136
5154
 
4137
5155
  .tabs-trigger.variant-underline {
4138
5156
  border-bottom: 0;
5157
+ /* 눌림 딤(::after)이 모서리를 물려받는다. 바탕은 투명이라 누를 때만 보인다 */
5158
+ border-radius: var(--radius-control);
4139
5159
  }
4140
5160
 
4141
5161
  .tabs-trigger.variant-underline[data-state='active'] {
@@ -4161,8 +5181,8 @@ button.modal-with-double-button-close-button {
4161
5181
  pointer-events: none;
4162
5182
  z-index: var(--z-raised);
4163
5183
  transition:
4164
- left var(--motion-base) var(--motion-ease),
4165
- width var(--motion-base) var(--motion-ease);
5184
+ left var(--motion-indicate-spring-duration) var(--motion-indicate-spring-ease),
5185
+ width var(--motion-indicate-spring-duration) var(--motion-indicate-spring-ease);
4166
5186
 
4167
5187
  /* 2. 변이 스타일 (Variants) */
4168
5188
  }
@@ -4170,16 +5190,38 @@ button.modal-with-double-button-close-button {
4170
5190
  .tabs-indicator.variant-underline {
4171
5191
  bottom: 0;
4172
5192
  height: var(--tab-indicator-thickness);
4173
- background-color: var(--color-purple-800);
5193
+ background-color: var(--surface-accent);
4174
5194
  }
4175
5195
 
4176
5196
  .tabs-indicator.variant-filled {
4177
5197
  top: 0;
4178
5198
  bottom: 0;
4179
- background-color: var(--color-purple-50);
5199
+ background-color: var(--surface-brand-subtle);
4180
5200
  z-index: var(--z-base);
4181
5201
  }
4182
5202
 
5203
+ /* 넘쳐 밀린 목록 위에 떠서 처음으로 되돌리는 화살표. 목록 밖에 두어 함께 밀리지 않는다 */
5204
+
5205
+ .tabs-list-frame {
5206
+ position: relative;
5207
+ }
5208
+
5209
+ .tabs-scroll-start {
5210
+ position: absolute;
5211
+ top: 0;
5212
+ bottom: var(--hairline);
5213
+ left: 0;
5214
+ z-index: var(--z-sticky);
5215
+ display: inline-flex;
5216
+ align-items: center;
5217
+ padding: 0 var(--spacing-8);
5218
+ border: 0;
5219
+ background: linear-gradient(to right, var(--surface-base) 60%, transparent);
5220
+ color: var(--text-tertiary);
5221
+ cursor: var(--cursor-button);
5222
+ animation: motion-enter-fade var(--motion-enter-duration) var(--motion-enter-ease);
5223
+ }
5224
+
4183
5225
  .base-tag {
4184
5226
  display: inline-flex;
4185
5227
  align-items: center;
@@ -4215,14 +5257,14 @@ button.modal-with-double-button-close-button {
4215
5257
  * *
4216
5258
  ***************************************************************************************************/
4217
5259
 
4218
- /* CTAButton secondary·Callout 과 같은 연보라 */
5260
+ /* CTAButton primary·weak·Callout 과 같은 연보라 */
4219
5261
 
4220
5262
  .tag {
4221
5263
  height: var(--label-height-s);
4222
5264
  padding: 0 var(--spacing-12);
4223
- border-radius: var(--radius-full);
4224
- background-color: var(--color-purple-50);
4225
- color: var(--color-purple-900);
5265
+ border-radius: var(--radius-pill);
5266
+ background-color: var(--surface-brand-subtle);
5267
+ color: var(--text-brand);
4226
5268
  font-size: var(--font-size-sm);
4227
5269
  line-height: var(--line-height-sm);
4228
5270
  font-weight: var(--font-weight-semibold);
@@ -4235,22 +5277,15 @@ button.modal-with-double-button-close-button {
4235
5277
  padding-right: var(--spacing-4);
4236
5278
  }
4237
5279
 
5280
+ /* 눌림은 공용 .motion-press, 포커스 링은 전역 규칙이 그린다 */
5281
+
4238
5282
  .tag-remove {
4239
5283
  width: var(--label-height-xs);
4240
5284
  height: var(--label-height-xs);
4241
- border-radius: var(--radius-full);
4242
- color: var(--color-purple-600);
4243
- transition: transform var(--motion-press-duration) var(--motion-press-ease);
5285
+ border-radius: var(--radius-circle);
5286
+ color: var(--text-brand-secondary);
4244
5287
  }
4245
5288
 
4246
- .tag-remove:active {
4247
- transform: scale(var(--motion-press-scale));
4248
- }
4249
-
4250
- .tag-remove:focus-visible {
4251
- outline: var(--hairline) solid var(--color-purple-600);
4252
- }
4253
-
4254
5289
  .base-text-area:where(.textarea) {
4255
5290
  display: block;
4256
5291
  width: 100%;
@@ -4260,21 +5295,49 @@ button.modal-with-double-button-close-button {
4260
5295
  background-color: transparent;
4261
5296
  font-family: inherit;
4262
5297
  font-weight: var(--font-weight-medium);
4263
- color: var(--color-black);
5298
+ color: var(--text-primary);
4264
5299
  }
4265
5300
 
4266
5301
  .base-text-area:where(.textarea)::-moz-placeholder {
4267
- color: var(--color-grey-scale-400);
5302
+ color: var(--text-placeholder);
4268
5303
  }
4269
5304
 
4270
5305
  .base-text-area:where(.textarea)::placeholder {
4271
- color: var(--color-grey-scale-400);
5306
+ color: var(--text-placeholder);
4272
5307
  }
4273
5308
 
4274
5309
  .base-text-area[data-disabled]:where(.textarea) {
4275
5310
  cursor: var(--cursor-disabled);
4276
5311
  }
4277
5312
 
5313
+ /* 상자 안 아이콘 버튼(TextField 와 같은 크기). 누르는 자리는 터치 44 로 넓힌다 */
5314
+
5315
+ .base-text-area:where(.action) {
5316
+ position: relative;
5317
+ flex: none;
5318
+ display: inline-flex;
5319
+ align-items: center;
5320
+ justify-content: center;
5321
+ width: var(--text-field-action-size);
5322
+ height: var(--text-field-action-size);
5323
+ padding: 0;
5324
+ border: none;
5325
+ border-radius: var(--radius-circle);
5326
+ background: transparent;
5327
+ color: inherit;
5328
+ cursor: var(--cursor-button);
5329
+ }
5330
+
5331
+ .base-text-area:where(.action)::after {
5332
+ content: '';
5333
+ position: absolute;
5334
+ top: 50%;
5335
+ left: 50%;
5336
+ width: var(--touch-target);
5337
+ height: var(--touch-target);
5338
+ transform: translate(-50%, -50%);
5339
+ }
5340
+
4278
5341
  /***************************************************************************************************
4279
5342
  * *
4280
5343
  * text-area *
@@ -4296,10 +5359,59 @@ button.modal-with-double-button-close-button {
4296
5359
  display: flex;
4297
5360
  box-sizing: border-box;
4298
5361
 
4299
- border-radius: var(--radius-4);
4300
- border: var(--hairline) solid var(--color-grey-scale-300);
5362
+ /* 입력 상자 공통 모양(TextField·TextArea 같음). 모서리는 버튼과 같은 control.
5363
+ 테두리는 역할 이름 그대로 default → hover → accent(포커스, 연보라 후광).
5364
+ 오류는 error(포커스면 연빨강 후광), 읽기 전용은 옅은 회색 바탕, disabled 는 회색 바탕.
5365
+ 아이콘은 상자의 color 를 따른다. 상태 색 전환은 다른 상태 피드백처럼 press 토큰을 쓴다 */
5366
+ box-sizing: border-box;
5367
+ border-radius: var(--radius-control);
5368
+ border: var(--hairline) solid var(--border-default);
5369
+ background-color: var(--surface-base);
5370
+ color: var(--text-muted);
5371
+ transition:
5372
+ border-color var(--motion-press-duration) var(--motion-press-ease),
5373
+ box-shadow var(--motion-press-duration) var(--motion-press-ease),
5374
+ background-color var(--motion-press-duration) var(--motion-press-ease);
4301
5375
  }
4302
5376
 
5377
+ .text-area-input-wrapper > textarea {
5378
+ color: var(--text-primary);
5379
+ }
5380
+
5381
+ .text-area-input-wrapper:hover:not(:focus-within,.error,:has( > textarea:disabled)) {
5382
+ border-color: var(--border-hover);
5383
+ }
5384
+
5385
+ .text-area-input-wrapper:focus-within {
5386
+ border-color: var(--border-accent);
5387
+ box-shadow: 0 0 0 var(--field-focus-halo) var(--focus-halo-color);
5388
+ color: var(--text-secondary);
5389
+ }
5390
+
5391
+ .text-area-input-wrapper.error {
5392
+ border-color: var(--border-error);
5393
+ }
5394
+
5395
+ .text-area-input-wrapper.error:focus-within {
5396
+ box-shadow: 0 0 0 var(--field-focus-halo) var(--focus-halo-error-color);
5397
+ }
5398
+
5399
+ .text-area-input-wrapper:has( > textarea[readonly]:not(:disabled)) {
5400
+ background-color: var(--surface-subtle);
5401
+ }
5402
+
5403
+ .text-area-input-wrapper:has( > textarea:disabled) {
5404
+ border-color: var(--border-disabled);
5405
+ background-color: var(--surface-muted);
5406
+ color: var(--text-disabled);
5407
+ cursor: var(--cursor-disabled);
5408
+ }
5409
+
5410
+ .text-area-input-wrapper:has( > textarea:disabled) > textarea {
5411
+ color: var(--text-placeholder);
5412
+ cursor: var(--cursor-disabled);
5413
+ }
5414
+
4303
5415
  .text-area-input-wrapper.size-s > textarea {
4304
5416
  padding: var(--spacing-10) var(--spacing-14);
4305
5417
  font-size: var(--font-size-sm);
@@ -4320,21 +5432,27 @@ button.modal-with-double-button-close-button {
4320
5432
  resize: vertical;
4321
5433
  }
4322
5434
 
4323
- .text-area-input-wrapper:has( > textarea[data-disabled]) {
4324
- border-color: var(--color-grey-scale-300);
4325
- background-color: var(--color-grey-scale-100);
5435
+ /* 지우기 버튼은 첫 줄 오른쪽에 붙는다. 위·오른쪽 여백은 size 마다 textarea 안쪽 여백과 같다 */
5436
+
5437
+ .text-area-input-wrapper > .text-area-action {
5438
+ align-self: flex-start;
4326
5439
  }
4327
5440
 
4328
- .text-area-input-wrapper:focus-within {
4329
- border: var(--hairline) solid var(--color-purple-900);
5441
+ .text-area-input-wrapper.size-s > .text-area-action {
5442
+ margin: var(--spacing-10) var(--spacing-14) 0 0;
5443
+ }
5444
+
5445
+ .text-area-input-wrapper.size-m > .text-area-action {
5446
+ margin: var(--spacing-14) var(--spacing-14) 0 0;
4330
5447
  }
4331
5448
 
4332
5449
  .text-area-helper-text {
4333
- margin-top: var(--spacing-4);
5450
+ margin-top: var(--spacing-6);
5451
+ color: var(--text-muted);
4334
5452
  }
4335
5453
 
4336
5454
  .text-area-helper-text.error {
4337
- color: var(--color-accent-red-500);
5455
+ color: var(--text-error);
4338
5456
  }
4339
5457
 
4340
5458
  .base-text-field.input {
@@ -4348,11 +5466,11 @@ button.modal-with-double-button-close-button {
4348
5466
  }
4349
5467
 
4350
5468
  .base-text-field.input::-moz-placeholder {
4351
- color: var(--color-grey-scale-400);
5469
+ color: var(--text-placeholder);
4352
5470
  }
4353
5471
 
4354
5472
  .base-text-field.input::placeholder {
4355
- color: var(--color-grey-scale-400);
5473
+ color: var(--text-placeholder);
4356
5474
  }
4357
5475
 
4358
5476
  .base-text-field.input:-webkit-autofill,.base-text-field.input:-webkit-autofill:hover,.base-text-field.input:-webkit-autofill:focus,.base-text-field.input:-webkit-autofill:active {
@@ -4362,6 +5480,43 @@ button.modal-with-double-button-close-button {
4362
5480
  transition: background-color 5000s ease-in-out 0s; /* raw-value */
4363
5481
  }
4364
5482
 
5483
+ .base-text-field:where(.prefix,.suffix) {
5484
+ flex: none;
5485
+ white-space: nowrap;
5486
+ }
5487
+
5488
+ /* 상자 안 아이콘 버튼. 보이는 크기는 아이콘만 하고 누르는 자리는 터치 44 로 넓힌다 */
5489
+
5490
+ .base-text-field:where(.action) {
5491
+ position: relative;
5492
+ flex: none;
5493
+ display: inline-flex;
5494
+ align-items: center;
5495
+ justify-content: center;
5496
+ width: var(--text-field-action-size);
5497
+ height: var(--text-field-action-size);
5498
+ padding: 0;
5499
+ border: none;
5500
+ border-radius: var(--radius-circle);
5501
+ background: transparent;
5502
+ color: inherit;
5503
+ cursor: var(--cursor-button);
5504
+ }
5505
+
5506
+ .base-text-field:where(.action)::after {
5507
+ content: '';
5508
+ position: absolute;
5509
+ top: 50%;
5510
+ left: 50%;
5511
+ width: var(--touch-target);
5512
+ height: var(--touch-target);
5513
+ transform: translate(-50%, -50%);
5514
+ }
5515
+
5516
+ .base-text-field:where(.action):disabled {
5517
+ cursor: var(--cursor-disabled);
5518
+ }
5519
+
4365
5520
  /***************************************************************************************************
4366
5521
  * *
4367
5522
  * base-text-field *
@@ -4385,8 +5540,19 @@ button.modal-with-double-button-close-button {
4385
5540
 
4386
5541
  /* 높이는 버튼과 같은 --control-height-* 축, 좌우 여백·글자는 size 마다 버튼과 같은 단계 */
4387
5542
 
4388
- border-radius: var(--radius-4);
4389
- border: var(--hairline) solid var(--color-grey-scale-300);
5543
+ /* 입력 상자 공통 모양(TextField·TextArea 같음). 모서리는 버튼과 같은 control.
5544
+ 테두리는 역할 이름 그대로 default → hover → accent(포커스, 연보라 후광).
5545
+ 오류는 error(포커스면 연빨강 후광), 읽기 전용은 옅은 회색 바탕, disabled 는 회색 바탕.
5546
+ 아이콘은 상자의 color 를 따른다. 상태 색 전환은 다른 상태 피드백처럼 press 토큰을 쓴다 */
5547
+ box-sizing: border-box;
5548
+ border-radius: var(--radius-control);
5549
+ border: var(--hairline) solid var(--border-default);
5550
+ background-color: var(--surface-base);
5551
+ color: var(--text-muted);
5552
+ transition:
5553
+ border-color var(--motion-press-duration) var(--motion-press-ease),
5554
+ box-shadow var(--motion-press-duration) var(--motion-press-ease),
5555
+ background-color var(--motion-press-duration) var(--motion-press-ease);
4390
5556
  }
4391
5557
 
4392
5558
  .text-field-input-wrapper.size-xs {
@@ -4424,25 +5590,55 @@ button.modal-with-double-button-close-button {
4424
5590
  line-height: var(--line-height-lg);
4425
5591
  }
4426
5592
 
4427
- .text-field-input-wrapper:has( > input[data-disabled='true']) {
4428
- border-color: var(--color-grey-scale-300);
4429
- background-color: var(--color-grey-scale-100);
5593
+ .text-field-input-wrapper > input {
5594
+ color: var(--text-primary);
5595
+ width: 100%;
5596
+ min-width: 0;
5597
+ }
5598
+
5599
+ .text-field-input-wrapper:hover:not(:focus-within,.error,:has( > input:disabled)) {
5600
+ border-color: var(--border-hover);
4430
5601
  }
4431
5602
 
4432
5603
  .text-field-input-wrapper:focus-within {
4433
- border: var(--hairline) solid var(--color-purple-900);
5604
+ border-color: var(--border-accent);
5605
+ box-shadow: 0 0 0 var(--field-focus-halo) var(--focus-halo-color);
5606
+ color: var(--text-secondary);
4434
5607
  }
4435
5608
 
4436
- .text-field-input-wrapper > input {
4437
- width: 100%;
5609
+ .text-field-input-wrapper.error {
5610
+ border-color: var(--border-error);
5611
+ }
5612
+
5613
+ .text-field-input-wrapper.error:focus-within {
5614
+ box-shadow: 0 0 0 var(--field-focus-halo) var(--focus-halo-error-color);
5615
+ }
5616
+
5617
+ .text-field-input-wrapper:has( > input[readonly]:not(:disabled)) {
5618
+ background-color: var(--surface-subtle);
5619
+ }
5620
+
5621
+ .text-field-input-wrapper:has( > input:disabled) {
5622
+ border-color: var(--border-disabled);
5623
+ background-color: var(--surface-muted);
5624
+ color: var(--text-disabled);
5625
+ cursor: var(--cursor-disabled);
4438
5626
  }
4439
5627
 
5628
+ .text-field-input-wrapper:has( > input:disabled) > input {
5629
+ color: var(--text-placeholder);
5630
+ cursor: var(--cursor-disabled);
5631
+ }
5632
+
5633
+ /* prefix·suffix·버튼이 붙어도 input 이 제 기본 폭을 고집해 상자를 넘지 않게 한다 */
5634
+
4440
5635
  .text-field-helper-text {
4441
- margin-top: var(--spacing-4);
5636
+ margin-top: var(--spacing-6);
5637
+ color: var(--text-muted);
4442
5638
  }
4443
5639
 
4444
5640
  .text-field-helper-text.error {
4445
- color: var(--color-accent-red-500);
5641
+ color: var(--text-error);
4446
5642
  }
4447
5643
 
4448
5644
  /* 조각(title·close 등)도 base-toast 를 달므로 상자 스타일은 루트와 viewport 에만 건다. */
@@ -4457,12 +5653,12 @@ button.modal-with-double-button-close-button {
4457
5653
 
4458
5654
  .base-toast[data-state='open']:where(:not(.viewport,.title,.description,.action,.close)) {
4459
5655
  animation:
4460
- motion-enter-slide var(--motion-base) var(--motion-ease),
4461
- motion-enter-fade var(--motion-base) var(--motion-ease);
5656
+ motion-enter-slide var(--motion-enter-duration) var(--motion-enter-ease),
5657
+ motion-enter-fade var(--motion-enter-duration) var(--motion-enter-ease);
4462
5658
  }
4463
5659
 
4464
5660
  .base-toast[data-state='closed']:where(:not(.viewport,.title,.description,.action,.close)) {
4465
- animation: motion-exit-fade var(--motion-fast) var(--motion-ease) forwards;
5661
+ animation: motion-exit-fade var(--motion-exit-duration) var(--motion-exit-ease) forwards;
4466
5662
  }
4467
5663
 
4468
5664
  .base-toast[data-swipe='move']:where(:not(.viewport,.title,.description,.action,.close)) {
@@ -4471,13 +5667,13 @@ button.modal-with-double-button-close-button {
4471
5667
 
4472
5668
  .base-toast[data-swipe='cancel']:where(:not(.viewport,.title,.description,.action,.close)) {
4473
5669
  transform: translateX(0);
4474
- transition: transform var(--motion-fast) var(--motion-ease);
5670
+ transition: transform var(--motion-exit-duration) var(--motion-exit-ease);
4475
5671
  }
4476
5672
 
4477
5673
  .base-toast[data-swipe='end']:where(:not(.viewport,.title,.description,.action,.close)) {
4478
5674
  --motion-swipe-from: var(--radix-toast-swipe-end-x);
4479
5675
  --motion-swipe-to: calc(100% + var(--spacing-24));
4480
- animation: motion-exit-swipe var(--motion-fast) var(--motion-ease) forwards;
5676
+ animation: motion-exit-swipe var(--motion-exit-duration) var(--motion-exit-ease) forwards;
4481
5677
  }
4482
5678
 
4483
5679
  .base-toast:where(.viewport) {
@@ -4491,7 +5687,6 @@ button.modal-with-double-button-close-button {
4491
5687
  margin: 0;
4492
5688
  padding: var(--spacing-24);
4493
5689
  list-style: none;
4494
- outline: none;
4495
5690
  /* 아래에서 올라오는 자리를 기본으로 두고 position 클래스가 덮는다 */
4496
5691
  --motion-slide-offset: translateY(var(--spacing-16));
4497
5692
  }
@@ -4525,65 +5720,59 @@ button.modal-with-double-button-close-button {
4525
5720
  cursor: var(--cursor-button);
4526
5721
  }
4527
5722
 
4528
- @media (prefers-reduced-motion: reduce) {
4529
- .base-toast:where(:not(.viewport, .title, .description, .action, .close)) {
4530
- animation: none;
4531
- }
4532
- }
4533
-
4534
5723
  /***************************************************************************************************
4535
5724
  * *
4536
5725
  * toast *
4537
5726
  * *
4538
5727
  ***************************************************************************************************/
4539
5728
 
4540
- /* Tooltip 과 같은 표면: 진한 바탕에 흰 글자, radius-6. variant 가 바탕색을 정한다(기본 purple-900, success green, warning orange, error red-500 = confirm 버튼) */
5729
+ /* Tooltip 과 같은 표면: 진한 바탕에 흰 글자, radius-6. variant 가 바탕색을 정한다(기본 purple-900, success green, warning orange, error red-500 = CTAButton danger·fill) */
4541
5730
 
4542
5731
  .toast {
4543
5732
  align-items: center;
4544
5733
  padding: var(--spacing-12) var(--spacing-14);
4545
- border-radius: var(--radius-6);
4546
- background-color: var(--color-purple-900);
4547
- color: var(--color-white);
5734
+ border-radius: var(--radius-control);
5735
+ background-color: var(--surface-brand);
5736
+ color: var(--text-on-brand);
4548
5737
 
4549
- /* CTAButton secondary 와 같은 연보라. 이 variant 만 글자가 어둡다 */
5738
+ /* CTAButton primary·weak 와 같은 연보라. 이 variant 만 글자가 어둡다 */
4550
5739
  }
4551
5740
 
4552
5741
  .toast.variant-secondary {
4553
- background-color: var(--color-purple-50);
4554
- color: var(--color-purple-900);
5742
+ background-color: var(--surface-brand-subtle);
5743
+ color: var(--text-brand);
4555
5744
  }
4556
5745
 
4557
5746
  .toast.variant-secondary .toast-title,.toast.variant-secondary .toast-close {
4558
- color: var(--color-purple-900);
5747
+ color: var(--text-brand);
4559
5748
  }
4560
5749
 
4561
5750
  .toast.variant-secondary .toast-description {
4562
- color: var(--color-purple-700);
5751
+ color: var(--text-brand-active);
4563
5752
  }
4564
5753
 
4565
5754
  .toast.variant-success {
4566
- background-color: var(--color-accent-green-600);
5755
+ background-color: var(--toast-success-background);
4567
5756
  }
4568
5757
 
4569
5758
  .toast.variant-success .toast-description {
4570
- color: var(--color-accent-green-100);
5759
+ color: var(--toast-success-description);
4571
5760
  }
4572
5761
 
4573
5762
  .toast.variant-warning {
4574
- background-color: var(--color-accent-orange-500);
5763
+ background-color: var(--toast-warning-background);
4575
5764
  }
4576
5765
 
4577
5766
  .toast.variant-warning .toast-description {
4578
- color: var(--color-accent-orange-100);
5767
+ color: var(--toast-warning-description);
4579
5768
  }
4580
5769
 
4581
5770
  .toast.variant-error {
4582
- background-color: var(--color-accent-red-500);
5771
+ background-color: var(--toast-error-background);
4583
5772
  }
4584
5773
 
4585
5774
  .toast.variant-error .toast-description {
4586
- color: var(--color-accent-red-100);
5775
+ color: var(--toast-error-description);
4587
5776
  }
4588
5777
 
4589
5778
  /* success·warning·error 는 앞에 상태 아이콘을 둔다. SVG 에 박힌 색을 글자색으로 맞춘다 */
@@ -4614,7 +5803,7 @@ button.modal-with-double-button-close-button {
4614
5803
  font-size: var(--font-size-sm);
4615
5804
  line-height: var(--line-height-sm);
4616
5805
  font-weight: var(--font-weight-semibold);
4617
- color: var(--color-white);
5806
+ color: var(--text-on-brand);
4618
5807
  word-break: break-word;
4619
5808
  }
4620
5809
 
@@ -4622,11 +5811,11 @@ button.modal-with-double-button-close-button {
4622
5811
  font-size: var(--font-size-xsm);
4623
5812
  line-height: var(--line-height-xsm);
4624
5813
  font-weight: var(--font-weight-regular);
4625
- color: var(--color-purple-200);
5814
+ color: var(--toast-description);
4626
5815
  word-break: break-word;
4627
5816
  }
4628
5817
 
4629
- /* action 은 CTAButton(xs·neutral: 흰 바탕, 보라 글자) 이라 모양은 버튼 CSS 가 정한다 */
5818
+ /* action 은 CTAButton(xs·neutral·fill: 연회색 바탕, 검정 글자) 이라 모양은 버튼 CSS 가 정한다 */
4630
5819
 
4631
5820
  .toast-action {
4632
5821
  white-space: nowrap;
@@ -4638,7 +5827,7 @@ button.modal-with-double-button-close-button {
4638
5827
  justify-content: center;
4639
5828
  width: var(--icon-size-s);
4640
5829
  height: var(--icon-size-s);
4641
- color: var(--color-white);
5830
+ color: var(--text-on-brand);
4642
5831
  opacity: 0.7;
4643
5832
  }
4644
5833
 
@@ -4684,9 +5873,12 @@ button.modal-with-double-button-close-button {
4684
5873
  align-items: center;
4685
5874
  gap: var(--spacing-10);
4686
5875
 
4687
- background-color: var(--color-purple-900);
4688
- color: var(--color-white);
4689
- border-radius: var(--radius-6);
5876
+ /* 화살표(::before 의 border 삼각형)도 같은 바탕색으로 칠한다. 테두리가 아니라 바탕이다 */
5877
+ --tooltip-surface: var(--surface-brand);
5878
+
5879
+ background-color: var(--tooltip-surface);
5880
+ color: var(--text-on-brand);
5881
+ border-radius: var(--radius-control);
4690
5882
  padding: var(--spacing-12);
4691
5883
 
4692
5884
  font-size: var(--font-size-sm);
@@ -4704,8 +5896,10 @@ button.modal-with-double-button-close-button {
4704
5896
  border-style: solid;
4705
5897
  }
4706
5898
 
5899
+ /* 트리거에서 떨어지는 거리는 translate 로 둔다. transform 은 등장 키프레임이 쓴다 */
5900
+
4707
5901
  .tooltip-content.direction-top {
4708
- transform: translateY(calc(-1 * var(--spacing-10)));
5902
+ translate: 0 calc(-1 * var(--spacing-10));
4709
5903
  }
4710
5904
 
4711
5905
  .tooltip-content.direction-top::before {
@@ -4713,11 +5907,11 @@ button.modal-with-double-button-close-button {
4713
5907
  left: 50%;
4714
5908
  transform: translateX(-50%);
4715
5909
  border-width: var(--tooltip-arrow) var(--tooltip-arrow) 0 var(--tooltip-arrow);
4716
- border-color: var(--color-purple-900) transparent transparent transparent;
5910
+ border-color: var(--tooltip-surface) transparent transparent transparent;
4717
5911
  }
4718
5912
 
4719
5913
  .tooltip-content.direction-bottom {
4720
- transform: translateY(var(--spacing-10));
5914
+ translate: 0 var(--spacing-10);
4721
5915
  }
4722
5916
 
4723
5917
  .tooltip-content.direction-bottom::before {
@@ -4725,11 +5919,11 @@ button.modal-with-double-button-close-button {
4725
5919
  left: 50%;
4726
5920
  transform: translateX(-50%);
4727
5921
  border-width: 0 var(--tooltip-arrow) var(--tooltip-arrow) var(--tooltip-arrow);
4728
- border-color: transparent transparent var(--color-purple-900) transparent;
5922
+ border-color: transparent transparent var(--tooltip-surface) transparent;
4729
5923
  }
4730
5924
 
4731
5925
  .tooltip-content.direction-left {
4732
- transform: translateX(calc(-1 * var(--spacing-10)));
5926
+ translate: calc(-1 * var(--spacing-10)) 0;
4733
5927
  }
4734
5928
 
4735
5929
  .tooltip-content.direction-left::before {
@@ -4737,11 +5931,11 @@ button.modal-with-double-button-close-button {
4737
5931
  top: 50%;
4738
5932
  transform: translateY(-50%);
4739
5933
  border-width: var(--tooltip-arrow) 0 var(--tooltip-arrow) var(--tooltip-arrow);
4740
- border-color: transparent transparent transparent var(--color-purple-900);
5934
+ border-color: transparent transparent transparent var(--tooltip-surface);
4741
5935
  }
4742
5936
 
4743
5937
  .tooltip-content.direction-right {
4744
- transform: translateX(var(--spacing-10));
5938
+ translate: var(--spacing-10) 0;
4745
5939
  }
4746
5940
 
4747
5941
  .tooltip-content.direction-right::before {
@@ -4749,5 +5943,38 @@ button.modal-with-double-button-close-button {
4749
5943
  top: 50%;
4750
5944
  transform: translateY(-50%);
4751
5945
  border-width: var(--tooltip-arrow) var(--tooltip-arrow) var(--tooltip-arrow) 0;
4752
- border-color: transparent var(--color-purple-900) transparent transparent;
5946
+ border-color: transparent var(--tooltip-surface) transparent transparent;
4753
5947
  }
5948
+
5949
+ /* Radix 가 자리가 모자라면 방향을 뒤집으므로 direction 이 아니라 실제 방향(data-side)을 따른다. 트리거 쪽에서 밀려 나온다 */
5950
+
5951
+ .tooltip-content[data-side='top'] {
5952
+ --motion-slide-offset: translateY(var(--motion-enter-offset));
5953
+ }
5954
+
5955
+ .tooltip-content[data-side='bottom'] {
5956
+ --motion-slide-offset: translateY(calc(-1 * var(--motion-enter-offset)));
5957
+ }
5958
+
5959
+ .tooltip-content[data-side='left'] {
5960
+ --motion-slide-offset: translateX(var(--motion-enter-offset));
5961
+ }
5962
+
5963
+ .tooltip-content[data-side='right'] {
5964
+ --motion-slide-offset: translateX(calc(-1 * var(--motion-enter-offset)));
5965
+ }
5966
+
5967
+ .tooltip-content:is([data-state='delayed-open'],[data-state='instant-open']) {
5968
+ animation:
5969
+ motion-enter-slide var(--motion-enter-duration) var(--motion-enter-ease),
5970
+ motion-enter-fade var(--motion-enter-duration) var(--motion-enter-ease);
5971
+ }
5972
+
5973
+ .tooltip-content.motion-strong:is([data-state='delayed-open'],[data-state='instant-open']) {
5974
+ animation-duration: var(--motion-enter-strong-duration);
5975
+ animation-timing-function: var(--motion-enter-strong-ease);
5976
+ }
5977
+
5978
+ .tooltip-content[data-state='closed'] {
5979
+ animation: motion-exit-fade var(--motion-exit-duration) var(--motion-exit-ease) forwards;
5980
+ }