@nurihaus/web-design-system 3.9.1 → 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 (214) hide show
  1. package/README.md +1 -1
  2. package/dist/.storybook/preview.d.ts +49 -0
  3. package/dist/ai/components.md +721 -111
  4. package/dist/ai/motion.md +156 -134
  5. package/dist/ai/tokens.md +295 -137
  6. package/dist/asset.js +328 -0
  7. package/dist/avatar.js +208 -33
  8. package/dist/bottom-nav.js +86 -6
  9. package/dist/breadcrumb.js +6 -3
  10. package/dist/card.js +5 -2
  11. package/dist/check-box.js +81 -45
  12. package/dist/chip-group.js +50 -12
  13. package/dist/chunk-1563.js +42 -18
  14. package/dist/chunk-1983.js +100 -0
  15. package/dist/chunk-3297.js +130 -0
  16. package/dist/chunk-3640.js +94 -0
  17. package/dist/chunk-3839.js +54 -0
  18. package/dist/chunk-4558.js +13 -2
  19. package/dist/chunk-4577.js +35 -0
  20. package/dist/chunk-5302.js +111 -0
  21. package/dist/{chunk-1657.js → chunk-5589.js} +41 -5
  22. package/dist/chunk-5670.js +122 -0
  23. package/dist/chunk-6302.js +10 -10
  24. package/dist/chunk-6706.js +64 -0
  25. package/dist/chunk-7302.js +66 -0
  26. package/dist/chunk-7460.js +204 -0
  27. package/dist/{chunk-6149.js → chunk-8377.js} +36 -2
  28. package/dist/chunk-8734.js +33 -0
  29. package/dist/chunk-8787.js +260 -0
  30. package/dist/chunk-8933.js +14 -2
  31. package/dist/chunk-910.js +82 -27
  32. package/dist/chunk-948.js +166 -0
  33. package/dist/collapsible-menu.js +109 -55
  34. package/dist/components/asset/asset-props.d.ts +43 -0
  35. package/dist/components/asset/asset-type.d.ts +38 -0
  36. package/dist/components/asset/asset.d.ts +21 -0
  37. package/dist/components/asset/asset.stories.d.ts +65 -0
  38. package/dist/components/asset/base-asset.d.ts +7 -0
  39. package/dist/components/avatar/avatar-props.d.ts +1 -0
  40. package/dist/components/avatar/avatar-type.d.ts +6 -4
  41. package/dist/components/avatar/avatar.stories.d.ts +10 -0
  42. package/dist/components/badge/badge-type.d.ts +10 -4
  43. package/dist/components/badge/badge.stories.d.ts +15 -0
  44. package/dist/components/bottom-bar/bottom-bar.stories.d.ts +14 -7
  45. package/dist/components/bottom-nav/bottom-nav-type.d.ts +2 -1
  46. package/dist/components/bottom-nav/bottom-nav.stories.d.ts +16 -1
  47. package/dist/components/breadcrumb/breadcrumb-type.d.ts +2 -1
  48. package/dist/components/breadcrumb/breadcrumb.stories.d.ts +15 -0
  49. package/dist/components/button/button-appearance.d.ts +50 -0
  50. package/dist/components/button/button-props.d.ts +12 -3
  51. package/dist/components/button/button-type.d.ts +14 -4
  52. package/dist/components/button/button.stories.d.ts +34 -3
  53. package/dist/components/button/cta-button.d.ts +1 -1
  54. package/dist/components/callout/callout.stories.d.ts +11 -0
  55. package/dist/components/card/card-type.d.ts +2 -1
  56. package/dist/components/card/card.stories.d.ts +9 -0
  57. package/dist/components/check-box/check-box-props.d.ts +8 -0
  58. package/dist/components/check-box/check-box-type.d.ts +7 -3
  59. package/dist/components/check-box/check-box.stories.d.ts +32 -1
  60. package/dist/components/chip-group/chip-group-props.d.ts +13 -1
  61. package/dist/components/chip-group/chip-group-type.d.ts +5 -1
  62. package/dist/components/chip-group/chip-group.stories.d.ts +30 -0
  63. package/dist/components/collapsible-menu/collapsible-menu-type.d.ts +28 -2
  64. package/dist/components/collapsible-menu/collapsible-menu.d.ts +1 -1
  65. package/dist/components/collapsible-menu/collapsible-menu.stories.d.ts +14 -0
  66. package/dist/components/description-list/description-list.stories.d.ts +7 -0
  67. package/dist/components/drawer/base-drawer.d.ts +2 -4
  68. package/dist/components/drawer/drawer-type.d.ts +17 -2
  69. package/dist/components/drawer/drawer.stories.d.ts +21 -0
  70. package/dist/components/drop-down/drop-down-type.d.ts +4 -2
  71. package/dist/components/drop-down/drop-down.stories.d.ts +16 -0
  72. package/dist/components/elements/text/text-props.d.ts +3 -3
  73. package/dist/components/elements/text/text-type.d.ts +3 -2
  74. package/dist/components/elements/text/text.stories.d.ts +13 -1
  75. package/dist/components/empty-state/empty-state.stories.d.ts +37 -12
  76. package/dist/components/icon/icon.stories.d.ts +11 -1
  77. package/dist/components/icon-button/icon-button-type.d.ts +2 -1
  78. package/dist/components/icon-button/icon-button.stories.d.ts +9 -0
  79. package/dist/components/list/list-group.stories.d.ts +7 -0
  80. package/dist/components/list/list-row.stories.d.ts +20 -10
  81. package/dist/components/list/list-type.d.ts +2 -1
  82. package/dist/components/loading/index.d.ts +4 -0
  83. package/dist/components/loading/inline-loading/base-inline-loading.d.ts +3 -2
  84. package/dist/components/loading/inline-loading/inline-loading-props.d.ts +3 -0
  85. package/dist/components/loading/inline-loading/inline-loading-type.d.ts +6 -6
  86. package/dist/components/loading/inline-loading/inline-loading.stories.d.ts +28 -2
  87. package/dist/components/loading/loading-dots/base-loading-dots.d.ts +4 -0
  88. package/dist/components/loading/loading-dots/loading-dots-props.d.ts +4 -0
  89. package/dist/components/loading/loading-dots/loading-dots-type.d.ts +6 -0
  90. package/dist/components/loading/loading-dots/loading-dots.d.ts +4 -0
  91. package/dist/components/loading/loading-dots/loading-dots.stories.d.ts +37 -0
  92. package/dist/components/loading/loading-props.d.ts +9 -0
  93. package/dist/components/loading/loading-type.d.ts +9 -0
  94. package/dist/components/loading/loading.stories.d.ts +15 -0
  95. package/dist/components/loading/overlay-loading/overlay-loading-type.d.ts +4 -0
  96. package/dist/components/loading/overlay-loading/overlay-loading.stories.d.ts +17 -0
  97. package/dist/components/loading/progress-bar/base-progress-bar.d.ts +3 -0
  98. package/dist/components/loading/progress-bar/progress-bar-props.d.ts +4 -0
  99. package/dist/components/loading/progress-bar/progress-bar-type.d.ts +19 -0
  100. package/dist/components/loading/progress-bar/progress-bar.d.ts +4 -0
  101. package/dist/components/loading/progress-bar/progress-bar.stories.d.ts +63 -0
  102. package/dist/components/loading/spinner/spinner-props.d.ts +4 -1
  103. package/dist/components/loading/spinner/spinner-type.d.ts +3 -1
  104. package/dist/components/loading/spinner/spinner.d.ts +2 -1
  105. package/dist/components/loading/spinner/spinner.stories.d.ts +30 -4
  106. package/dist/components/logging/logging.stories.d.ts +5 -0
  107. package/dist/components/media/media-thumbnail.stories.d.ts +9 -0
  108. package/dist/components/media/media-type.d.ts +2 -1
  109. package/dist/components/media/media-viewer.stories.d.ts +7 -0
  110. package/dist/components/message/message.stories.d.ts +19 -12
  111. package/dist/components/message-composer/message-composer-type.d.ts +2 -1
  112. package/dist/components/message-composer/message-composer.stories.d.ts +10 -0
  113. package/dist/components/modal/modal-type.d.ts +22 -3
  114. package/dist/components/modal/modal-with-double-button.stories.d.ts +15 -0
  115. package/dist/components/modal/modal.stories.d.ts +16 -0
  116. package/dist/components/motion/motion.stories.d.ts +7 -0
  117. package/dist/components/notice/notice-type.d.ts +1 -1
  118. package/dist/components/notice/notice.stories.d.ts +16 -9
  119. package/dist/components/overlay/overlay-context.d.ts +34 -0
  120. package/dist/components/overlay/overlay-provider.d.ts +6 -0
  121. package/dist/components/overlay/overlay-type.d.ts +45 -0
  122. package/dist/components/overlay/overlay.d.ts +4 -0
  123. package/dist/components/overlay/overlay.stories.d.ts +34 -0
  124. package/dist/components/overlay/use-dialog.d.ts +3 -0
  125. package/dist/components/overlay/use-toast.d.ts +3 -0
  126. package/dist/components/pagination/pagination-type.d.ts +2 -1
  127. package/dist/components/pagination/pagination.stories.d.ts +15 -0
  128. package/dist/components/radio/base-radio.d.ts +5 -2
  129. package/dist/components/radio/radio-type.d.ts +11 -3
  130. package/dist/components/radio/radio.stories.d.ts +20 -2
  131. package/dist/components/skeleton/base-skeleton.d.ts +7 -3
  132. package/dist/components/skeleton/skeleton-group-props.d.ts +4 -0
  133. package/dist/components/skeleton/skeleton-group-type.d.ts +47 -0
  134. package/dist/components/skeleton/skeleton-group.d.ts +4 -0
  135. package/dist/components/skeleton/skeleton-group.stories.d.ts +57 -0
  136. package/dist/components/skeleton/skeleton-type.d.ts +1 -0
  137. package/dist/components/skeleton/skeleton.stories.d.ts +20 -9
  138. package/dist/components/step-progress/step-progress-props.d.ts +10 -0
  139. package/dist/components/step-progress/step-progress-type.d.ts +22 -3
  140. package/dist/components/step-progress/step-progress.d.ts +1 -1
  141. package/dist/components/step-progress/step-progress.stories.d.ts +40 -0
  142. package/dist/components/switch/base-switch.d.ts +2 -4
  143. package/dist/components/switch/switch-type.d.ts +5 -2
  144. package/dist/components/switch/switch.stories.d.ts +22 -0
  145. package/dist/components/table/table-props.d.ts +9 -0
  146. package/dist/components/table/table-type.d.ts +7 -1
  147. package/dist/components/table/table.stories.d.ts +46 -0
  148. package/dist/components/tabs/tabs-type.d.ts +4 -1
  149. package/dist/components/tabs/tabs.stories.d.ts +17 -0
  150. package/dist/components/tag/tag-type.d.ts +2 -1
  151. package/dist/components/tag/tag.stories.d.ts +9 -0
  152. package/dist/components/text-area/base-text-area.d.ts +2 -1
  153. package/dist/components/text-area/text-area-type.d.ts +11 -3
  154. package/dist/components/text-area/text-area.stories.d.ts +15 -0
  155. package/dist/components/text-field/base-text-field.d.ts +12 -6
  156. package/dist/components/text-field/text-field-type.d.ts +37 -6
  157. package/dist/components/text-field/text-field.stories.d.ts +32 -5
  158. package/dist/components/toast/toast-type.d.ts +4 -1
  159. package/dist/components/toast/toast.stories.d.ts +28 -13
  160. package/dist/components/tooltip/tooltip-type.d.ts +4 -1
  161. package/dist/components/tooltip/tooltip.stories.d.ts +11 -0
  162. package/dist/components.css +2005 -672
  163. package/dist/cta-button.js +94 -33
  164. package/dist/data-table.js +38 -5
  165. package/dist/drawer.js +79 -13
  166. package/dist/drop-down.js +18 -10
  167. package/dist/helpers/hooks/useCloseOnBackEvent.d.ts +12 -0
  168. package/dist/helpers/hooks/useFieldClear.d.ts +21 -0
  169. package/dist/helpers/hooks/useReturnFocus.d.ts +9 -0
  170. package/dist/helpers/motion/appear.d.ts +3 -0
  171. package/dist/helpers/motion/effects.d.ts +9 -0
  172. package/dist/helpers/motion/motion-props.d.ts +35 -0
  173. package/dist/helpers/motion/stagger.d.ts +3 -0
  174. package/dist/helpers/motion/use-appear.d.ts +12 -0
  175. package/dist/helpers/motion/use-attention-handle.d.ts +7 -0
  176. package/dist/helpers/motion/use-confirm-spring.d.ts +7 -0
  177. package/dist/helpers/motion/use-effect-trigger.d.ts +11 -0
  178. package/dist/helpers/motion/use-hide-on-scroll.d.ts +12 -0
  179. package/dist/helpers/motion/use-presence-callbacks.d.ts +13 -0
  180. package/dist/icon-button.js +4 -2
  181. package/dist/icon-text-badge.js +27 -17
  182. package/dist/icon-text-option-badge.js +19 -13
  183. package/dist/index.d.ts +11 -4
  184. package/dist/index.js +4074 -989
  185. package/dist/list-row.js +5 -2
  186. package/dist/loading.js +200 -39
  187. package/dist/media-thumbnail.js +9 -5
  188. package/dist/message-composer.js +15 -11
  189. package/dist/modal-with-double-button.js +71 -53
  190. package/dist/modal.js +95 -29
  191. package/dist/notice.js +14 -8
  192. package/dist/option-badge.js +27 -17
  193. package/dist/overlay.js +1213 -0
  194. package/dist/pagination.js +11 -7
  195. package/dist/radio.js +117 -21
  196. package/dist/reset.css +4 -0
  197. package/dist/skeleton-group.js +445 -0
  198. package/dist/skeleton.js +24 -112
  199. package/dist/step-progress.js +125 -16
  200. package/dist/styles.css +2309 -756
  201. package/dist/switch.js +89 -17
  202. package/dist/tabs.js +77 -23
  203. package/dist/tag.js +4 -2
  204. package/dist/text-area.js +81 -31
  205. package/dist/text-field.js +160 -33
  206. package/dist/toast.js +98 -241
  207. package/dist/tokens/generated/motion.d.ts +21 -4
  208. package/dist/tokens/generated/semantic-admin.d.ts +103 -46
  209. package/dist/tokens/generated/semantic-app.d.ts +164 -16
  210. package/dist/tokens.css +578 -103
  211. package/dist/tokens.js +293 -71
  212. package/dist/tooltip.js +50 -22
  213. package/package.json +14 -1
  214. package/dist/chunk-5226.js +0 -79
@@ -170,12 +170,22 @@
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
  /*
176
184
  * 공용 키프레임. 컴포넌트 CSS 는 @keyframes 를 두지 않고 이 이름을 쓴다(빌드 R18).
177
185
  * 시간·곡선은 쓰는 쪽 animation 에서 --motion-{토큰}-* 로 준다. 여기는 모양만 정한다.
178
- * 쓰는 쪽이 두는 입력 변수: --motion-slide-offset(transform 값), --motion-swipe-from, --motion-swipe-to.
186
+ * 쓰는 쪽이 두는 입력 변수: --motion-slide-offset(transform 값), --motion-swipe-from, --motion-swipe-to,
187
+ * --motion-content-height(펼친 높이. Radix 의 --radix-collapsible-content-height 등).
188
+ * 아래쪽 공용 클래스의 입력 --i·--motion-reveal-delay·--motion-appear-delay 는 helpers/motion 이 둔다.
179
189
  */
180
190
 
181
191
  @keyframes motion-enter-fade {
@@ -299,11 +309,13 @@
299
309
  }
300
310
  }
301
311
 
312
+ /* 쉬는 모양(애니메이션 밖)이 셋 다 보이는 점이라, 동작 줄이기로 시간이 0 이면 그대로 멈춘다 */
313
+
302
314
  @keyframes motion-busy-dots {
303
315
  0%,
304
316
  80%,
305
317
  100% {
306
- opacity: 0;
318
+ opacity: 0.25;
307
319
  }
308
320
  40% {
309
321
  opacity: 1;
@@ -319,6 +331,17 @@
319
331
  }
320
332
  }
321
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
+
322
345
  @keyframes motion-busy-shimmer {
323
346
  from {
324
347
  transform: translateX(-100%);
@@ -349,24 +372,469 @@
349
372
  }
350
373
  }
351
374
 
352
- /* Component */
375
+ /* expand: 접히는 컨테이너의 높이. 펼친 높이는 쓰는 쪽이 --motion-content-height 로 준다 */
353
376
 
