@unpunnyfuns/swatchbook-blocks 1.2.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/host-e2nSv-sA.mjs +791 -0
- package/dist/host-e2nSv-sA.mjs.map +1 -0
- package/dist/host.d.mts +57 -0
- package/dist/host.mjs +2 -0
- package/dist/index.d.mts +190 -348
- package/dist/index.mjs +485 -1100
- package/dist/index.mjs.map +1 -1
- package/dist/registry-Dm25Go94.d.mts +244 -0
- package/dist/style.css +237 -240
- package/package.json +6 -2
package/dist/style.css
CHANGED
|
@@ -66,12 +66,6 @@
|
|
|
66
66
|
.sb-border-preview__breakdown-key {
|
|
67
67
|
color: var(--swatchbook-text-muted);
|
|
68
68
|
}
|
|
69
|
-
.sb-border-sample {
|
|
70
|
-
background: var(--swatchbook-surface-raised);
|
|
71
|
-
border-radius: 6px;
|
|
72
|
-
width: 120px;
|
|
73
|
-
height: 56px;
|
|
74
|
-
}
|
|
75
69
|
.sb-color-palette__group {
|
|
76
70
|
margin-bottom: var(--swatchbook-space-xl);
|
|
77
71
|
}
|
|
@@ -90,42 +84,6 @@
|
|
|
90
84
|
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
91
85
|
display: grid;
|
|
92
86
|
}
|
|
93
|
-
|
|
94
|
-
.sb-color-palette__card {
|
|
95
|
-
border: 1px solid var(--swatchbook-border-default);
|
|
96
|
-
border-radius: var(--swatchbook-radius-xs);
|
|
97
|
-
flex-direction: column;
|
|
98
|
-
display: flex;
|
|
99
|
-
overflow: hidden;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.sb-color-palette__swatch {
|
|
103
|
-
border-bottom: 1px solid var(--swatchbook-border-default);
|
|
104
|
-
width: 100%;
|
|
105
|
-
height: 56px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.sb-color-palette__meta {
|
|
109
|
-
padding: var(--swatchbook-space-sm) var(--swatchbook-space-md);
|
|
110
|
-
gap: var(--swatchbook-space-3xs);
|
|
111
|
-
flex-direction: column;
|
|
112
|
-
display: flex;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.sb-color-palette__leaf {
|
|
116
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
117
|
-
font-size: var(--swatchbook-type-caption);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.sb-color-palette__value {
|
|
121
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
122
|
-
font-size: var(--swatchbook-type-micro);
|
|
123
|
-
opacity: var(--swatchbook-opacity-muted);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.sb-color-palette__gamut-warn {
|
|
127
|
-
margin-left: var(--swatchbook-space-2xs);
|
|
128
|
-
}
|
|
129
87
|
.sb-color-table__scroll {
|
|
130
88
|
width: 100%;
|
|
131
89
|
max-width: 100%;
|
|
@@ -717,122 +675,6 @@
|
|
|
717
675
|
opacity: var(--swatchbook-opacity-muted);
|
|
718
676
|
white-space: nowrap;
|
|
719
677
|
}
|
|
720
|
-
.sb-dimension-sample {
|
|
721
|
-
align-items: center;
|
|
722
|
-
gap: var(--swatchbook-space-3xs);
|
|
723
|
-
min-width: 0;
|
|
724
|
-
max-width: 100%;
|
|
725
|
-
display: inline-flex;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
.sb-dimension-sample__cap {
|
|
729
|
-
color: var(--swatchbook-text-muted);
|
|
730
|
-
font-size: var(--swatchbook-type-micro);
|
|
731
|
-
line-height: var(--swatchbook-leading-none);
|
|
732
|
-
user-select: none;
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
.sb-dimension-sample__bar {
|
|
736
|
-
background: var(--swatchbook-accent-bg);
|
|
737
|
-
border-radius: 2px;
|
|
738
|
-
min-width: 1px;
|
|
739
|
-
max-width: 100%;
|
|
740
|
-
height: 14px;
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
.sb-dimension-sample__radius-sample {
|
|
744
|
-
background: var(--swatchbook-accent-bg);
|
|
745
|
-
border: 1px solid var(--swatchbook-border-default);
|
|
746
|
-
width: 56px;
|
|
747
|
-
height: 56px;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
.sb-dimension-sample__size-sample {
|
|
751
|
-
background: var(--swatchbook-accent-bg);
|
|
752
|
-
border: 1px solid var(--swatchbook-border-default);
|
|
753
|
-
min-width: 1px;
|
|
754
|
-
min-height: 1px;
|
|
755
|
-
}
|
|
756
|
-
.sb-font-family-sample__row {
|
|
757
|
-
gap: var(--swatchbook-space-lg);
|
|
758
|
-
padding: var(--swatchbook-space-lg) 0;
|
|
759
|
-
border-bottom: 1px solid var(--swatchbook-border-default);
|
|
760
|
-
grid-template-columns: minmax(160px, 220px) 1fr auto;
|
|
761
|
-
align-items: baseline;
|
|
762
|
-
display: grid;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
.sb-font-family-sample__meta {
|
|
766
|
-
gap: var(--swatchbook-space-3xs);
|
|
767
|
-
flex-direction: column;
|
|
768
|
-
min-width: 0;
|
|
769
|
-
display: flex;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
.sb-font-family-sample__path {
|
|
773
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
774
|
-
font-size: var(--swatchbook-type-caption);
|
|
775
|
-
text-overflow: ellipsis;
|
|
776
|
-
white-space: nowrap;
|
|
777
|
-
overflow: hidden;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
.sb-font-family-sample__stack {
|
|
781
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
782
|
-
font-size: var(--swatchbook-type-micro);
|
|
783
|
-
color: var(--swatchbook-text-muted);
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
.sb-font-family-sample__sample {
|
|
787
|
-
font-size: var(--swatchbook-type-sample);
|
|
788
|
-
line-height: var(--swatchbook-leading-tight);
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
.sb-font-family-sample__css-var {
|
|
792
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
793
|
-
font-size: var(--swatchbook-type-micro);
|
|
794
|
-
color: var(--swatchbook-text-muted);
|
|
795
|
-
}
|
|
796
|
-
.sb-font-weight-scale__row {
|
|
797
|
-
gap: var(--swatchbook-space-lg);
|
|
798
|
-
padding: var(--swatchbook-space-md) 0;
|
|
799
|
-
border-bottom: 1px solid var(--swatchbook-border-default);
|
|
800
|
-
grid-template-columns: minmax(160px, 220px) 1fr auto;
|
|
801
|
-
align-items: baseline;
|
|
802
|
-
display: grid;
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
.sb-font-weight-scale__meta {
|
|
806
|
-
gap: var(--swatchbook-space-3xs);
|
|
807
|
-
flex-direction: column;
|
|
808
|
-
min-width: 0;
|
|
809
|
-
display: flex;
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
.sb-font-weight-scale__path {
|
|
813
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
814
|
-
font-size: var(--swatchbook-type-caption);
|
|
815
|
-
text-overflow: ellipsis;
|
|
816
|
-
white-space: nowrap;
|
|
817
|
-
overflow: hidden;
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
.sb-font-weight-scale__value {
|
|
821
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
822
|
-
font-size: var(--swatchbook-type-micro);
|
|
823
|
-
color: var(--swatchbook-text-muted);
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
.sb-font-weight-scale__sample {
|
|
827
|
-
font-size: var(--swatchbook-type-sample-lg);
|
|
828
|
-
line-height: var(--swatchbook-leading-none);
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
.sb-font-weight-scale__css-var {
|
|
832
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
833
|
-
font-size: var(--swatchbook-type-micro);
|
|
834
|
-
color: var(--swatchbook-text-muted);
|
|
835
|
-
}
|
|
836
678
|
.sb-gradient-palette__row {
|
|
837
679
|
gap: var(--swatchbook-space-lg);
|
|
838
680
|
padding: var(--swatchbook-space-lg) 0;
|
|
@@ -863,12 +705,6 @@
|
|
|
863
705
|
opacity: var(--swatchbook-opacity-muted);
|
|
864
706
|
}
|
|
865
707
|
|
|
866
|
-
.sb-gradient-palette__sample {
|
|
867
|
-
border-radius: var(--swatchbook-radius-xs);
|
|
868
|
-
border: 1px solid var(--swatchbook-border-default);
|
|
869
|
-
height: 56px;
|
|
870
|
-
}
|
|
871
|
-
|
|
872
708
|
.sb-gradient-palette__stops {
|
|
873
709
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
874
710
|
font-size: var(--swatchbook-type-micro);
|
|
@@ -972,37 +808,6 @@
|
|
|
972
808
|
color: var(--swatchbook-text-muted);
|
|
973
809
|
white-space: nowrap;
|
|
974
810
|
}
|
|
975
|
-
.sb-motion-sample__track {
|
|
976
|
-
background: var(--swatchbook-surface-muted);
|
|
977
|
-
border-radius: 18px;
|
|
978
|
-
height: 36px;
|
|
979
|
-
position: relative;
|
|
980
|
-
overflow: hidden;
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
.sb-motion-sample__ball {
|
|
984
|
-
background: var(--swatchbook-accent-bg);
|
|
985
|
-
border-radius: 50%;
|
|
986
|
-
width: 28px;
|
|
987
|
-
height: 28px;
|
|
988
|
-
margin-top: -14px;
|
|
989
|
-
position: absolute;
|
|
990
|
-
top: 50%;
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
.sb-motion-sample__ball--start {
|
|
994
|
-
left: 4px;
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
.sb-motion-sample__ball--end {
|
|
998
|
-
left: calc(100% - 32px);
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
.sb-motion-sample__reduced-motion {
|
|
1002
|
-
font-size: var(--swatchbook-type-micro);
|
|
1003
|
-
color: var(--swatchbook-text-muted);
|
|
1004
|
-
font-style: italic;
|
|
1005
|
-
}
|
|
1006
811
|
.sb-opacity-scale__grid {
|
|
1007
812
|
gap: var(--swatchbook-space-md);
|
|
1008
813
|
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
|
@@ -1010,29 +815,9 @@
|
|
|
1010
815
|
}
|
|
1011
816
|
|
|
1012
817
|
.sb-opacity-scale__card {
|
|
1013
|
-
|
|
1014
|
-
border-radius: var(--swatchbook-radius-xs);
|
|
818
|
+
gap: var(--swatchbook-space-2xs);
|
|
1015
819
|
flex-direction: column;
|
|
1016
820
|
display: flex;
|
|
1017
|
-
overflow: hidden;
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
.sb-opacity-scale__swatch {
|
|
1021
|
-
border-bottom: 1px solid var(--swatchbook-border-default);
|
|
1022
|
-
background-color: #fff;
|
|
1023
|
-
background-image: linear-gradient(45deg, #00000014 25%, #0000 25%), linear-gradient(-45deg, #00000014 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #00000014 75%), linear-gradient(-45deg, #0000 75%, #00000014 75%);
|
|
1024
|
-
background-position: 0 0, 0 6px, 6px -6px, -6px 0;
|
|
1025
|
-
background-size: 12px 12px;
|
|
1026
|
-
height: 64px;
|
|
1027
|
-
position: relative;
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
.sb-opacity-scale__swatch:after {
|
|
1031
|
-
content: "";
|
|
1032
|
-
background: var(--swatchbook-opacity-scale-color);
|
|
1033
|
-
opacity: var(--swatchbook-opacity-scale-alpha);
|
|
1034
|
-
position: absolute;
|
|
1035
|
-
inset: 0;
|
|
1036
821
|
}
|
|
1037
822
|
|
|
1038
823
|
.sb-opacity-scale__meta {
|
|
@@ -1174,13 +959,6 @@
|
|
|
1174
959
|
.sb-shadow-preview__layer-breakdown {
|
|
1175
960
|
margin-top: var(--swatchbook-space-3xs);
|
|
1176
961
|
}
|
|
1177
|
-
.sb-shadow-sample {
|
|
1178
|
-
background: var(--swatchbook-surface-raised);
|
|
1179
|
-
border: 1px solid var(--swatchbook-border-default);
|
|
1180
|
-
border-radius: 6px;
|
|
1181
|
-
width: 120px;
|
|
1182
|
-
height: 56px;
|
|
1183
|
-
}
|
|
1184
962
|
.sb-stroke-style-sample__row {
|
|
1185
963
|
gap: var(--swatchbook-space-lg);
|
|
1186
964
|
padding: var(--swatchbook-space-lg) 0;
|
|
@@ -1205,20 +983,7 @@
|
|
|
1205
983
|
overflow: hidden;
|
|
1206
984
|
}
|
|
1207
985
|
|
|
1208
|
-
.sb-stroke-style-sample__value {
|
|
1209
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1210
|
-
font-size: var(--swatchbook-type-micro);
|
|
1211
|
-
color: var(--swatchbook-text-muted);
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
.sb-stroke-style-sample__line {
|
|
1215
|
-
border-top-width: 4px;
|
|
1216
|
-
border-top-color: var(--swatchbook-text-default);
|
|
1217
|
-
width: 100%;
|
|
1218
|
-
height: 0;
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
.sb-stroke-style-sample__object-fallback, .sb-stroke-style-sample__css-var {
|
|
986
|
+
.sb-stroke-style-sample__value, .sb-stroke-style-sample__css-var {
|
|
1222
987
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1223
988
|
font-size: var(--swatchbook-type-micro);
|
|
1224
989
|
color: var(--swatchbook-text-muted);
|
|
@@ -1971,19 +1736,251 @@
|
|
|
1971
1736
|
display: grid;
|
|
1972
1737
|
}
|
|
1973
1738
|
|
|
1974
|
-
.sb-typography-
|
|
1739
|
+
.sb-typography-scale__path {
|
|
1740
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1741
|
+
font-size: var(--swatchbook-type-caption);
|
|
1742
|
+
text-overflow: ellipsis;
|
|
1743
|
+
white-space: nowrap;
|
|
1744
|
+
overflow: hidden;
|
|
1745
|
+
}
|
|
1746
|
+
.sb-border-sample {
|
|
1747
|
+
background: var(--swatchbook-surface-raised);
|
|
1748
|
+
border-radius: 6px;
|
|
1749
|
+
width: 120px;
|
|
1750
|
+
height: 56px;
|
|
1751
|
+
}
|
|
1752
|
+
.sb-color-swatch {
|
|
1753
|
+
border: 1px solid var(--swatchbook-border-default);
|
|
1754
|
+
border-radius: var(--swatchbook-radius-xs);
|
|
1755
|
+
flex-direction: column;
|
|
1756
|
+
display: flex;
|
|
1757
|
+
overflow: hidden;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
.sb-color-swatch__chip {
|
|
1761
|
+
border-bottom: 1px solid var(--swatchbook-border-default);
|
|
1762
|
+
width: 100%;
|
|
1763
|
+
height: 56px;
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
.sb-color-swatch__meta {
|
|
1767
|
+
padding: var(--swatchbook-space-sm) var(--swatchbook-space-md);
|
|
1975
1768
|
gap: var(--swatchbook-space-3xs);
|
|
1976
1769
|
flex-direction: column;
|
|
1977
1770
|
display: flex;
|
|
1978
1771
|
}
|
|
1979
1772
|
|
|
1980
|
-
.sb-
|
|
1773
|
+
.sb-color-swatch__leaf {
|
|
1981
1774
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1982
1775
|
font-size: var(--swatchbook-type-caption);
|
|
1983
1776
|
}
|
|
1984
1777
|
|
|
1985
|
-
.sb-
|
|
1778
|
+
.sb-color-swatch__value {
|
|
1986
1779
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1987
1780
|
font-size: var(--swatchbook-type-micro);
|
|
1988
1781
|
opacity: var(--swatchbook-opacity-muted);
|
|
1989
1782
|
}
|
|
1783
|
+
|
|
1784
|
+
.sb-color-swatch__gamut-warn {
|
|
1785
|
+
margin-left: var(--swatchbook-space-2xs);
|
|
1786
|
+
}
|
|
1787
|
+
.sb-dimension-sample {
|
|
1788
|
+
align-items: center;
|
|
1789
|
+
gap: var(--swatchbook-space-3xs);
|
|
1790
|
+
min-width: 0;
|
|
1791
|
+
max-width: 100%;
|
|
1792
|
+
display: inline-flex;
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
.sb-dimension-sample__cap {
|
|
1796
|
+
color: var(--swatchbook-text-muted);
|
|
1797
|
+
font-size: var(--swatchbook-type-micro);
|
|
1798
|
+
line-height: var(--swatchbook-leading-none);
|
|
1799
|
+
user-select: none;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
.sb-dimension-sample__bar {
|
|
1803
|
+
background: var(--swatchbook-accent-bg);
|
|
1804
|
+
border-radius: 2px;
|
|
1805
|
+
min-width: 1px;
|
|
1806
|
+
max-width: 100%;
|
|
1807
|
+
height: 14px;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
.sb-dimension-sample__radius-sample {
|
|
1811
|
+
background: var(--swatchbook-accent-bg);
|
|
1812
|
+
border: 1px solid var(--swatchbook-border-default);
|
|
1813
|
+
width: 56px;
|
|
1814
|
+
height: 56px;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
.sb-dimension-sample__size-sample {
|
|
1818
|
+
background: var(--swatchbook-accent-bg);
|
|
1819
|
+
border: 1px solid var(--swatchbook-border-default);
|
|
1820
|
+
min-width: 1px;
|
|
1821
|
+
min-height: 1px;
|
|
1822
|
+
}
|
|
1823
|
+
.sb-font-family-specimen__row {
|
|
1824
|
+
gap: var(--swatchbook-space-lg);
|
|
1825
|
+
padding: var(--swatchbook-space-lg) 0;
|
|
1826
|
+
border-bottom: 1px solid var(--swatchbook-border-default);
|
|
1827
|
+
grid-template-columns: minmax(160px, 220px) 1fr auto;
|
|
1828
|
+
align-items: baseline;
|
|
1829
|
+
display: grid;
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
.sb-font-family-specimen__meta {
|
|
1833
|
+
gap: var(--swatchbook-space-3xs);
|
|
1834
|
+
flex-direction: column;
|
|
1835
|
+
min-width: 0;
|
|
1836
|
+
display: flex;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
.sb-font-family-specimen__path {
|
|
1840
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1841
|
+
font-size: var(--swatchbook-type-caption);
|
|
1842
|
+
text-overflow: ellipsis;
|
|
1843
|
+
white-space: nowrap;
|
|
1844
|
+
overflow: hidden;
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
.sb-font-family-specimen__stack {
|
|
1848
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1849
|
+
font-size: var(--swatchbook-type-micro);
|
|
1850
|
+
color: var(--swatchbook-text-muted);
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
.sb-font-family-specimen__sample {
|
|
1854
|
+
font-size: var(--swatchbook-type-sample);
|
|
1855
|
+
line-height: var(--swatchbook-leading-tight);
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
.sb-font-family-specimen__css-var {
|
|
1859
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1860
|
+
font-size: var(--swatchbook-type-micro);
|
|
1861
|
+
color: var(--swatchbook-text-muted);
|
|
1862
|
+
}
|
|
1863
|
+
.sb-font-weight-specimen__row {
|
|
1864
|
+
gap: var(--swatchbook-space-lg);
|
|
1865
|
+
padding: var(--swatchbook-space-md) 0;
|
|
1866
|
+
border-bottom: 1px solid var(--swatchbook-border-default);
|
|
1867
|
+
grid-template-columns: minmax(160px, 220px) 1fr auto;
|
|
1868
|
+
align-items: baseline;
|
|
1869
|
+
display: grid;
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
.sb-font-weight-specimen__meta {
|
|
1873
|
+
gap: var(--swatchbook-space-3xs);
|
|
1874
|
+
flex-direction: column;
|
|
1875
|
+
min-width: 0;
|
|
1876
|
+
display: flex;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
.sb-font-weight-specimen__path {
|
|
1880
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1881
|
+
font-size: var(--swatchbook-type-caption);
|
|
1882
|
+
text-overflow: ellipsis;
|
|
1883
|
+
white-space: nowrap;
|
|
1884
|
+
overflow: hidden;
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
.sb-font-weight-specimen__value {
|
|
1888
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1889
|
+
font-size: var(--swatchbook-type-micro);
|
|
1890
|
+
color: var(--swatchbook-text-muted);
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
.sb-font-weight-specimen__sample {
|
|
1894
|
+
font-size: var(--swatchbook-type-sample-lg);
|
|
1895
|
+
line-height: var(--swatchbook-leading-none);
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
.sb-font-weight-specimen__css-var {
|
|
1899
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1900
|
+
font-size: var(--swatchbook-type-micro);
|
|
1901
|
+
color: var(--swatchbook-text-muted);
|
|
1902
|
+
}
|
|
1903
|
+
.sb-gradient-swatch__chip {
|
|
1904
|
+
border-radius: var(--swatchbook-radius-xs);
|
|
1905
|
+
border: 1px solid var(--swatchbook-border-default);
|
|
1906
|
+
width: 100%;
|
|
1907
|
+
height: 56px;
|
|
1908
|
+
}
|
|
1909
|
+
.sb-motion-sample__track {
|
|
1910
|
+
background: var(--swatchbook-surface-muted);
|
|
1911
|
+
border-radius: 18px;
|
|
1912
|
+
height: 36px;
|
|
1913
|
+
position: relative;
|
|
1914
|
+
overflow: hidden;
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
.sb-motion-sample__ball {
|
|
1918
|
+
background: var(--swatchbook-accent-bg);
|
|
1919
|
+
border-radius: 50%;
|
|
1920
|
+
width: 28px;
|
|
1921
|
+
height: 28px;
|
|
1922
|
+
margin-top: -14px;
|
|
1923
|
+
position: absolute;
|
|
1924
|
+
top: 50%;
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
.sb-motion-sample__ball--start {
|
|
1928
|
+
left: 4px;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
.sb-motion-sample__ball--end {
|
|
1932
|
+
left: calc(100% - 32px);
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
.sb-motion-sample__reduced-motion {
|
|
1936
|
+
font-size: var(--swatchbook-type-micro);
|
|
1937
|
+
color: var(--swatchbook-text-muted);
|
|
1938
|
+
font-style: italic;
|
|
1939
|
+
}
|
|
1940
|
+
.sb-opacity-swatch {
|
|
1941
|
+
border-radius: var(--swatchbook-radius-xs);
|
|
1942
|
+
border: 1px solid var(--swatchbook-border-default);
|
|
1943
|
+
background-color: #fff;
|
|
1944
|
+
background-image: linear-gradient(45deg, #00000014 25%, #0000 25%), linear-gradient(-45deg, #00000014 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #00000014 75%), linear-gradient(-45deg, #0000 75%, #00000014 75%);
|
|
1945
|
+
background-position: 0 0, 0 6px, 6px -6px, -6px 0;
|
|
1946
|
+
background-size: 12px 12px;
|
|
1947
|
+
height: 64px;
|
|
1948
|
+
position: relative;
|
|
1949
|
+
overflow: hidden;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
.sb-opacity-swatch__chip {
|
|
1953
|
+
position: absolute;
|
|
1954
|
+
inset: 0;
|
|
1955
|
+
}
|
|
1956
|
+
.sb-stroke-sample__line {
|
|
1957
|
+
border-top-width: 4px;
|
|
1958
|
+
border-top-color: var(--swatchbook-text-default);
|
|
1959
|
+
width: 100%;
|
|
1960
|
+
height: 0;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
.sb-stroke-sample__object-fallback {
|
|
1964
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1965
|
+
font-size: var(--swatchbook-type-micro);
|
|
1966
|
+
color: var(--swatchbook-text-muted);
|
|
1967
|
+
}
|
|
1968
|
+
.sb-type-specimen {
|
|
1969
|
+
gap: var(--swatchbook-space-3xs);
|
|
1970
|
+
flex-direction: column;
|
|
1971
|
+
min-width: 0;
|
|
1972
|
+
display: flex;
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
.sb-type-specimen__description {
|
|
1976
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1977
|
+
font-size: var(--swatchbook-type-micro);
|
|
1978
|
+
opacity: var(--swatchbook-opacity-muted);
|
|
1979
|
+
}
|
|
1980
|
+
.sb-shadow-sample {
|
|
1981
|
+
background: var(--swatchbook-surface-raised);
|
|
1982
|
+
border: 1px solid var(--swatchbook-border-default);
|
|
1983
|
+
border-radius: 6px;
|
|
1984
|
+
width: 120px;
|
|
1985
|
+
height: 56px;
|
|
1986
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unpunnyfuns/swatchbook-blocks",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Storybook MDX doc blocks for DTCG design tokens — TokenTable, ColorPalette, TypographyScale, TokenDetail.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design-system",
|
|
@@ -38,6 +38,10 @@
|
|
|
38
38
|
"types": "./dist/index.d.mts",
|
|
39
39
|
"import": "./dist/index.mjs"
|
|
40
40
|
},
|
|
41
|
+
"./host": {
|
|
42
|
+
"types": "./dist/host.d.mts",
|
|
43
|
+
"import": "./dist/host.mjs"
|
|
44
|
+
},
|
|
41
45
|
"./style.css": "./dist/style.css",
|
|
42
46
|
"./package.json": "./package.json"
|
|
43
47
|
},
|
|
@@ -48,7 +52,7 @@
|
|
|
48
52
|
"@tanstack/react-virtual": "3.14.5",
|
|
49
53
|
"clsx": "^2.1.1",
|
|
50
54
|
"colorjs.io": "^0.6.1",
|
|
51
|
-
"@unpunnyfuns/swatchbook-core": "
|
|
55
|
+
"@unpunnyfuns/swatchbook-core": "2.0.0"
|
|
52
56
|
},
|
|
53
57
|
"devDependencies": {
|
|
54
58
|
"@terrazzo/token-tools": "^2.3.0",
|