@qw-ui/tokens 0.3.0-next.40 → 0.3.0-next.43

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
@@ -264,6 +264,8 @@ export const lightTokens = {
264
264
  "--qw-ref-color-brown-800": "#542800",
265
265
  "--qw-ref-color-brown-900": "#200B00",
266
266
  "--qw-ref-color-brown-base": "#b45e06",
267
+ "--qw-ref-color-black-contrast-endpoint": "#000000",
268
+ "--qw-ref-size-spacing-0": "0px",
267
269
  "--qw-ref-size-spacing-1": "4px",
268
270
  "--qw-ref-size-spacing-2": "8px",
269
271
  "--qw-ref-size-spacing-3": "12px",
@@ -272,6 +274,15 @@ export const lightTokens = {
272
274
  "--qw-ref-size-spacing-6": "24px",
273
275
  "--qw-ref-size-spacing-7": "28px",
274
276
  "--qw-ref-size-spacing-8": "32px",
277
+ "--qw-ref-size-safe-area-inset-top": "env(safe-area-inset-top, 0px)",
278
+ "--qw-ref-size-safe-area-inset-right": "env(safe-area-inset-right, 0px)",
279
+ "--qw-ref-size-safe-area-inset-bottom": "env(safe-area-inset-bottom, 0px)",
280
+ "--qw-ref-size-safe-area-inset-left": "env(safe-area-inset-left, 0px)",
281
+ "--qw-ref-size-placeholder-text-height-base": "1em",
282
+ "--qw-ref-size-placeholder-media-height-base": "120px",
283
+ "--qw-ref-size-loading-logo-size-sm": "32px",
284
+ "--qw-ref-size-loading-logo-size-md": "48px",
285
+ "--qw-ref-size-loading-logo-size-lg": "60px",
275
286
  "--qw-ref-size-radius-sm": "4px",
276
287
  "--qw-ref-size-radius-md": "8px",
277
288
  "--qw-ref-size-radius-lg": "14px",
@@ -299,6 +310,7 @@ export const lightTokens = {
299
310
  "--qw-ref-size-avatar-diameter-lg": "58px",
300
311
  "--qw-ref-typography-line-height-tight": "1.25",
301
312
  "--qw-ref-typography-line-height-normal": "1.5",
313
+ "--qw-ref-typography-line-height-comfortable": "1.625",
302
314
  "--qw-ref-typography-line-height-relaxed": "1.75",
303
315
  "--qw-ref-size-opacity-disabled": "0.5",
304
316
  "--qw-ref-size-z-index-1": "10",
@@ -327,7 +339,11 @@ export const lightTokens = {
327
339
  "--qw-ref-motion-duration-fast": "100ms",
328
340
  "--qw-ref-motion-duration-base": "200ms",
329
341
  "--qw-ref-motion-duration-slow": "320ms",
342
+ "--qw-ref-motion-duration-shimmer": "2000ms",
343
+ "--qw-ref-motion-easing-linear": "linear",
344
+ "--qw-ref-motion-easing-symmetric": "ease-in-out",
330
345
  "--qw-ref-motion-easing-standard": "cubic-bezier(0.16, 1, 0.3, 1)",
346
+ "--qw-ref-effect-blur-sm": "2px",
331
347
  "--qw-ref-effect-shadow-sm": "0px 1px 2px 0px rgba(0, 0, 0, 0.08)",
332
348
  "--qw-ref-effect-shadow-md": "0px 4px 12px 0px rgba(0, 0, 0, 0.12)",
333
349
  "--qw-ref-effect-shadow-lg": "0px 8px 24px 0px rgba(0, 0, 0, 0.16)",
@@ -377,6 +393,23 @@ export const lightTokens = {
377
393
  "--qw-sem-size-avatar-diameter-sm": "40px",
378
394
  "--qw-sem-size-avatar-diameter-md": "50px",
379
395
  "--qw-sem-size-avatar-diameter-lg": "58px",
396
+ "--qw-sem-size-layout-gap-sm": "8px",
397
+ "--qw-sem-size-layout-gap-md": "16px",
398
+ "--qw-sem-size-layout-gap-lg": "24px",
399
+ "--qw-sem-size-safe-area-inset-top": "env(safe-area-inset-top, 0px)",
400
+ "--qw-sem-size-safe-area-inset-right": "env(safe-area-inset-right, 0px)",
401
+ "--qw-sem-size-safe-area-inset-bottom": "env(safe-area-inset-bottom, 0px)",
402
+ "--qw-sem-size-safe-area-inset-left": "env(safe-area-inset-left, 0px)",
403
+ "--qw-sem-size-safe-area-minimum-none": "0px",
404
+ "--qw-sem-size-safe-area-minimum-sm": "8px",
405
+ "--qw-sem-size-safe-area-minimum-md": "16px",
406
+ "--qw-sem-size-safe-area-minimum-lg": "24px",
407
+ "--qw-sem-size-loading-sm": "32px",
408
+ "--qw-sem-size-loading-md": "48px",
409
+ "--qw-sem-size-loading-lg": "60px",
410
+ "--qw-sem-size-skeleton-text-height": "1em",
411
+ "--qw-sem-size-skeleton-rect-height": "120px",
412
+ "--qw-sem-size-skeleton-circle-diameter": "40px",
380
413
  "--qw-sem-size-inset-sm": "8px",
381
414
  "--qw-sem-size-stack-sm": "8px",
382
415
  "--qw-sem-size-inset-md": "16px",
@@ -401,6 +434,11 @@ export const lightTokens = {
401
434
  "--qw-sem-typography-body-strong-font-weight": "500",
402
435
  "--qw-sem-typography-body-strong-line-height": "1.5",
403
436
  "--qw-sem-typography-body-strong-letter-spacing": "0px",
437
+ "--qw-sem-typography-product-title-font-family": "system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
438
+ "--qw-sem-typography-product-title-font-size": "16px",
439
+ "--qw-sem-typography-product-title-font-weight": "600",
440
+ "--qw-sem-typography-product-title-line-height": "1.625",
441
+ "--qw-sem-typography-product-title-letter-spacing": "0px",
404
442
  "--qw-sem-typography-heading-sm-font-family": "system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
405
443
  "--qw-sem-typography-heading-sm-font-size": "16px",
406
444
  "--qw-sem-typography-heading-sm-font-weight": "600",
@@ -439,7 +477,12 @@ export const lightTokens = {
439
477
  "--qw-sem-motion-duration-fast": "100ms",
440
478
  "--qw-sem-motion-duration-base": "200ms",
441
479
  "--qw-sem-motion-duration-slow": "320ms",
480
+ "--qw-sem-motion-duration-shimmer": "2000ms",
481
+ "--qw-sem-motion-duration-spin": "2000ms",
442
482
  "--qw-sem-motion-easing-standard": "cubic-bezier(0.16, 1, 0.3, 1)",
483
+ "--qw-sem-motion-easing-symmetric": "ease-in-out",
484
+ "--qw-sem-motion-easing-linear": "linear",
485
+ "--qw-sem-effect-blur-media-control": "2px",
443
486
  "--qw-sem-color-surface-base": "#ffffff",
444
487
  "--qw-sem-color-surface-subtle": "#F6F6F6",
445
488
  "--qw-sem-color-surface-elevated": "#ffffff",
@@ -450,6 +493,7 @@ export const lightTokens = {
450
493
  "--qw-sem-color-surface-selected": "rgba(34, 34, 34, 0.05)",
451
494
  "--qw-sem-color-surface-inverse": "#353535",
452
495
  "--qw-sem-color-surface-canvas-subtle": "#F6F6F6",
496
+ "--qw-sem-color-content-danger": "#CF081E",
453
497
  "--qw-sem-color-content-primary": "#222222",
454
498
  "--qw-sem-color-content-secondary": "#666666",
455
499
  "--qw-sem-color-content-tertiary": "#999999",
@@ -460,9 +504,11 @@ export const lightTokens = {
460
504
  "--qw-sem-color-content-icon-subtle": "rgba(34, 34, 34, 0.05)",
461
505
  "--qw-sem-color-content-inverse": "#ffffff",
462
506
  "--qw-sem-color-content-on-solid": "#ffffff",
507
+ "--qw-sem-color-content-on-brand": "#ffffff",
463
508
  "--qw-sem-color-content-on-warning-subtle": "#453200",
464
509
  "--qw-sem-color-border-default": "#EEEEEE",
465
510
  "--qw-sem-color-border-strong": "#CCCCCC",
511
+ "--qw-sem-color-border-control": "#666666",
466
512
  "--qw-sem-color-border-focus": "#0011ff",
467
513
  "--qw-sem-color-border-subtle": "rgba(34, 34, 34, 0.05)",
468
514
  "--qw-sem-color-border-disabled": "rgba(34, 34, 34, 0.1)",
@@ -478,7 +524,7 @@ export const lightTokens = {
478
524
  "--qw-sem-color-action-inverse": "#ffffff",
479
525
  "--qw-sem-color-control-action-brand-subtle": "rgba(0, 17, 255, 0.1)",
480
526
  "--qw-sem-color-control-action-product-subtle": "rgba(13, 83, 255, 0.1)",
481
- "--qw-sem-color-control-action-danger-default": "#FF5745",
527
+ "--qw-sem-color-control-action-danger-default": "#CF081E",
482
528
  "--qw-sem-color-control-action-danger-subtle": "rgba(255, 64, 64, 0.1)",
483
529
  "--qw-sem-color-control-action-neutral-subtle": "rgba(34, 34, 34, 0.05)",
484
530
  "--qw-sem-color-control-selection-brand": "rgba(0, 17, 255, 0.1)",
@@ -496,6 +542,7 @@ export const lightTokens = {
496
542
  "--qw-sem-color-overlay-guide": "rgba(13, 83, 255, 0.1)",
497
543
  "--qw-sem-color-overlay-media-subtle": "rgba(34, 34, 34, 0.4)",
498
544
  "--qw-sem-color-overlay-media-strong": "rgba(34, 34, 34, 0.5)",
545
+ "--qw-sem-color-overlay-control-on-media": "rgba(34, 34, 34, 0.5)",
499
546
  "--qw-sem-color-shadow": "rgba(34, 34, 34, 0.1)",
500
547
  "--qw-sem-effect-shadow-card-color": "rgba(34, 34, 34, 0.1)",
501
548
  "--qw-sem-effect-shadow-floating-color": "rgba(34, 34, 34, 0.1)",
@@ -769,6 +816,8 @@ export const darkTokens = {
769
816
  "--qw-ref-color-brown-800": "#542800",
770
817
  "--qw-ref-color-brown-900": "#200B00",
771
818
  "--qw-ref-color-brown-base": "#b45e06",
819
+ "--qw-ref-color-black-contrast-endpoint": "#000000",
820
+ "--qw-ref-size-spacing-0": "0px",
772
821
  "--qw-ref-size-spacing-1": "4px",
773
822
  "--qw-ref-size-spacing-2": "8px",
774
823
  "--qw-ref-size-spacing-3": "12px",
@@ -777,6 +826,15 @@ export const darkTokens = {
777
826
  "--qw-ref-size-spacing-6": "24px",
778
827
  "--qw-ref-size-spacing-7": "28px",
779
828
  "--qw-ref-size-spacing-8": "32px",
829
+ "--qw-ref-size-safe-area-inset-top": "env(safe-area-inset-top, 0px)",
830
+ "--qw-ref-size-safe-area-inset-right": "env(safe-area-inset-right, 0px)",
831
+ "--qw-ref-size-safe-area-inset-bottom": "env(safe-area-inset-bottom, 0px)",
832
+ "--qw-ref-size-safe-area-inset-left": "env(safe-area-inset-left, 0px)",
833
+ "--qw-ref-size-placeholder-text-height-base": "1em",
834
+ "--qw-ref-size-placeholder-media-height-base": "120px",
835
+ "--qw-ref-size-loading-logo-size-sm": "32px",
836
+ "--qw-ref-size-loading-logo-size-md": "48px",
837
+ "--qw-ref-size-loading-logo-size-lg": "60px",
780
838
  "--qw-ref-size-radius-sm": "4px",
781
839
  "--qw-ref-size-radius-md": "8px",
782
840
  "--qw-ref-size-radius-lg": "14px",
@@ -804,6 +862,7 @@ export const darkTokens = {
804
862
  "--qw-ref-size-avatar-diameter-lg": "58px",
805
863
  "--qw-ref-typography-line-height-tight": "1.25",
806
864
  "--qw-ref-typography-line-height-normal": "1.5",
865
+ "--qw-ref-typography-line-height-comfortable": "1.625",
807
866
  "--qw-ref-typography-line-height-relaxed": "1.75",
808
867
  "--qw-ref-size-opacity-disabled": "0.5",
809
868
  "--qw-ref-size-z-index-1": "10",
@@ -832,7 +891,11 @@ export const darkTokens = {
832
891
  "--qw-ref-motion-duration-fast": "100ms",
833
892
  "--qw-ref-motion-duration-base": "200ms",
834
893
  "--qw-ref-motion-duration-slow": "320ms",
894
+ "--qw-ref-motion-duration-shimmer": "2000ms",
895
+ "--qw-ref-motion-easing-linear": "linear",
896
+ "--qw-ref-motion-easing-symmetric": "ease-in-out",
835
897
  "--qw-ref-motion-easing-standard": "cubic-bezier(0.16, 1, 0.3, 1)",
898
+ "--qw-ref-effect-blur-sm": "2px",
836
899
  "--qw-ref-effect-shadow-sm": "0px 1px 2px 0px rgba(0, 0, 0, 0.08)",
837
900
  "--qw-ref-effect-shadow-md": "0px 4px 12px 0px rgba(0, 0, 0, 0.12)",
838
901
  "--qw-ref-effect-shadow-lg": "0px 8px 24px 0px rgba(0, 0, 0, 0.16)",
@@ -882,6 +945,23 @@ export const darkTokens = {
882
945
  "--qw-sem-size-avatar-diameter-sm": "40px",
883
946
  "--qw-sem-size-avatar-diameter-md": "50px",
884
947
  "--qw-sem-size-avatar-diameter-lg": "58px",
948
+ "--qw-sem-size-layout-gap-sm": "8px",
949
+ "--qw-sem-size-layout-gap-md": "16px",
950
+ "--qw-sem-size-layout-gap-lg": "24px",
951
+ "--qw-sem-size-safe-area-inset-top": "env(safe-area-inset-top, 0px)",
952
+ "--qw-sem-size-safe-area-inset-right": "env(safe-area-inset-right, 0px)",
953
+ "--qw-sem-size-safe-area-inset-bottom": "env(safe-area-inset-bottom, 0px)",
954
+ "--qw-sem-size-safe-area-inset-left": "env(safe-area-inset-left, 0px)",
955
+ "--qw-sem-size-safe-area-minimum-none": "0px",
956
+ "--qw-sem-size-safe-area-minimum-sm": "8px",
957
+ "--qw-sem-size-safe-area-minimum-md": "16px",
958
+ "--qw-sem-size-safe-area-minimum-lg": "24px",
959
+ "--qw-sem-size-loading-sm": "32px",
960
+ "--qw-sem-size-loading-md": "48px",
961
+ "--qw-sem-size-loading-lg": "60px",
962
+ "--qw-sem-size-skeleton-text-height": "1em",
963
+ "--qw-sem-size-skeleton-rect-height": "120px",
964
+ "--qw-sem-size-skeleton-circle-diameter": "40px",
885
965
  "--qw-sem-size-inset-sm": "8px",
886
966
  "--qw-sem-size-stack-sm": "8px",
887
967
  "--qw-sem-size-inset-md": "16px",
@@ -906,6 +986,11 @@ export const darkTokens = {
906
986
  "--qw-sem-typography-body-strong-font-weight": "500",
907
987
  "--qw-sem-typography-body-strong-line-height": "1.5",
908
988
  "--qw-sem-typography-body-strong-letter-spacing": "0px",
989
+ "--qw-sem-typography-product-title-font-family": "system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
990
+ "--qw-sem-typography-product-title-font-size": "16px",
991
+ "--qw-sem-typography-product-title-font-weight": "600",
992
+ "--qw-sem-typography-product-title-line-height": "1.625",
993
+ "--qw-sem-typography-product-title-letter-spacing": "0px",
909
994
  "--qw-sem-typography-heading-sm-font-family": "system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
910
995
  "--qw-sem-typography-heading-sm-font-size": "16px",
911
996
  "--qw-sem-typography-heading-sm-font-weight": "600",
@@ -944,7 +1029,12 @@ export const darkTokens = {
944
1029
  "--qw-sem-motion-duration-fast": "100ms",
945
1030
  "--qw-sem-motion-duration-base": "200ms",
946
1031
  "--qw-sem-motion-duration-slow": "320ms",
1032
+ "--qw-sem-motion-duration-shimmer": "2000ms",
1033
+ "--qw-sem-motion-duration-spin": "2000ms",
947
1034
  "--qw-sem-motion-easing-standard": "cubic-bezier(0.16, 1, 0.3, 1)",
1035
+ "--qw-sem-motion-easing-symmetric": "ease-in-out",
1036
+ "--qw-sem-motion-easing-linear": "linear",
1037
+ "--qw-sem-effect-blur-media-control": "2px",
948
1038
  "--qw-sem-color-surface-base": "#222222",
949
1039
  "--qw-sem-color-surface-subtle": "#202020",
950
1040
  "--qw-sem-color-surface-elevated": "#2D2D2D",
@@ -955,6 +1045,7 @@ export const darkTokens = {
955
1045
  "--qw-sem-color-surface-selected": "rgba(255, 255, 255, 0.1)",
956
1046
  "--qw-sem-color-surface-inverse": "#353535",
957
1047
  "--qw-sem-color-surface-canvas-subtle": "#121212",
1048
+ "--qw-sem-color-content-danger": "#FFA097",
958
1049
  "--qw-sem-color-content-primary": "#ffffff",
959
1050
  "--qw-sem-color-content-secondary": "#999999",
960
1051
  "--qw-sem-color-content-tertiary": "#666666",
@@ -965,9 +1056,11 @@ export const darkTokens = {
965
1056
  "--qw-sem-color-content-icon-subtle": "rgba(255, 255, 255, 0.1)",
966
1057
  "--qw-sem-color-content-inverse": "#222222",
967
1058
  "--qw-sem-color-content-on-solid": "#ffffff",
1059
+ "--qw-sem-color-content-on-brand": "#000000",
968
1060
  "--qw-sem-color-content-on-warning-subtle": "#F4D38B",
969
1061
  "--qw-sem-color-border-default": "#3A3A3A",
970
1062
  "--qw-sem-color-border-strong": "#666666",
1063
+ "--qw-sem-color-border-control": "#999999",
971
1064
  "--qw-sem-color-border-focus": "#426EFF",
972
1065
  "--qw-sem-color-border-subtle": "rgba(255, 255, 255, 0.05)",
973
1066
  "--qw-sem-color-border-disabled": "rgba(255, 255, 255, 0.1)",
@@ -983,7 +1076,7 @@ export const darkTokens = {
983
1076
  "--qw-sem-color-action-inverse": "#222222",
984
1077
  "--qw-sem-color-control-action-brand-subtle": "rgba(0, 17, 255, 0.2)",
985
1078
  "--qw-sem-color-control-action-product-subtle": "rgba(13, 83, 255, 0.2)",
986
- "--qw-sem-color-control-action-danger-default": "#FF5745",
1079
+ "--qw-sem-color-control-action-danger-default": "#CF081E",
987
1080
  "--qw-sem-color-control-action-danger-subtle": "rgba(255, 64, 64, 0.2)",
988
1081
  "--qw-sem-color-control-action-neutral-subtle": "rgba(255, 255, 255, 0.1)",
989
1082
  "--qw-sem-color-control-selection-brand": "rgba(0, 17, 255, 0.2)",
@@ -1001,6 +1094,7 @@ export const darkTokens = {
1001
1094
  "--qw-sem-color-overlay-guide": "rgba(13, 83, 255, 0.2)",
1002
1095
  "--qw-sem-color-overlay-media-subtle": "rgba(34, 34, 34, 0.4)",
1003
1096
  "--qw-sem-color-overlay-media-strong": "rgba(34, 34, 34, 0.5)",
1097
+ "--qw-sem-color-overlay-control-on-media": "rgba(255, 255, 255, 0.4)",
1004
1098
  "--qw-sem-color-shadow": "rgba(34, 34, 34, 0.5)",
1005
1099
  "--qw-sem-effect-shadow-card-color": "rgba(34, 34, 34, 0.5)",
1006
1100
  "--qw-sem-effect-shadow-floating-color": "rgba(34, 34, 34, 0.5)",
@@ -1011,11 +1105,11 @@ export const darkTokens = {
1011
1105
  } as const;
1012
1106
  export type TokenName = keyof typeof lightTokens;
1013
1107
  export type RefTokenPath = TokenName extends `--qw-ref-${infer P}` ? P : never;
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;
1017
- export const semMotionSuffixes = ["duration-fast","duration-base","duration-slow","easing-standard"] as const;
1018
- export const semEffectSuffixes = ["shadow-card-color","shadow-floating-color","shadow-dialog-color","shadow-card","shadow-floating","shadow-dialog"] as const;
1108
+ 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-danger","content-primary","content-secondary","content-tertiary","content-placeholder","content-intro","content-disabled","content-link","content-icon-subtle","content-inverse","content-on-solid","content-on-brand","content-on-warning-subtle","border-default","border-strong","border-control","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","overlay-control-on-media","shadow"] as const;
1109
+ 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","layout-gap-sm","layout-gap-md","layout-gap-lg","safe-area-inset-top","safe-area-inset-right","safe-area-inset-bottom","safe-area-inset-left","safe-area-minimum-none","safe-area-minimum-sm","safe-area-minimum-md","safe-area-minimum-lg","loading-sm","loading-md","loading-lg","skeleton-text-height","skeleton-rect-height","skeleton-circle-diameter","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;
1110
+ 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","product-title-font-family","product-title-font-size","product-title-font-weight","product-title-line-height","product-title-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;
1111
+ export const semMotionSuffixes = ["duration-fast","duration-base","duration-slow","duration-shimmer","duration-spin","easing-standard","easing-symmetric","easing-linear"] as const;
1112
+ export const semEffectSuffixes = ["blur-media-control","shadow-card-color","shadow-floating-color","shadow-dialog-color","shadow-card","shadow-floating","shadow-dialog"] as const;
1019
1113
  export type SemColorSuffix = (typeof semColorSuffixes)[number];
1020
1114
  export type SemSizeSuffix = (typeof semSizeSuffixes)[number];
1021
1115
  export type SemTypeSuffix = (typeof semTypeSuffixes)[number];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qw-ui/tokens",
3
- "version": "0.3.0-next.40",
3
+ "version": "0.3.0-next.43",
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",
@@ -12,7 +12,7 @@
12
12
  "style-dictionary",
13
13
  "qw-ui"
14
14
  ],
15
- "homepage": "http://gitlab.alibaba-inc.com/qianwen/qw-ui",
15
+ "homepage": "https://qw-ui.qianwen.com/",
16
16
  "repository": {
17
17
  "type": "git",
18
18
  "url": "git+http://gitlab.alibaba-inc.com/qianwen/qw-ui.git",
@@ -26,7 +26,8 @@
26
26
  "exports": {
27
27
  ".": {
28
28
  "types": "./dist/index.d.ts",
29
- "import": "./dist/index.js"
29
+ "import": "./dist/index.js",
30
+ "default": "./dist/index.js"
30
31
  },
31
32
  "./tokens.css": "./dist/tokens.css",
32
33
  "./tokens.live.css": "./dist/tokens.live.css",
@@ -43,24 +44,10 @@
43
44
  "culori": "^4.0.2",
44
45
  "zod": "^4.4.3"
45
46
  },
46
- "devDependencies": {
47
- "@microsoft/api-extractor": "^7.58.9",
48
- "@size-limit/preset-small-lib": "^12.1.0",
49
- "@types/culori": "^4.0.1",
50
- "@vitest/coverage-v8": "^4.1.9",
51
- "size-limit": "^12.1.0",
52
- "style-dictionary": "^5.5.0",
53
- "tsdown": "^0.22.4",
54
- "tsx": "^4.22.4",
55
- "typescript": "^6.0.3",
56
- "vitest": "^4.1.9",
57
- "@qw-ui/eslint-config": "0.0.1",
58
- "@qw-ui/tsconfig": "0.0.1"
59
- },
60
47
  "size-limit": [
61
48
  {
62
49
  "path": "dist/index.js",
63
- "limit": "12 kB",
50
+ "limit": "12.35 kB",
64
51
  "ignore": [
65
52
  "culori",
66
53
  "zod"
@@ -71,15 +58,10 @@
71
58
  "access": "public",
72
59
  "registry": "https://registry.npmjs.org/"
73
60
  },
74
- "scripts": {
75
- "build": "tsdown && tsgo -p tsconfig.build.json && tsx build-tokens.ts",
76
- "gen:design": "tsx scripts/export-design-tokens.ts",
77
- "validate:figma-color": "tsx scripts/validate-figma-color-tokens.ts",
78
- "test": "vitest run",
79
- "lint": "eslint .",
80
- "typecheck": "tsgo --noEmit -p tsconfig.build.json",
81
- "size": "size-limit",
82
- "api": "api-extractor run --local",
83
- "clean": "rm -rf dist .turbo etc/*.api.json temp"
84
- }
61
+ "qwRelease": {
62
+ "source": "0e07146d78a8e3bb083edf3860cab253eff5958c",
63
+ "channel": "next"
64
+ },
65
+ "readme": "# @qw-ui/tokens\n\n设计 Token 与主题。Design tokens and theme utilities for qw-ui.\n\n## 安装\n\n当前开发版本使用 `next`:\n\n```bash\nnpm install @qw-ui/tokens@next\n```\n\n包发布于 [公共 npm](https://www.npmjs.com/package/@qw-ui/tokens)。如环境配置了其他镜像,可在安装命令后追加 `--registry=https://registry.npmjs.org/`。\n\n## 最小示例\n\n```ts\nimport '@qw-ui/tokens/tokens.css';\nimport { defaultSeed, derive } from '@qw-ui/tokens';\n\nconst theme = derive(defaultSeed);\nconsole.log(theme);\n```\n\n## 使用说明\n\n应用使用 `tokens.css` 提供默认变量;组件消费 `--qw-sem-*` 语义变量。可通过容器的 `data-qw-mode=\"dark\"` 使用暗色主题。`tokens.live.css`、`tailwind.css`、`tokens.json` 等公开资源按项目需求选择,具体入口以 package exports 为准。\n\n## 兼容性\n\nCSS 面向 Chrome 123 / iOS Safari 16.4。主题派生 API 可用于 Node 构建工具和浏览器。\n\n## 版本通道\n\n- `next`:main 更新并通过检查后自动发布,用于试用当前能力。\n- `latest`:负责人手动发布的正式版本。正式版可用后,使用 `npm install @qw-ui/tokens@latest`;正式版支持范围以该版本 README 为准。\n- 生产项目建议锁定明确版本。配套使用的 `@qw-ui/*` 包应选择同批版本;内部运行时依赖由包管理器安装。\n\n## 文档与许可证\n\n- [组件文档与接入指南](https://qw-ui.qianwen.com/)\n- [npm 版本列表](https://www.npmjs.com/package/@qw-ui/tokens?activeTab=versions)\n- MIT,详见包内 `LICENSE`。\n",
66
+ "readmeFilename": "README.md"
85
67
  }