354
- .base-avatar {
355
- border-radius: 50%;
356
- width: -moz-fit-content;
357
- width: fit-content;
358
- height: -moz-fit-content;
359
- height: fit-content;
377
+ /* 펼치는 동안만 넘친 내용을 숨긴다. 끝나면 overflow 가 원래 값으로 돌아온다 */
378
+
379
+ @keyframes motion-expand-open {
380
+ from {
381
+ height: 0;
382
+ overflow: hidden;
383
+ }
384
+ to {
385
+ height: var(--motion-content-height);
386
+ overflow: hidden;
387
+ }
388
+ }
389
+
390
+ @keyframes motion-expand-close {
391
+ from {
392
+ height: var(--motion-content-height);
393
+ }
394
+ to {
395
+ height: 0;
396
+ }
397
+ }
398
+
399
+ /* appear 의 delay 동안 가린다. opacity 0 과 달리 눌리지 않는다 */
400
+
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'] {
360
550
  overflow: hidden;
361
551
  }
362
552
 
363
- .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;
364
623
  width: 100%;
365
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 {
366
827
  -o-object-fit: cover;
367
828
  object-fit: cover;
368
829
  }
369
830
 
831
+ .asset-image.fit-contain {
832
+ -o-object-fit: contain;
833
+ object-fit: contain;
834
+ }
835
+
836
+ /* 원·크기·자르기·배지 자리는 Asset.Frame(shape circle)이 그린다. 여기는 아바타만의 것이다 */
837
+
370
838
  .base-avatar .avatar-fallback {
371
839
  display: block;
372
840
  width: 100%;
@@ -384,79 +852,29 @@
384
852
  * *
385
853
  ***************************************************************************************************/
386
854
 
387
- .avatar-wrapper {
388
- position: relative;
389
- display: inline-block;
390
- }
391
-
392
855
  .avatar {
393
- display: flex;
394
- align-items: center;
395
- justify-content: center;
856
+ border: var(--hairline) solid var(--border-subtle);
396
857
  }
397
858
 
398
- .avatar.size-xl {
399
- width: var(--avatar-size-xl);
400
- height: var(--avatar-size-xl);
401
- border: var(--hairline) solid var(--color-grey-scale-200);
402
- }
403
-
404
- .avatar.size-l {
405
- width: var(--avatar-size-l);
406
- height: var(--avatar-size-l);
407
- border: var(--hairline) solid var(--color-grey-scale-200);
408
- }
409
-
410
- .avatar.size-m {
411
- width: var(--avatar-size-m);
412
- height: var(--avatar-size-m);
413
- border: var(--hairline) solid var(--color-grey-scale-200);
414
- }
415
-
416
- .avatar.size-s {
417
- width: var(--avatar-size-s);
418
- height: var(--avatar-size-s);
419
- border: var(--hairline) solid var(--color-grey-scale-200);
420
- }
859
+ /* 액세서리 자리(--asset-accessory-*)를 채운다 */
421
860
 
422
861
  .avatar-badge {
423
- position: absolute;
424
- right: 0;
425
- bottom: 0;
426
862
  display: flex;
427
863
  align-items: center;
428
864
  justify-content: center;
429
865
  gap: var(--spacing-4);
430
- border-radius: var(--radius-full);
431
- 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);
432
870
  }
433
871
 
434
- .avatar-badge.size-xl {
435
- width: var(--avatar-badge-size-xl);
436
- height: var(--avatar-badge-size-xl);
437
- }
438
-
439
- .avatar-badge.size-l {
440
- width: var(--avatar-badge-size-l);
441
- height: var(--avatar-badge-size-l);
442
- }
443
-
444
- .avatar-badge.size-m {
445
- width: var(--avatar-badge-size-m);
446
- height: var(--avatar-badge-size-m);
447
- }
448
-
449
- .avatar-badge.size-s {
450
- width: var(--avatar-badge-size-s);
451
- height: var(--avatar-badge-size-s);
452
- }
453
-
454
872
  .base-badge {
455
873
  position: relative;
456
874
  display: flex;
457
875
  align-items: center;
458
876
  gap: var(--spacing-4);
459
- border-radius: var(--radius-full);
877
+ border-radius: var(--radius-pill);
460
878
  }
461
879
 
462
880
  .base-badge.size-xl {
@@ -513,7 +931,10 @@
513
931
  * *
514
932
  ***************************************************************************************************/
515
933
 
516
- .option {
934
+ /* option·icon-text 는 흔한 이름이라 뱃지 안으로 묶는다. 묶지 않으면 Radio 의 li.option 에 테두리가 샌다.
935
+ :where 라 우선순위는 그대로다 */
936
+
937
+ :where(.base-badge).option {
517
938
  display: flex;
518
939
  align-items: center;
519
940
  justify-content: center;
@@ -532,7 +953,7 @@
532
953
  * *
533
954
  ***************************************************************************************************/
534
955
 
535
- .icon-text {
956
+ :where(.base-badge).icon-text {
536
957
  display: flex;
537
958
  align-items: center;
538
959
  justify-content: center;
@@ -551,7 +972,7 @@
551
972
  * *
552
973
  ***************************************************************************************************/
553
974
 
554
- .icon-text-option {
975
+ :where(.base-badge).icon-text-option {
555
976
  display: flex;
556
977
  align-items: center;
557
978
  justify-content: space-between;
@@ -559,7 +980,7 @@
559
980
  padding: 0 var(--spacing-20);
560
981
  }
561
982
 
562
- .icon-text-option > span {
983
+ .icon-text-option:where(.base-badge) > span {
563
984
  display: flex;
564
985
  align-items: center;
565
986
  gap: var(--spacing-4);
@@ -571,44 +992,44 @@
571
992
  * *
572
993
  ***************************************************************************************************/
573
994
 
574
- .variant-neutral:is(.option,.icon-text,.icon-text-option) {
575
- color: var(--color-black);
576
- 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);
577
998
  border-color: transparent;
578
999
  }
579
1000
 
580
- .variant-primary:is(.option,.icon-text,.icon-text-option) {
581
- color: var(--color-purple-900);
582
- 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);
583
1004
  border-color: transparent;
584
1005
  }
585
1006
 
586
- .variant-danger:is(.option,.icon-text,.icon-text-option) {
587
- color: var(--color-accent-red-700);
588
- 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);
589
1010
  border-color: transparent;
590
1011
  }
591
1012
 
592
1013
  /* Toast 의 success·warning 과 같은 계열. 글자는 800 단계라 50 바탕에서 대비 6.8:1 */
593
1014
 
594
- .variant-success:is(.option,.icon-text,.icon-text-option) {
595
- color: var(--color-accent-green-800);
596
- 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);
597
1018
  border-color: transparent;
598
1019
  }
599
1020
 
600
- .variant-warning:is(.option,.icon-text,.icon-text-option) {
601
- color: var(--color-accent-orange-800);
602
- 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);
603
1024
  border-color: transparent;
604
1025
  }
605
1026
 
606
1027
  /* icon-text-option 은 테두리가 없는 모양이라 두께·스타일까지 여기서 준다. */
607
1028
 
608
- .variant-outlined:is(.option,.icon-text,.icon-text-option) {
609
- color: var(--color-black);
610
- background-color: var(--color-white);
611
- 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);
612
1033
  }
613
1034
 
614
1035
  /* 스크롤하는 조상의 맨 아래에 붙는다. 모션은 없다 — 주 행동·입력을 담아 스크롤로 숨기지 않는다 */
@@ -636,8 +1057,8 @@
636
1057
  padding: var(--spacing-12) var(--spacing-16);
637
1058
  /* 기기 홈 막대만큼 아래를 더 비운다. env() 의 대체값 0 은 단위가 있어야 calc 가 성립한다 */
638
1059
  padding-bottom: calc(var(--spacing-12) + env(safe-area-inset-bottom, 0px)); /* raw-px */
639
- border-top: var(--hairline) solid var(--color-grey-scale-200);
640
- background-color: var(--color-white);
1060
+ border-top: var(--hairline) solid var(--border-subtle);
1061
+ background-color: var(--surface-base);
641
1062
  }
642
1063
 
643
1064
  .base-bottom-nav:where(.root) {
@@ -652,7 +1073,7 @@
652
1073
  height: var(--bottom-nav-height);
653
1074
  padding: var(--bottom-nav-padding);
654
1075
  box-sizing: border-box;
655
- border-radius: var(--radius-full);
1076
+ border-radius: var(--radius-pill);
656
1077
  isolation: isolate;
657
1078
  }
658
1079
 
@@ -690,73 +1111,73 @@
690
1111
  background:
691
1112
  linear-gradient(
692
1113
  180deg,
693
- color-mix(in srgb, var(--color-grey-scale-50) 55%, transparent),
1114
+ color-mix(in srgb, var(--surface-subtle) 55%, transparent),
694
1115
  transparent 55%
695
1116
  ),
696
- color-mix(in srgb, var(--color-grey-scale-50) 62%, transparent);
1117
+ color-mix(in srgb, var(--surface-subtle) 62%, transparent);
697
1118
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
698
1119
  box-shadow:
699
- inset 0 var(--hairline) 0 color-mix(in srgb, var(--color-grey-scale-50) 75%, transparent),
700
- 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),
701
1122
  var(--shadow-floating);
702
1123
 
703
1124
  /* 흐림을 못 하는 브라우저, 투명도 줄이기 설정에서는 거의 불투명하게 */
1125
+
1126
+ /* hideOnScroll: 아래 여백까지 더해 화면 밖으로 내린다. 키보드로 탭에 들어오면 다시 올린다 */
1127
+ transition: transform var(--motion-dismiss-on-scroll-duration)
1128
+ var(--motion-dismiss-on-scroll-ease);
704
1129
  }
705
1130
 
706
1131
  @supports not ((backdrop-filter: none) or (-webkit-backdrop-filter: none)) {
707
1132
 
708
1133
  .bottom-nav {
709
- background: color-mix(in srgb, var(--color-grey-scale-50) 96%, transparent);
1134
+ background: color-mix(in srgb, var(--surface-subtle) 96%, transparent);
710
1135
  }
711
1136
  }
712
1137
 
713
1138
  @media (prefers-reduced-transparency: reduce) {
714
1139
 
715
1140
  .bottom-nav {
716
- background: color-mix(in srgb, var(--color-grey-scale-50) 98%, transparent);
1141
+ background: color-mix(in srgb, var(--surface-subtle) 98%, transparent);
717
1142
  }
718
1143
  }
719
1144
 
720
- .bottom-nav-indicator {
721
- background: color-mix(in srgb, var(--color-purple-900) 10%, transparent);
722
- box-shadow: inset 0 var(--hairline) 0
723
- color-mix(in srgb, var(--color-grey-scale-50) 50%, transparent);
724
- transition: transform var(--motion-slow) var(--motion-spring);
725
- }
726
-
727
- @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
+ }
728
1148
 
729
1149
  .bottom-nav-indicator {
730
- 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);
731
1154
  }
732
- }
733
1155
 
734
1156
  .bottom-nav-item {
735
- color: var(--color-grey-scale-600);
1157
+ color: var(--text-tertiary);
736
1158
  font-size: var(--font-size-xsm);
737
1159
  font-weight: var(--font-weight-medium);
738
1160
  -webkit-tap-highlight-color: transparent;
739
- 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);
740
1165
  }
741
1166
 
742
1167
  .bottom-nav-item[aria-current='page'] {
743
- color: var(--color-purple-900);
1168
+ color: var(--text-brand);
744
1169
  font-weight: var(--font-weight-bold);
745
1170
  }
746
1171
 
747
- .bottom-nav-item:focus-visible {
748
- outline: var(--hairline) solid var(--color-purple-600);
749
- outline-offset: calc(-1 * var(--spacing-2));
750
- }
1172
+ /* 캡슐 안이라 링을 안쪽으로 넣는다. 색·두께는 전역(styles/focus.css) */
751
1173
 
752
- .bottom-nav-item:active .bottom-nav-icon {
753
- transform: scale(0.88);
1174
+ .bottom-nav-item:focus-visible {
1175
+ outline-offset: calc(-1 * var(--focus-ring-offset));
754
1176
  }
755
1177
 
756
1178
  .bottom-nav-icon {
757
1179
  position: relative;
758
1180
  display: flex;
759
- transition: transform var(--motion-fast) var(--motion-spring);
760
1181
  }
761
1182
 
762
1183
  .bottom-nav-badge {
@@ -766,9 +1187,9 @@
766
1187
  min-width: var(--bottom-nav-badge-dot);
767
1188
  height: var(--bottom-nav-badge-dot);
768
1189
  box-sizing: border-box;
769
- border-radius: var(--radius-full);
770
- background: var(--color-accent-red-500);
771
- 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);
772
1193
  }
773
1194
 
774
1195
  .bottom-nav-badge[data-count] {
@@ -780,7 +1201,7 @@
780
1201
  display: flex;
781
1202
  align-items: center;
782
1203
  justify-content: center;
783
- color: var(--color-grey-scale-50);
1204
+ color: var(--text-on-brand-subtle);
784
1205
  font-size: var(--font-size-xsm);
785
1206
  font-weight: var(--font-weight-bold);
786
1207
  font-variant-numeric: tabular-nums;
@@ -820,7 +1241,7 @@
820
1241
 
821
1242
  .breadcrumb {
822
1243
  font-weight: var(--font-weight-medium);
823
- color: var(--color-grey-scale-500);
1244
+ color: var(--text-muted);
824
1245
 
825
1246
  /* 글자와 화살표가 같이 커진다. 화살표 치수는 size.css 의 --breadcrumb-chevron-* */
826
1247
  }
@@ -856,31 +1277,43 @@
856
1277
  }
857
1278
 
858
1279
  .breadcrumb-list {
859
- 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);
860
1294
  }
861
1295
 
862
1296
  .breadcrumb-link {
863
- border-radius: var(--radius-4);
864
- 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);
865
1302
  }
866
1303
 
867
1304
  .breadcrumb-link:hover {
868
- color: var(--color-grey-scale-800);
869
- text-decoration: underline;
870
- }
871
-
872
- .breadcrumb-link:focus-visible {
873
- outline: var(--hairline) solid var(--color-purple-900);
874
- outline-offset: var(--spacing-2);
1305
+ color: var(--text-body);
1306
+ background-color: var(--surface-muted);
875
1307
  }
876
1308
 
877
1309
  .breadcrumb-page {
878
- color: var(--color-grey-scale-900);
1310
+ color: var(--text-body);
1311
+ background-color: var(--surface-muted);
879
1312
  font-weight: var(--font-weight-semibold);
880
1313
  }
881
1314
 
882
1315
  .breadcrumb-separator {
883
- color: var(--color-grey-scale-400);
1316
+ color: var(--text-disabled);
884
1317
  }
885
1318
 
886
1319
  .breadcrumb-chevron {
@@ -894,14 +1327,19 @@
894
1327
  justify-content: center;
895
1328
  align-items: center;
896
1329
  gap: var(--spacing-10);
897
- border-radius: var(--radius-6);
1330
+ border-radius: var(--radius-control);
898
1331
  border: none;
899
1332
  cursor: pointer;
900
1333
  }
901
1334
 
902
- .base-button:focus-visible {
903
- outline: none;
904
- 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;
905
1343
  }
906
1344
 
907
1345
  /***************************************************************************************************
@@ -910,100 +1348,194 @@
910
1348
  * *
911
1349
  ***************************************************************************************************/
912
1350
 
1351
+ /* 모든 조합이 같은 두께의 테두리 칸을 갖는다. 선이 없는 조합은 테두리 토큰이 바탕과 같은 색이라 크기가 흔들리지 않는다.
1352
+ 색은 color × variant 조합 선택자 하나가 --button-{color}-{variant}-* 토큰으로 정한다 (ADR 0011) */
1353
+
913
1354
  .cta-button {
914
- border-radius: var(--radius-6);
1355
+ border-radius: var(--radius-control);
1356
+ border: var(--hairline) solid transparent;
915
1357
  /* 좌우 여백은 size 가 정한다. 글자 길이와 상관없이 양쪽에 같은 여백이 남는다 */
916
1358
  }
917
1359
 
918
- .cta-button.variant-primary {
919
- background-color: var(--color-purple-900);
920
- border: var(--hairline) solid var(--color-purple-900);
921
- 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);
922
1364
  }
923
1365
 
924
- .cta-button.variant-primary:not(:disabled):hover {
925
- background-color: var(--color-purple-900);
926
- border-color: var(--color-purple-900);
927
- 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);
928
1370
  }
929
1371
 
930
- .cta-button.variant-secondary {
931
- background-color: var(--color-purple-50);
932
- 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);
933
1376
  }
