@sanity/ui 3.0.0-static.19 → 3.0.0-static.20

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 (131) hide show
  1. package/dist/_chunks-cjs/_visual-editing.cjs +109 -112
  2. package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -1
  3. package/dist/_chunks-cjs/buildCommand.cjs +30 -24
  4. package/dist/_chunks-cjs/buildCommand.cjs.map +1 -1
  5. package/dist/_chunks-es/_visual-editing.js +110 -113
  6. package/dist/_chunks-es/_visual-editing.js.map +1 -1
  7. package/dist/cli.cjs +1 -1
  8. package/dist/css.cjs +379 -358
  9. package/dist/css.cjs.map +1 -1
  10. package/dist/css.d.cts +45 -10
  11. package/dist/css.d.ts +45 -10
  12. package/dist/css.js +379 -358
  13. package/dist/css.js.map +1 -1
  14. package/dist/index.d.cts +0 -1
  15. package/dist/index.d.ts +0 -1
  16. package/dist/theme.cjs +89 -64
  17. package/dist/theme.cjs.map +1 -1
  18. package/dist/theme.d.cts +28 -2
  19. package/dist/theme.d.ts +28 -2
  20. package/dist/theme.js +89 -64
  21. package/dist/theme.js.map +1 -1
  22. package/dist/ui-system.css +1236 -801
  23. package/dist/ui-system.min.css +1 -1
  24. package/dist/ui-theme.css +413 -82
  25. package/dist/ui-theme.min.css +1 -1
  26. package/dist/ui.css +1649 -883
  27. package/dist/ui.min.css +1 -1
  28. package/exports/_visual-editing.ts +0 -1
  29. package/package.json +6 -6
  30. package/src/cli/buildCommand.ts +48 -41
  31. package/src/core/components/autocomplete/__workshop__/async.tsx +1 -1
  32. package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +1 -1
  33. package/src/core/components/autocomplete/__workshop__/custom.tsx +12 -11
  34. package/src/core/components/autocomplete/__workshop__/example.tsx +13 -12
  35. package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +53 -54
  36. package/src/core/components/breadcrumbs/__workshop__/example.tsx +1 -2
  37. package/src/core/components/dialog/__workshop__/autoFocus.tsx +2 -2
  38. package/src/core/components/dialog/__workshop__/onScroll.tsx +16 -4
  39. package/src/core/components/dialog/__workshop__/position.tsx +3 -3
  40. package/src/core/components/dialog/__workshop__/props.tsx +6 -6
  41. package/src/core/components/menu/__workshop__/menuButton.tsx +3 -3
  42. package/src/core/components/menu/__workshop__/tones.tsx +3 -3
  43. package/src/core/components/skeleton/__workshop__/delay.tsx +2 -2
  44. package/src/core/components/skeleton/__workshop__/skeleton.tsx +2 -2
  45. package/src/core/components/tab/__workshop__/example.tsx +1 -1
  46. package/src/core/components/toast/__workshop__/toast.tsx +5 -5
  47. package/src/core/primitives/avatar/__workshop__/asButton.tsx +2 -2
  48. package/src/core/primitives/avatar/__workshop__/stack.tsx +2 -2
  49. package/src/core/primitives/avatar/__workshop__/withinButton.tsx +1 -1
  50. package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +1 -1
  51. package/src/core/primitives/badge/__workshop__/props.tsx +5 -8
  52. package/src/core/primitives/box/__workshop__/props.tsx +2 -2
  53. package/src/core/primitives/box/box.tsx +2 -0
  54. package/src/core/primitives/button/__workshop__/props.tsx +17 -19
  55. package/src/core/primitives/button/__workshop__/stacked.tsx +12 -12
  56. package/src/core/primitives/card/__workshop__/asButton.tsx +1 -1
  57. package/src/core/primitives/card/__workshop__/interactive.tsx +2 -2
  58. package/src/core/primitives/card/__workshop__/props.tsx +11 -11
  59. package/src/core/primitives/card/__workshop__/selected.tsx +2 -2
  60. package/src/core/primitives/checkbox/__workshop__/props.tsx +5 -5
  61. package/src/core/primitives/code/__workshop__/props.tsx +4 -7
  62. package/src/core/primitives/code/code.tsx +1 -1
  63. package/src/core/primitives/container/__workshop__/example.tsx +2 -2
  64. package/src/core/primitives/flex/__workshop__/example.tsx +2 -2
  65. package/src/core/primitives/heading/__workshop__/plain.tsx +11 -7
  66. package/src/core/primitives/heading/heading.tsx +1 -1
  67. package/src/core/primitives/inline/__workshop__/plain.tsx +2 -5
  68. package/src/core/primitives/label/__workshop__/plain.tsx +7 -8
  69. package/src/core/primitives/label/label.tsx +1 -1
  70. package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +6 -6
  71. package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +3 -3
  72. package/src/core/primitives/popover/__workshop__/PlainStory.tsx +1 -1
  73. package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +1 -1
  74. package/src/core/primitives/popover/__workshop__/TestStory.tsx +3 -1
  75. package/src/core/primitives/radio/__workshop__/example.tsx +2 -2
  76. package/src/core/primitives/radio/__workshop__/plain.tsx +3 -3
  77. package/src/core/primitives/select/__workshop__/plain.tsx +5 -8
  78. package/src/core/primitives/spinner/__workshop__/Props.tsx +3 -3
  79. package/src/core/primitives/stack/__workshop__/plain.tsx +2 -2
  80. package/src/core/primitives/text/__workshop__/colored.tsx +2 -2
  81. package/src/core/primitives/text/__workshop__/example.tsx +8 -11
  82. package/src/core/primitives/textArea/__workshop__/plain.tsx +11 -12
  83. package/src/core/primitives/textArea/textArea.tsx +10 -7
  84. package/src/core/primitives/textInput/__workshop__/customValidity.tsx +1 -1
  85. package/src/core/primitives/textInput/__workshop__/plain.tsx +30 -18
  86. package/src/core/primitives/textInput/__workshop__/states.tsx +1 -1
  87. package/src/core/primitives/textInput/__workshop__/typed.tsx +2 -2
  88. package/src/core/primitives/textInput/textInput.tsx +11 -20
  89. package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +3 -3
  90. package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +1 -1
  91. package/src/core/primitives/tooltip/__workshop__/props.tsx +4 -4
  92. package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +1 -1
  93. package/src/core/primitives/tooltip/tooltipLayer.tsx +1 -3
  94. package/src/css/_system.style.ts +2 -0
  95. package/src/css/aspects/font/font.style.ts +9 -8
  96. package/src/css/aspects/index.ts +1 -0
  97. package/src/css/aspects/margin/margin.style.ts +13 -0
  98. package/src/css/aspects/margin/types.ts +12 -7
  99. package/src/css/aspects/minHeight/index.ts +2 -0
  100. package/src/css/aspects/minHeight/minHeight.style.ts +9 -0
  101. package/src/css/aspects/minHeight/minHeight.ts +8 -0
  102. package/src/css/aspects/minHeight/types.ts +9 -0
  103. package/src/css/components/skeleton/skeleton.style.ts +7 -10
  104. package/src/css/primitives/_input/_input.style.ts +30 -51
  105. package/src/css/primitives/_selectable/_selectable.style.ts +2 -3
  106. package/src/css/primitives/box/box.style.ts +0 -3
  107. package/src/css/primitives/box/box.ts +2 -0
  108. package/src/css/primitives/box/types.ts +2 -0
  109. package/src/css/primitives/card/card.style.ts +3 -0
  110. package/src/css/primitives/code/code.style.ts +1 -0
  111. package/src/css/primitives/heading/heading.style.ts +1 -0
  112. package/src/css/primitives/label/label.style.ts +1 -0
  113. package/src/css/primitives/text/text.style.ts +1 -0
  114. package/src/css/primitives/textArea/textArea.style.ts +1 -3
  115. package/src/css/primitives/textInput/textInput.style.ts +10 -18
  116. package/src/css/primitives/textInput/textInput.ts +15 -0
  117. package/src/css/primitives/tooltip/tooltip.style.ts +0 -13
  118. package/src/css/primitives/tooltip/tooltip.ts +0 -5
  119. package/src/css/theme/resolveTheme.ts +29 -18
  120. package/src/theme/v0/font.ts +0 -1
  121. package/src/theme/v2/defaults/fonts.ts +0 -1
  122. package/src/theme/v3/_parseColorToken.ts +0 -5
  123. package/src/theme/v3/buildTheme_v3.ts +2 -2
  124. package/src/theme/v3/defaultFonts.ts +250 -0
  125. package/src/theme/v3/defaultTokens.ts +39 -35
  126. package/src/theme/v3/types.ts +35 -2
  127. package/src/theme/versioning/v3_v2.ts +1 -0
  128. package/src/css/primitives/_input/__workshop__/customInput.tsx +0 -16
  129. package/src/css/primitives/_input/__workshop__/index.ts +0 -14
  130. /package/src/core/components/autocomplete/{__mocks__ → __workshop__/mock}/apiStore.ts +0 -0
  131. /package/src/core/components/autocomplete/{__mocks__ → __workshop__/mock}/countries.ts +0 -0
