@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.
- package/dist/_chunks-cjs/_visual-editing.cjs +109 -112
- package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -1
- package/dist/_chunks-cjs/buildCommand.cjs +30 -24
- package/dist/_chunks-cjs/buildCommand.cjs.map +1 -1
- package/dist/_chunks-es/_visual-editing.js +110 -113
- package/dist/_chunks-es/_visual-editing.js.map +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/css.cjs +379 -358
- package/dist/css.cjs.map +1 -1
- package/dist/css.d.cts +45 -10
- package/dist/css.d.ts +45 -10
- package/dist/css.js +379 -358
- package/dist/css.js.map +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/theme.cjs +89 -64
- package/dist/theme.cjs.map +1 -1
- package/dist/theme.d.cts +28 -2
- package/dist/theme.d.ts +28 -2
- package/dist/theme.js +89 -64
- package/dist/theme.js.map +1 -1
- package/dist/ui-system.css +1236 -801
- package/dist/ui-system.min.css +1 -1
- package/dist/ui-theme.css +413 -82
- package/dist/ui-theme.min.css +1 -1
- package/dist/ui.css +1649 -883
- package/dist/ui.min.css +1 -1
- package/exports/_visual-editing.ts +0 -1
- package/package.json +6 -6
- package/src/cli/buildCommand.ts +48 -41
- package/src/core/components/autocomplete/__workshop__/async.tsx +1 -1
- package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +1 -1
- package/src/core/components/autocomplete/__workshop__/custom.tsx +12 -11
- package/src/core/components/autocomplete/__workshop__/example.tsx +13 -12
- package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +53 -54
- package/src/core/components/breadcrumbs/__workshop__/example.tsx +1 -2
- package/src/core/components/dialog/__workshop__/autoFocus.tsx +2 -2
- package/src/core/components/dialog/__workshop__/onScroll.tsx +16 -4
- package/src/core/components/dialog/__workshop__/position.tsx +3 -3
- package/src/core/components/dialog/__workshop__/props.tsx +6 -6
- package/src/core/components/menu/__workshop__/menuButton.tsx +3 -3
- package/src/core/components/menu/__workshop__/tones.tsx +3 -3
- package/src/core/components/skeleton/__workshop__/delay.tsx +2 -2
- package/src/core/components/skeleton/__workshop__/skeleton.tsx +2 -2
- package/src/core/components/tab/__workshop__/example.tsx +1 -1
- package/src/core/components/toast/__workshop__/toast.tsx +5 -5
- package/src/core/primitives/avatar/__workshop__/asButton.tsx +2 -2
- package/src/core/primitives/avatar/__workshop__/stack.tsx +2 -2
- package/src/core/primitives/avatar/__workshop__/withinButton.tsx +1 -1
- package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +1 -1
- package/src/core/primitives/badge/__workshop__/props.tsx +5 -8
- package/src/core/primitives/box/__workshop__/props.tsx +2 -2
- package/src/core/primitives/box/box.tsx +2 -0
- package/src/core/primitives/button/__workshop__/props.tsx +17 -19
- package/src/core/primitives/button/__workshop__/stacked.tsx +12 -12
- package/src/core/primitives/card/__workshop__/asButton.tsx +1 -1
- package/src/core/primitives/card/__workshop__/interactive.tsx +2 -2
- package/src/core/primitives/card/__workshop__/props.tsx +11 -11
- package/src/core/primitives/card/__workshop__/selected.tsx +2 -2
- package/src/core/primitives/checkbox/__workshop__/props.tsx +5 -5
- package/src/core/primitives/code/__workshop__/props.tsx +4 -7
- package/src/core/primitives/code/code.tsx +1 -1
- package/src/core/primitives/container/__workshop__/example.tsx +2 -2
- package/src/core/primitives/flex/__workshop__/example.tsx +2 -2
- package/src/core/primitives/heading/__workshop__/plain.tsx +11 -7
- package/src/core/primitives/heading/heading.tsx +1 -1
- package/src/core/primitives/inline/__workshop__/plain.tsx +2 -5
- package/src/core/primitives/label/__workshop__/plain.tsx +7 -8
- package/src/core/primitives/label/label.tsx +1 -1
- package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +6 -6
- package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +3 -3
- package/src/core/primitives/popover/__workshop__/PlainStory.tsx +1 -1
- package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +1 -1
- package/src/core/primitives/popover/__workshop__/TestStory.tsx +3 -1
- package/src/core/primitives/radio/__workshop__/example.tsx +2 -2
- package/src/core/primitives/radio/__workshop__/plain.tsx +3 -3
- package/src/core/primitives/select/__workshop__/plain.tsx +5 -8
- package/src/core/primitives/spinner/__workshop__/Props.tsx +3 -3
- package/src/core/primitives/stack/__workshop__/plain.tsx +2 -2
- package/src/core/primitives/text/__workshop__/colored.tsx +2 -2
- package/src/core/primitives/text/__workshop__/example.tsx +8 -11
- package/src/core/primitives/textArea/__workshop__/plain.tsx +11 -12
- package/src/core/primitives/textArea/textArea.tsx +10 -7
- package/src/core/primitives/textInput/__workshop__/customValidity.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/plain.tsx +30 -18
- package/src/core/primitives/textInput/__workshop__/states.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/typed.tsx +2 -2
- package/src/core/primitives/textInput/textInput.tsx +11 -20
- package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +3 -3
- package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +1 -1
- package/src/core/primitives/tooltip/__workshop__/props.tsx +4 -4
- package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +1 -1
- package/src/core/primitives/tooltip/tooltipLayer.tsx +1 -3
- package/src/css/_system.style.ts +2 -0
- package/src/css/aspects/font/font.style.ts +9 -8
- package/src/css/aspects/index.ts +1 -0
- package/src/css/aspects/margin/margin.style.ts +13 -0
- package/src/css/aspects/margin/types.ts +12 -7
- package/src/css/aspects/minHeight/index.ts +2 -0
- package/src/css/aspects/minHeight/minHeight.style.ts +9 -0
- package/src/css/aspects/minHeight/minHeight.ts +8 -0
- package/src/css/aspects/minHeight/types.ts +9 -0
- package/src/css/components/skeleton/skeleton.style.ts +7 -10
- package/src/css/primitives/_input/_input.style.ts +30 -51
- package/src/css/primitives/_selectable/_selectable.style.ts +2 -3
- package/src/css/primitives/box/box.style.ts +0 -3
- package/src/css/primitives/box/box.ts +2 -0
- package/src/css/primitives/box/types.ts +2 -0
- package/src/css/primitives/card/card.style.ts +3 -0
- package/src/css/primitives/code/code.style.ts +1 -0
- package/src/css/primitives/heading/heading.style.ts +1 -0
- package/src/css/primitives/label/label.style.ts +1 -0
- package/src/css/primitives/text/text.style.ts +1 -0
- package/src/css/primitives/textArea/textArea.style.ts +1 -3
- package/src/css/primitives/textInput/textInput.style.ts +10 -18
- package/src/css/primitives/textInput/textInput.ts +15 -0
- package/src/css/primitives/tooltip/tooltip.style.ts +0 -13
- package/src/css/primitives/tooltip/tooltip.ts +0 -5
- package/src/css/theme/resolveTheme.ts +29 -18
- package/src/theme/v0/font.ts +0 -1
- package/src/theme/v2/defaults/fonts.ts +0 -1
- package/src/theme/v3/_parseColorToken.ts +0 -5
- package/src/theme/v3/buildTheme_v3.ts +2 -2
- package/src/theme/v3/defaultFonts.ts +250 -0
- package/src/theme/v3/defaultTokens.ts +39 -35
- package/src/theme/v3/types.ts +35 -2
- package/src/theme/versioning/v3_v2.ts +1 -0
- package/src/css/primitives/_input/__workshop__/customInput.tsx +0 -16
- package/src/css/primitives/_input/__workshop__/index.ts +0 -14
- /package/src/core/components/autocomplete/{__mocks__ → __workshop__/mock}/apiStore.ts +0 -0
- /package/src/core/components/autocomplete/{__mocks__ → __workshop__/mock}/countries.ts +0 -0
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/theme.cjs
CHANGED
|
@@ -1772,8 +1772,6 @@ function _parseColorToken(str, options) {
|
|
|
1772
1772
|
return cursor += 2, v;
|
|
1773
1773
|
}
|
|
1774
1774
|
function parseMix() {
|
|
1775
|
-
if (_peek() !== " ")
|
|
1776
|
-
return;
|
|
1777
1775
|
ignoreWhitespace();
|
|
1778
1776
|
const match = RE_PERCENTAGE.exec(str.slice(cursor));
|
|
1779
1777
|
if (match)
|
|
@@ -1796,7 +1794,7 @@ function _parseColorToken(str, options) {
|
|
|
1796
1794
|
const defaultThemeFonts = {
|
|
1797
1795
|
code: {
|
|
1798
1796
|
family: "ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
|
|
1799
|
-
|
|
1797
|
+
weight: {
|
|
1800
1798
|
regular: 400,
|
|
1801
1799
|
medium: 500,
|
|
1802
1800
|
semibold: 600,
|
|
@@ -1808,41 +1806,46 @@ const defaultThemeFonts = {
|
|
|
1808
1806
|
fontSize: 10,
|
|
1809
1807
|
iconSize: 17,
|
|
1810
1808
|
lineHeight: 15,
|
|
1811
|
-
letterSpacing: 0
|
|
1809
|
+
letterSpacing: 0,
|
|
1810
|
+
customIconSize: 12
|
|
1812
1811
|
}, {
|
|
1813
1812
|
ascenderHeight: 5,
|
|
1814
1813
|
descenderHeight: 5,
|
|
1815
1814
|
fontSize: 13,
|
|
1816
1815
|
iconSize: 21,
|
|
1817
1816
|
lineHeight: 19,
|
|
1818
|
-
letterSpacing: 0
|
|
1817
|
+
letterSpacing: 0,
|
|
1818
|
+
customIconSize: 16
|
|
1819
1819
|
}, {
|
|
1820
1820
|
ascenderHeight: 6,
|
|
1821
1821
|
descenderHeight: 6,
|
|
1822
1822
|
fontSize: 16,
|
|
1823
1823
|
iconSize: 25,
|
|
1824
1824
|
lineHeight: 23,
|
|
1825
|
-
letterSpacing: 0
|
|
1825
|
+
letterSpacing: 0,
|
|
1826
|
+
customIconSize: 20
|
|
1826
1827
|
}, {
|
|
1827
1828
|
ascenderHeight: 7,
|
|
1828
1829
|
descenderHeight: 7,
|
|
1829
1830
|
fontSize: 19,
|
|
1830
1831
|
iconSize: 29,
|
|
1831
1832
|
lineHeight: 27,
|
|
1832
|
-
letterSpacing: 0
|
|
1833
|
+
letterSpacing: 0,
|
|
1834
|
+
customIconSize: 24
|
|
1833
1835
|
}, {
|
|
1834
1836
|
ascenderHeight: 8,
|
|
1835
1837
|
descenderHeight: 8,
|
|
1836
1838
|
fontSize: 22,
|
|
1837
1839
|
iconSize: 33,
|
|
1838
1840
|
lineHeight: 31,
|
|
1839
|
-
letterSpacing: 0
|
|
1841
|
+
letterSpacing: 0,
|
|
1842
|
+
customIconSize: 28
|
|
1840
1843
|
}]
|
|
1841
1844
|
},
|
|
1842
1845
|
heading: {
|
|
1843
1846
|
family: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',
|
|
1844
1847
|
featureSettings: "'liga' 1, 'calt' 1, 'ss01' 1, 'ss03' 1, 'zero' 1",
|
|
1845
|
-
|
|
1848
|
+
weight: {
|
|
1846
1849
|
regular: 600,
|
|
1847
1850
|
medium: 700,
|
|
1848
1851
|
semibold: 800,
|
|
@@ -1854,47 +1857,53 @@ const defaultThemeFonts = {
|
|
|
1854
1857
|
fontSize: 13,
|
|
1855
1858
|
iconSize: 17,
|
|
1856
1859
|
lineHeight: 19,
|
|
1857
|
-
letterSpacing: 0
|
|
1860
|
+
letterSpacing: 0,
|
|
1861
|
+
customIconSize: 12
|
|
1858
1862
|
}, {
|
|
1859
1863
|
ascenderHeight: 6,
|
|
1860
1864
|
descenderHeight: 6,
|
|
1861
1865
|
fontSize: 16,
|
|
1862
1866
|
iconSize: 25,
|
|
1863
1867
|
lineHeight: 23,
|
|
1864
|
-
letterSpacing: 0
|
|
1868
|
+
letterSpacing: 0,
|
|
1869
|
+
customIconSize: 20
|
|
1865
1870
|
}, {
|
|
1866
1871
|
ascenderHeight: 7,
|
|
1867
1872
|
descenderHeight: 7,
|
|
1868
1873
|
fontSize: 21,
|
|
1869
1874
|
iconSize: 33,
|
|
1870
1875
|
lineHeight: 29,
|
|
1871
|
-
letterSpacing: -0.25
|
|
1876
|
+
letterSpacing: -0.25,
|
|
1877
|
+
customIconSize: 28
|
|
1872
1878
|
}, {
|
|
1873
1879
|
ascenderHeight: 8,
|
|
1874
1880
|
descenderHeight: 8,
|
|
1875
1881
|
fontSize: 27,
|
|
1876
1882
|
iconSize: 41,
|
|
1877
1883
|
lineHeight: 35,
|
|
1878
|
-
letterSpacing: -0.5
|
|
1884
|
+
letterSpacing: -0.5,
|
|
1885
|
+
customIconSize: 36
|
|
1879
1886
|
}, {
|
|
1880
1887
|
ascenderHeight: 9.5,
|
|
1881
1888
|
descenderHeight: 8.5,
|
|
1882
1889
|
fontSize: 33,
|
|
1883
1890
|
iconSize: 49,
|
|
1884
1891
|
lineHeight: 41,
|
|
1885
|
-
letterSpacing: -1
|
|
1892
|
+
letterSpacing: -1,
|
|
1893
|
+
customIconSize: 44
|
|
1886
1894
|
}, {
|
|
1887
1895
|
ascenderHeight: 10.5,
|
|
1888
1896
|
descenderHeight: 9.5,
|
|
1889
1897
|
fontSize: 38,
|
|
1890
1898
|
iconSize: 53,
|
|
1891
1899
|
lineHeight: 47,
|
|
1892
|
-
letterSpacing: -1
|
|
1900
|
+
letterSpacing: -1,
|
|
1901
|
+
customIconSize: 48
|
|
1893
1902
|
}]
|
|
1894
1903
|
},
|
|
1895
1904
|
label: {
|
|
1896
1905
|
family: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", system-ui, sans-serif',
|
|
1897
|
-
|
|
1906
|
+
weight: {
|
|
1898
1907
|
regular: 500,
|
|
1899
1908
|
medium: 600,
|
|
1900
1909
|
semibold: 700,
|
|
@@ -1906,47 +1915,53 @@ const defaultThemeFonts = {
|
|
|
1906
1915
|
fontSize: 8.1,
|
|
1907
1916
|
iconSize: 13,
|
|
1908
1917
|
lineHeight: 10,
|
|
1909
|
-
letterSpacing: 0.5
|
|
1918
|
+
letterSpacing: 0.5,
|
|
1919
|
+
customIconSize: 8
|
|
1910
1920
|
}, {
|
|
1911
1921
|
ascenderHeight: 1.5,
|
|
1912
1922
|
descenderHeight: 2.5,
|
|
1913
1923
|
fontSize: 9.5,
|
|
1914
1924
|
iconSize: 15,
|
|
1915
1925
|
lineHeight: 11,
|
|
1916
|
-
letterSpacing: 0.5
|
|
1926
|
+
letterSpacing: 0.5,
|
|
1927
|
+
customIconSize: 10
|
|
1917
1928
|
}, {
|
|
1918
1929
|
ascenderHeight: 2,
|
|
1919
1930
|
descenderHeight: 2,
|
|
1920
1931
|
fontSize: 10.8,
|
|
1921
1932
|
iconSize: 17,
|
|
1922
1933
|
lineHeight: 12,
|
|
1923
|
-
letterSpacing: 0.5
|
|
1934
|
+
letterSpacing: 0.5,
|
|
1935
|
+
customIconSize: 12
|
|
1924
1936
|
}, {
|
|
1925
1937
|
ascenderHeight: 2,
|
|
1926
1938
|
descenderHeight: 2,
|
|
1927
1939
|
fontSize: 12.25,
|
|
1928
1940
|
iconSize: 19,
|
|
1929
1941
|
lineHeight: 13,
|
|
1930
|
-
letterSpacing: 0.5
|
|
1942
|
+
letterSpacing: 0.5,
|
|
1943
|
+
customIconSize: 14
|
|
1931
1944
|
}, {
|
|
1932
1945
|
ascenderHeight: 1.5,
|
|
1933
1946
|
descenderHeight: 2.5,
|
|
1934
1947
|
fontSize: 13.6,
|
|
1935
1948
|
iconSize: 21,
|
|
1936
1949
|
lineHeight: 14,
|
|
1937
|
-
letterSpacing: 0.5
|
|
1950
|
+
letterSpacing: 0.5,
|
|
1951
|
+
customIconSize: 16
|
|
1938
1952
|
}, {
|
|
1939
1953
|
ascenderHeight: 2,
|
|
1940
1954
|
descenderHeight: 2,
|
|
1941
1955
|
fontSize: 15,
|
|
1942
1956
|
iconSize: 23,
|
|
1943
1957
|
lineHeight: 15,
|
|
1944
|
-
letterSpacing: 0.5
|
|
1958
|
+
letterSpacing: 0.5,
|
|
1959
|
+
customIconSize: 18
|
|
1945
1960
|
}]
|
|
1946
1961
|
},
|
|
1947
1962
|
text: {
|
|
1948
1963
|
family: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',
|
|
1949
|
-
|
|
1964
|
+
weight: {
|
|
1950
1965
|
regular: 400,
|
|
1951
1966
|
medium: 500,
|
|
1952
1967
|
semibold: 600,
|
|
@@ -1958,35 +1973,40 @@ const defaultThemeFonts = {
|
|
|
1958
1973
|
fontSize: 10,
|
|
1959
1974
|
iconSize: 17,
|
|
1960
1975
|
lineHeight: 15,
|
|
1961
|
-
letterSpacing: 0
|
|
1976
|
+
letterSpacing: 0,
|
|
1977
|
+
customIconSize: 12
|
|
1962
1978
|
}, {
|
|
1963
1979
|
ascenderHeight: 5,
|
|
1964
1980
|
descenderHeight: 5,
|
|
1965
1981
|
fontSize: 13,
|
|
1966
1982
|
iconSize: 21,
|
|
1967
1983
|
lineHeight: 19,
|
|
1968
|
-
letterSpacing: 0
|
|
1984
|
+
letterSpacing: 0,
|
|
1985
|
+
customIconSize: 16
|
|
1969
1986
|
}, {
|
|
1970
1987
|
ascenderHeight: 6,
|
|
1971
1988
|
descenderHeight: 6,
|
|
1972
1989
|
fontSize: 15,
|
|
1973
1990
|
iconSize: 25,
|
|
1974
1991
|
lineHeight: 23,
|
|
1975
|
-
letterSpacing: 0
|
|
1992
|
+
letterSpacing: 0,
|
|
1993
|
+
customIconSize: 20
|
|
1976
1994
|
}, {
|
|
1977
1995
|
ascenderHeight: 7,
|
|
1978
1996
|
descenderHeight: 7,
|
|
1979
1997
|
fontSize: 18,
|
|
1980
1998
|
iconSize: 29,
|
|
1981
1999
|
lineHeight: 27,
|
|
1982
|
-
letterSpacing: 0
|
|
2000
|
+
letterSpacing: 0,
|
|
2001
|
+
customIconSize: 24
|
|
1983
2002
|
}, {
|
|
1984
2003
|
ascenderHeight: 8,
|
|
1985
2004
|
descenderHeight: 8,
|
|
1986
2005
|
fontSize: 21,
|
|
1987
2006
|
iconSize: 33,
|
|
1988
2007
|
lineHeight: 31,
|
|
1989
|
-
letterSpacing: 0
|
|
2008
|
+
letterSpacing: 0,
|
|
2009
|
+
customIconSize: 28
|
|
1990
2010
|
}]
|
|
1991
2011
|
}
|
|
1992
2012
|
}, defaultTokens = {
|
|
@@ -1997,41 +2017,41 @@ const defaultThemeFonts = {
|
|
|
1997
2017
|
bg: ["50", "950"],
|
|
1998
2018
|
fg: ["700", "300"],
|
|
1999
2019
|
token: {
|
|
2000
|
-
atrule: ["purple-600", "purple-
|
|
2001
|
-
attrName: ["green-600", "green-
|
|
2002
|
-
attrValue: ["yellow-600", "yellow-
|
|
2003
|
-
attribute: ["yellow-600", "yellow-
|
|
2004
|
-
boolean: ["purple-600", "purple-
|
|
2005
|
-
builtin: ["purple-600", "purple-
|
|
2006
|
-
cdata: ["yellow-600", "yellow-
|
|
2007
|
-
char: ["yellow-600", "yellow-
|
|
2008
|
-
class: ["orange-600", "orange-
|
|
2009
|
-
className: ["cyan-600", "cyan-
|
|
2010
|
-
comment: ["gray-
|
|
2011
|
-
constant: ["purple-600", "purple-
|
|
2012
|
-
deleted: ["red-600", "red-
|
|
2013
|
-
entity: ["red-600", "red-
|
|
2014
|
-
function: ["green-600", "green-
|
|
2015
|
-
hexcode: ["blue-600", "blue-
|
|
2016
|
-
id: ["purple-600", "purple-
|
|
2017
|
-
important: ["purple-600", "purple-
|
|
2018
|
-
inserted: ["green-600", "green-
|
|
2019
|
-
keyword: ["magenta-600", "magenta-
|
|
2020
|
-
number: ["purple-600", "purple-
|
|
2021
|
-
operator: ["magenta-600", "magenta-
|
|
2022
|
-
prolog: ["gray-600", "gray-
|
|
2023
|
-
property: ["blue-600", "blue-
|
|
2024
|
-
pseudoClass: ["yellow-600", "yellow-
|
|
2025
|
-
pseudoElement: ["yellow-600", "yellow-
|
|
2026
|
-
punctuation: ["gray-600", "gray-
|
|
2027
|
-
regex: ["blue-600", "blue-
|
|
2028
|
-
selector: ["red-600", "red-
|
|
2029
|
-
string: ["yellow-600", "yellow-
|
|
2030
|
-
symbol: ["purple-600", "purple-
|
|
2031
|
-
tag: ["red-600", "red-
|
|
2032
|
-
unit: ["orange-600", "orange-
|
|
2033
|
-
url: ["red-600", "red-
|
|
2034
|
-
variable: ["red-600", "red-
|
|
2020
|
+
atrule: ["purple-600", "purple-400"],
|
|
2021
|
+
attrName: ["green-600", "green-400"],
|
|
2022
|
+
attrValue: ["yellow-600", "yellow-400"],
|
|
2023
|
+
attribute: ["yellow-600", "yellow-400"],
|
|
2024
|
+
boolean: ["purple-600", "purple-400"],
|
|
2025
|
+
builtin: ["purple-600", "purple-400"],
|
|
2026
|
+
cdata: ["yellow-600", "yellow-400"],
|
|
2027
|
+
char: ["yellow-600", "yellow-400"],
|
|
2028
|
+
class: ["orange-600", "orange-400"],
|
|
2029
|
+
className: ["cyan-600", "cyan-400"],
|
|
2030
|
+
comment: ["gray-400", "gray-600"],
|
|
2031
|
+
constant: ["purple-600", "purple-400"],
|
|
2032
|
+
deleted: ["red-600", "red-400"],
|
|
2033
|
+
entity: ["red-600", "red-400"],
|
|
2034
|
+
function: ["green-600", "green-400"],
|
|
2035
|
+
hexcode: ["blue-600", "blue-400"],
|
|
2036
|
+
id: ["purple-600", "purple-400"],
|
|
2037
|
+
important: ["purple-600", "purple-400"],
|
|
2038
|
+
inserted: ["green-600", "green-400"],
|
|
2039
|
+
keyword: ["magenta-600", "magenta-400"],
|
|
2040
|
+
number: ["purple-600", "purple-400"],
|
|
2041
|
+
operator: ["magenta-600", "magenta-400"],
|
|
2042
|
+
prolog: ["gray-600", "gray-400"],
|
|
2043
|
+
property: ["blue-600", "blue-400"],
|
|
2044
|
+
pseudoClass: ["yellow-600", "yellow-400"],
|
|
2045
|
+
pseudoElement: ["yellow-600", "yellow-400"],
|
|
2046
|
+
punctuation: ["gray-600", "gray-400"],
|
|
2047
|
+
regex: ["blue-600", "blue-400"],
|
|
2048
|
+
selector: ["red-600", "red-400"],
|
|
2049
|
+
string: ["yellow-600", "yellow-400"],
|
|
2050
|
+
symbol: ["purple-600", "purple-400"],
|
|
2051
|
+
tag: ["red-600", "red-400"],
|
|
2052
|
+
unit: ["orange-600", "orange-400"],
|
|
2053
|
+
url: ["red-600", "red-400"],
|
|
2054
|
+
variable: ["red-600", "red-400"]
|
|
2035
2055
|
}
|
|
2036
2056
|
},
|
|
2037
2057
|
focusRing: ["blue-500", "blue-500"],
|
|
@@ -2044,6 +2064,10 @@ const defaultThemeFonts = {
|
|
|
2044
2064
|
penumbra: ["600/0.07", "black/0.14"],
|
|
2045
2065
|
ambient: ["600/0.06", "black/0.12"]
|
|
2046
2066
|
},
|
|
2067
|
+
skeleton: {
|
|
2068
|
+
from: ["200 70%", "800 35%"],
|
|
2069
|
+
to: ["200 40%", "800 50%"]
|
|
2070
|
+
},
|
|
2047
2071
|
variant: {
|
|
2048
2072
|
tinted: {
|
|
2049
2073
|
"*": {
|
|
@@ -2377,7 +2401,7 @@ function buildTheme_v3(options) {
|
|
|
2377
2401
|
card: v2?.card ?? defaultThemeConfig.card,
|
|
2378
2402
|
color: tokens.color,
|
|
2379
2403
|
container: v2?.container ?? defaultThemeConfig.container,
|
|
2380
|
-
font:
|
|
2404
|
+
font: defaultThemeFonts,
|
|
2381
2405
|
input: v2?.input ?? defaultThemeConfig.input,
|
|
2382
2406
|
layer: v2?.layer ?? defaultThemeConfig.layer,
|
|
2383
2407
|
media: v2?.media ?? defaultThemeConfig.media,
|
|
@@ -2794,6 +2818,7 @@ function v3_v2(theme_v3) {
|
|
|
2794
2818
|
}
|
|
2795
2819
|
},
|
|
2796
2820
|
container: theme_v3.container,
|
|
2821
|
+
// @ts-expect-error TODO: fix this
|
|
2797
2822
|
font: theme_v3.font,
|
|
2798
2823
|
input: theme_v3.input,
|
|
2799
2824
|
layer: theme_v3.layer,
|