934
1377
 
935
- .cta-button.variant-secondary:not(:disabled):hover {
936
- background-color: var(--color-purple-100);
937
- border-color: var(--color-purple-100);
938
- 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);
939
1382
  }
940
1383
 
941
- .cta-button.variant-ghost {
942
- background-color: var(--color-white);
943
- border: var(--hairline) solid var(--color-grey-scale-300);
944
- 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);
945
1388
  }
946
1389
 
947
- .cta-button.variant-ghost:not(:disabled):hover {
948
- background-color: var(--color-white);
949
- border-color: var(--color-purple-900);
950
- 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);
951
1394
  }
952
1395
 
953
- .cta-button.variant-neutral {
954
- background-color: var(--color-white);
955
- 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);
956
1400
  }
957
1401
 
958
- .cta-button.variant-neutral:not(:disabled):hover {
959
- background-color: var(--color-grey-scale-100);
960
- border: var(--hairline) solid var(--color-grey-scale-100);
961
- color: var(--color-purple-900);
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);
962
1406
  }
963
1407
 
964
- .cta-button.variant-confirm {
965
- background-color: var(--color-accent-red-500);
966
- border: var(--hairline) solid var(--color-accent-red-500);
967
- color: var(--color-white);
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);
968
1412
  }
969
1413
 
970
- .cta-button.variant-confirm:not(:disabled):hover {
971
- background-color: var(--color-accent-red-700);
972
- border-color: var(--color-accent-red-700);
973
- color: var(--color-white);
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);
1418
+ }
1419
+
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);
1424
+ }
1425
+
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);
1454
+ }
1455
+
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);
1460
+ }
1461
+
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);
974
1478
  }
975
1479
 
976
- .cta-button.variant-outlined {
977
- background-color: var(--color-white);
978
- border: var(--hairline) solid var(--color-accent-red-700);
979
- color: var(--color-accent-red-700);
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);
980
1484
  }
981
1485
 
982
- /* 소셜 로그인. Google·Apple 가이드의 흰 바탕·검정 글자 — 공급자 로고는 쓰는 쪽이 leftIcon 으로 (ADR 0006) */
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
+ }
983
1491
 
984
- .cta-button.variant-social {
985
- background-color: var(--color-white);
986
- border: var(--hairline) solid var(--color-grey-scale-300);
987
- color: var(--color-black);
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);
988
1496
  }
989
1497
 
990
- .cta-button.variant-social:not(:disabled):hover {
991
- background-color: var(--color-grey-scale-100);
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);
992
1502
  }
993
1503
 
994
1504
  /* callout prop: 오른쪽 위 모서리에 반쯤 걸친 말풍선 (ADR 0007). 글자 흐름 밖이라 글자가 움직이지 않는다.
995
- .base-callout 의 position: relative 를 순서와 상관없이 이기도록 .cta-button > 로 한 단계 높인다 */
1505
+ .base-callout 의 position: relative 를 순서와 상관없이 이기도록 .cta-button 으로 한 단계 높인다.
1506
+ z-index 는 눌림 딤(::after)이 말풍선 아래쪽을 덮지 않게 한다 */
996
1507
 
997
1508
  .cta-button.with-callout {
998
1509
  position: relative;
999
1510
  }
1000
1511
 
1001
- .cta-button > .cta-button-callout {
1512
+ .cta-button .cta-button-callout {
1002
1513
  position: absolute;
1514
+ z-index: var(--z-raised);
1003
1515
  top: calc(var(--spacing-12) * -1);
1004
1516
  right: var(--spacing-14);
1005
1517
  }
1006
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
+
1007
1539
  .cta-button.size-xl {
1008
1540
  height: var(--control-height-xl);
1009
1541
  padding: 0 var(--spacing-24);
@@ -1049,44 +1581,47 @@
1049
1581
  font-weight: var(--font-weight-semibold);
1050
1582
  }
1051
1583
 
1052
- .cta-button:disabled {
1053
- background-color: var(--color-grey-scale-200);
1054
- 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);
1055
1590
  cursor: not-allowed;
1056
- border: none;
1057
1591
  }
1058
1592
 
1059
1593
  /* 대상에 붙어 늘 떠 있는 작은 말풍선 (ADR 0007).
1060
- 연보라(primary 뱃지·secondary 버튼과 같은 색)는 흰 면 위에서 묻혀서 purple-300 테두리로 윤곽을 잡는다. */
1594
+ 짙은 바탕에 흰 글자의 알약 모양. 테두리 없이 색 대비로만 윤곽을 잡아 어떤 면 위에서도 묻히지 않는다. */
1061
1595
 
1062
1596
  .base-callout {
1063
1597
  position: relative;
1064
1598
  display: inline-flex;
1065
1599
  align-items: center;
1066
1600
  height: var(--label-height-xs);
1067
- padding: 0 var(--spacing-10);
1068
- border: var(--hairline) solid var(--color-purple-300);
1069
- border-radius: var(--radius-6);
1601
+ padding: 0 var(--spacing-12);
1602
+ border-radius: var(--radius-pill);
1070
1603
 
1071
- background-color: var(--color-purple-50);
1072
- color: var(--color-purple-900);
1604
+ background-color: var(--surface-inverse);
1605
+ color: var(--text-inverse);
1073
1606
  box-shadow: var(--shadow-popover);
1074
1607
 
1075
1608
  font-size: var(--font-size-xsm);
1076
1609
  line-height: var(--line-height-xsm);
1077
- font-weight: var(--font-weight-bold);
1610
+ font-weight: var(--font-weight-semibold);
1078
1611
  white-space: nowrap;
1079
1612
 
1080
1613
  /* 나타날 때 꼬리에서 튀어나온 뒤 세 번 둥실 움직이고 멈춘다 (ADR 0007). 계속 움직이면 거슬린다.
1081
- 둥실 지연 = 팝 지연 + 팝 시간. 팝 쪽을 바꾸면 둥실 지연도 같이 바꾼다 */
1614
+ 둥실 지연 = 팝 지연 + 팝 시간. 팝 쪽을 바꾸면 둥실 지연도 같이 바꾼다.
1615
+ attention 에 둥실 주기 토큰이 따로 없어 shine 한 번의 길이를 둥실 한 번의 주기로 쓴다 */
1082
1616
  --callout-origin: var(--spacing-16) 100%;
1083
1617
  --motion-slide-offset: translateY(var(--spacing-4));
1084
1618
 
1085
1619
  transform-origin: var(--callout-origin);
1086
1620
  animation:
1087
- motion-enter-pop var(--motion-slow) var(--motion-spring) var(--motion-fast) both,
1088
- motion-attention-float calc(var(--motion-base) * 8) var(--motion-ease)
1089
- 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;
1090
1625
  }
1091
1626
 
1092
1627
  .base-callout.tail-bottom-end {
@@ -1102,28 +1637,23 @@
1102
1637
  --callout-origin: calc(100% - var(--spacing-16)) 0;
1103
1638
  }
1104
1639
 
1105
- /* 꼬리: --spacing-8 정사각형을 45도 돌린다. 한 변의 절반에 테두리 두께만큼 더 밖으로 내어 몸통 테두리를 덮는다 */
1640
+ /* 꼬리: --spacing-6 정사각형을 45도 돌려 한 변의 절반만큼 몸통 밖으로 낸다. 몸통과 같은 색이라 이음새가 없다 */
1106
1641
 
1107
1642
  .base-callout::after {
1108
1643
  content: '';
1109
1644
  position: absolute;
1110
- width: var(--spacing-8);
1111
- height: var(--spacing-8);
1112
- border: 0 solid var(--color-purple-300);
1645
+ width: var(--spacing-6);
1646
+ height: var(--spacing-6);
1113
1647
  background-color: inherit;
1114
1648
  transform: rotate(45deg);
1115
1649
  }
1116
1650
 
1117
1651
  .base-callout:is(.tail-bottom-start,.tail-bottom-end)::after {
1118
- bottom: calc((var(--spacing-4) + var(--hairline)) * -1);
1119
- border-right-width: var(--hairline);
1120
- border-bottom-width: var(--hairline);
1652
+ bottom: calc(var(--spacing-6) / -2);
1121
1653
  }
1122
1654
 
1123
1655
  .base-callout:is(.tail-top-start,.tail-top-end)::after {
1124
- top: calc((var(--spacing-4) + var(--hairline)) * -1);
1125
- border-left-width: var(--hairline);
1126
- border-top-width: var(--hairline);
1656
+ top: calc(var(--spacing-6) / -2);
1127
1657
  }
1128
1658
 
1129
1659
  .base-callout:is(.tail-bottom-start,.tail-top-start)::after {
@@ -1134,12 +1664,6 @@
1134
1664
  right: var(--spacing-12);
1135
1665
  }
1136
1666
 
1137
- @media (prefers-reduced-motion: reduce) {
1138
- .base-callout {
1139
- animation: none;
1140
- }
1141
- }
1142
-
1143
1667
  .base-card {
1144
1668
  display: flex;
1145
1669
  flex-direction: column;
@@ -1154,17 +1678,17 @@
1154
1678
  .card {
1155
1679
  gap: var(--spacing-12);
1156
1680
  padding: var(--spacing-16);
1157
- border: var(--hairline) solid var(--color-grey-scale-200);
1158
- border-radius: var(--radius-16);
1159
- 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);
1160
1684
  }
1161
1685
 
1162
1686
  .card.variant-tinted {
1163
- border-color: var(--color-purple-100);
1164
- background-color: var(--color-purple-50);
1687
+ border-color: transparent;
1688
+ background-color: var(--surface-brand-subtle);
1165
1689
  }
1166
1690
 
1167
- /* 누르는 카드(링크·버튼)만 눌림 모션을 받는다. 보기만 하는 카드는 움직이지 않는다 */
1691
+ /* 누르는 카드(링크·버튼). 눌림은 card.tsx 가 다는 공용 .motion-press 가, 포커스 링은 전역 규칙이 그린다 */
1168
1692
 
1169
1693
  .card:is(a[href],button) {
1170
1694
  width: 100%;
@@ -1172,22 +1696,12 @@
1172
1696
  text-align: start;
1173
1697
  text-decoration: none;
1174
1698
  cursor: pointer;
1175
- transition: transform var(--motion-press-duration) var(--motion-press-ease);
1176
1699
  }
1177
1700
 
1178
- .card:is(a[href],button):active {
1179
- transform: scale(var(--motion-press-scale));
1180
- }
1181
-
1182
- .card:is(a[href],button):focus-visible {
1183
- outline: var(--hairline) solid var(--color-purple-600);
1184
- outline-offset: var(--spacing-2);
1185
- }
1186
-
1187
1701
  .base-check-box.label {
1188
1702
  font-size: var(--font-size-sm);
1189
1703
  font-weight: var(--font-weight-medium);
1190
- color: var(--color-black);
1704
+ color: var(--text-primary);
1191
1705
  }
1192
1706
 
1193
1707
  /***************************************************************************************************
@@ -1209,8 +1723,10 @@
1209
1723
  display: flex;
1210
1724
  align-items: center;
1211
1725
  justify-content: center;
1212
- border-radius: var(--radius-4);
1213
- 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;
1214
1730
  }
1215
1731
 
1216
1732
  .check-box-indicator {
@@ -1225,13 +1741,68 @@
1225
1741
  display: flex;
1226
1742
  align-items: center;
1227
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);
1228
1753
  }
1229
1754
 
1755
+ .check-box-indicator[data-state='checked']:not(.wrapper) {
1756
+ opacity: 1;
1757
+ }
1758
+
1230
1759
  .check-box-indicator:not(.wrapper) > svg {
1231
1760
  display: block;
1232
1761
  flex-shrink: 0;
1762
+
1763
+ /* 아이콘 파일의 stroke 는 흰색 고정이다. variant 가 색을 정하게 currentColor 로 덮는다 */
1233
1764
  }
1234
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;
1796
+ }
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
+
1235
1806
  .check-box-indicator.size-l {
1236
1807
  width: var(--checkbox-size-l);
1237
1808
  height: var(--checkbox-size-l);
@@ -1247,18 +1818,10 @@
1247
1818
  height: var(--checkbox-size-s);
1248
1819
  }
1249
1820
 
1250
- .check-box-indicator[data-state='unchecked'] {
1251
- background-color: var(--color-white);
1252
- }
1253
-
1254
- .check-box-indicator[data-state='checked'] {
1255
- background-color: var(--color-purple-900);
1256
- }
1257
-
1258
1821
  .check-box-indicator[data-disabled='true'] {
1259
1822
  border: none;
1260
- border-radius: var(--radius-4);
1261
- background-color: var(--color-grey-scale-300);
1823
+ border-radius: var(--radius-mark);
1824
+ background-color: var(--surface-control);
1262
1825
  }
1263
1826
 
1264
1827
  .base-chip-group:where(.root) {
@@ -1282,10 +1845,10 @@
1282
1845
  gap: var(--spacing-6);
1283
1846
  cursor: pointer;
1284
1847
 
1285
- /* 36 높이를 터치 44 로 넓힌다 */
1848
+ /* 36 높이를 터치 44 로 넓힌다. ::after 는 .motion-press-dim 의 딤 레이어가 쓴다 */
1286
1849
  }
1287
1850
 
1288
- .base-chip-group:where(.chip)::after {
1851
+ .base-chip-group:where(.chip)::before {
1289
1852
  content: '';
1290
1853
  position: absolute;
1291
1854
  inset: calc(-1 * var(--spacing-4)) 0;
@@ -1301,36 +1864,69 @@
1301
1864
  * *
1302
1865
  ***************************************************************************************************/
1303
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);
1902
+ }
1903
+
1904
+ /* filled(기본): 페이지 바탕 위. 연회색 바탕과 선, 고르면 보라 채움 */
1905
+
1304
1906
  .chip-group-chip {
1305
- height: var(--control-height-s);
1306
- padding: 0 var(--spacing-14);
1307
- border: var(--hairline) solid var(--color-grey-scale-300);
1308
- border-radius: var(--radius-full);
1309
- background: var(--color-grey-scale-50);
1310
- color: var(--color-grey-scale-600);
1311
- 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);
1312
1911
  font-weight: var(--font-weight-medium);
1912
+ /* .motion-press 의 transform 전환을 같은 선언에 다시 적는다. 이 규칙이 뒤에 와서 그것을 덮기 때문이다 */
1313
1913
  transition:
1314
- background-color var(--motion-fast) var(--motion-ease),
1315
- color var(--motion-fast) var(--motion-ease),
1316
- 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);
1317
1918
  }
1318
1919
 
1319
1920
  .chip-group-chip[data-state='on'] {
1320
- border-color: var(--color-purple-900);
1321
- background: var(--color-purple-900);
1322
- color: var(--color-grey-scale-50);
1921
+ border-color: var(--border-accent);
1922
+ background: var(--surface-brand);
1923
+ color: var(--text-on-brand-subtle);
1323
1924
  font-weight: var(--font-weight-semibold);
1324
1925
  }
1325
1926
 
1326
1927
  .chip-group-chip[data-disabled] {
1327
- border-color: var(--color-grey-scale-200);
1328
- color: var(--color-grey-scale-300);
1329
- }
1330
-
1331
- .chip-group-chip:focus-visible {
1332
- outline: var(--hairline) solid var(--color-purple-600);
1333
- outline-offset: var(--spacing-2);
1928
+ border-color: var(--border-disabled);
1929
+ color: var(--text-disabled);
1334
1930
  }
1335
1931
 
1336
1932
  .chip-group-count {
@@ -1359,6 +1955,40 @@
1359
1955
  gap: var(--spacing-4);
1360
1956
  }
1361
1957
 
1958
+ /* reset.css 없이 components.css 만 가져온 앱에서도 글머리표·들여쓰기가 생기지 않게 한다. */
1959
+
1960
+ .collapsible-menu-list {
1961
+ display: flex;
1962
+ flex-direction: column;
1963
+ gap: var(--spacing-4);
1964
+ margin: 0;
1965
+ padding: 0;
1966
+ list-style: none;
1967
+ }
1968
+
1969
+ .collapsible-menu-list > li {
1970
+ margin: 0;
1971
+ padding: 0;
1972
+ }
1973
+
1974
+ .collapsible-menu-section {
1975
+ display: flex;
1976
+ flex-direction: column;
1977
+ gap: var(--spacing-4);
1978
+ }
1979
+
1980
+ .collapsible-menu-list + .collapsible-menu-section,.collapsible-menu-section + .collapsible-menu-section {
1981
+ margin-top: var(--spacing-12);
1982
+ }
1983
+
1984
+ .collapsible-menu-section-title {
1985
+ padding: 0 var(--spacing-12);
1986
+ font-size: var(--font-size-xsm);
1987
+ line-height: var(--line-height-xsm);
1988
+ font-weight: var(--font-weight-medium);
1989
+ color: var(--collapsible-menu-section-title-color, var(--text-muted));
1990
+ }
1991
+
1362
1992
  .collapsible-menu.size-s .collapsible-menu-row {
1363
1993
  height: var(--menu-row-height-s);
1364
1994
  }