package/dist/theme.d.cts CHANGED
@@ -814,7 +814,7 @@ export declare interface Theme_v3 {
814
814
  }
815
815
  color: ThemeColor_v3
816
816
  container: number[]
817
- font: ThemeFonts
817
+ font: ThemeFonts_v3
818
818
  input: ThemeInput_v2
819
819
  layer: ThemeLayer
820
820
  media: number[]
@@ -1676,13 +1676,20 @@ export declare interface ThemeFocusRing {
1676
1676
  /** @public */
1677
1677
  export declare interface ThemeFont {
1678
1678
  family: string
1679
- featureSettings?: string
1680
1679
  weights: ThemeFontWeight
1681
1680
  sizes: ThemeFontSize[]
1682
1681
  /** @deprecated No longer supported. */
1683
1682
  horizontalOffset?: number
1684
1683
  }
1685
1684
 
1685
+ /** @public */
1686
+ export declare interface ThemeFont_v3 {
1687
+ family: string
1688
+ featureSettings?: string
1689
+ weight: ThemeFontWeight
1690
+ sizes: ThemeFontSize_v3[]
1691
+ }
1692
+
1686
1693
  /** @public */
1687
1694
  export declare type ThemeFontKey = 'code' | 'heading' | 'label' | 'text'
1688
1695
 
@@ -1694,6 +1701,14 @@ export declare interface ThemeFonts {
1694
1701
  text: ThemeFont
1695
1702
  }
1696
1703
 
1704
+ /** @public */
1705
+ export declare interface ThemeFonts_v3 {
1706
+ code: ThemeFont_v3
1707
+ heading: ThemeFont_v3
1708
+ label: ThemeFont_v3
1709
+ text: ThemeFont_v3
1710
+ }
1711
+
1697
1712
  /** @public */
1698
1713
  export declare interface ThemeFontSize {
1699
1714
  ascenderHeight: number
@@ -1704,6 +1719,17 @@ export declare interface ThemeFontSize {
1704
1719
  lineHeight: number
1705
1720
  }
1706
1721
 
1722
+ /** @public */
1723
+ export declare interface ThemeFontSize_v3 {
1724
+ ascenderHeight: number
1725
+ descenderHeight: number
1726
+ fontSize: number
1727
+ iconSize: number
1728
+ letterSpacing: number
1729
+ lineHeight: number
1730
+ customIconSize: number
1731
+ }
1732
+
1707
1733
  /** @public */
1708
1734
  export declare interface ThemeFontWeight {
1709
1735
  regular: number
package/dist/theme.d.ts CHANGED
@@ -814,7 +814,7 @@ export declare interface Theme_v3 {
814
814
  }
815
815
  color: ThemeColor_v3
816
816
  container: number[]
817
- font: ThemeFonts
817
+ font: ThemeFonts_v3
818
818
  input: ThemeInput_v2
819
819
  layer: ThemeLayer
820
820
  media: number[]
@@ -1676,13 +1676,20 @@ export declare interface ThemeFocusRing {
1676
1676
  /** @public */
1677
1677
  export declare interface ThemeFont {
1678
1678
  family: string
1679
- featureSettings?: string
1680
1679
  weights: ThemeFontWeight
1681
1680
  sizes: ThemeFontSize[]
1682
1681
  /** @deprecated No longer supported. */
1683
1682
  horizontalOffset?: number
1684
1683
  }
1685
1684
 
1685
+ /** @public */
1686
+ export declare interface ThemeFont_v3 {
1687
+ family: string
1688
+ featureSettings?: string
1689
+ weight: ThemeFontWeight
1690
+ sizes: ThemeFontSize_v3[]
1691
+ }
1692
+
1686
1693
  /** @public */
1687
1694
  export declare type ThemeFontKey = 'code' | 'heading' | 'label' | 'text'
1688
1695
 
@@ -1694,6 +1701,14 @@ export declare interface ThemeFonts {
1694
1701
  text: ThemeFont
1695
1702
  }
1696
1703
 
1704
+ /** @public */
1705
+ export declare interface ThemeFonts_v3 {
1706
+ code: ThemeFont_v3
1707
+ heading: ThemeFont_v3
1708
+ label: ThemeFont_v3
1709
+ text: ThemeFont_v3
1710
+ }
1711
+
1697
1712
  /** @public */
1698
1713
  export declare interface ThemeFontSize {
1699
1714
  ascenderHeight: number
@@ -1704,6 +1719,17 @@ export declare interface ThemeFontSize {
1704
1719
  lineHeight: number
1705
1720
  }
1706
1721
 
1722
+ /** @public */
1723
+ export declare interface ThemeFontSize_v3 {
1724
+ ascenderHeight: number
1725
+ descenderHeight: number
1726
+ fontSize: number
1727
+ iconSize: number
1728
+ letterSpacing: number
1729
+ lineHeight: number
1730
+ customIconSize: number
1731
+ }
1732
+
1707
1733
  /** @public */
1708
1734
  export declare interface ThemeFontWeight {
1709
1735
  regular: number
package/dist/theme.js CHANGED
@@ -1770,8 +1770,6 @@ function _parseColorToken(str, options) {
1770
1770
  return cursor += 2, v;
1771
1771
  }
1772
1772
  function parseMix() {
1773
- if (_peek() !== " ")
1774
- return;
1775
1773
  ignoreWhitespace();
1776
1774
  const match = RE_PERCENTAGE.exec(str.slice(cursor));
1777
1775
  if (match)
@@ -1794,7 +1792,7 @@ function _parseColorToken(str, options) {
1794
1792
  const defaultThemeFonts = {
1795
1793
  code: {
1796
1794
  family: "ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
1797
- weights: {
1795
+ weight: {
1798
1796
  regular: 400,
1799
1797
  medium: 500,
1800
1798
  semibold: 600,
@@ -1806,41 +1804,46 @@ const defaultThemeFonts = {
1806
1804
  fontSize: 10,
1807
1805
  iconSize: 17,
1808
1806
  lineHeight: 15,
1809
- letterSpacing: 0
1807
+ letterSpacing: 0,
1808
+ customIconSize: 12
1810
1809
  }, {
1811
1810
  ascenderHeight: 5,
1812
1811
  descenderHeight: 5,
1813
1812
  fontSize: 13,
1814
1813
  iconSize: 21,
1815
1814
  lineHeight: 19,
1816
- letterSpacing: 0
1815
+ letterSpacing: 0,
1816
+ customIconSize: 16
1817
1817
  }, {
1818
1818
  ascenderHeight: 6,
1819
1819
  descenderHeight: 6,
1820
1820
  fontSize: 16,
1821
1821
  iconSize: 25,
1822
1822
  lineHeight: 23,
1823
- letterSpacing: 0
1823
+ letterSpacing: 0,
1824
+ customIconSize: 20
1824
1825
  }, {
1825
1826
  ascenderHeight: 7,
1826
1827
  descenderHeight: 7,
1827
1828
  fontSize: 19,
1828
1829
  iconSize: 29,
1829
1830
  lineHeight: 27,
1830
- letterSpacing: 0
1831
+ letterSpacing: 0,
1832
+ customIconSize: 24
1831
1833
  }, {
1832
1834
  ascenderHeight: 8,
1833
1835
  descenderHeight: 8,
1834
1836
  fontSize: 22,
1835
1837
  iconSize: 33,
1836
1838
  lineHeight: 31,
1837
- letterSpacing: 0
1839
+ letterSpacing: 0,
1840
+ customIconSize: 28
1838
1841
  }]
1839
1842
  },
1840
1843
  heading: {
1841
1844
  family: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',
1842
1845
  featureSettings: "'liga' 1, 'calt' 1, 'ss01' 1, 'ss03' 1, 'zero' 1",
1843
- weights: {
1846
+ weight: {
1844
1847
  regular: 600,
1845
1848
  medium: 700,
1846
1849
  semibold: 800,
@@ -1852,47 +1855,53 @@ const defaultThemeFonts = {
1852
1855
  fontSize: 13,
1853
1856
  iconSize: 17,
1854
1857
  lineHeight: 19,
1855
- letterSpacing: 0
1858
+ letterSpacing: 0,
1859
+ customIconSize: 12
1856
1860
  }, {
1857
1861
  ascenderHeight: 6,
1858
1862
  descenderHeight: 6,
1859
1863
  fontSize: 16,
1860
1864
  iconSize: 25,
1861
1865
  lineHeight: 23,
1862
- letterSpacing: 0
1866
+ letterSpacing: 0,
1867
+ customIconSize: 20
1863
1868
  }, {
1864
1869
  ascenderHeight: 7,
1865
1870
  descenderHeight: 7,
1866
1871
  fontSize: 21,
1867
1872
  iconSize: 33,
1868
1873
  lineHeight: 29,
1869
- letterSpacing: -0.25
1874
+ letterSpacing: -0.25,
1875
+ customIconSize: 28
1870
1876
  }, {
1871
1877
  ascenderHeight: 8,
1872
1878
  descenderHeight: 8,
1873
1879
  fontSize: 27,
1874
1880
  iconSize: 41,
1875
1881
  lineHeight: 35,
1876
- letterSpacing: -0.5
1882
+ letterSpacing: -0.5,
1883
+ customIconSize: 36
1877
1884
  }, {
1878
1885
  ascenderHeight: 9.5,
1879
1886
  descenderHeight: 8.5,
1880
1887
  fontSize: 33,
1881
1888
  iconSize: 49,
1882
1889
  lineHeight: 41,
1883
- letterSpacing: -1
1890
+ letterSpacing: -1,
1891
+ customIconSize: 44
1884
1892
  }, {
1885
1893
  ascenderHeight: 10.5,
1886
1894
  descenderHeight: 9.5,
1887
1895
  fontSize: 38,
1888
1896
  iconSize: 53,
1889
1897
  lineHeight: 47,
1890
- letterSpacing: -1
1898
+ letterSpacing: -1,
1899
+ customIconSize: 48
1891
1900
  }]
1892
1901
  },
1893
1902
  label: {
1894
1903
  family: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", system-ui, sans-serif',
1895
- weights: {
1904
+ weight: {
1896
1905
  regular: 500,
1897
1906
  medium: 600,
1898
1907
  semibold: 700,
@@ -1904,47 +1913,53 @@ const defaultThemeFonts = {
1904
1913
  fontSize: 8.1,
1905
1914
  iconSize: 13,
1906
1915
  lineHeight: 10,
1907
- letterSpacing: 0.5
1916
+ letterSpacing: 0.5,
1917
+ customIconSize: 8
1908
1918
  }, {
1909
1919
  ascenderHeight: 1.5,
1910
1920
  descenderHeight: 2.5,
1911
1921
  fontSize: 9.5,
1912
1922
  iconSize: 15,
1913
1923
  lineHeight: 11,
1914
- letterSpacing: 0.5
1924
+ letterSpacing: 0.5,
1925
+ customIconSize: 10
1915
1926
  }, {
1916
1927
  ascenderHeight: 2,
1917
1928
  descenderHeight: 2,
1918
1929
  fontSize: 10.8,
1919
1930
  iconSize: 17,
1920
1931
  lineHeight: 12,
1921
- letterSpacing: 0.5
1932
+ letterSpacing: 0.5,
1933
+ customIconSize: 12
1922
1934
  }, {
1923
1935
  ascenderHeight: 2,
1924
1936
  descenderHeight: 2,
1925
1937
  fontSize: 12.25,
1926
1938
  iconSize: 19,
1927
1939
  lineHeight: 13,
1928
- letterSpacing: 0.5
1940
+ letterSpacing: 0.5,
1941
+ customIconSize: 14
1929
1942
  }, {
1930
1943
  ascenderHeight: 1.5,
1931
1944
  descenderHeight: 2.5,
1932
1945
  fontSize: 13.6,
1933
1946
  iconSize: 21,
1934
1947
  lineHeight: 14,
1935
- letterSpacing: 0.5
1948
+ letterSpacing: 0.5,
1949
+ customIconSize: 16
1936
1950
  }, {
1937
1951
  ascenderHeight: 2,
1938
1952
  descenderHeight: 2,
1939
1953
  fontSize: 15,
1940
1954
  iconSize: 23,
1941
1955
  lineHeight: 15,
1942
- letterSpacing: 0.5
1956
+ letterSpacing: 0.5,
1957
+ customIconSize: 18
1943
1958
  }]
1944
1959
  },
1945
1960
  text: {
1946
1961
  family: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',
1947
- weights: {
1962
+ weight: {
1948
1963
  regular: 400,
1949
1964
  medium: 500,
1950
1965
  semibold: 600,
@@ -1956,35 +1971,40 @@ const defaultThemeFonts = {
1956
1971
  fontSize: 10,
1957
1972
  iconSize: 17,
1958
1973
  lineHeight: 15,
1959
- letterSpacing: 0
1974
+ letterSpacing: 0,
1975
+ customIconSize: 12
1960
1976
  }, {
1961
1977
  ascenderHeight: 5,
1962
1978
  descenderHeight: 5,
1963
1979
  fontSize: 13,
1964
1980
  iconSize: 21,
1965
1981
  lineHeight: 19,
1966
- letterSpacing: 0
1982
+ letterSpacing: 0,
1983
+ customIconSize: 16
1967
1984
  }, {
1968
1985
  ascenderHeight: 6,
1969
1986
  descenderHeight: 6,
1970
1987
  fontSize: 15,
1971
1988
  iconSize: 25,
1972
1989
  lineHeight: 23,
1973
- letterSpacing: 0
1990
+ letterSpacing: 0,
1991
+ customIconSize: 20
1974
1992
  }, {
1975
1993
  ascenderHeight: 7,
1976
1994
  descenderHeight: 7,
1977
1995
  fontSize: 18,
1978
1996
  iconSize: 29,
1979
1997
  lineHeight: 27,
1980
- letterSpacing: 0
1998
+ letterSpacing: 0,
1999
+ customIconSize: 24
1981
2000
  }, {
1982
2001
  ascenderHeight: 8,
1983
2002
  descenderHeight: 8,
1984
2003
  fontSize: 21,
1985
2004
  iconSize: 33,
1986
2005
  lineHeight: 31,
1987
- letterSpacing: 0
2006
+ letterSpacing: 0,
2007
+ customIconSize: 28
1988
2008
  }]
1989
2009
  }
1990
2010
  }, defaultTokens = {
@@ -1995,41 +2015,41 @@ const defaultThemeFonts = {
1995
2015
  bg: ["50", "950"],
1996
2016
  fg: ["700", "300"],
1997
2017
  token: {
1998
- atrule: ["purple-600", "purple-300"],
1999
- attrName: ["green-600", "green-300"],
2000
- attrValue: ["yellow-600", "yellow-300"],
2001
- attribute: ["yellow-600", "yellow-300"],
2002
- boolean: ["purple-600", "purple-300"],
2003
- builtin: ["purple-600", "purple-300"],
2004
- cdata: ["yellow-600", "yellow-300"],
2005
- char: ["yellow-600", "yellow-300"],
2006
- class: ["orange-600", "orange-300"],
2007
- className: ["cyan-600", "cyan-300"],
2008
- comment: ["gray-300", "gray-600"],
2009
- constant: ["purple-600", "purple-300"],
2010
- deleted: ["red-600", "red-300"],
2011
- entity: ["red-600", "red-300"],
2012
- function: ["green-600", "green-300"],
2013
- hexcode: ["blue-600", "blue-300"],
2014
- id: ["purple-600", "purple-300"],
2015
- important: ["purple-600", "purple-300"],
2016
- inserted: ["green-600", "green-300"],
2017
- keyword: ["magenta-600", "magenta-300"],
2018
- number: ["purple-600", "purple-300"],
2019
- operator: ["magenta-600", "magenta-300"],
2020
- prolog: ["gray-600", "gray-300"],
2021
- property: ["blue-600", "blue-300"],
2022
- pseudoClass: ["yellow-600", "yellow-300"],
2023
- pseudoElement: ["yellow-600", "yellow-300"],
2024
- punctuation: ["gray-600", "gray-300"],
2025
- regex: ["blue-600", "blue-300"],
2026
- selector: ["red-600", "red-300"],
2027
- string: ["yellow-600", "yellow-300"],
2028
- symbol: ["purple-600", "purple-300"],
2029
- tag: ["red-600", "red-300"],
2030
- unit: ["orange-600", "orange-300"],
2031
- url: ["red-600", "red-300"],
2032
- variable: ["red-600", "red-300"]
2018
+ atrule: ["purple-600", "purple-400"],
2019
+ attrName: ["green-600", "green-400"],
2020
+ attrValue: ["yellow-600", "yellow-400"],
2021
+ attribute: ["yellow-600", "yellow-400"],
2022
+ boolean: ["purple-600", "purple-400"],
2023
+ builtin: ["purple-600", "purple-400"],
2024
+ cdata: ["yellow-600", "yellow-400"],
2025
+ char: ["yellow-600", "yellow-400"],
2026
+ class: ["orange-600", "orange-400"],
2027
+ className: ["cyan-600", "cyan-400"],
2028
+ comment: ["gray-400", "gray-600"],
2029
+ constant: ["purple-600", "purple-400"],
2030
+ deleted: ["red-600", "red-400"],
2031
+ entity: ["red-600", "red-400"],
2032
+ function: ["green-600", "green-400"],
2033
+ hexcode: ["blue-600", "blue-400"],
2034
+ id: ["purple-600", "purple-400"],
2035
+ important: ["purple-600", "purple-400"],
2036
+ inserted: ["green-600", "green-400"],
2037
+ keyword: ["magenta-600", "magenta-400"],
2038
+ number: ["purple-600", "purple-400"],
2039
+ operator: ["magenta-600", "magenta-400"],
2040
+ prolog: ["gray-600", "gray-400"],
2041
+ property: ["blue-600", "blue-400"],
2042
+ pseudoClass: ["yellow-600", "yellow-400"],
2043
+ pseudoElement: ["yellow-600", "yellow-400"],
2044
+ punctuation: ["gray-600", "gray-400"],
2045
+ regex: ["blue-600", "blue-400"],
2046
+ selector: ["red-600", "red-400"],
2047
+ string: ["yellow-600", "yellow-400"],
2048
+ symbol: ["purple-600", "purple-400"],
2049
+ tag: ["red-600", "red-400"],
2050
+ unit: ["orange-600", "orange-400"],
2051
+ url: ["red-600", "red-400"],
2052
+ variable: ["red-600", "red-400"]
2033
2053
  }
2034
2054
  },
2035
2055
  focusRing: ["blue-500", "blue-500"],
@@ -2042,6 +2062,10 @@ const defaultThemeFonts = {
2042
2062
  penumbra: ["600/0.07", "black/0.14"],
2043
2063
  ambient: ["600/0.06", "black/0.12"]
2044
2064
  },
2065
+ skeleton: {
2066
+ from: ["200 70%", "800 35%"],
2067
+ to: ["200 40%", "800 50%"]
2068
+ },
2045
2069
  variant: {
2046
2070
  tinted: {
2047
2071
  "*": {
@@ -2375,7 +2399,7 @@ function buildTheme_v3(options) {
2375
2399
  card: v2?.card ?? defaultThemeConfig.card,
2376
2400
  color: tokens.color,
2377
2401
  container: v2?.container ?? defaultThemeConfig.container,
2378
- font: v2?.font ?? defaultThemeFonts,
2402
+ font: defaultThemeFonts,
2379
2403
  input: v2?.input ?? defaultThemeConfig.input,
2380
2404
  layer: v2?.layer ?? defaultThemeConfig.layer,
2381
2405
  media: v2?.media ?? defaultThemeConfig.media,
@@ -2792,6 +2816,7 @@ function v3_v2(theme_v3) {
2792
2816
  }
2793
2817
  },
2794
2818
  container: theme_v3.container,
2819
+ // @ts-expect-error TODO: fix this
2795
2820
  font: theme_v3.font,
2796
2821
  input: theme_v3.input,
2797
2822
  layer: theme_v3.layer,