@qw-ui/tokens 0.3.0-next.3 → 0.3.0-next.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tokens.ts CHANGED
@@ -275,6 +275,7 @@ export const lightTokens = {
275
275
  "--qw-ref-size-radius-sm": "4px",
276
276
  "--qw-ref-size-radius-md": "8px",
277
277
  "--qw-ref-size-radius-lg": "14px",
278
+ "--qw-ref-size-radius-xl": "16px",
278
279
  "--qw-ref-size-radius-full": "9999px",
279
280
  "--qw-ref-size-control-size-sm": "32px",
280
281
  "--qw-ref-size-control-size-md": "40px",
@@ -282,7 +283,20 @@ export const lightTokens = {
282
283
  "--qw-ref-size-icon-size-sm": "16px",
283
284
  "--qw-ref-size-icon-size-md": "20px",
284
285
  "--qw-ref-size-icon-size-lg": "24px",
285
- "--qw-ref-size-border-width-hairline": "1px",
286
+ "--qw-ref-size-stroke-width-half": "0.5px",
287
+ "--qw-ref-size-stroke-width-base": "1px",
288
+ "--qw-ref-size-stroke-width-double": "2px",
289
+ "--qw-ref-size-stroke-width-triple": "3px",
290
+ "--qw-ref-size-action-control-height-2xs": "24px",
291
+ "--qw-ref-size-action-control-height-xs": "28px",
292
+ "--qw-ref-size-action-control-height-sm": "32px",
293
+ "--qw-ref-size-action-control-height-md": "36px",
294
+ "--qw-ref-size-action-control-height-lg": "42px",
295
+ "--qw-ref-size-action-control-height-xl": "50px",
296
+ "--qw-ref-size-action-control-icon-2xs": "14px",
297
+ "--qw-ref-size-avatar-diameter-sm": "40px",
298
+ "--qw-ref-size-avatar-diameter-md": "50px",
299
+ "--qw-ref-size-avatar-diameter-lg": "58px",
286
300
  "--qw-ref-typography-line-height-tight": "1.25",
287
301
  "--qw-ref-typography-line-height-normal": "1.5",
288
302
  "--qw-ref-typography-line-height-relaxed": "1.75",
@@ -304,6 +318,7 @@ export const lightTokens = {
304
318
  "--qw-ref-typography-font-weight-medium": "500",
305
319
  "--qw-ref-typography-font-weight-semibold": "600",
306
320
  "--qw-ref-typography-font-size-base": "14px",
321
+ "--qw-ref-typography-font-size-xs": "11px",
307
322
  "--qw-ref-typography-font-size-sm": "12px",
308
323
  "--qw-ref-typography-font-size-lg": "16px",
309
324
  "--qw-ref-typography-font-size-xl": "20px",
@@ -316,8 +331,10 @@ export const lightTokens = {
316
331
  "--qw-ref-effect-shadow-sm": "0px 1px 2px 0px rgba(0, 0, 0, 0.08)",
317
332
  "--qw-ref-effect-shadow-md": "0px 4px 12px 0px rgba(0, 0, 0, 0.12)",
318
333
  "--qw-ref-effect-shadow-lg": "0px 8px 24px 0px rgba(0, 0, 0, 0.16)",
334
+ "--qw-sem-size-radius-sm": "4px",
319
335
  "--qw-sem-size-radius-control": "8px",
320
336
  "--qw-sem-size-radius-card": "14px",
337
+ "--qw-sem-size-radius-xl": "16px",
321
338
  "--qw-sem-size-radius-pill": "9999px",
322
339
  "--qw-sem-size-radius-full": "9999px",
323
340
  "--qw-sem-size-control-height-sm": "32px",
@@ -326,6 +343,40 @@ export const lightTokens = {
326
343
  "--qw-sem-size-icon-size-sm": "16px",
327
344
  "--qw-sem-size-icon-size-md": "20px",
328
345
  "--qw-sem-size-icon-size-lg": "24px",
346
+ "--qw-sem-size-action-control-height-2xs": "24px",
347
+ "--qw-sem-size-action-control-height-xs": "28px",
348
+ "--qw-sem-size-action-control-height-sm": "32px",
349
+ "--qw-sem-size-action-control-height-md": "36px",
350
+ "--qw-sem-size-action-control-height-lg": "42px",
351
+ "--qw-sem-size-action-control-height-xl": "50px",
352
+ "--qw-sem-size-action-control-padding-inline-2xs": "8px",
353
+ "--qw-sem-size-action-control-padding-inline-xs": "8px",
354
+ "--qw-sem-size-action-control-padding-inline-sm": "16px",
355
+ "--qw-sem-size-action-control-padding-inline-md": "16px",
356
+ "--qw-sem-size-action-control-padding-inline-lg": "20px",
357
+ "--qw-sem-size-action-control-padding-inline-xl": "32px",
358
+ "--qw-sem-size-action-control-icon-2xs": "14px",
359
+ "--qw-sem-size-action-control-icon-xs": "16px",
360
+ "--qw-sem-size-action-control-icon-sm": "16px",
361
+ "--qw-sem-size-action-control-icon-md": "16px",
362
+ "--qw-sem-size-action-control-icon-lg": "16px",
363
+ "--qw-sem-size-action-control-icon-xl": "20px",
364
+ "--qw-sem-size-action-control-gap-2xs": "4px",
365
+ "--qw-sem-size-action-control-gap-xs": "4px",
366
+ "--qw-sem-size-action-control-gap-sm": "8px",
367
+ "--qw-sem-size-action-control-gap-md": "8px",
368
+ "--qw-sem-size-action-control-gap-lg": "8px",
369
+ "--qw-sem-size-action-control-gap-xl": "8px",
370
+ "--qw-sem-size-border-width-default": "1px",
371
+ "--qw-sem-size-border-width-strong": "2px",
372
+ "--qw-sem-size-divider-width-thin": "0.5px",
373
+ "--qw-sem-size-divider-width-default": "1px",
374
+ "--qw-sem-size-focus-ring-width": "2px",
375
+ "--qw-sem-size-focus-ring-offset": "2px",
376
+ "--qw-sem-size-indicator-loading": "2px",
377
+ "--qw-sem-size-avatar-diameter-sm": "40px",
378
+ "--qw-sem-size-avatar-diameter-md": "50px",
379
+ "--qw-sem-size-avatar-diameter-lg": "58px",
329
380
  "--qw-sem-size-inset-sm": "8px",
330
381
  "--qw-sem-size-stack-sm": "8px",
331
382
  "--qw-sem-size-inset-md": "16px",
@@ -370,6 +421,16 @@ export const lightTokens = {
370
421
  "--qw-sem-typography-caption-font-weight": "400",
371
422
  "--qw-sem-typography-caption-line-height": "1.5",
372
423
  "--qw-sem-typography-caption-letter-spacing": "0px",
424
+ "--qw-sem-typography-body-lg-font-family": "system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
425
+ "--qw-sem-typography-body-lg-font-size": "16px",
426
+ "--qw-sem-typography-body-lg-font-weight": "400",
427
+ "--qw-sem-typography-body-lg-line-height": "1.5",
428
+ "--qw-sem-typography-body-lg-letter-spacing": "0px",
429
+ "--qw-sem-typography-label-sm-font-family": "system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
430
+ "--qw-sem-typography-label-sm-font-size": "11px",
431
+ "--qw-sem-typography-label-sm-font-weight": "500",
432
+ "--qw-sem-typography-label-sm-line-height": "1.5",
433
+ "--qw-sem-typography-label-sm-letter-spacing": "0px",
373
434
  "--qw-sem-typography-code-font-family": "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace",
374
435
  "--qw-sem-typography-code-font-size": "12px",
375
436
  "--qw-sem-typography-code-font-weight": "400",
@@ -384,108 +445,64 @@ export const lightTokens = {
384
445
  "--qw-sem-color-surface-elevated": "#ffffff",
385
446
  "--qw-sem-color-surface-header": "#EEEEEE",
386
447
  "--qw-sem-color-surface-brand-subtle": "#EBF5FF",
448
+ "--qw-sem-color-surface-canvas": "#ffffff",
449
+ "--qw-sem-color-surface-sunken": "#EEEEEE",
450
+ "--qw-sem-color-surface-selected": "rgba(34, 34, 34, 0.05)",
451
+ "--qw-sem-color-surface-inverse": "#353535",
452
+ "--qw-sem-color-surface-canvas-subtle": "#F6F6F6",
387
453
  "--qw-sem-color-content-primary": "#222222",
388
454
  "--qw-sem-color-content-secondary": "#666666",
389
455
  "--qw-sem-color-content-tertiary": "#999999",
390
456
  "--qw-sem-color-content-placeholder": "#CCCCCC",
391
457
  "--qw-sem-color-content-intro": "#A2A9B6",
458
+ "--qw-sem-color-content-disabled": "rgba(34, 34, 34, 0.3)",
459
+ "--qw-sem-color-content-link": "#003DB8",
460
+ "--qw-sem-color-content-icon-subtle": "rgba(34, 34, 34, 0.05)",
461
+ "--qw-sem-color-content-inverse": "#ffffff",
462
+ "--qw-sem-color-content-on-solid": "#ffffff",
463
+ "--qw-sem-color-content-on-warning-subtle": "#453200",
392
464
  "--qw-sem-color-border-default": "#EEEEEE",
393
465
  "--qw-sem-color-border-strong": "#CCCCCC",
394
466
  "--qw-sem-color-border-focus": "#0011ff",
467
+ "--qw-sem-color-border-subtle": "rgba(34, 34, 34, 0.05)",
468
+ "--qw-sem-color-border-disabled": "rgba(34, 34, 34, 0.1)",
469
+ "--qw-sem-color-border-on-media": "#ffffff",
395
470
  "--qw-sem-color-fill-subtle": "#F6F6F6",
396
471
  "--qw-sem-color-fill-hover": "#EEEEEE",
397
472
  "--qw-sem-color-fill-active": "#EBF5FF",
398
473
  "--qw-sem-color-fill-disabled": "#F6F6F6",
474
+ "--qw-sem-color-fill-track": "rgba(34, 34, 34, 0.1)",
399
475
  "--qw-sem-color-action-brand": "#0011ff",
400
476
  "--qw-sem-color-action-product": "#0d53ff",
401
477
  "--qw-sem-color-action-selected": "rgba(13, 83, 255, 0.2)",
402
478
  "--qw-sem-color-action-inverse": "#ffffff",
479
+ "--qw-sem-color-control-action-brand-subtle": "rgba(0, 17, 255, 0.1)",
480
+ "--qw-sem-color-control-action-product-subtle": "rgba(13, 83, 255, 0.1)",
481
+ "--qw-sem-color-control-action-danger-default": "#FF5745",
482
+ "--qw-sem-color-control-action-danger-subtle": "rgba(255, 64, 64, 0.1)",
483
+ "--qw-sem-color-control-action-neutral-subtle": "rgba(34, 34, 34, 0.05)",
484
+ "--qw-sem-color-control-selection-brand": "rgba(0, 17, 255, 0.1)",
485
+ "--qw-sem-color-control-selection-product": "rgba(13, 83, 255, 0.1)",
486
+ "--qw-sem-color-selection-text-background": "rgba(13, 83, 255, 0.2)",
403
487
  "--qw-sem-color-status-success": "#1f993f",
404
488
  "--qw-sem-color-status-warning": "#ffd575",
405
489
  "--qw-sem-color-status-danger": "#FF5745",
406
490
  "--qw-sem-color-status-info": "#0d53ff",
491
+ "--qw-sem-color-status-success-subtle": "rgba(31, 153, 63, 0.1)",
492
+ "--qw-sem-color-status-warning-subtle": "rgba(255, 213, 117, 0.2)",
493
+ "--qw-sem-color-status-danger-subtle": "rgba(255, 64, 64, 0.1)",
494
+ "--qw-sem-color-status-info-subtle": "rgba(13, 83, 255, 0.1)",
407
495
  "--qw-sem-color-overlay-scrim": "rgba(34, 34, 34, 0.5)",
408
- "--qw-sem-color-overlay-guide": "rgba(34, 34, 34, 0.7)",
496
+ "--qw-sem-color-overlay-guide": "rgba(13, 83, 255, 0.1)",
497
+ "--qw-sem-color-overlay-media-subtle": "rgba(34, 34, 34, 0.4)",
498
+ "--qw-sem-color-overlay-media-strong": "rgba(34, 34, 34, 0.5)",
409
499
  "--qw-sem-color-shadow": "rgba(34, 34, 34, 0.1)",
500
+ "--qw-sem-effect-shadow-card-color": "rgba(34, 34, 34, 0.1)",
501
+ "--qw-sem-effect-shadow-floating-color": "rgba(34, 34, 34, 0.1)",
502
+ "--qw-sem-effect-shadow-dialog-color": "rgba(34, 34, 34, 0.1)",
503
+ "--qw-sem-effect-shadow-card": "0px 1px 2px 0px rgba(34, 34, 34, 0.1)",
504
+ "--qw-sem-effect-shadow-floating": "0px 4px 12px 0px rgba(34, 34, 34, 0.1)",
410
505
  "--qw-sem-effect-shadow-dialog": "0px 8px 24px 0px rgba(34, 34, 34, 0.1)",
411
- "--qw-compat-button-dimension-height-mini": "24px",
412
- "--qw-compat-button-dimension-height-xs": "28px",
413
- "--qw-compat-button-dimension-height-s": "32px",
414
- "--qw-compat-button-dimension-height-normal": "36px",
415
- "--qw-compat-button-dimension-height-m": "42px",
416
- "--qw-compat-button-dimension-height-l": "50px",
417
- "--qw-compat-button-dimension-square-mini": "24px",
418
- "--qw-compat-button-dimension-square-xs": "28px",
419
- "--qw-compat-button-dimension-square-s": "32px",
420
- "--qw-compat-button-dimension-square-normal": "36px",
421
- "--qw-compat-button-dimension-square-m": "42px",
422
- "--qw-compat-button-dimension-square-l": "50px",
423
- "--qw-compat-button-dimension-padding-inline-mini": "8px",
424
- "--qw-compat-button-dimension-padding-inline-xs": "8px",
425
- "--qw-compat-button-dimension-padding-inline-s": "16px",
426
- "--qw-compat-button-dimension-padding-inline-normal": "16px",
427
- "--qw-compat-button-dimension-padding-inline-m": "20px",
428
- "--qw-compat-button-dimension-padding-inline-l": "32px",
429
- "--qw-compat-button-dimension-icon-mini": "14px",
430
- "--qw-compat-button-dimension-icon-xs": "16px",
431
- "--qw-compat-button-dimension-icon-s": "16px",
432
- "--qw-compat-button-dimension-icon-normal": "16px",
433
- "--qw-compat-button-dimension-icon-m": "16px",
434
- "--qw-compat-button-dimension-icon-l": "20px",
435
- "--qw-compat-button-dimension-gap-mini": "4px",
436
- "--qw-compat-button-dimension-gap-xs": "4px",
437
- "--qw-compat-button-dimension-gap-s": "8px",
438
- "--qw-compat-button-dimension-gap-normal": "8px",
439
- "--qw-compat-button-dimension-gap-m": "8px",
440
- "--qw-compat-button-dimension-gap-l": "8px",
441
- "--qw-compat-button-dimension-border-width": "1px",
442
- "--qw-compat-button-dimension-focus-ring-width": "2px",
443
- "--qw-compat-button-dimension-focus-ring-offset": "2px",
444
- "--qw-compat-button-dimension-spinner-stroke": "2px",
445
- "--qw-compat-button-color-bg-soft-brand": "rgba(0, 68, 255, 0.1)",
446
- "--qw-compat-button-color-bg-soft-danger": "rgba(255, 87, 69, 0.1)",
447
- "--qw-compat-button-color-bg-neutral-gray": "rgba(34, 34, 34, 0.06)",
448
- "--qw-compat-loading-color-logo": "rgba(34, 34, 34, 0.06)",
449
- "--qw-compat-loading-dimension-radius-surface": "16px",
450
- "--qw-compat-tag-dimension-radius-small": "2px",
451
- "--qw-compat-tag-dimension-radius-medium": "4px",
452
- "--qw-compat-tag-dimension-radius-large": "4px",
453
- "--qw-compat-tag-dimension-border-width": "1px",
454
- "--qw-compat-tag-dimension-height-small": "12px",
455
- "--qw-compat-tag-dimension-height-medium": "16px",
456
- "--qw-compat-tag-dimension-height-large": "20px",
457
- "--qw-compat-tag-dimension-padding-inline-small": "3px",
458
- "--qw-compat-tag-dimension-padding-inline-medium": "4px",
459
- "--qw-compat-tag-dimension-padding-inline-large": "5px",
460
- "--qw-compat-tag-typography-line-height-small": "16px",
461
- "--qw-compat-tag-typography-line-height-medium": "22px",
462
- "--qw-compat-tag-typography-line-height-large": "22px",
463
- "--qw-compat-tag-typography-font-size-small": "8px",
464
- "--qw-compat-tag-typography-font-size-medium": "11px",
465
- "--qw-compat-tag-typography-font-size-large": "11px",
466
- "--qw-compat-avatar-dimension-diameter-s": "40px",
467
- "--qw-compat-avatar-dimension-diameter-m": "50px",
468
- "--qw-compat-avatar-dimension-diameter-l": "58px",
469
- "--qw-compat-avatar-color-border": "rgba(34, 34, 34, 0.06)",
470
- "--qw-compat-avatar-dimension-border-width": "1px",
471
- "--qw-compat-avatar-dimension-badge-font-size": "11px",
472
- "--qw-compat-avatar-dimension-badge-line-height": "16px",
473
- "--qw-compat-avatar-dimension-badge-padding": "5px",
474
- "--qw-compat-avatar-color-badge-border": "#FFFFFF",
475
- "--qw-compat-avatar-color-badge-text": "#FFFFFF",
476
- "--qw-compat-textarea-color-paste-text": "#FFFFFF",
477
- "--qw-compat-tabs-color-button-bg-selected": "rgba(34, 34, 34, 0.06)",
478
- "--qw-compat-tabs-color-button-border": "rgba(34, 34, 34, 0.03)",
479
- "--qw-compat-tabs-dimension-border-width": "1px",
480
- "--qw-compat-image-dimension-border-width": "1px",
481
- "--qw-compat-divider-color-border": "rgba(34, 34, 34, 0.03)",
482
- "--qw-compat-divider-dimension-weight-thin": "0.5px",
483
- "--qw-compat-divider-dimension-weight-thick": "1px",
484
- "--qw-compat-empty-dimension-description-font-size": "16px",
485
- "--qw-compat-empty-dimension-description-line-height": "26px",
486
- "--qw-compat-empty-dimension-title-gap": "10px",
487
- "--qw-compat-image-color-background": "#F8F8F8",
488
- "--qw-compat-skeleton-color-background": "rgba(185, 185, 185, 0.1)",
489
506
  } as const;
490
507
  export const darkTokens = {
491
508
  "--qw-ref-color-brand-a5": "rgba(0, 17, 255, 0.05)",
@@ -763,6 +780,7 @@ export const darkTokens = {
763
780
  "--qw-ref-size-radius-sm": "4px",
764
781
  "--qw-ref-size-radius-md": "8px",
765
782
  "--qw-ref-size-radius-lg": "14px",
783
+ "--qw-ref-size-radius-xl": "16px",
766
784
  "--qw-ref-size-radius-full": "9999px",
767
785
  "--qw-ref-size-control-size-sm": "32px",
768
786
  "--qw-ref-size-control-size-md": "40px",
@@ -770,7 +788,20 @@ export const darkTokens = {
770
788
  "--qw-ref-size-icon-size-sm": "16px",
771
789
  "--qw-ref-size-icon-size-md": "20px",
772
790
  "--qw-ref-size-icon-size-lg": "24px",
773
- "--qw-ref-size-border-width-hairline": "1px",
791
+ "--qw-ref-size-stroke-width-half": "0.5px",
792
+ "--qw-ref-size-stroke-width-base": "1px",
793
+ "--qw-ref-size-stroke-width-double": "2px",
794
+ "--qw-ref-size-stroke-width-triple": "3px",
795
+ "--qw-ref-size-action-control-height-2xs": "24px",
796
+ "--qw-ref-size-action-control-height-xs": "28px",
797
+ "--qw-ref-size-action-control-height-sm": "32px",
798
+ "--qw-ref-size-action-control-height-md": "36px",
799
+ "--qw-ref-size-action-control-height-lg": "42px",
800
+ "--qw-ref-size-action-control-height-xl": "50px",
801
+ "--qw-ref-size-action-control-icon-2xs": "14px",
802
+ "--qw-ref-size-avatar-diameter-sm": "40px",
803
+ "--qw-ref-size-avatar-diameter-md": "50px",
804
+ "--qw-ref-size-avatar-diameter-lg": "58px",
774
805
  "--qw-ref-typography-line-height-tight": "1.25",
775
806
  "--qw-ref-typography-line-height-normal": "1.5",
776
807
  "--qw-ref-typography-line-height-relaxed": "1.75",
@@ -792,6 +823,7 @@ export const darkTokens = {
792
823
  "--qw-ref-typography-font-weight-medium": "500",
793
824
  "--qw-ref-typography-font-weight-semibold": "600",
794
825
  "--qw-ref-typography-font-size-base": "14px",
826
+ "--qw-ref-typography-font-size-xs": "11px",
795
827
  "--qw-ref-typography-font-size-sm": "12px",
796
828
  "--qw-ref-typography-font-size-lg": "16px",
797
829
  "--qw-ref-typography-font-size-xl": "20px",
@@ -804,8 +836,10 @@ export const darkTokens = {
804
836
  "--qw-ref-effect-shadow-sm": "0px 1px 2px 0px rgba(0, 0, 0, 0.08)",
805
837
  "--qw-ref-effect-shadow-md": "0px 4px 12px 0px rgba(0, 0, 0, 0.12)",
806
838
  "--qw-ref-effect-shadow-lg": "0px 8px 24px 0px rgba(0, 0, 0, 0.16)",
839
+ "--qw-sem-size-radius-sm": "4px",
807
840
  "--qw-sem-size-radius-control": "8px",
808
841
  "--qw-sem-size-radius-card": "14px",
842
+ "--qw-sem-size-radius-xl": "16px",
809
843
  "--qw-sem-size-radius-pill": "9999px",
810
844
  "--qw-sem-size-radius-full": "9999px",
811
845
  "--qw-sem-size-control-height-sm": "32px",
@@ -814,6 +848,40 @@ export const darkTokens = {
814
848
  "--qw-sem-size-icon-size-sm": "16px",
815
849
  "--qw-sem-size-icon-size-md": "20px",
816
850
  "--qw-sem-size-icon-size-lg": "24px",
851
+ "--qw-sem-size-action-control-height-2xs": "24px",
852
+ "--qw-sem-size-action-control-height-xs": "28px",
853
+ "--qw-sem-size-action-control-height-sm": "32px",
854
+ "--qw-sem-size-action-control-height-md": "36px",
855
+ "--qw-sem-size-action-control-height-lg": "42px",
856
+ "--qw-sem-size-action-control-height-xl": "50px",
857
+ "--qw-sem-size-action-control-padding-inline-2xs": "8px",
858
+ "--qw-sem-size-action-control-padding-inline-xs": "8px",
859
+ "--qw-sem-size-action-control-padding-inline-sm": "16px",
860
+ "--qw-sem-size-action-control-padding-inline-md": "16px",
861
+ "--qw-sem-size-action-control-padding-inline-lg": "20px",
862
+ "--qw-sem-size-action-control-padding-inline-xl": "32px",
863
+ "--qw-sem-size-action-control-icon-2xs": "14px",
864
+ "--qw-sem-size-action-control-icon-xs": "16px",
865
+ "--qw-sem-size-action-control-icon-sm": "16px",
866
+ "--qw-sem-size-action-control-icon-md": "16px",
867
+ "--qw-sem-size-action-control-icon-lg": "16px",
868
+ "--qw-sem-size-action-control-icon-xl": "20px",
869
+ "--qw-sem-size-action-control-gap-2xs": "4px",
870
+ "--qw-sem-size-action-control-gap-xs": "4px",
871
+ "--qw-sem-size-action-control-gap-sm": "8px",
872
+ "--qw-sem-size-action-control-gap-md": "8px",
873
+ "--qw-sem-size-action-control-gap-lg": "8px",
874
+ "--qw-sem-size-action-control-gap-xl": "8px",
875
+ "--qw-sem-size-border-width-default": "1px",
876
+ "--qw-sem-size-border-width-strong": "2px",
877
+ "--qw-sem-size-divider-width-thin": "0.5px",
878
+ "--qw-sem-size-divider-width-default": "1px",
879
+ "--qw-sem-size-focus-ring-width": "2px",
880
+ "--qw-sem-size-focus-ring-offset": "2px",
881
+ "--qw-sem-size-indicator-loading": "2px",
882
+ "--qw-sem-size-avatar-diameter-sm": "40px",
883
+ "--qw-sem-size-avatar-diameter-md": "50px",
884
+ "--qw-sem-size-avatar-diameter-lg": "58px",
817
885
  "--qw-sem-size-inset-sm": "8px",
818
886
  "--qw-sem-size-stack-sm": "8px",
819
887
  "--qw-sem-size-inset-md": "16px",
@@ -858,6 +926,16 @@ export const darkTokens = {
858
926
  "--qw-sem-typography-caption-font-weight": "400",
859
927
  "--qw-sem-typography-caption-line-height": "1.5",
860
928
  "--qw-sem-typography-caption-letter-spacing": "0px",
929
+ "--qw-sem-typography-body-lg-font-family": "system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
930
+ "--qw-sem-typography-body-lg-font-size": "16px",
931
+ "--qw-sem-typography-body-lg-font-weight": "400",
932
+ "--qw-sem-typography-body-lg-line-height": "1.5",
933
+ "--qw-sem-typography-body-lg-letter-spacing": "0px",
934
+ "--qw-sem-typography-label-sm-font-family": "system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
935
+ "--qw-sem-typography-label-sm-font-size": "11px",
936
+ "--qw-sem-typography-label-sm-font-weight": "500",
937
+ "--qw-sem-typography-label-sm-line-height": "1.5",
938
+ "--qw-sem-typography-label-sm-letter-spacing": "0px",
861
939
  "--qw-sem-typography-code-font-family": "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace",
862
940
  "--qw-sem-typography-code-font-size": "12px",
863
941
  "--qw-sem-typography-code-font-weight": "400",
@@ -872,47 +950,72 @@ export const darkTokens = {
872
950
  "--qw-sem-color-surface-elevated": "#2D2D2D",
873
951
  "--qw-sem-color-surface-header": "#3A3A3A",
874
952
  "--qw-sem-color-surface-brand-subtle": "#001D66",
953
+ "--qw-sem-color-surface-canvas": "#121212",
954
+ "--qw-sem-color-surface-sunken": "#2D2D2D",
955
+ "--qw-sem-color-surface-selected": "rgba(255, 255, 255, 0.1)",
956
+ "--qw-sem-color-surface-inverse": "#353535",
957
+ "--qw-sem-color-surface-canvas-subtle": "#121212",
875
958
  "--qw-sem-color-content-primary": "#ffffff",
876
959
  "--qw-sem-color-content-secondary": "#999999",
877
960
  "--qw-sem-color-content-tertiary": "#666666",
878
961
  "--qw-sem-color-content-placeholder": "rgba(255, 255, 255, 0.3)",
879
962
  "--qw-sem-color-content-intro": "#888E99",
963
+ "--qw-sem-color-content-disabled": "rgba(255, 255, 255, 0.3)",
964
+ "--qw-sem-color-content-link": "#3086FF",
965
+ "--qw-sem-color-content-icon-subtle": "rgba(255, 255, 255, 0.1)",
966
+ "--qw-sem-color-content-inverse": "#222222",
967
+ "--qw-sem-color-content-on-solid": "#ffffff",
968
+ "--qw-sem-color-content-on-warning-subtle": "#F4D38B",
880
969
  "--qw-sem-color-border-default": "#3A3A3A",
881
970
  "--qw-sem-color-border-strong": "#666666",
882
971
  "--qw-sem-color-border-focus": "#426EFF",
972
+ "--qw-sem-color-border-subtle": "rgba(255, 255, 255, 0.05)",
973
+ "--qw-sem-color-border-disabled": "rgba(255, 255, 255, 0.1)",
974
+ "--qw-sem-color-border-on-media": "#ffffff",
883
975
  "--qw-sem-color-fill-subtle": "rgba(255, 255, 255, 0.2)",
884
976
  "--qw-sem-color-fill-hover": "#2D2D2D",
885
977
  "--qw-sem-color-fill-active": "#001D66",
886
978
  "--qw-sem-color-fill-disabled": "#202020",
979
+ "--qw-sem-color-fill-track": "rgba(255, 255, 255, 0.2)",
887
980
  "--qw-sem-color-action-brand": "#426EFF",
888
981
  "--qw-sem-color-action-product": "#266FFF",
889
982
  "--qw-sem-color-action-selected": "rgba(13, 83, 255, 0.4)",
890
983
  "--qw-sem-color-action-inverse": "#222222",
984
+ "--qw-sem-color-control-action-brand-subtle": "rgba(0, 17, 255, 0.2)",
985
+ "--qw-sem-color-control-action-product-subtle": "rgba(13, 83, 255, 0.2)",
986
+ "--qw-sem-color-control-action-danger-default": "#FF5745",
987
+ "--qw-sem-color-control-action-danger-subtle": "rgba(255, 64, 64, 0.2)",
988
+ "--qw-sem-color-control-action-neutral-subtle": "rgba(255, 255, 255, 0.1)",
989
+ "--qw-sem-color-control-selection-brand": "rgba(0, 17, 255, 0.2)",
990
+ "--qw-sem-color-control-selection-product": "rgba(13, 83, 255, 0.2)",
991
+ "--qw-sem-color-selection-text-background": "rgba(13, 83, 255, 0.4)",
891
992
  "--qw-sem-color-status-success": "#1f993f",
892
993
  "--qw-sem-color-status-warning": "#ffd575",
893
994
  "--qw-sem-color-status-danger": "#FF5745",
894
995
  "--qw-sem-color-status-info": "#266FFF",
996
+ "--qw-sem-color-status-success-subtle": "rgba(31, 153, 63, 0.2)",
997
+ "--qw-sem-color-status-warning-subtle": "rgba(255, 213, 117, 0.2)",
998
+ "--qw-sem-color-status-danger-subtle": "rgba(255, 64, 64, 0.2)",
999
+ "--qw-sem-color-status-info-subtle": "rgba(13, 83, 255, 0.2)",
895
1000
  "--qw-sem-color-overlay-scrim": "rgba(34, 34, 34, 0.7)",
896
- "--qw-sem-color-overlay-guide": "rgba(34, 34, 34, 0.7)",
1001
+ "--qw-sem-color-overlay-guide": "rgba(13, 83, 255, 0.2)",
1002
+ "--qw-sem-color-overlay-media-subtle": "rgba(34, 34, 34, 0.4)",
1003
+ "--qw-sem-color-overlay-media-strong": "rgba(34, 34, 34, 0.5)",
897
1004
  "--qw-sem-color-shadow": "rgba(34, 34, 34, 0.5)",
1005
+ "--qw-sem-effect-shadow-card-color": "rgba(34, 34, 34, 0.5)",
1006
+ "--qw-sem-effect-shadow-floating-color": "rgba(34, 34, 34, 0.5)",
1007
+ "--qw-sem-effect-shadow-dialog-color": "rgba(34, 34, 34, 0.5)",
1008
+ "--qw-sem-effect-shadow-card": "0px 1px 2px 0px rgba(34, 34, 34, 0.5)",
1009
+ "--qw-sem-effect-shadow-floating": "0px 4px 12px 0px rgba(34, 34, 34, 0.5)",
898
1010
  "--qw-sem-effect-shadow-dialog": "0px 8px 24px 0px rgba(34, 34, 34, 0.5)",
899
- "--qw-compat-button-color-bg-soft-brand": "rgba(66, 110, 255, 0.24)",
900
- "--qw-compat-button-color-bg-soft-danger": "rgba(254, 135, 122, 0.2)",
901
- "--qw-compat-button-color-bg-neutral-gray": "rgba(255, 255, 255, 0.1)",
902
- "--qw-compat-loading-color-logo": "rgba(255, 255, 255, 0.1)",
903
- "--qw-compat-avatar-color-border": "rgba(255, 255, 255, 0.1)",
904
- "--qw-compat-tabs-color-button-bg-selected": "rgba(255, 255, 255, 0.1)",
905
- "--qw-compat-tabs-color-button-border": "rgba(255, 255, 255, 0.05)",
906
- "--qw-compat-divider-color-border": "rgba(255, 255, 255, 0.05)",
907
- "--qw-compat-image-color-background": "#333333",
908
1011
  } as const;
909
1012
  export type TokenName = keyof typeof lightTokens;
910
1013
  export type RefTokenPath = TokenName extends `--qw-ref-${infer P}` ? P : never;
911
- export const semColorSuffixes = ["surface-base","surface-subtle","surface-elevated","surface-header","surface-brand-subtle","content-primary","content-secondary","content-tertiary","content-placeholder","content-intro","border-default","border-strong","border-focus","fill-subtle","fill-hover","fill-active","fill-disabled","action-brand","action-product","action-selected","action-inverse","status-success","status-warning","status-danger","status-info","overlay-scrim","overlay-guide","shadow"] as const;
912
- export const semSizeSuffixes = ["radius-control","radius-card","radius-pill","radius-full","control-height-sm","control-height-md","control-height-lg","icon-size-sm","icon-size-md","icon-size-lg","inset-sm","stack-sm","inset-md","stack-md","inset-lg","stack-lg","opacity-disabled","z-index-dropdown","z-index-sticky","z-index-overlay","z-index-toast"] as const;
913
- export const semTypeSuffixes = ["font-family-text","font-family-number","font-family-code","body-font-family","body-font-size","body-font-weight","body-line-height","body-letter-spacing","body-strong-font-family","body-strong-font-size","body-strong-font-weight","body-strong-line-height","body-strong-letter-spacing","heading-sm-font-family","heading-sm-font-size","heading-sm-font-weight","heading-sm-line-height","heading-sm-letter-spacing","heading-md-font-family","heading-md-font-size","heading-md-font-weight","heading-md-line-height","heading-md-letter-spacing","heading-lg-font-family","heading-lg-font-size","heading-lg-font-weight","heading-lg-line-height","heading-lg-letter-spacing","caption-font-family","caption-font-size","caption-font-weight","caption-line-height","caption-letter-spacing","code-font-family","code-font-size","code-font-weight","code-line-height","code-letter-spacing"] as const;
1014
+ export const semColorSuffixes = ["surface-base","surface-subtle","surface-elevated","surface-header","surface-brand-subtle","surface-canvas","surface-sunken","surface-selected","surface-inverse","surface-canvas-subtle","content-primary","content-secondary","content-tertiary","content-placeholder","content-intro","content-disabled","content-link","content-icon-subtle","content-inverse","content-on-solid","content-on-warning-subtle","border-default","border-strong","border-focus","border-subtle","border-disabled","border-on-media","fill-subtle","fill-hover","fill-active","fill-disabled","fill-track","action-brand","action-product","action-selected","action-inverse","control-action-brand-subtle","control-action-product-subtle","control-action-danger-default","control-action-danger-subtle","control-action-neutral-subtle","control-selection-brand","control-selection-product","selection-text-background","status-success","status-warning","status-danger","status-info","status-success-subtle","status-warning-subtle","status-danger-subtle","status-info-subtle","overlay-scrim","overlay-guide","overlay-media-subtle","overlay-media-strong","shadow"] as const;
1015
+ export const semSizeSuffixes = ["radius-sm","radius-control","radius-card","radius-xl","radius-pill","radius-full","control-height-sm","control-height-md","control-height-lg","icon-size-sm","icon-size-md","icon-size-lg","action-control-height-2xs","action-control-height-xs","action-control-height-sm","action-control-height-md","action-control-height-lg","action-control-height-xl","action-control-padding-inline-2xs","action-control-padding-inline-xs","action-control-padding-inline-sm","action-control-padding-inline-md","action-control-padding-inline-lg","action-control-padding-inline-xl","action-control-icon-2xs","action-control-icon-xs","action-control-icon-sm","action-control-icon-md","action-control-icon-lg","action-control-icon-xl","action-control-gap-2xs","action-control-gap-xs","action-control-gap-sm","action-control-gap-md","action-control-gap-lg","action-control-gap-xl","border-width-default","border-width-strong","divider-width-thin","divider-width-default","focus-ring-width","focus-ring-offset","indicator-loading","avatar-diameter-sm","avatar-diameter-md","avatar-diameter-lg","inset-sm","stack-sm","inset-md","stack-md","inset-lg","stack-lg","opacity-disabled","z-index-dropdown","z-index-sticky","z-index-overlay","z-index-toast"] as const;
1016
+ export const semTypeSuffixes = ["font-family-text","font-family-number","font-family-code","body-font-family","body-font-size","body-font-weight","body-line-height","body-letter-spacing","body-strong-font-family","body-strong-font-size","body-strong-font-weight","body-strong-line-height","body-strong-letter-spacing","heading-sm-font-family","heading-sm-font-size","heading-sm-font-weight","heading-sm-line-height","heading-sm-letter-spacing","heading-md-font-family","heading-md-font-size","heading-md-font-weight","heading-md-line-height","heading-md-letter-spacing","heading-lg-font-family","heading-lg-font-size","heading-lg-font-weight","heading-lg-line-height","heading-lg-letter-spacing","caption-font-family","caption-font-size","caption-font-weight","caption-line-height","caption-letter-spacing","body-lg-font-family","body-lg-font-size","body-lg-font-weight","body-lg-line-height","body-lg-letter-spacing","label-sm-font-family","label-sm-font-size","label-sm-font-weight","label-sm-line-height","label-sm-letter-spacing","code-font-family","code-font-size","code-font-weight","code-line-height","code-letter-spacing"] as const;
914
1017
  export const semMotionSuffixes = ["duration-fast","duration-base","duration-slow","easing-standard"] as const;
915
- export const semEffectSuffixes = ["shadow-dialog"] as const;
1018
+ export const semEffectSuffixes = ["shadow-card-color","shadow-floating-color","shadow-dialog-color","shadow-card","shadow-floating","shadow-dialog"] as const;
916
1019
  export type SemColorSuffix = (typeof semColorSuffixes)[number];
917
1020
  export type SemSizeSuffix = (typeof semSizeSuffixes)[number];
918
1021
  export type SemTypeSuffix = (typeof semTypeSuffixes)[number];
@@ -924,38 +1027,3 @@ export type SemTokenPath =
924
1027
  | `typography-${SemTypeSuffix}`
925
1028
  | `motion-${SemMotionSuffix}`
926
1029
  | `effect-${SemEffectSuffix}`;
927
- export const compatComponents = ["avatar","button","divider","empty","image","loading","skeleton","tabs","tag","textarea"] as const;
928
- export type CompatComponent = (typeof compatComponents)[number];
929
- export const compatAvatarSuffixes = ["color-badge-border","color-badge-text","color-border","dimension-badge-font-size","dimension-badge-line-height","dimension-badge-padding","dimension-border-width","dimension-diameter-l","dimension-diameter-m","dimension-diameter-s"] as const;
930
- export type CompatAvatarSuffix = (typeof compatAvatarSuffixes)[number];
931
- export const compatButtonSuffixes = ["color-bg-neutral-gray","color-bg-soft-brand","color-bg-soft-danger","dimension-border-width","dimension-focus-ring-offset","dimension-focus-ring-width","dimension-gap-l","dimension-gap-m","dimension-gap-mini","dimension-gap-normal","dimension-gap-s","dimension-gap-xs","dimension-height-l","dimension-height-m","dimension-height-mini","dimension-height-normal","dimension-height-s","dimension-height-xs","dimension-icon-l","dimension-icon-m","dimension-icon-mini","dimension-icon-normal","dimension-icon-s","dimension-icon-xs","dimension-padding-inline-l","dimension-padding-inline-m","dimension-padding-inline-mini","dimension-padding-inline-normal","dimension-padding-inline-s","dimension-padding-inline-xs","dimension-spinner-stroke","dimension-square-l","dimension-square-m","dimension-square-mini","dimension-square-normal","dimension-square-s","dimension-square-xs"] as const;
932
- export type CompatButtonSuffix = (typeof compatButtonSuffixes)[number];
933
- export const compatDividerSuffixes = ["color-border","dimension-weight-thick","dimension-weight-thin"] as const;
934
- export type CompatDividerSuffix = (typeof compatDividerSuffixes)[number];
935
- export const compatEmptySuffixes = ["dimension-description-font-size","dimension-description-line-height","dimension-title-gap"] as const;
936
- export type CompatEmptySuffix = (typeof compatEmptySuffixes)[number];
937
- export const compatImageSuffixes = ["color-background","dimension-border-width"] as const;
938
- export type CompatImageSuffix = (typeof compatImageSuffixes)[number];
939
- export const compatLoadingSuffixes = ["color-logo","dimension-radius-surface"] as const;
940
- export type CompatLoadingSuffix = (typeof compatLoadingSuffixes)[number];
941
- export const compatSkeletonSuffixes = ["color-background"] as const;
942
- export type CompatSkeletonSuffix = (typeof compatSkeletonSuffixes)[number];
943
- export const compatTabsSuffixes = ["color-button-bg-selected","color-button-border","dimension-border-width"] as const;
944
- export type CompatTabsSuffix = (typeof compatTabsSuffixes)[number];
945
- export const compatTagSuffixes = ["dimension-border-width","dimension-height-large","dimension-height-medium","dimension-height-small","dimension-padding-inline-large","dimension-padding-inline-medium","dimension-padding-inline-small","dimension-radius-large","dimension-radius-medium","dimension-radius-small","typography-font-size-large","typography-font-size-medium","typography-font-size-small","typography-line-height-large","typography-line-height-medium","typography-line-height-small"] as const;
946
- export type CompatTagSuffix = (typeof compatTagSuffixes)[number];
947
- export const compatTextareaSuffixes = ["color-paste-text"] as const;
948
- export type CompatTextareaSuffix = (typeof compatTextareaSuffixes)[number];
949
- export type CompatSuffix<C extends CompatComponent> =
950
- C extends "avatar" ? CompatAvatarSuffix :
951
- C extends "button" ? CompatButtonSuffix :
952
- C extends "divider" ? CompatDividerSuffix :
953
- C extends "empty" ? CompatEmptySuffix :
954
- C extends "image" ? CompatImageSuffix :
955
- C extends "loading" ? CompatLoadingSuffix :
956
- C extends "skeleton" ? CompatSkeletonSuffix :
957
- C extends "tabs" ? CompatTabsSuffix :
958
- C extends "tag" ? CompatTagSuffix :
959
- C extends "textarea" ? CompatTextareaSuffix :
960
- never;
961
- export const compatTokenCount = 78 as const;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qw-ui/tokens",
3
- "version": "0.3.0-next.3",
3
+ "version": "0.3.0-next.31",
4
4
  "description": "QW token pipeline: Figma Color variables are the color source of truth; code validates snapshots and builds CSS / TS exits.",
5
5
  "license": "MIT",
6
6
  "author": "qw-ui contributors",
@@ -30,6 +30,7 @@
30
30
  },
31
31
  "./tokens.css": "./dist/tokens.css",
32
32
  "./tokens.live.css": "./dist/tokens.live.css",
33
+ "./tailwind.css": "./dist/tailwind.css",
33
34
  "./tokens.json": "./dist/tokens.json",
34
35
  "./token-paths": {
35
36
  "types": "./dist/tokens.ts"
@@ -1,14 +0,0 @@
1
- import { type CompatEntry, type CompatRegistry } from "./schema.js";
2
- export interface CompatBuild {
3
- light: Record<string, string>;
4
- dark: Record<string, string>;
5
- /** path → cssVar */
6
- paths: Record<string, string>;
7
- /** component → suffix[] */
8
- byComponent: Record<string, string[]>;
9
- entries: CompatEntry[];
10
- graceDays: number;
11
- }
12
- export declare function buildCompatFromRegistry(registry: CompatRegistry): CompatBuild;
13
- /** 生成 compat token-paths TypeScript 片段(并入 tokens.ts) */
14
- export declare function formatCompatTypes(build: CompatBuild): string;
@@ -1,8 +0,0 @@
1
- /**
2
- * 将 legacy hex(含 /NN% 透明度后缀)或 DTCG srgb 结构转为 CSS 颜色字符串。
3
- */
4
- export declare function compatColorToCss(input: string | {
5
- colorSpace: "srgb";
6
- components: [number, number, number];
7
- alpha: number;
8
- }): string;
@@ -1,5 +0,0 @@
1
- export { compatRegistrySchema, compatEntrySchema, compatPathToCssVar, compatComponentOf, compatSuffixOf, } from "./schema.js";
2
- export type { CompatEntry, CompatRegistry, CompatStatus } from "./schema.js";
3
- export { compatColorToCss } from "./color.js";
4
- export { buildCompatFromRegistry, formatCompatTypes, } from "./build.js";
5
- export type { CompatBuild } from "./build.js";