@@ -1377,29 +2007,43 @@
1377
2007
 
1378
2008
  width: 100%;
1379
2009
  padding: 0 var(--spacing-12);
1380
- /* figma 토큰에 --radius-8 없음. 디자이너 확인 전까지 숫자 유지 */
1381
- border-radius: 8px; /* raw-px */
2010
+ border-radius: var(--radius-control);
1382
2011
  cursor: pointer;
1383
2012
 
1384
2013
  font-size: var(--font-size-sm);
1385
2014
  line-height: var(--line-height-sm);
1386
2015
  font-weight: var(--font-weight-medium);
1387
- color: var(--collapsible-menu-text-color, var(--color-grey-scale-700));
2016
+ color: var(--collapsible-menu-text-color, var(--text-secondary));
1388
2017
  }
1389
2018
 
1390
2019
  .collapsible-menu-row:hover {
1391
- 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));
1392
2021
  }
1393
2022
 
1394
2023
  .collapsible-menu-row.is-active {
1395
- background-color: var(--collapsible-menu-active-bg-color, var(--color-grey-scale-100));
1396
- 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));
1397
2026
  font-weight: var(--collapsible-menu-active-font-weight, 600);
1398
2027
  }
1399
2028
 
1400
2029
  .collapsible-menu-row:disabled,.collapsible-menu-row[aria-disabled='true'] {
1401
2030
  cursor: not-allowed;
1402
- 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));
1403
2047
  }
1404
2048
 
1405
2049
  .collapsible-menu-left {
@@ -1414,24 +2058,44 @@
1414
2058
  }
1415
2059
 
1416
2060
  .collapsible-menu-chevron {
2061
+ display: inline-flex;
2062
+ flex-shrink: 0;
1417
2063
  width: var(--icon-size-s);
1418
2064
  height: var(--icon-size-s);
1419
- color: var(--color-grey-scale-500);
1420
- transition: transform var(--motion-fast) var(--motion-ease);
2065
+ color: var(--text-muted);
2066
+ transition: transform var(--motion-expand-duration) var(--motion-expand-ease);
1421
2067
  }
1422
2068
 
2069
+ .collapsible-menu-chevron svg {
2070
+ width: 100%;
2071
+ height: 100%;
2072
+ }
2073
+
1423
2074
  .base-collapsible-menu.trigger[data-state='open'] .collapsible-menu-chevron {
1424
- transform: rotate(180deg);
2075
+ transform: rotate(var(--motion-expand-rotate));
1425
2076
  }
1426
2077
 
1427
2078
  .collapsible-menu-content {
1428
- display: flex;
1429
- flex-direction: column;
1430
- gap: var(--spacing-2);
1431
- margin-top: var(--spacing-2);
1432
- margin-bottom: var(--spacing-4);
2079
+ /* 블록 그대로 둔다. display 를 주면 Radix 가 접힌 뒤 다는 hidden 이 무력해져, 남은 본문을 Radix 가 다시 재면서
2080
+ 접힘 애니메이션이 한 번 더 돈다. 위아래 여백은 padding 이라 Radix 가 재는 높이 안에 들고 함께 접힌다.
2081
+ 열린 채로 둘 때는 overflow 를 숨기지 않는다(포커스 링이 잘리지 않게). 여닫는 동안은 키프레임이 숨긴다 */
2082
+ padding: var(--spacing-2) 0 var(--spacing-4);
2083
+ --motion-content-height: var(--radix-collapsible-content-height);
1433
2084
  }
1434
2085
 
2086
+ .collapsible-menu-content[data-state='open'] {
2087
+ animation: motion-expand-open var(--motion-expand-duration) var(--motion-expand-ease);
2088
+ }
2089
+
2090
+ .collapsible-menu-content[data-state='closed'] {
2091
+ overflow: hidden;
2092
+ animation: motion-expand-close var(--motion-expand-duration) var(--motion-expand-ease) forwards;
2093
+ }
2094
+
2095
+ .collapsible-menu-content .collapsible-menu-list {
2096
+ gap: var(--spacing-2);
2097
+ }
2098
+
1435
2099
  .base-description-list {
1436
2100
  display: flex;
1437
2101
  flex-direction: column;
@@ -1455,14 +2119,14 @@
1455
2119
  }
1456
2120
 
1457
2121
  .description-list-item > dt {
1458
- color: var(--color-grey-scale-500);
2122
+ color: var(--text-muted);
1459
2123
  font-size: var(--font-size-sm);
1460
2124
  line-height: var(--line-height-sm);
1461
2125
  }
1462
2126
 
1463
2127
  .description-list-item > dd {
1464
2128
  margin: 0;
1465
- color: var(--color-grey-scale-900);
2129
+ color: var(--text-body);
1466
2130
  font-size: var(--font-size-sm);
1467
2131
  line-height: var(--line-height-sm);
1468
2132
  font-weight: var(--font-weight-medium);
@@ -1475,11 +2139,11 @@
1475
2139
  align-items: baseline;
1476
2140
  margin-top: var(--spacing-4);
1477
2141
  padding-top: var(--spacing-12);
1478
- border-top: var(--hairline) solid var(--color-grey-scale-200);
2142
+ border-top: var(--hairline) solid var(--border-subtle);
1479
2143
  }
1480
2144
 
1481
2145
  .description-list-item.total > dt {
1482
- color: var(--color-grey-scale-900);
2146
+ color: var(--text-body);
1483
2147
  font-weight: var(--font-weight-semibold);
1484
2148
  }
1485
2149
 
@@ -1497,16 +2161,16 @@
1497
2161
  left: 0;
1498
2162
  right: 0;
1499
2163
  bottom: 0;
1500
- background-color: rgba(0, 0, 0, 0.5);
2164
+ background-color: color-mix(in srgb, var(--surface-overlay) 50%, transparent);
1501
2165
  z-index: var(--z-overlay);
1502
2166
  }
1503
2167
 
1504
2168
  .base-drawer[data-state='open']:where(.overlay) {
1505
- animation: motion-enter-fade var(--motion-base) var(--motion-ease);
2169
+ animation: motion-enter-fade var(--motion-enter-duration) var(--motion-enter-ease);
1506
2170
  }
1507
2171
 
1508
2172
  .base-drawer[data-state='closed']:where(.overlay) {
1509
- animation: motion-exit-fade var(--motion-base) var(--motion-ease);
2173
+ animation: motion-exit-fade var(--motion-exit-duration) var(--motion-exit-ease) forwards;
1510
2174
  }
1511
2175
 
1512
2176
  .base-drawer:where(.content) {
@@ -1514,21 +2178,21 @@
1514
2178
  display: flex;
1515
2179
  flex-direction: column;
1516
2180
  z-index: var(--z-modal);
1517
- background-color: var(--color-white);
2181
+ background-color: var(--surface-base);
1518
2182
  }
1519
2183
 
1520
2184
  .base-drawer:where(.title) {
1521
2185
  margin: 0;
1522
2186
  font-size: var(--font-size-lg);
1523
2187
  font-weight: var(--font-weight-bold);
1524
- color: var(--color-black);
2188
+ color: var(--text-primary);
1525
2189
  }
1526
2190
 
1527
2191
  .base-drawer:where(.description) {
1528
2192
  margin: 0;
1529
2193
  font-size: var(--font-size-sm);
1530
2194
  font-weight: var(--font-weight-medium);
1531
- color: var(--color-grey-scale-600);
2195
+ color: var(--text-tertiary);
1532
2196
  }
1533
2197
 
1534
2198
  .base-drawer:where(.close) {
@@ -1594,17 +2258,35 @@
1594
2258
  bottom: 0;
1595
2259
  height: var(--drawer-height);
1596
2260
  max-height: 100%;
1597
- border-top-left-radius: var(--radius-16);
1598
- border-top-right-radius: var(--radius-16);
2261
+ border-top-left-radius: var(--radius-surface);
2262
+ border-top-right-radius: var(--radius-surface);
1599
2263
  --motion-slide-offset: translateY(100%);
1600
2264
  }
1601
2265
 
1602
2266
  .drawer[data-state='open'] {
1603
- 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);
1604
2273
  }
1605
2274
 
1606
2275
  .drawer[data-state='closed'] {
1607
- 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);
1608
2290
  }
1609
2291
 
1610
2292
  .drawer-header {
@@ -1635,7 +2317,7 @@
1635
2317
  /* placeholder 로 넘기는 span 의 색. base-drop-down 이 기본 placeholder 에 붙인다. */
1636
2318
 
1637
2319
  .nuri-placeholder {
1638
- color: var(--color-grey-scale-400);
2320
+ color: var(--text-placeholder);
1639
2321
  }
1640
2322
 
1641
2323
  .base-drop-down.trigger {
@@ -1697,39 +2379,40 @@
1697
2379
 
1698
2380
  .drop-down-single-trigger {
1699
2381
 
1700
- border: var(--hairline) solid var(--color-grey-scale-300);
1701
- border-radius: var(--radius-4);
2382
+ border: var(--hairline) solid var(--border-default);
2383
+ border-radius: var(--radius-control);
1702
2384
  width: -moz-fit-content;
1703
2385
  width: fit-content;
1704
- background-color: var(--color-white);
2386
+ background-color: var(--surface-base);
1705
2387
  }
1706
2388
 
1707
2389
  .drop-down-single-trigger:focus {
1708
- border-color: var(--color-purple-900);
2390
+ border-color: var(--border-accent);
1709
2391
  }
1710
2392
 
1711
2393
  .drop-down-single-trigger[data-placeholder] .drop-down-single-icon {
1712
- color: var(--color-grey-scale-400);
2394
+ color: var(--text-placeholder);
1713
2395
  }
1714
2396
 
1715
2397
  .drop-down-single-trigger[data-placeholder] svg {
1716
- color: var(--color-grey-scale-400);
2398
+ color: var(--text-placeholder);
1717
2399
  }
1718
2400
 
1719
2401
  .drop-down-single-trigger:not([data-placeholder]) .drop-down-single-icon {
1720
- color: var(--color-black);
2402
+ color: var(--text-primary);
1721
2403
  }
1722
2404
 
1723
2405
  .drop-down-single-trigger:not([data-placeholder]) svg {
1724
- color: var(--color-black);
2406
+ color: var(--text-primary);
1725
2407
  }
1726
2408
 
2409
+ .drop-down-single-trigger .rotate {
2410
+ transition: transform var(--motion-expand-duration) var(--motion-expand-ease);
2411
+ }
2412
+
1727
2413
  .drop-down-single-trigger[data-state='open'] .rotate {
1728
- transform: rotate(180deg);
1729
- transform-origin: 50% 50%;
1730
- transition: transform var(--motion-fast) var(--motion-ease);
1731
- will-change: transform;
1732
- }
2414
+ transform: rotate(var(--motion-expand-rotate));
2415
+ }
1733
2416
 
1734
2417
  .drop-down-single-label {
1735
2418
  gap: var(--spacing-10);
@@ -1744,11 +2427,11 @@
1744
2427
  }
1745
2428
 
1746
2429
  .drop-down-single-value ::-moz-placeholder {
1747
- color: var(--color-grey-scale-400);
2430
+ color: var(--text-placeholder);
1748
2431
  }
1749
2432
 
1750
2433
  .drop-down-single-value ::placeholder {
1751
- color: var(--color-grey-scale-400);
2434
+ color: var(--text-placeholder);
1752
2435
  }
1753
2436
 
1754
2437
  .drop-down-single-content {
@@ -1756,13 +2439,14 @@
1756
2439
  min-width: var(--radix-select-trigger-width);
1757
2440
  overflow: hidden;
1758
2441
  box-shadow: var(--shadow-popover);
1759
- border-radius: var(--radius-6);
2442
+ border-radius: var(--radius-control);
2443
+
2444
+ /* 펼침(unfold)은 공용 .motion-unfold 클래스가 그린다. Radix Select 는 닫히면 목록을 바로 지워 퇴장 애니메이션을 둘 수 없다 */
1760
2445
  }
1761
2446
 
1762
2447
  .drop-down-single-item {
1763
2448
  padding: var(--spacing-14);
1764
- background-color: var(--color-white);
1765
- outline: none;
2449
+ background-color: var(--surface-base);
1766
2450
  height: var(--drop-down-item-height);
1767
2451
 
1768
2452
  font-size: var(--font-size-sm);
@@ -1773,13 +2457,25 @@
1773
2457
  }
1774
2458
 
1775
2459
  .drop-down-single-item[data-highlighted] {
1776
- 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 {
1777
2473
  outline: none;
1778
2474
  }
1779
2475
 
1780
2476
  .drop-down-single-item:disabled {
1781
- background-color: var(--color-grey-scale-100);
1782
- color: var(--color-grey-scale-400);
2477
+ background-color: var(--surface-muted);
2478
+ color: var(--text-placeholder);
1783
2479
  cursor: not-allowed;
1784
2480
  }
1785
2481
 
@@ -1929,6 +2625,90 @@
1929
2625
  white-space: pre-wrap;
1930
2626
  }
1931
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
+
1932
2712
  .base-text.color-black[class*='color-'] {
1933
2713
  color: var(--color-black);
1934
2714
  }
@@ -2360,8 +3140,8 @@
2360
3140
  }
2361
3141
 
2362
3142
  .empty-state.variant-neutral .empty-state-icon {
2363
- background-color: var(--color-grey-scale-100);
2364
- color: var(--color-grey-scale-600);
3143
+ background-color: var(--surface-muted);
3144
+ color: var(--text-tertiary);
2365
3145
  }
2366
3146
 
2367
3147
  .empty-state-icon {
@@ -2371,23 +3151,23 @@
2371
3151
  width: var(--empty-state-icon-box);
2372
3152
  height: var(--empty-state-icon-box);
2373
3153
  margin-bottom: var(--spacing-8);
2374
- border-radius: var(--radius-full);
2375
- background-color: var(--color-purple-50);
2376
- color: var(--color-purple-900);
3154
+ border-radius: var(--radius-circle);
3155
+ background-color: var(--surface-brand-subtle);
3156
+ color: var(--text-brand);
2377
3157
  }
2378
3158
 
2379
3159
  .empty-state-title {
2380
3160
  font-size: var(--font-size-base);
2381
3161
  line-height: var(--line-height-base);
2382
3162
  font-weight: var(--font-weight-semibold);
2383
- color: var(--color-grey-scale-900);
3163
+ color: var(--text-body);
2384
3164
  word-break: break-word;
2385
3165
  }
2386
3166
 
2387
3167
  .empty-state-description {
2388
3168
  font-size: var(--font-size-sm);
2389
3169
  line-height: var(--line-height-sm);
2390
- color: var(--color-grey-scale-500);
3170
+ color: var(--text-muted);
2391
3171
  word-break: break-word;
2392
3172
  }
2393
3173
 
@@ -2458,22 +3238,16 @@
2458
3238
  * *
2459
3239
  ***************************************************************************************************/
2460
3240
 
3241
+ /* 눌림 scale 은 공용 .motion-press 가, 포커스 링은 전역 규칙이 그린다 */
3242
+
2461
3243
  .icon-button {
2462
- border-radius: var(--radius-full);
3244
+ border-radius: var(--radius-circle);
3245
+ /* .motion-press 의 transform 전환을 같은 선언에 다시 적는다. 이 규칙이 뒤에 와서 그것을 덮기 때문이다 */
2463
3246
  transition:
2464
3247
  transform var(--motion-press-duration) var(--motion-press-ease),
2465
3248
  background-color var(--motion-press-duration) var(--motion-press-ease);
2466
3249
  }
2467
3250
 
2468
- .icon-button:active:not([data-disabled]) {
2469
- transform: scale(var(--motion-press-scale));
2470
- }
2471
-
2472
- .icon-button:focus-visible {
2473
- outline: var(--hairline) solid var(--color-purple-600);
2474
- outline-offset: var(--spacing-2);
2475
- }
2476
-
2477
3251
  .icon-button.size-s {
2478
3252
  width: var(--icon-button-size-s);
2479
3253
  height: var(--icon-button-size-s);
@@ -2493,32 +3267,32 @@
2493
3267
 
2494
3268
  .icon-button.variant-ghost {
2495
3269
  background-color: transparent;
2496
- color: var(--color-grey-scale-700);
3270
+ color: var(--text-secondary);
2497
3271
  }
2498
3272
 
2499
3273
  .icon-button.variant-ghost:active:not([data-disabled]) {
2500
- background-color: var(--color-grey-scale-100);
3274
+ background-color: var(--surface-muted);
2501
3275
  }
2502
3276
 
2503
- /* CTAButton secondary 와 같은 연보라 */
3277
+ /* CTAButton primary·weak 와 같은 연보라 */
2504
3278
 
2505
3279
  .icon-button.variant-secondary {
2506
- background-color: var(--color-purple-50);
2507
- color: var(--color-purple-900);
3280
+ background-color: var(--surface-brand-subtle);
3281
+ color: var(--text-brand);
2508
3282
  }
2509
3283
 
2510
3284
  .icon-button.variant-primary {
2511
- background-color: var(--color-purple-900);
2512
- color: var(--color-white);
3285
+ background-color: var(--surface-brand);
3286
+ color: var(--text-on-brand);
2513
3287
  }
2514
3288
 
2515
3289
  .icon-button[data-disabled] {
2516
- color: var(--color-grey-scale-300);
3290
+ color: var(--text-disabled);
2517
3291
  }
2518
3292
 
2519
3293
  .icon-button[data-disabled]:is(.variant-secondary,.variant-primary) {
2520
- background-color: var(--color-grey-scale-200);
2521
- color: var(--color-white);
3294
+ background-color: var(--surface-disabled);
3295
+ color: var(--text-on-disabled);
2522
3296
  }
2523
3297
 
2524
3298
  .base-list:where(.group) {
@@ -2553,7 +3327,7 @@
2553
3327
 
2554
3328
  .list-group-label {
2555
3329
  padding: 0 var(--spacing-4);
2556
- color: var(--color-grey-scale-500);
3330
+ color: var(--text-muted);
2557
3331
  font-size: var(--font-size-sm);
2558
3332
  line-height: var(--line-height-sm);
2559
3333
  font-weight: var(--font-weight-semibold);
@@ -2563,9 +3337,9 @@
2563
3337
  display: flex;
2564
3338
  flex-direction: column;
2565
3339
  overflow: hidden;
2566
- border: var(--hairline) solid var(--color-grey-scale-200);
2567
- border-radius: var(--radius-16);
2568
- 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);
2569
3343
  }
2570
3344
 
2571
3345
  /***************************************************************************************************
@@ -2579,23 +3353,17 @@
2579
3353
  gap: var(--spacing-12);
2580
3354
  padding: var(--spacing-10) var(--spacing-16);
2581
3355
 
2582
- /* 누르는 행(링크·버튼)은 줄어들지 않고 배경이 어두워진다. 폭이 꽉 찬 면이라 scale 이 어색하다 */
3356
+ /* 누르는 행(링크·버튼)은 줄어들지 않고 공용 .motion-press-dim 으로 어두워진다. 폭이 꽉 찬 면이라 scale 이 어색하다 */
2583
3357
  }
2584
3358
 
2585
3359
  .list-row:is(a[href],button) {
2586
3360
  cursor: pointer;
2587
- transition: background-color var(--motion-press-duration) var(--motion-press-ease);
2588
- }
2589
-
2590
- .list-row:is(a[href],button):active {
2591
- background-color: var(--color-grey-scale-100);
2592
- }
2593
3361
 
2594
- /* 면이 overflow: hidden 이라 테두리 안쪽에 그린다 */
3362
+ /* 면이 overflow: hidden 이라 전역 포커스 링을 테두리 안쪽에 그린다 */
3363
+ }
2595
3364
 
2596
3365
  .list-row:is(a[href],button):focus-visible {
2597
- outline: var(--hairline) solid var(--color-purple-600);
2598
- outline-offset: calc(var(--spacing-2) * -1);
3366
+ outline-offset: calc(var(--focus-ring-width) * -1);
2599
3367
  }
2600
3368
 
2601
3369
  /* 행 사이 구분선. 왼쪽은 안쪽 여백만큼 띄운다 */
@@ -2607,13 +3375,13 @@
2607
3375
  right: 0;
2608
3376
  left: var(--spacing-16);
2609
3377
  height: var(--hairline);
2610
- background-color: var(--color-grey-scale-100);
3378
+ background-color: var(--surface-muted);
2611
3379
  }
2612
3380
 
2613
3381
  .list-row-leading {
2614
3382
  display: flex;
2615
3383
  flex: none;
2616
- color: var(--color-grey-scale-700);
3384
+ color: var(--text-secondary);
2617
3385
  }
2618
3386
 
2619
3387
  .list-row-text {
@@ -2625,14 +3393,14 @@
2625
3393
  }
2626
3394
 
2627
3395
  .list-row-label {
2628
- color: var(--color-grey-scale-900);
3396
+ color: var(--text-body);
2629
3397
  font-size: var(--font-size-base);
2630
3398
  line-height: var(--line-height-base);
2631
3399
  font-weight: var(--font-weight-medium);
2632
3400
  }
2633
3401
 
2634
3402
  .list-row-description {
2635
- color: var(--color-grey-scale-500);
3403
+ color: var(--text-muted);
2636
3404
  font-size: var(--font-size-sm);
2637
3405
  line-height: var(--line-height-sm);
2638
3406
  }
@@ -2641,14 +3409,14 @@
2641
3409
  display: flex;
2642
3410
  flex: none;
2643
3411
  align-items: center;
2644
- color: var(--color-grey-scale-500);
3412
+ color: var(--text-muted);
2645
3413
  font-size: var(--font-size-sm);
2646
3414
  line-height: var(--line-height-sm);
2647
3415
  }
2648
3416
 
2649
3417
  .list-row-chevron {
2650
3418
  flex: none;
2651
- color: var(--color-grey-scale-400);
3419
+ color: var(--text-placeholder);
2652
3420
  }
2653
3421
 
2654
3422
  .base-inline-loading {
@@ -2656,14 +3424,35 @@
2656
3424
  width: 100%;
2657
3425
  height: 100%;
2658
3426
  align-items: center;
3427
+ gap: var(--spacing-8);
2659
3428
  }
2660
3429
 
2661
- /* 링은 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 가 둘을 함께 바꾼다 */
2662
3441
 
2663
- :where(.base-inline-loading) {
2664
- 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);
2665
3446
  }
2666
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
+
2667
3456
  .base-overlay-loading {
2668
3457
  position: fixed;
2669
3458
  inset: 0;
@@ -2672,6 +3461,10 @@
2672
3461
  justify-content: center;
2673
3462
  }
2674
3463
 
3464
+ .base-overlay-loading:not(.loading-delay) {
3465
+ animation: motion-enter-fade var(--motion-enter-duration) var(--motion-enter-ease);
3466
+ }
3467
+
2675
3468
  .page-loading-backdrop {
2676
3469
  position: absolute;
2677
3470
  inset: 0;
@@ -2685,76 +3478,133 @@
2685
3478
  gap: var(--spacing-16);
2686
3479
  }
2687
3480
 
2688
- /* 스피너를 레이아웃 크기로 키운다. transform: scale 은 보이는 크기만 키워 아래 글자와 겹친다 */
3481
+ /* progress-bar-style.css 의 width: 100% 가 뒤에 오므로 한 단계 구체적으로 쓴다 */
2689
3482
 
2690
- .page-loading-indicator {
2691
- --spinner-stroke: var(--overlay-spinner-stroke);
3483
+ .base-overlay-loading .page-loading-progress {
3484
+ width: var(--overlay-progress-width);
2692
3485
  }
2693
3486
 
2694
- .page-loading-indicator .base-spinner,.page-loading-indicator .loading-indicator-ring {
2695
- width: var(--overlay-spinner-size);
2696
- height: var(--overlay-spinner-size);
2697
- }
2698
-
2699
3487
  .page-loading-text {
2700
3488
  position: relative;
2701
3489
  }
2702
3490
 
3491
+ /* 링 하나. 연한 바탕 원 위로 currentColor 호가 돈다. 색은 styles/loading.css 의 variant 가 정한다 */
3492
+
2703
3493
  .base-spinner {
2704
- display: flex;
2705
- width: var(--icon-size-m);
2706
- height: var(--icon-size-m);
2707
- align-items: center;
2708
- 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);
2709
3501
  }
2710
3502
 
2711
- /* 우선순위 0 이라 넘겨받은 className 이나 style 의 color 가 늘 이긴다. */
3503
+ .base-spinner.size-s {
3504
+ --spinner-diameter: var(--loading-size-s);
3505
+ --spinner-stroke: var(--loading-stroke-s);
3506
+ }
2712
3507
 
2713
- :where(.base-spinner) {
2714
- color: var(--color-grey-scale-200);
2715
- }
3508
+ .base-spinner.size-l {
3509
+ --spinner-diameter: var(--loading-size-l);
3510
+ --spinner-stroke: var(--loading-stroke-l);
3511
+ }
2716
3512
 
2717
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
+
2718
3529
  position: relative;
2719
- width: var(--icon-size-m);
2720
- 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);
2721
3535
  }
2722
3536
 
2723
- .loading-indicator-single-ring {
2724
- box-sizing: border-box;
2725
- display: block;
2726
- 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 {
2727
3546
  width: 100%;
2728
3547
  height: 100%;
2729
- border: var(--spinner-stroke) solid;
2730
- border-radius: 50%;
2731
- animation: motion-busy-ring var(--spinner-duration) var(--spinner-ease) infinite;
2732
- 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%));
2733
3551
  }
2734
3552
 
2735
- .loading-indicator-single-ring:nth-child(1) {
2736
- 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);
2737
3555
  }
2738
3556
 
2739
- .loading-indicator-single-ring:nth-child(2) {
2740
- 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;
2741
3564
  }
2742
3565
 
2743
- .loading-indicator-single-ring:nth-child(3) {
2744
- 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;
2745
3575
  }
2746
3576
 
2747
- .loading-indicator-single-ring:nth-child(4) {
2748
- 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;
2749
3591
  }
2750
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
+
2751
3601
  /* Title·Close 같은 조각도 base-media 를 달므로 상자 스타일은 overlay·content 에만 건다. */
2752
3602
 
2753
3603
  .base-media:where(.overlay) {
2754
3604
  position: fixed;
2755
3605
  inset: 0;
2756
3606
  z-index: var(--z-overlay);
2757
- background-color: color-mix(in srgb, var(--color-black) 90%, transparent);
3607
+ background-color: color-mix(in srgb, var(--surface-overlay) 90%, transparent);
2758
3608
  }
2759
3609
 
2760
3610
  .base-media[data-state='open']:where(.overlay) {
@@ -2816,7 +3666,7 @@
2816
3666
  right: calc(env(safe-area-inset-right) + var(--spacing-8));
2817
3667
  width: var(--touch-target);
2818
3668
  height: var(--touch-target);
2819
- color: var(--color-white);
3669
+ color: var(--text-on-overlay);
2820
3670
  }
2821
3671
 
2822
3672
  /***************************************************************************************************
@@ -2857,22 +3707,14 @@
2857
3707
  padding: 0;
2858
3708
  overflow: hidden;
2859
3709
  box-sizing: border-box;
2860
- border-radius: var(--radius-6);
2861
- 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 초기화보다 뒤에 와서 덮기 때문이다 */
2862
3713
  transition: transform var(--motion-press-duration) var(--motion-press-ease);
2863
3714
  }
2864
3715
 
2865
- :is(.media-thumbnail .media-thumbnail-open):active:not([data-disabled]) {
2866
- transform: scale(var(--motion-press-scale));
2867
- }
2868
-
2869
3716
  [data-invalid]:is(.media-thumbnail .media-thumbnail-open) {
2870
- border: var(--media-invalid-border) solid var(--color-accent-red-500);
2871
- }
2872
-
2873
- :is(.media-thumbnail .media-thumbnail-open):focus-visible {
2874
- outline: var(--hairline) solid var(--color-purple-600);
2875
- outline-offset: var(--spacing-2);
3717
+ border: var(--media-invalid-border) solid var(--border-error);
2876
3718
  }
2877
3719
 
2878
3720
  .media-thumbnail .media-thumbnail-remove {
@@ -2882,9 +3724,9 @@
2882
3724
  width: var(--media-remove-size);
2883
3725
  height: var(--media-remove-size);
2884
3726
  padding: 0;
2885
- border-radius: var(--radius-full);
2886
- background-color: color-mix(in srgb, var(--color-grey-scale-900) 80%, transparent);
2887
- 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);
2888
3730
 
2889
3731
  /* 20 원을 터치 44 로 넓힌다 */
2890
3732
  }
@@ -2899,11 +3741,6 @@
2899
3741
  transform: translate(-50%, -50%);
2900
3742
  }
2901
3743
 
2902
- :is(.media-thumbnail .media-thumbnail-remove):focus-visible {
2903
- outline: var(--hairline) solid var(--color-purple-600);
2904
- outline-offset: var(--spacing-2);
2905
- }
2906
-
2907
3744
  .media-thumbnail-media {
2908
3745
  display: block;
2909
3746
  width: 100%;
@@ -2921,9 +3758,9 @@
2921
3758
  justify-content: center;
2922
3759
  width: var(--media-overlay-button-size);
2923
3760
  height: var(--media-overlay-button-size);
2924
- border-radius: var(--radius-full);
2925
- background-color: color-mix(in srgb, var(--color-black) 50%, transparent);
2926
- 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);
2927
3764
  transform: translate(-50%, -50%);
2928
3765
  pointer-events: none;
2929
3766
  }
@@ -2934,13 +3771,13 @@
2934
3771
  display: flex;
2935
3772
  align-items: center;
2936
3773
  justify-content: center;
2937
- background-color: color-mix(in srgb, var(--color-white) 60%, transparent);
3774
+ background-color: color-mix(in srgb, var(--surface-highlight) 60%, transparent);
2938
3775
  }
2939
3776
 
2940
3777
  /* 흰 막 위라 기본 링 색(grey-200)은 안 보인다 */
2941
3778
 
2942
3779
  .media-thumbnail-spinner {
2943
- color: var(--color-grey-scale-600);
3780
+ color: var(--text-tertiary);
2944
3781
  }
2945
3782
 
2946
3783
  .base-message-composer:where(.root) {
@@ -3003,29 +3840,29 @@
3003
3840
  max-height: var(--composer-max-height);
3004
3841
  field-sizing: content;
3005
3842
  padding: var(--spacing-10) var(--spacing-16);
3006
- border: var(--hairline) solid var(--color-grey-scale-300);
3007
- border-radius: var(--radius-20);
3843
+ border: var(--hairline) solid var(--border-default);
3844
+ border-radius: var(--radius-surface);
3008
3845
  outline: none;
3009
- background-color: var(--color-white);
3010
- color: var(--color-grey-scale-900);
3846
+ background-color: var(--surface-base);
3847
+ color: var(--text-body);
3011
3848
  font-size: var(--font-size-base);
3012
3849
  line-height: var(--line-height-base);
3013
3850
  }
3014
3851
 
3015
3852
  .message-composer-textarea::-moz-placeholder {
3016
- color: var(--color-grey-scale-400);
3853
+ color: var(--text-placeholder);
3017
3854
  }
3018
3855
 
3019
3856
  .message-composer-textarea::placeholder {
3020
- color: var(--color-grey-scale-400);
3857
+ color: var(--text-placeholder);
3021
3858
  }
3022
3859
 
3023
3860
  .message-composer-textarea:focus {
3024
- border-color: var(--color-purple-900);
3861
+ border-color: var(--border-accent);
3025
3862
  }
3026
3863
 
3027
3864
  .message-composer-textarea[data-disabled] {
3028
- background-color: var(--color-grey-scale-100);
3865
+ background-color: var(--surface-muted);
3029
3866
  }
3030
3867
 
3031
3868
  /* 누르는 곳은 --touch-target, 보이는 원은 --composer-send-size */
@@ -3033,15 +3870,12 @@
3033
3870
  .message-composer-send {
3034
3871
  width: var(--touch-target);
3035
3872
  height: var(--touch-target);
3036
- transition: transform var(--motion-press-duration) var(--motion-press-ease);
3873
+ /* 눌림은 공용 .motion-press(보내는 중에는 빠진다). 막힌 누름은 아래 흔들림이다 */
3874
+ -webkit-tap-highlight-color: transparent;
3037
3875
  }
3038
3876
 
3039
- .message-composer-send:not([aria-disabled='true'],[aria-busy='true']):active {
3040
- transform: scale(var(--motion-press-scale));
3041
- }
3042
-
3043
3877
  .message-composer-send[aria-disabled='true'] .message-composer-send-circle {
3044
- background-color: var(--color-grey-scale-200);
3878
+ background-color: var(--surface-disabled);
3045
3879
  }
3046
3880
 
3047
3881
  .message-composer-send[data-rejecting] .message-composer-send-circle {
@@ -3053,13 +3887,13 @@
3053
3887
  place-items: center;
3054
3888
  width: var(--composer-send-size);
3055
3889
  height: var(--composer-send-size);
3056
- border-radius: var(--radius-full);
3057
- background-color: var(--color-purple-900);
3058
- color: var(--color-white);
3890
+ border-radius: var(--radius-circle);
3891
+ background-color: var(--surface-brand);
3892
+ color: var(--text-on-brand);
3059
3893
  }
3060
3894
 
3061
3895
  .message-composer-spinner {
3062
- color: var(--color-white);
3896
+ color: var(--text-on-brand);
3063
3897
  }
3064
3898
 
3065
3899
  .base-message:where(.root) {
@@ -3105,9 +3939,9 @@
3105
3939
  }
3106
3940
 
3107
3941
  .message.side-end .message-bubble {
3108
- border-radius: var(--radius-16) var(--radius-16) var(--radius-4) var(--radius-16);
3109
- background-color: var(--color-purple-900);
3110
- 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);
3111
3945
  }
3112
3946
 
3113
3947
  /* 방금 보내거나 받은 메시지만 움직인다. 처음 그린 대화는 motion 이 없어 가만히 있다 */
@@ -3132,7 +3966,7 @@
3132
3966
  font-size: var(--font-size-xsm);
3133
3967
  line-height: var(--line-height-xsm);
3134
3968
  font-weight: var(--font-weight-semibold);
3135
- color: var(--color-grey-scale-700);
3969
+ color: var(--text-secondary);
3136
3970
  }
3137
3971
 
3138
3972
  .message-row {
@@ -3147,9 +3981,9 @@
3147
3981
  .message-bubble {
3148
3982
  gap: var(--spacing-6);
3149
3983
  padding: var(--spacing-10) var(--spacing-14);
3150
- border-radius: var(--radius-16) var(--radius-16) var(--radius-16) var(--radius-4);
3151
- background-color: var(--color-grey-scale-100);
3152
- 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);
3153
3987
  font-size: var(--font-size-base);
3154
3988
  line-height: var(--line-height-base);
3155
3989
  white-space: pre-wrap;
@@ -3164,15 +3998,15 @@
3164
3998
  flex: none;
3165
3999
  font-size: var(--font-size-xsm);
3166
4000
  line-height: var(--line-height-xsm);
3167
- color: var(--color-grey-scale-500);
4001
+ color: var(--text-muted);
3168
4002
  }
3169
4003
 
3170
4004
  .message-event {
3171
4005
  align-self: center;
3172
4006
  padding: var(--spacing-2) var(--spacing-10);
3173
- border-radius: var(--radius-full);
3174
- background-color: var(--color-grey-scale-100);
3175
- color: var(--color-grey-scale-600);
4007
+ border-radius: var(--radius-pill);
4008
+ background-color: var(--surface-muted);
4009
+ color: var(--text-tertiary);
3176
4010
  font-size: var(--font-size-xsm);
3177
4011
  line-height: var(--line-height-xsm);
3178
4012
  font-weight: var(--font-weight-medium);
@@ -3186,39 +4020,99 @@
3186
4020
  align-items: center;
3187
4021
 
3188
4022
  padding: var(--spacing-30);
3189
- border-radius: var(--radius-6);
4023
+ border-radius: var(--radius-surface);
3190
4024
  }
3191
4025
 
4026
+ /*
4027
+ * 본문이 길면 본문만 스크롤된다. 상자는 화면 안에 갇히고(max-height) 넘치지 않는다.
4028
+ * 닫기 아이콘·제목이 있는 위쪽과 버튼이 있는 아래쪽은 줄지 않고 제자리에 있다.
4029
+ * 스크롤 칸은 안쪽 여백만큼 넓혀 포커스 링이 잘리지 않게 한다.
4030
+ */
4031
+
3192
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;
3193
4036
  position: fixed;
3194
4037
  top: 50%;
3195
4038
  left: 50%;
3196
- transform: translate(-50%, -50%);
4039
+ /* transform 은 등장·퇴장·흔들림 키프레임이 쓴다. 가운데 맞춤은 따로 둔다 */
4040
+ translate: -50% -50%;
3197
4041
  z-index: var(--z-modal);
3198
- 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));
3199
4062
  }
3200
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
+
3201
4082
  .base-modal.modal-overlay {
3202
4083
  position: fixed;
3203
4084
  top: 0;
3204
4085
  left: 0;
3205
4086
  right: 0;
3206
4087
  bottom: 0;
3207
- background-color: rgba(0, 0, 0, 0.5);
4088
+ background-color: color-mix(in srgb, var(--surface-overlay) 50%, transparent);
3208
4089
  z-index: var(--z-overlay);
3209
4090
  }
3210
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
+
3211
4100
  /***************************************************************************************************
3212
4101
  * *
3213
4102
  * modal-with-double-button *
3214
4103
  * *
3215
4104
  ***************************************************************************************************/
3216
4105
 
4106
+ /* 오른쪽 위에 아이콘 크기로 둔다. 폭을 100% 로 주면 svg 가 늘어나 그림이 가운데에 그려진다 */
4107
+
3217
4108
  .modal-with-double-button-close-button {
3218
4109
  display: flex;
3219
- justify-content: flex-start;
3220
4110
  align-items: center;
3221
- 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);
3222
4116
  }
3223
4117
 
3224
4118
  /* open 을 넘기면 X 가 진짜 닫기 버튼이 된다. 버튼 기본 모양을 지워 예전 아이콘과 같게 보이게 한다 */
@@ -3226,7 +4120,7 @@
3226
4120
  button.modal-with-double-button-close-button {
3227
4121
  padding: 0;
3228
4122
  background-color: transparent;
3229
- color: var(--color-grey-scale-600);
4123
+ color: var(--text-tertiary);
3230
4124
  }
3231
4125
 
3232
4126
  .modal-with-double-button-container {
@@ -3256,7 +4150,7 @@ button.modal-with-double-button-close-button {
3256
4150
  font-size: var(--font-size-lg);
3257
4151
  font-weight: var(--font-weight-bold);
3258
4152
  text-align: center;
3259
- color: var(--color-black);
4153
+ color: var(--text-primary);
3260
4154
  }
3261
4155
 
3262
4156
  .modal-with-double-button-sub-title {
@@ -3264,10 +4158,11 @@ button.modal-with-double-button-close-button {
3264
4158
  font-size: var(--font-size-sm);
3265
4159
  font-weight: var(--font-weight-medium);
3266
4160
  text-align: center;
3267
- color: var(--color-grey-scale-600);
4161
+ color: var(--text-tertiary);
3268
4162
  }
3269
4163
 
3270
4164
  .modal-with-double-button-content {
4165
+ align-self: stretch;
3271
4166
  margin-top: var(--spacing-20);
3272
4167
  }
3273
4168
 
@@ -3312,9 +4207,6 @@ button.modal-with-double-button-close-button {
3312
4207
  .modal {
3313
4208
  align-items: stretch;
3314
4209
  gap: var(--spacing-20);
3315
- max-width: calc(100% - var(--spacing-30) * 2);
3316
- max-height: calc(100% - var(--spacing-30) * 2);
3317
- overflow: auto;
3318
4210
  }
3319
4211
 
3320
4212
  .modal.size-s {
@@ -3341,7 +4233,7 @@ button.modal-with-double-button-close-button {
3341
4233
  margin: 0;
3342
4234
  font-size: var(--font-size-lg);
3343
4235
  font-weight: var(--font-weight-bold);
3344
- color: var(--color-black);
4236
+ color: var(--text-primary);
3345
4237
  }
3346
4238
 
3347
4239
  .modal-close-icon {
@@ -3350,19 +4242,19 @@ button.modal-with-double-button-close-button {
3350
4242
  height: var(--icon-size-m);
3351
4243
  padding: 0;
3352
4244
  background-color: transparent;
3353
- color: var(--color-grey-scale-600);
4245
+ color: var(--text-tertiary);
3354
4246
  }
3355
4247
 
3356
4248
  .modal-description {
3357
4249
  margin: 0;
3358
4250
  font-size: var(--font-size-sm);
3359
4251
  font-weight: var(--font-weight-medium);
3360
- color: var(--color-grey-scale-600);
4252
+ color: var(--text-tertiary);
3361
4253
  }
3362
4254
 
3363
4255
  .modal-body {
3364
4256
  font-size: var(--font-size-sm);
3365
- color: var(--color-black);
4257
+ color: var(--text-primary);
3366
4258
  }
3367
4259
 
3368
4260
  .modal-footer {
@@ -3390,26 +4282,26 @@ button.modal-with-double-button-close-button {
3390
4282
 
3391
4283
  .notice {
3392
4284
  padding: var(--spacing-12) var(--spacing-14);
3393
- border-radius: var(--radius-6);
3394
- background-color: var(--color-grey-scale-100);
3395
- color: var(--color-grey-scale-700);
4285
+ border-radius: var(--radius-control);
4286
+ background-color: var(--surface-muted);
4287
+ color: var(--text-secondary);
3396
4288
  font-size: var(--font-size-sm);
3397
4289
  line-height: var(--line-height-sm);
3398
4290
  }
3399
4291
 
3400
4292
  .notice.variant-success {
3401
- background-color: var(--color-accent-green-50);
3402
- color: var(--color-accent-green-800);
4293
+ background-color: var(--surface-success-subtle);
4294
+ color: var(--text-success);
3403
4295
  }
3404
4296
 
3405
4297
  .notice.variant-warning {
3406
- background-color: var(--color-accent-orange-50);
3407
- color: var(--color-accent-orange-800);
4298
+ background-color: var(--surface-warning-subtle);
4299
+ color: var(--text-warning);
3408
4300
  }
3409
4301
 
3410
4302
  .notice.variant-danger {
3411
- background-color: var(--color-accent-red-50);
3412
- color: var(--color-accent-red-700);
4303
+ background-color: var(--surface-danger-subtle);
4304
+ color: var(--text-danger);
3413
4305
  }
3414
4306
 
3415
4307
  /* 조건부로 나타나는 안내만 motion 을 준다. 사라질 때는 움직이지 않는다 */
@@ -3447,7 +4339,7 @@ button.modal-with-double-button-close-button {
3447
4339
  font-weight: var(--font-weight-semibold);
3448
4340
  }
3449
4341
 
3450
- /* action 은 CTAButton(xs·neutral) 이라 모양은 버튼 CSS 가 정한다. 폭은 글자만큼 */
4342
+ /* action 은 CTAButton(xs·primary·outline). 바탕이 회색이라 흰 바탕에 선이 있는 조합이 눌리는 자리로 보인다 이라 모양은 버튼 CSS 가 정한다. 폭은 글자만큼 */
3451
4343
 
3452
4344
  .notice-action {
3453
4345
  align-self: flex-start;
@@ -3506,36 +4398,38 @@ button.modal-with-double-button-close-button {
3506
4398
  min-width: var(--pagination-item-size);
3507
4399
  height: var(--pagination-item-size);
3508
4400
  padding: 0 var(--spacing-4);
3509
- border-radius: var(--radius-6);
3510
- color: var(--color-grey-scale-600);
4401
+ border-radius: var(--radius-control);
4402
+ color: var(--text-tertiary);
3511
4403
  font-size: inherit;
3512
4404
  line-height: inherit;
3513
4405
  font-weight: var(--font-weight-medium);
4406
+ /* .motion-press 의 transform 전환을 같은 선언에 다시 적는다. 이 규칙이 뒤에 와서 그것을 덮기 때문이다 */
3514
4407
  transition:
3515
- background-color var(--motion-fast) var(--motion-ease),
3516
- 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);
3517
4411
  }
3518
4412
 
3519
4413
  .pagination-item:not(:disabled):hover {
3520
- background-color: var(--color-grey-scale-100);
3521
- color: var(--color-purple-900);
4414
+ background-color: var(--surface-muted);
4415
+ color: var(--text-brand);
3522
4416
  }
3523
4417
 
3524
4418
  .pagination-item[data-state='active'] {
3525
- background-color: var(--color-purple-50);
3526
- color: var(--color-purple-900);
4419
+ background-color: var(--surface-brand-subtle);
4420
+ color: var(--text-brand);
3527
4421
  font-weight: var(--font-weight-bold);
3528
4422
  }
3529
4423
 
3530
4424
  .pagination-item:disabled {
3531
4425
  background-color: transparent;
3532
- color: var(--color-grey-scale-300);
4426
+ color: var(--text-disabled);
3533
4427
  }
3534
4428
 
3535
4429
  .pagination-ellipsis {
3536
4430
  min-width: var(--pagination-item-size);
3537
4431
  height: var(--pagination-item-size);
3538
- color: var(--color-grey-scale-400);
4432
+ color: var(--text-placeholder);
3539
4433
  }
3540
4434
 
3541
4435
  .pagination-icon {
@@ -3581,49 +4475,81 @@ button.modal-with-double-button-close-button {
3581
4475
  gap: var(--spacing-16);
3582
4476
  }
3583
4477
 
4478
+ /* 라벨이 두 줄이 되면 동그라미는 첫 줄에 맞춘다. 동그라미 지름과 라벨 줄 높이가 같은 18px 이다 */
4479
+
3584
4480
  .radio:where(.radio-option) {
3585
4481
  display: flex;
3586
- align-items: center;
3587
- gap: var(--spacing-6);
4482
+ align-items: flex-start;
4483
+ gap: var(--spacing-10);
3588
4484
  }
3589
4485
 
4486
+ /* Checkbox(filled) 와 같은 말: 꺼짐은 흰 바탕에 보라 테두리, 켜짐은 보라 채움에 흰 표시.
4487
+ 채움은 색만 바뀌는 확정이라 confirm fade, 흰 점은 움직임이라 confirm 스프링이다 */
4488
+
3590
4489
  .radio:where(.radio-button) {
4490
+ box-sizing: border-box;
3591
4491
  display: flex;
3592
4492
  align-items: center;
3593
4493
  justify-content: center;
3594
4494
  width: var(--radio-size);
3595
4495
  height: var(--radio-size);
3596
- border-radius: 50%;
3597
- 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);
3598
4508
  }
3599
4509
 
4510
+ .radio.radio-button[data-state='checked'] {
4511
+ background-color: var(--surface-brand);
4512
+ }
4513
+
3600
4514
  .radio:where(.radio-indicator) {
4515
+ display: block;
3601
4516
  width: var(--radio-dot-size);
3602
4517
  height: var(--radio-dot-size);
3603
- border-radius: 50%;
3604
- background-color: var(--color-purple-900);
4518
+ border-radius: var(--radius-circle);
4519
+ background-color: var(--surface-base);
4520
+ }
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)));
3605
4527
  }
3606
4528
 
4529
+ .radio.radio-indicator[data-state='checked'] {
4530
+ --confirm-on: 1;
4531
+ }
4532
+
3607
4533
  .radio:where(.radio-label) {
3608
4534
  font-size: var(--font-size-sm);
4535
+ line-height: var(--line-height-sm);
3609
4536
  font-weight: var(--font-weight-medium);
3610
- color: var(--color-black);
4537
+ color: var(--text-primary);
3611
4538
  }
3612
4539
 
3613
4540
  /* disabled: 글자·점은 회색, 커서는 비활성. 버튼은 BaseButton 이, 라벨은 RadioLabel 이 data-disabled 를 단다 */
3614
4541
 
3615
4542
  .radio.radio-label[data-disabled] {
3616
- color: var(--color-grey-scale-400);
4543
+ color: var(--text-placeholder);
3617
4544
  cursor: var(--cursor-disabled);
3618
4545
  }
3619
4546
 
4547
+ /* disabled 는 Checkbox 와 같이 회색 채움에 테두리 없음. 골라진 것은 흰 점이 남는다 */
4548
+
3620
4549
  .radio.radio-button[data-disabled] {
3621
4550
  cursor: var(--cursor-disabled);
3622
- background-color: var(--color-grey-scale-100);
3623
- }
3624
-
3625
- .radio.radio-button[data-disabled] .radio-indicator {
3626
- background-color: var(--color-grey-scale-400);
4551
+ border-color: var(--border-disabled);
4552
+ background-color: var(--surface-control);
3627
4553
  }
3628
4554
 
3629
4555
  /* chip: 줄을 바꿔 가로로 늘어놓는다 */
@@ -3634,46 +4560,43 @@ button.modal-with-double-button-close-button {
3634
4560
  gap: var(--spacing-8);
3635
4561
  }
3636
4562
 
3637
- /* 모양은 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
+ 포커스 링은 전역 규칙이 그린다 */
3638
4566
 
3639
4567
  .radio.radio-chip {
3640
4568
  height: var(--control-height-s);
3641
4569
  padding: 0 var(--spacing-14);
3642
- border: var(--hairline) solid var(--color-grey-scale-300);
3643
- border-radius: var(--radius-full);
3644
- background-color: var(--color-grey-scale-50);
3645
- 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);
3646
4574
  font-size: var(--font-size-sm);
3647
4575
  font-weight: var(--font-weight-medium);
4576
+ /* .motion-press 의 transform 전환을 같은 선언에 다시 적는다 */
3648
4577
  transition:
3649
4578
  transform var(--motion-press-duration) var(--motion-press-ease),
3650
- background-color var(--motion-confirm-weak-duration) var(--motion-confirm-weak-ease),
3651
- color var(--motion-confirm-weak-duration) var(--motion-confirm-weak-ease),
3652
- border-color var(--motion-confirm-weak-duration) var(--motion-confirm-weak-ease);
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);
3653
4585
  }
3654
4586
 
3655
- .radio.radio-chip:active:not([data-disabled]) {
3656
- transform: scale(var(--motion-press-scale));
3657
- }
3658
-
3659
4587
  .radio.radio-chip[data-state='checked'] {
3660
- border-color: var(--color-purple-900);
3661
- background-color: var(--color-purple-900);
3662
- 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);
3663
4591
  font-weight: var(--font-weight-semibold);
3664
4592
  }
3665
4593
 
3666
4594
  .radio.radio-chip[data-disabled] {
3667
- border-color: var(--color-grey-scale-200);
3668
- color: var(--color-grey-scale-300);
4595
+ border-color: var(--border-disabled);
4596
+ color: var(--text-disabled);
3669
4597
  cursor: var(--cursor-disabled);
3670
4598
  }
3671
4599
 
3672
- .radio.radio-chip:focus-visible {
3673
- outline: var(--hairline) solid var(--color-purple-600);
3674
- outline-offset: var(--spacing-2);
3675
- }
3676
-
3677
4600
  .base-skeleton {
3678
4601
  display: block;
3679
4602
  box-sizing: border-box;
@@ -3691,12 +4614,12 @@ button.modal-with-double-button-close-button {
3691
4614
  position: relative;
3692
4615
  overflow: hidden;
3693
4616
  height: var(--skeleton-text-height);
3694
- border-radius: var(--radius-4);
3695
- background-color: var(--color-grey-scale-200);
4617
+ border-radius: var(--radius-mark);
4618
+ background-color: var(--surface-strong);
3696
4619
  }
3697
4620
 
3698
4621
  .skeleton.shape-circle {
3699
- border-radius: var(--radius-full);
4622
+ border-radius: var(--radius-circle);
3700
4623
  aspect-ratio: 1;
3701
4624
  flex-shrink: 0;
3702
4625
  }
@@ -3716,8 +4639,8 @@ button.modal-with-double-button-close-button {
3716
4639
  overflow: hidden;
3717
4640
  width: 100%;
3718
4641
  height: var(--skeleton-text-height);
3719
- border-radius: var(--radius-4);
3720
- background-color: var(--color-grey-scale-200);
4642
+ border-radius: var(--radius-mark);
4643
+ background-color: var(--surface-strong);
3721
4644
  }
3722
4645
 
3723
4646
  .skeleton-line:last-child:not(:only-child) {
@@ -3732,18 +4655,44 @@ button.modal-with-double-button-close-button {
3732
4655
  background: linear-gradient(
3733
4656
  90deg,
3734
4657
  transparent 0%,
3735
- var(--color-grey-scale-100) 50%,
4658
+ var(--surface-muted) 50%,
3736
4659
  transparent 100%
3737
4660
  );
3738
4661
  transform: translateX(-100%);
3739
- 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;
4663
+ }
4664
+
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);
3740
4682
  }
3741
4683
 
3742
- @media (prefers-reduced-motion: reduce) {
3743
- .skeleton.animated:not(.multiline)::after,
3744
- .skeleton.animated .skeleton-line::after {
3745
- animation: none;
3746
- }
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);
3747
4696
  }
3748
4697
 
3749
4698
  .base-step-progress:where(.root) {
@@ -3758,7 +4707,7 @@ button.modal-with-double-button-close-button {
3758
4707
  .base-step-progress:where(.step) {
3759
4708
  display: flex;
3760
4709
  flex-direction: column;
3761
- gap: var(--spacing-6);
4710
+ gap: var(--step-progress-name-gap);
3762
4711
  min-width: 0;
3763
4712
  }
3764
4713
 
@@ -3768,39 +4717,160 @@ button.modal-with-double-button-close-button {
3768
4717
  * *
3769
4718
  ***************************************************************************************************/
3770
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
+
3771
4739
  .step-progress-bar {
3772
4740
  display: block;
3773
- height: var(--step-bar-height);
3774
- border-radius: var(--radius-full);
3775
- background: var(--color-grey-scale-200);
3776
- 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);
3777
4761
  }
3778
4762
 
3779
4763
  .step-progress-name {
3780
4764
  overflow: hidden;
3781
- color: var(--color-grey-scale-500);
3782
- font-size: var(--font-size-xsm);
4765
+ color: var(--text-muted);
4766
+ font-size: var(--step-progress-name-size);
3783
4767
  white-space: nowrap;
3784
4768
  text-overflow: ellipsis;
3785
4769
  }
3786
4770
 
3787
- .step-progress-step[data-state='done'] .step-progress-bar {
3788
- background: var(--color-purple-900);
4771
+ .step-progress-step[data-state='done'] .step-progress-fill {
4772
+ background: var(--surface-brand);
3789
4773
  }
3790
4774
 
3791
4775
  .step-progress-step[data-state='done'] .step-progress-name {
3792
- color: var(--color-grey-scale-600);
3793
- }
3794
-
3795
- .step-progress-step[data-state='current'] .step-progress-bar {
3796
- background: var(--color-purple-600);
4776
+ color: var(--text-tertiary);
3797
4777
  }
3798
4778
 
3799
4779
  .step-progress-step[data-state='current'] .step-progress-name {
3800
- color: var(--color-purple-900);
4780
+ color: var(--text-brand);
3801
4781
  font-weight: var(--font-weight-semibold);
3802
4782
  }
3803
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
+
3804
4874
  /* 지금 단계 이름만 보인다. 다른 이름은 낭독기에는 남긴다 */
3805
4875
 
3806
4876
  .step-progress.label-visibility-current .step-progress-step:not([data-state='current']) .step-progress-name {
@@ -3823,7 +4893,7 @@ button.modal-with-double-button-close-button {
3823
4893
  .base-switch:where(.label) {
3824
4894
  font-size: var(--font-size-sm);
3825
4895
  font-weight: var(--font-weight-medium);
3826
- color: var(--color-black);
4896
+ color: var(--text-primary);
3827
4897
  }
3828
4898
 
3829
4899
  /***************************************************************************************************
@@ -3853,9 +4923,12 @@ button.modal-with-double-button-close-button {
3853
4923
  align-items: center;
3854
4924
  flex-shrink: 0;
3855
4925
  padding: var(--switch-thumb-inset);
3856
- border-radius: var(--radius-full);
3857
- background-color: var(--color-grey-scale-300);
3858
- 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);
3859
4932
  }
3860
4933
 
3861
4934
  .switch-track.size-s {
@@ -3877,27 +4950,29 @@ button.modal-with-double-button-close-button {
3877
4950
  }
3878
4951
 
3879
4952
  .switch-track[data-disabled] {
3880
- background-color: var(--color-grey-scale-200);
4953
+ background-color: var(--surface-disabled);
3881
4954
  }
3882
4955
 
3883
4956
  .switch[data-state='checked'] .switch-track {
3884
- background-color: var(--color-purple-900);
4957
+ background-color: var(--surface-brand);
3885
4958
  }
3886
4959
 
3887
4960
  .switch-thumb {
3888
4961
  aspect-ratio: 1;
3889
4962
  height: 100%;
3890
- border-radius: var(--radius-full);
3891
- background-color: var(--color-white);
3892
- 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))));
3893
4968
  }
3894
4969
 
3895
4970
  .switch-thumb[data-state='checked'] {
3896
- transform: translateX(var(--switch-travel));
4971
+ --confirm-on: 1;
3897
4972
  }
3898
4973
 
3899
4974
  .switch-thumb[data-disabled] {
3900
- background-color: var(--color-grey-scale-100);
4975
+ background-color: var(--surface-muted);
3901
4976
  }
3902
4977
 
3903
4978
  .base-table {
@@ -3929,19 +5004,45 @@ button.modal-with-double-button-close-button {
3929
5004
  .data-table-header {
3930
5005
  position: sticky;
3931
5006
  top: 0;
3932
- background-color: var(--color-white);
5007
+ background-color: var(--surface-base);
3933
5008
  z-index: var(--z-sticky-header);
3934
- border-bottom: var(--hairline) solid var(--color-grey-scale-200);
5009
+ border-bottom: var(--hairline) solid var(--border-subtle);
5010
+ }
5011
+
5012
+ /*
5013
+ * variant-padded: 셀 여백·글자 기본값과 마지막 고정 열 경계선. plain 은 셀 내용이 모양을 정한다.
5014
+ * :where 로 특이도를 (0,2,0) 에 묶어 쓰는 쪽 CSS 가 같은 특이도로 덮어쓸 수 있게 한다.
5015
+ */
5016
+
5017
+ :where(.data-table.variant-padded) .data-table-header .cell {
5018
+ padding: var(--data-table-cell-padding, var(--spacing-8) var(--spacing-12));
5019
+ font-size: var(--font-size-sm);
5020
+ line-height: var(--line-height-sm);
5021
+ font-weight: var(--font-weight-semibold);
5022
+ color: var(--data-table-header-color, var(--text-muted));
5023
+ }
5024
+
5025
+ :where(.data-table.variant-padded) .body .cell {
5026
+ padding: var(--data-table-cell-padding, var(--spacing-8) var(--spacing-12));
5027
+ font-size: var(--font-size-sm);
5028
+ line-height: var(--line-height-sm);
5029
+ color: var(--data-table-cell-color, var(--text-body));
5030
+ }
5031
+
5032
+ /* 마지막 고정 열의 경계선. border-collapse 표의 border 는 sticky 셀과 함께 움직이지 않아 그림자로 셀 안에 그린다 */
5033
+
5034
+ :where(.data-table.variant-padded) .fixed-last {
5035
+ box-shadow: inset calc(var(--hairline) * -1) 0 0 var(--border-subtle);
3935
5036
  }
3936
5037
 
3937
5038
  .data-table-row {
3938
5039
  position: relative;
3939
- border-bottom: var(--hairline) solid var(--color-grey-scale-200);
5040
+ border-bottom: var(--hairline) solid var(--border-subtle);
3940
5041
  }
3941
5042
 
3942
5043
  .data-table-row .fixed {
3943
5044
  position: sticky;
3944
- background-color: var(--color-white);
5045
+ background-color: var(--surface-base);
3945
5046
  z-index: var(--z-sticky);
3946
5047
  }
3947
5048
 
@@ -3951,11 +5052,11 @@ button.modal-with-double-button-close-button {
3951
5052
  }
3952
5053
 
3953
5054
  .body .data-table-row:hover {
3954
- background-color: var(--color-grey-scale-100);
5055
+ background-color: var(--surface-muted);
3955
5056
  }
3956
5057
 
3957
5058
  :is(.body .data-table-row:hover) .fixed {
3958
- background-color: var(--color-grey-scale-100);
5059
+ background-color: var(--surface-muted);
3959
5060
  }
3960
5061
 
3961
5062
  .fixed-cell {
@@ -3978,10 +5079,16 @@ button.modal-with-double-button-close-button {
3978
5079
  display: flex;
3979
5080
  align-items: center;
3980
5081
  position: relative;
5082
+
5083
+ /* 인디케이터가 목록 높이(top·bottom 0)를 채우므로 탭도 같은 높이로 늘려야 선택 배경과 탭이 맞는다 */
3981
5084
  }
3982
5085
 
5086
+ .tabs-list.variant-filled {
5087
+ align-items: stretch;
5088
+ }
5089
+
3983
5090
  .tabs-list.variant-underline {
3984
- border-bottom: var(--hairline) solid var(--color-grey-scale-200);
5091
+ border-bottom: var(--hairline) solid var(--border-subtle);
3985
5092
 
3986
5093
  /* Scrollable logic */
3987
5094
  overflow-x: auto;
@@ -4005,19 +5112,26 @@ button.modal-with-double-button-close-button {
4005
5112
  /* 2. 테마 스타일 (Theme) */
4006
5113
  /* figma 토큰에 11px 없음. 디자이너 확인 전까지 숫자 유지 */
4007
5114
  padding: 10px 30px 11px 30px; /* raw-px */
4008
- color: var(--color-grey-scale-400);
5115
+ color: var(--text-placeholder);
4009
5116
  font-size: var(--font-size-sm);
4010
5117
  font-weight: var(--font-weight-medium);
4011
- border-bottom: var(--hairline) solid var(--color-grey-scale-200);
4012
- 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)과 같은 색조로 이어진다 */
4013
5123
  }
4014
5124
 
5125
+ .tabs-trigger.motion-press-dim::after {
5126
+ background: var(--surface-brand);
5127
+ }
5128
+
4015
5129
  .tabs-trigger:hover {
4016
- color: var(--color-purple-700);
5130
+ color: var(--text-brand-active);
4017
5131
  }
4018
5132
 
4019
5133
  .tabs-trigger[data-state='active'] {
4020
- color: var(--color-purple-700);
5134
+ color: var(--text-brand-active);
4021
5135
  font-weight: var(--font-weight-bold);
4022
5136
  }
4023
5137
 
@@ -4026,10 +5140,22 @@ button.modal-with-double-button-close-button {
4026
5140
  opacity: 0.5;
4027
5141
  }
4028
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
+
4029
5153
  /* 3. 변이 스타일 (Variants) */
4030
5154
 
4031
5155
  .tabs-trigger.variant-underline {
4032
5156
  border-bottom: 0;
5157
+ /* 눌림 딤(::after)이 모서리를 물려받는다. 바탕은 투명이라 누를 때만 보인다 */
5158
+ border-radius: var(--radius-control);
4033
5159
  }
4034
5160
 
4035
5161
  .tabs-trigger.variant-underline[data-state='active'] {
@@ -4055,8 +5181,8 @@ button.modal-with-double-button-close-button {
4055
5181
  pointer-events: none;
4056
5182
  z-index: var(--z-raised);
4057
5183
  transition:
4058
- left var(--motion-base) var(--motion-ease),
4059
- 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);
4060
5186
 
4061
5187
  /* 2. 변이 스타일 (Variants) */
4062
5188
  }
@@ -4064,16 +5190,38 @@ button.modal-with-double-button-close-button {
4064
5190
  .tabs-indicator.variant-underline {
4065
5191
  bottom: 0;
4066
5192
  height: var(--tab-indicator-thickness);
4067
- background-color: var(--color-purple-800);
5193
+ background-color: var(--surface-accent);
4068
5194
  }
4069
5195
 
4070
5196
  .tabs-indicator.variant-filled {
4071
5197
  top: 0;
4072
5198
  bottom: 0;
4073
- background-color: var(--color-purple-50);
5199
+ background-color: var(--surface-brand-subtle);
4074
5200
  z-index: var(--z-base);
4075
5201
  }
4076
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
+
4077
5225
  .base-tag {
4078
5226
  display: inline-flex;
4079
5227
  align-items: center;
@@ -4109,14 +5257,14 @@ button.modal-with-double-button-close-button {
4109
5257
  * *
4110
5258
  ***************************************************************************************************/
4111
5259
 
4112
- /* CTAButton secondary·Callout 과 같은 연보라 */
5260
+ /* CTAButton primary·weak·Callout 과 같은 연보라 */
4113
5261
 
4114
5262
  .tag {
4115
5263
  height: var(--label-height-s);
4116
5264
  padding: 0 var(--spacing-12);
4117
- border-radius: var(--radius-full);
4118
- background-color: var(--color-purple-50);
4119
- color: var(--color-purple-900);
5265
+ border-radius: var(--radius-pill);
5266
+ background-color: var(--surface-brand-subtle);
5267
+ color: var(--text-brand);
4120
5268
  font-size: var(--font-size-sm);
4121
5269
  line-height: var(--line-height-sm);
4122
5270
  font-weight: var(--font-weight-semibold);
@@ -4129,22 +5277,15 @@ button.modal-with-double-button-close-button {
4129
5277
  padding-right: var(--spacing-4);
4130
5278
  }
4131
5279
 
5280
+ /* 눌림은 공용 .motion-press, 포커스 링은 전역 규칙이 그린다 */
5281
+
4132
5282
  .tag-remove {
4133
5283
  width: var(--label-height-xs);
4134
5284
  height: var(--label-height-xs);
4135
- border-radius: var(--radius-full);
4136
- color: var(--color-purple-600);
4137
- transition: transform var(--motion-press-duration) var(--motion-press-ease);
5285
+ border-radius: var(--radius-circle);
5286
+ color: var(--text-brand-secondary);
4138
5287
  }
4139
5288
 
4140
- .tag-remove:active {
4141
- transform: scale(var(--motion-press-scale));
4142
- }
4143
-
4144
- .tag-remove:focus-visible {
4145
- outline: var(--hairline) solid var(--color-purple-600);
4146
- }
4147
-
4148
5289
  .base-text-area:where(.textarea) {
4149
5290
  display: block;
4150
5291
  width: 100%;
@@ -4154,21 +5295,49 @@ button.modal-with-double-button-close-button {
4154
5295
  background-color: transparent;
4155
5296
  font-family: inherit;
4156
5297
  font-weight: var(--font-weight-medium);
4157
- color: var(--color-black);
5298
+ color: var(--text-primary);
4158
5299
  }
4159
5300
 
4160
5301
  .base-text-area:where(.textarea)::-moz-placeholder {
4161
- color: var(--color-grey-scale-400);
5302
+ color: var(--text-placeholder);
4162
5303
  }
4163
5304
 
4164
5305
  .base-text-area:where(.textarea)::placeholder {
4165
- color: var(--color-grey-scale-400);
5306
+ color: var(--text-placeholder);
4166
5307
  }
4167
5308
 
4168
5309
  .base-text-area[data-disabled]:where(.textarea) {
4169
5310
  cursor: var(--cursor-disabled);
4170
5311
  }
4171
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
+
4172
5341
  /***************************************************************************************************
4173
5342
  * *
4174
5343
  * text-area *
@@ -4190,10 +5359,59 @@ button.modal-with-double-button-close-button {
4190
5359
  display: flex;
4191
5360
  box-sizing: border-box;
4192
5361
 
4193
- border-radius: var(--radius-4);
4194
- 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);
4195
5375
  }
4196
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
+
4197
5415
  .text-area-input-wrapper.size-s > textarea {
4198
5416
  padding: var(--spacing-10) var(--spacing-14);
4199
5417
  font-size: var(--font-size-sm);
@@ -4214,21 +5432,27 @@ button.modal-with-double-button-close-button {
4214
5432
  resize: vertical;
4215
5433
  }
4216
5434
 
4217
- .text-area-input-wrapper:has( > textarea[data-disabled]) {
4218
- border-color: var(--color-grey-scale-300);
4219
- background-color: var(--color-grey-scale-100);
5435
+ /* 지우기 버튼은 첫 줄 오른쪽에 붙는다. 위·오른쪽 여백은 size 마다 textarea 안쪽 여백과 같다 */
5436
+
5437
+ .text-area-input-wrapper > .text-area-action {
5438
+ align-self: flex-start;
4220
5439
  }
4221
5440
 
4222
- .text-area-input-wrapper:focus-within {
4223
- 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;
4224
5447
  }
4225
5448
 
4226
5449
  .text-area-helper-text {
4227
- margin-top: var(--spacing-4);
5450
+ margin-top: var(--spacing-6);
5451
+ color: var(--text-muted);
4228
5452
  }
4229
5453
 
4230
5454
  .text-area-helper-text.error {
4231
- color: var(--color-accent-red-500);
5455
+ color: var(--text-error);
4232
5456
  }
4233
5457
 
4234
5458
  .base-text-field.input {
@@ -4242,11 +5466,11 @@ button.modal-with-double-button-close-button {
4242
5466
  }
4243
5467
 
4244
5468
  .base-text-field.input::-moz-placeholder {
4245
- color: var(--color-grey-scale-400);
5469
+ color: var(--text-placeholder);
4246
5470
  }
4247
5471
 
4248
5472
  .base-text-field.input::placeholder {
4249
- color: var(--color-grey-scale-400);
5473
+ color: var(--text-placeholder);
4250
5474
  }
4251
5475
 
4252
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 {
@@ -4256,6 +5480,43 @@ button.modal-with-double-button-close-button {
4256
5480
  transition: background-color 5000s ease-in-out 0s; /* raw-value */
4257
5481
  }
4258
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
+
4259
5520
  /***************************************************************************************************
4260
5521
  * *
4261
5522
  * base-text-field *
@@ -4279,8 +5540,19 @@ button.modal-with-double-button-close-button {
4279
5540
 
4280
5541
  /* 높이는 버튼과 같은 --control-height-* 축, 좌우 여백·글자는 size 마다 버튼과 같은 단계 */
4281
5542
 
4282
- border-radius: var(--radius-4);
4283
- 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);
4284
5556
  }
4285
5557
 
4286
5558
  .text-field-input-wrapper.size-xs {
@@ -4318,25 +5590,55 @@ button.modal-with-double-button-close-button {
4318
5590
  line-height: var(--line-height-lg);
4319
5591
  }
4320
5592
 
4321
- .text-field-input-wrapper:has( > input[data-disabled='true']) {
4322
- border-color: var(--color-grey-scale-300);
4323
- 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);
4324
5601
  }
4325
5602
 
4326
5603
  .text-field-input-wrapper:focus-within {
4327
- 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);
4328
5607
  }
4329
5608
 
4330
- .text-field-input-wrapper > input {
4331
- 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);
4332
5626
  }
4333
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
+
4334
5635
  .text-field-helper-text {
4335
- margin-top: var(--spacing-4);
5636
+ margin-top: var(--spacing-6);
5637
+ color: var(--text-muted);
4336
5638
  }
4337
5639
 
4338
5640
  .text-field-helper-text.error {
4339
- color: var(--color-accent-red-500);
5641
+ color: var(--text-error);
4340
5642
  }
4341
5643
 
4342
5644
  /* 조각(title·close 등)도 base-toast 를 달므로 상자 스타일은 루트와 viewport 에만 건다. */
@@ -4351,12 +5653,12 @@ button.modal-with-double-button-close-button {
4351
5653
 
4352
5654
  .base-toast[data-state='open']:where(:not(.viewport,.title,.description,.action,.close)) {
4353
5655
  animation:
4354
- motion-enter-slide var(--motion-base) var(--motion-ease),
4355
- 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);
4356
5658
  }
4357
5659
 
4358
5660
  .base-toast[data-state='closed']:where(:not(.viewport,.title,.description,.action,.close)) {
4359
- 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;
4360
5662
  }
4361
5663
 
4362
5664
  .base-toast[data-swipe='move']:where(:not(.viewport,.title,.description,.action,.close)) {
@@ -4365,13 +5667,13 @@ button.modal-with-double-button-close-button {
4365
5667
 
4366
5668
  .base-toast[data-swipe='cancel']:where(:not(.viewport,.title,.description,.action,.close)) {
4367
5669
  transform: translateX(0);
4368
- transition: transform var(--motion-fast) var(--motion-ease);
5670
+ transition: transform var(--motion-exit-duration) var(--motion-exit-ease);
4369
5671
  }
4370
5672
 
4371
5673
  .base-toast[data-swipe='end']:where(:not(.viewport,.title,.description,.action,.close)) {
4372
5674
  --motion-swipe-from: var(--radix-toast-swipe-end-x);
4373
5675
  --motion-swipe-to: calc(100% + var(--spacing-24));
4374
- 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;
4375
5677
  }
4376
5678
 
4377
5679
  .base-toast:where(.viewport) {
@@ -4385,7 +5687,6 @@ button.modal-with-double-button-close-button {
4385
5687
  margin: 0;
4386
5688
  padding: var(--spacing-24);
4387
5689
  list-style: none;
4388
- outline: none;
4389
5690
  /* 아래에서 올라오는 자리를 기본으로 두고 position 클래스가 덮는다 */
4390
5691
  --motion-slide-offset: translateY(var(--spacing-16));
4391
5692
  }
@@ -4419,65 +5720,59 @@ button.modal-with-double-button-close-button {
4419
5720
  cursor: var(--cursor-button);
4420
5721
  }
4421
5722
 
4422
- @media (prefers-reduced-motion: reduce) {
4423
- .base-toast:where(:not(.viewport, .title, .description, .action, .close)) {
4424
- animation: none;
4425
- }
4426
- }
4427
-
4428
5723
  /***************************************************************************************************
4429
5724
  * *
4430
5725
  * toast *
4431
5726
  * *
4432
5727
  ***************************************************************************************************/
4433
5728
 
4434
- /* 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) */
4435
5730
 
4436
5731
  .toast {
4437
5732
  align-items: center;
4438
5733
  padding: var(--spacing-12) var(--spacing-14);
4439
- border-radius: var(--radius-6);
4440
- background-color: var(--color-purple-900);
4441
- color: var(--color-white);
5734
+ border-radius: var(--radius-control);
5735
+ background-color: var(--surface-brand);
5736
+ color: var(--text-on-brand);
4442
5737
 
4443
- /* CTAButton secondary 와 같은 연보라. 이 variant 만 글자가 어둡다 */
5738
+ /* CTAButton primary·weak 와 같은 연보라. 이 variant 만 글자가 어둡다 */
4444
5739
  }
4445
5740
 
4446
5741
  .toast.variant-secondary {
4447
- background-color: var(--color-purple-50);
4448
- color: var(--color-purple-900);
5742
+ background-color: var(--surface-brand-subtle);
5743
+ color: var(--text-brand);
4449
5744
  }
4450
5745
 
4451
5746
  .toast.variant-secondary .toast-title,.toast.variant-secondary .toast-close {
4452
- color: var(--color-purple-900);
5747
+ color: var(--text-brand);
4453
5748
  }
4454
5749
 
4455
5750
  .toast.variant-secondary .toast-description {
4456
- color: var(--color-purple-700);
5751
+ color: var(--text-brand-active);
4457
5752
  }
4458
5753
 
4459
5754
  .toast.variant-success {
4460
- background-color: var(--color-accent-green-600);
5755
+ background-color: var(--toast-success-background);
4461
5756
  }
4462
5757
 
4463
5758
  .toast.variant-success .toast-description {
4464
- color: var(--color-accent-green-100);
5759
+ color: var(--toast-success-description);
4465
5760
  }
4466
5761
 
4467
5762
  .toast.variant-warning {
4468
- background-color: var(--color-accent-orange-500);
5763
+ background-color: var(--toast-warning-background);
4469
5764
  }
4470
5765
 
4471
5766
  .toast.variant-warning .toast-description {
4472
- color: var(--color-accent-orange-100);
5767
+ color: var(--toast-warning-description);
4473
5768
  }
4474
5769
 
4475
5770
  .toast.variant-error {
4476
- background-color: var(--color-accent-red-500);
5771
+ background-color: var(--toast-error-background);
4477
5772
  }
4478
5773
 
4479
5774
  .toast.variant-error .toast-description {
4480
- color: var(--color-accent-red-100);
5775
+ color: var(--toast-error-description);
4481
5776
  }
4482
5777
 
4483
5778
  /* success·warning·error 는 앞에 상태 아이콘을 둔다. SVG 에 박힌 색을 글자색으로 맞춘다 */
@@ -4508,7 +5803,7 @@ button.modal-with-double-button-close-button {
4508
5803
  font-size: var(--font-size-sm);
4509
5804
  line-height: var(--line-height-sm);
4510
5805
  font-weight: var(--font-weight-semibold);
4511
- color: var(--color-white);
5806
+ color: var(--text-on-brand);
4512
5807
  word-break: break-word;
4513
5808
  }
4514
5809
 
@@ -4516,11 +5811,11 @@ button.modal-with-double-button-close-button {
4516
5811
  font-size: var(--font-size-xsm);
4517
5812
  line-height: var(--line-height-xsm);
4518
5813
  font-weight: var(--font-weight-regular);
4519
- color: var(--color-purple-200);
5814
+ color: var(--toast-description);
4520
5815
  word-break: break-word;
4521
5816
  }
4522
5817
 
4523
- /* action 은 CTAButton(xs·neutral: 흰 바탕, 보라 글자) 이라 모양은 버튼 CSS 가 정한다 */
5818
+ /* action 은 CTAButton(xs·neutral·fill: 연회색 바탕, 검정 글자) 이라 모양은 버튼 CSS 가 정한다 */
4524
5819
 
4525
5820
  .toast-action {
4526
5821
  white-space: nowrap;
@@ -4532,7 +5827,7 @@ button.modal-with-double-button-close-button {
4532
5827
  justify-content: center;
4533
5828
  width: var(--icon-size-s);
4534
5829
  height: var(--icon-size-s);
4535
- color: var(--color-white);
5830
+ color: var(--text-on-brand);
4536
5831
  opacity: 0.7;
4537
5832
  }
4538
5833
 
@@ -4578,9 +5873,12 @@ button.modal-with-double-button-close-button {
4578
5873
  align-items: center;
4579
5874
  gap: var(--spacing-10);
4580
5875
 
4581
- background-color: var(--color-purple-900);
4582
- color: var(--color-white);
4583
- 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);
4584
5882
  padding: var(--spacing-12);
4585
5883
 
4586
5884
  font-size: var(--font-size-sm);
@@ -4598,8 +5896,10 @@ button.modal-with-double-button-close-button {
4598
5896
  border-style: solid;
4599
5897
  }
4600
5898
 
5899
+ /* 트리거에서 떨어지는 거리는 translate 로 둔다. transform 은 등장 키프레임이 쓴다 */
5900
+
4601
5901
  .tooltip-content.direction-top {
4602
- transform: translateY(calc(-1 * var(--spacing-10)));
5902
+ translate: 0 calc(-1 * var(--spacing-10));
4603
5903
  }
4604
5904
 
4605
5905
  .tooltip-content.direction-top::before {
@@ -4607,11 +5907,11 @@ button.modal-with-double-button-close-button {
4607
5907
  left: 50%;
4608
5908
  transform: translateX(-50%);
4609
5909
  border-width: var(--tooltip-arrow) var(--tooltip-arrow) 0 var(--tooltip-arrow);
4610
- border-color: var(--color-purple-900) transparent transparent transparent;
5910
+ border-color: var(--tooltip-surface) transparent transparent transparent;
4611
5911
  }
4612
5912
 
4613
5913
  .tooltip-content.direction-bottom {
4614
- transform: translateY(var(--spacing-10));
5914
+ translate: 0 var(--spacing-10);
4615
5915
  }
4616
5916
 
4617
5917
  .tooltip-content.direction-bottom::before {
@@ -4619,11 +5919,11 @@ button.modal-with-double-button-close-button {
4619
5919
  left: 50%;
4620
5920
  transform: translateX(-50%);
4621
5921
  border-width: 0 var(--tooltip-arrow) var(--tooltip-arrow) var(--tooltip-arrow);
4622
- border-color: transparent transparent var(--color-purple-900) transparent;
5922
+ border-color: transparent transparent var(--tooltip-surface) transparent;
4623
5923
  }
4624
5924
 
4625
5925
  .tooltip-content.direction-left {
4626
- transform: translateX(calc(-1 * var(--spacing-10)));
5926
+ translate: calc(-1 * var(--spacing-10)) 0;
4627
5927
  }
4628
5928
 
4629
5929
  .tooltip-content.direction-left::before {
@@ -4631,11 +5931,11 @@ button.modal-with-double-button-close-button {
4631
5931
  top: 50%;
4632
5932
  transform: translateY(-50%);
4633
5933
  border-width: var(--tooltip-arrow) 0 var(--tooltip-arrow) var(--tooltip-arrow);
4634
- border-color: transparent transparent transparent var(--color-purple-900);
5934
+ border-color: transparent transparent transparent var(--tooltip-surface);
4635
5935
  }
4636
5936
 
4637
5937
  .tooltip-content.direction-right {
4638
- transform: translateX(var(--spacing-10));
5938
+ translate: var(--spacing-10) 0;
4639
5939
  }
4640
5940
 
4641
5941
  .tooltip-content.direction-right::before {
@@ -4643,5 +5943,38 @@ button.modal-with-double-button-close-button {
4643
5943
  top: 50%;
4644
5944
  transform: translateY(-50%);
4645
5945
  border-width: var(--tooltip-arrow) var(--tooltip-arrow) var(--tooltip-arrow) 0;
4646
- border-color: transparent var(--color-purple-900) transparent transparent;
5946
+ border-color: transparent var(--tooltip-surface) transparent transparent;
4647
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
+ }