@sanity/ui 3.0.0-static.7 → 3.0.0-static.8
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.js +14 -14
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +14 -14
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/css.d.mts +196 -184
- package/dist/css.d.ts +196 -184
- package/dist/css.js +293 -238
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +293 -238
- package/dist/css.mjs.map +1 -1
- package/dist/sanity-theme.css +1 -1
- package/dist/system.css +1105 -904
- package/dist/theme.d.mts +84 -76
- package/dist/theme.d.ts +84 -76
- package/dist/theme.js +147 -123
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +147 -123
- package/dist/theme.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/compile/compileTheme_v3.ts +46 -37
- package/src/css/primitives/badge/badge.style.ts +1 -1
- package/src/css/primitives/button/button.style.ts +20 -0
- package/src/css/primitives/card/card.style.ts +47 -41
- package/src/css/primitives/kbd/kbd.style.ts +1 -1
- package/src/css/primitives/text/text.style.ts +11 -3
- package/src/css/types.ts +200 -188
- package/src/css/varNames.ts +86 -76
- package/src/css/vars.ts +85 -76
- package/src/theme/v3/color/buildColor_v3.ts +43 -38
- package/src/theme/v3/color/card.ts +43 -38
- package/src/theme/v3/color/color.ts +42 -38
- package/src/theme/v3/defaults.ts +62 -46
- package/src/theme/v3/resolveTokens.ts +43 -38
- package/src/theme/versioning/themeColor_v3_v2.ts +1 -1
- package/src/ui/components/autocomplete/__workshop__/async.tsx +0 -1
- package/src/ui/primitives/box/box.tsx +1 -1
package/dist/theme.mjs
CHANGED
|
@@ -1595,6 +1595,48 @@ function buildColorCard_v3(tokens, options) {
|
|
|
1595
1595
|
}, acc;
|
|
1596
1596
|
}, {}),
|
|
1597
1597
|
backdrop: renderColor(tokens.backdrop, context),
|
|
1598
|
+
code: {
|
|
1599
|
+
bg: renderColor(tokens.code.bg, context),
|
|
1600
|
+
fg: renderColor(tokens.code.fg, context),
|
|
1601
|
+
token: {
|
|
1602
|
+
atrule: renderColor(tokens.code.token.atrule, context),
|
|
1603
|
+
attrName: renderColor(tokens.code.token.attrName, context),
|
|
1604
|
+
attrValue: renderColor(tokens.code.token.attrValue, context),
|
|
1605
|
+
attribute: renderColor(tokens.code.token.attribute, context),
|
|
1606
|
+
boolean: renderColor(tokens.code.token.boolean, context),
|
|
1607
|
+
builtin: renderColor(tokens.code.token.builtin, context),
|
|
1608
|
+
cdata: renderColor(tokens.code.token.cdata, context),
|
|
1609
|
+
char: renderColor(tokens.code.token.char, context),
|
|
1610
|
+
class: renderColor(tokens.code.token.class, context),
|
|
1611
|
+
className: renderColor(tokens.code.token.className, context),
|
|
1612
|
+
comment: renderColor(tokens.code.token.comment, context),
|
|
1613
|
+
constant: renderColor(tokens.code.token.constant, context),
|
|
1614
|
+
deleted: renderColor(tokens.code.token.deleted, context),
|
|
1615
|
+
doctype: renderColor(tokens.code.token.doctype, context),
|
|
1616
|
+
entity: renderColor(tokens.code.token.entity, context),
|
|
1617
|
+
function: renderColor(tokens.code.token.function, context),
|
|
1618
|
+
hexcode: renderColor(tokens.code.token.hexcode, context),
|
|
1619
|
+
id: renderColor(tokens.code.token.id, context),
|
|
1620
|
+
important: renderColor(tokens.code.token.important, context),
|
|
1621
|
+
inserted: renderColor(tokens.code.token.inserted, context),
|
|
1622
|
+
keyword: renderColor(tokens.code.token.keyword, context),
|
|
1623
|
+
number: renderColor(tokens.code.token.number, context),
|
|
1624
|
+
operator: renderColor(tokens.code.token.operator, context),
|
|
1625
|
+
prolog: renderColor(tokens.code.token.prolog, context),
|
|
1626
|
+
property: renderColor(tokens.code.token.property, context),
|
|
1627
|
+
pseudoClass: renderColor(tokens.code.token.pseudoClass, context),
|
|
1628
|
+
pseudoElement: renderColor(tokens.code.token.pseudoElement, context),
|
|
1629
|
+
punctuation: renderColor(tokens.code.token.punctuation, context),
|
|
1630
|
+
regex: renderColor(tokens.code.token.regex, context),
|
|
1631
|
+
selector: renderColor(tokens.code.token.selector, context),
|
|
1632
|
+
string: renderColor(tokens.code.token.string, context),
|
|
1633
|
+
symbol: renderColor(tokens.code.token.symbol, context),
|
|
1634
|
+
tag: renderColor(tokens.code.token.tag, context),
|
|
1635
|
+
unit: renderColor(tokens.code.token.unit, context),
|
|
1636
|
+
url: renderColor(tokens.code.token.url, context),
|
|
1637
|
+
variable: renderColor(tokens.code.token.variable, context)
|
|
1638
|
+
}
|
|
1639
|
+
},
|
|
1598
1640
|
focusRing: renderColor(tokens.focusRing, context),
|
|
1599
1641
|
shadow: {
|
|
1600
1642
|
outline: renderColor(tokens.shadow.outline, context),
|
|
@@ -1606,44 +1648,6 @@ function buildColorCard_v3(tokens, options) {
|
|
|
1606
1648
|
from: renderColor(tokens.skeleton.from, context),
|
|
1607
1649
|
to: renderColor(tokens.skeleton.to, context)
|
|
1608
1650
|
},
|
|
1609
|
-
token: {
|
|
1610
|
-
atrule: renderColor(tokens.token.atrule, context),
|
|
1611
|
-
attrName: renderColor(tokens.token.attrName, context),
|
|
1612
|
-
attrValue: renderColor(tokens.token.attrValue, context),
|
|
1613
|
-
attribute: renderColor(tokens.token.attribute, context),
|
|
1614
|
-
boolean: renderColor(tokens.token.boolean, context),
|
|
1615
|
-
builtin: renderColor(tokens.token.builtin, context),
|
|
1616
|
-
cdata: renderColor(tokens.token.cdata, context),
|
|
1617
|
-
char: renderColor(tokens.token.char, context),
|
|
1618
|
-
class: renderColor(tokens.token.class, context),
|
|
1619
|
-
className: renderColor(tokens.token.className, context),
|
|
1620
|
-
comment: renderColor(tokens.token.comment, context),
|
|
1621
|
-
constant: renderColor(tokens.token.constant, context),
|
|
1622
|
-
deleted: renderColor(tokens.token.deleted, context),
|
|
1623
|
-
doctype: renderColor(tokens.token.doctype, context),
|
|
1624
|
-
entity: renderColor(tokens.token.entity, context),
|
|
1625
|
-
function: renderColor(tokens.token.function, context),
|
|
1626
|
-
hexcode: renderColor(tokens.token.hexcode, context),
|
|
1627
|
-
id: renderColor(tokens.token.id, context),
|
|
1628
|
-
important: renderColor(tokens.token.important, context),
|
|
1629
|
-
inserted: renderColor(tokens.token.inserted, context),
|
|
1630
|
-
keyword: renderColor(tokens.token.keyword, context),
|
|
1631
|
-
number: renderColor(tokens.token.number, context),
|
|
1632
|
-
operator: renderColor(tokens.token.operator, context),
|
|
1633
|
-
prolog: renderColor(tokens.token.prolog, context),
|
|
1634
|
-
property: renderColor(tokens.token.property, context),
|
|
1635
|
-
pseudoClass: renderColor(tokens.token.pseudoClass, context),
|
|
1636
|
-
pseudoElement: renderColor(tokens.token.pseudoElement, context),
|
|
1637
|
-
punctuation: renderColor(tokens.token.punctuation, context),
|
|
1638
|
-
regex: renderColor(tokens.token.regex, context),
|
|
1639
|
-
selector: renderColor(tokens.token.selector, context),
|
|
1640
|
-
string: renderColor(tokens.token.string, context),
|
|
1641
|
-
symbol: renderColor(tokens.token.symbol, context),
|
|
1642
|
-
tag: renderColor(tokens.token.tag, context),
|
|
1643
|
-
unit: renderColor(tokens.token.unit, context),
|
|
1644
|
-
url: renderColor(tokens.token.url, context),
|
|
1645
|
-
variable: renderColor(tokens.token.variable, context)
|
|
1646
|
-
},
|
|
1647
1651
|
variant: {
|
|
1648
1652
|
solid: {
|
|
1649
1653
|
...THEME_COLOR_STATE_TONES.reduce((acc, tone) => ({
|
|
@@ -1693,6 +1697,47 @@ const defaultTokens = {
|
|
|
1693
1697
|
"*": {
|
|
1694
1698
|
// backdrop: ['black/0.2', '200/0.2'],
|
|
1695
1699
|
backdrop: ["black/0.5", "gray/100/0.5"],
|
|
1700
|
+
code: {
|
|
1701
|
+
bg: ["950", "50"],
|
|
1702
|
+
fg: ["300", "700"],
|
|
1703
|
+
token: {
|
|
1704
|
+
atrule: ["purple/300", "purple/600"],
|
|
1705
|
+
attrName: ["green/300", "green/600"],
|
|
1706
|
+
attrValue: ["yellow/300", "yellow/600"],
|
|
1707
|
+
attribute: ["yellow/300", "yellow/600"],
|
|
1708
|
+
boolean: ["purple/300", "purple/600"],
|
|
1709
|
+
builtin: ["purple/300", "purple/600"],
|
|
1710
|
+
cdata: ["yellow/300", "yellow/600"],
|
|
1711
|
+
char: ["yellow/300", "yellow/600"],
|
|
1712
|
+
class: ["orange/300", "orange/600"],
|
|
1713
|
+
className: ["cyan/300", "cyan/600"],
|
|
1714
|
+
comment: ["gray/600", "gray/300"],
|
|
1715
|
+
constant: ["purple/300", "purple/600"],
|
|
1716
|
+
deleted: ["red/300", "red/600"],
|
|
1717
|
+
entity: ["red/300", "red/600"],
|
|
1718
|
+
function: ["green/300", "green/600"],
|
|
1719
|
+
hexcode: ["blue/300", "blue/600"],
|
|
1720
|
+
id: ["purple/300", "purple/600"],
|
|
1721
|
+
important: ["purple/300", "purple/600"],
|
|
1722
|
+
inserted: ["green/300", "green/600"],
|
|
1723
|
+
keyword: ["magenta/300", "magenta/600"],
|
|
1724
|
+
number: ["purple/300", "purple/600"],
|
|
1725
|
+
operator: ["magenta/300", "magenta/600"],
|
|
1726
|
+
prolog: ["gray/300", "gray/600"],
|
|
1727
|
+
property: ["blue/300", "blue/600"],
|
|
1728
|
+
pseudoClass: ["yellow/300", "yellow/600"],
|
|
1729
|
+
pseudoElement: ["yellow/300", "yellow/600"],
|
|
1730
|
+
punctuation: ["gray/300", "gray/600"],
|
|
1731
|
+
regex: ["blue/300", "blue/600"],
|
|
1732
|
+
selector: ["red/300", "red/600"],
|
|
1733
|
+
string: ["yellow/300", "yellow/600"],
|
|
1734
|
+
symbol: ["purple/300", "purple/600"],
|
|
1735
|
+
tag: ["red/300", "red/600"],
|
|
1736
|
+
unit: ["orange/300", "orange/600"],
|
|
1737
|
+
url: ["red/300", "red/600"],
|
|
1738
|
+
variable: ["red/300", "red/600"]
|
|
1739
|
+
}
|
|
1740
|
+
},
|
|
1696
1741
|
focusRing: ["blue/500", "blue/500"],
|
|
1697
1742
|
link: {
|
|
1698
1743
|
fg: ["blue/400", "blue/600"]
|
|
@@ -1703,53 +1748,16 @@ const defaultTokens = {
|
|
|
1703
1748
|
penumbra: ["black/0.14", "500/0.07"],
|
|
1704
1749
|
ambient: ["black/0.12", "500/0.06"]
|
|
1705
1750
|
},
|
|
1706
|
-
token: {
|
|
1707
|
-
atrule: ["purple/300", "purple/600"],
|
|
1708
|
-
attrName: ["green/300", "green/600"],
|
|
1709
|
-
attrValue: ["yellow/300", "yellow/600"],
|
|
1710
|
-
attribute: ["yellow/300", "yellow/600"],
|
|
1711
|
-
boolean: ["purple/300", "purple/600"],
|
|
1712
|
-
builtin: ["purple/300", "purple/600"],
|
|
1713
|
-
cdata: ["yellow/300", "yellow/600"],
|
|
1714
|
-
char: ["yellow/300", "yellow/600"],
|
|
1715
|
-
class: ["orange/300", "orange/600"],
|
|
1716
|
-
className: ["cyan/300", "cyan/600"],
|
|
1717
|
-
comment: ["gray/600", "gray/300"],
|
|
1718
|
-
constant: ["purple/300", "purple/600"],
|
|
1719
|
-
deleted: ["red/300", "red/600"],
|
|
1720
|
-
entity: ["red/300", "red/600"],
|
|
1721
|
-
function: ["green/300", "green/600"],
|
|
1722
|
-
hexcode: ["blue/300", "blue/600"],
|
|
1723
|
-
id: ["purple/300", "purple/600"],
|
|
1724
|
-
important: ["purple/300", "purple/600"],
|
|
1725
|
-
inserted: ["green/300", "green/600"],
|
|
1726
|
-
keyword: ["magenta/300", "magenta/600"],
|
|
1727
|
-
number: ["purple/300", "purple/600"],
|
|
1728
|
-
operator: ["magenta/300", "magenta/600"],
|
|
1729
|
-
prolog: ["gray/300", "gray/600"],
|
|
1730
|
-
property: ["blue/300", "blue/600"],
|
|
1731
|
-
pseudoClass: ["yellow/300", "yellow/600"],
|
|
1732
|
-
pseudoElement: ["yellow/300", "yellow/600"],
|
|
1733
|
-
punctuation: ["gray/300", "gray/600"],
|
|
1734
|
-
regex: ["blue/300", "blue/600"],
|
|
1735
|
-
selector: ["red/300", "red/600"],
|
|
1736
|
-
string: ["yellow/300", "yellow/600"],
|
|
1737
|
-
symbol: ["purple/300", "purple/600"],
|
|
1738
|
-
tag: ["red/300", "red/600"],
|
|
1739
|
-
unit: ["orange/300", "orange/600"],
|
|
1740
|
-
url: ["red/300", "red/600"],
|
|
1741
|
-
variable: ["red/300", "red/600"]
|
|
1742
|
-
},
|
|
1743
1751
|
variant: {
|
|
1744
1752
|
tinted: {
|
|
1745
1753
|
"*": {
|
|
1746
1754
|
bg: {
|
|
1747
1755
|
0: ["950", "50"],
|
|
1748
|
-
4: ["800", "
|
|
1756
|
+
4: ["800", "200"]
|
|
1749
1757
|
},
|
|
1750
1758
|
border: {
|
|
1751
|
-
0: ["
|
|
1752
|
-
4: ["
|
|
1759
|
+
0: ["700", "100"],
|
|
1760
|
+
4: ["500", "300"]
|
|
1753
1761
|
},
|
|
1754
1762
|
fg: {
|
|
1755
1763
|
0: ["100", "900"],
|
|
@@ -1775,8 +1783,8 @@ const defaultTokens = {
|
|
|
1775
1783
|
solid: {
|
|
1776
1784
|
"*": {
|
|
1777
1785
|
bg: {
|
|
1778
|
-
0: ["
|
|
1779
|
-
4: ["
|
|
1786
|
+
0: ["400", "500"],
|
|
1787
|
+
4: ["300", "600"]
|
|
1780
1788
|
},
|
|
1781
1789
|
border: {
|
|
1782
1790
|
0: ["200", "400"],
|
|
@@ -1824,12 +1832,12 @@ const defaultTokens = {
|
|
|
1824
1832
|
4: ["800", "300 50%"]
|
|
1825
1833
|
},
|
|
1826
1834
|
border: {
|
|
1827
|
-
0: ["
|
|
1828
|
-
4: ["
|
|
1835
|
+
0: ["800", "300 40%"],
|
|
1836
|
+
4: ["600", "300"]
|
|
1829
1837
|
},
|
|
1830
1838
|
fg: {
|
|
1831
1839
|
0: ["100", "black"],
|
|
1832
|
-
4: ["
|
|
1840
|
+
4: ["400", "700"]
|
|
1833
1841
|
}
|
|
1834
1842
|
}
|
|
1835
1843
|
}
|
|
@@ -1840,7 +1848,7 @@ const defaultTokens = {
|
|
|
1840
1848
|
tinted: {
|
|
1841
1849
|
"*": {
|
|
1842
1850
|
bg: {
|
|
1843
|
-
0: ["
|
|
1851
|
+
0: ["950", "white"],
|
|
1844
1852
|
4: ["800", "200"]
|
|
1845
1853
|
},
|
|
1846
1854
|
border: {
|
|
@@ -1855,6 +1863,18 @@ const defaultTokens = {
|
|
|
1855
1863
|
}
|
|
1856
1864
|
}
|
|
1857
1865
|
},
|
|
1866
|
+
neutral: {
|
|
1867
|
+
variant: {
|
|
1868
|
+
tinted: {
|
|
1869
|
+
"*": {
|
|
1870
|
+
bg: {
|
|
1871
|
+
0: ["900", "50"],
|
|
1872
|
+
4: ["700", "200"]
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
},
|
|
1858
1878
|
primary: {
|
|
1859
1879
|
_hue: "blue"
|
|
1860
1880
|
},
|
|
@@ -1961,6 +1981,48 @@ function resolveCardColorTokens(tokens) {
|
|
|
1961
1981
|
}
|
|
1962
1982
|
},
|
|
1963
1983
|
backdrop: tokens?.backdrop ?? ["900", "100"],
|
|
1984
|
+
code: {
|
|
1985
|
+
bg: tokens?.code?.bg ?? ["950", "50"],
|
|
1986
|
+
fg: tokens?.code?.fg ?? ["400", "600"],
|
|
1987
|
+
token: {
|
|
1988
|
+
atrule: tokens?.code?.token?.atrule ?? ["400", "600"],
|
|
1989
|
+
attribute: tokens?.code?.token?.attribute ?? ["400", "600"],
|
|
1990
|
+
attrName: tokens?.code?.token?.attrName ?? ["400", "600"],
|
|
1991
|
+
attrValue: tokens?.code?.token?.attrValue ?? ["400", "600"],
|
|
1992
|
+
boolean: tokens?.code?.token?.boolean ?? ["400", "600"],
|
|
1993
|
+
builtin: tokens?.code?.token?.builtin ?? ["400", "600"],
|
|
1994
|
+
cdata: tokens?.code?.token?.cdata ?? ["400", "600"],
|
|
1995
|
+
char: tokens?.code?.token?.char ?? ["400", "600"],
|
|
1996
|
+
class: tokens?.code?.token?.class ?? ["400", "600"],
|
|
1997
|
+
className: tokens?.code?.token?.className ?? ["400", "600"],
|
|
1998
|
+
comment: tokens?.code?.token?.comment ?? ["600", "400"],
|
|
1999
|
+
constant: tokens?.code?.token?.constant ?? ["400", "600"],
|
|
2000
|
+
deleted: tokens?.code?.token?.deleted ?? ["400", "600"],
|
|
2001
|
+
doctype: tokens?.code?.token?.doctype ?? ["400", "600"],
|
|
2002
|
+
entity: tokens?.code?.token?.entity ?? ["400", "600"],
|
|
2003
|
+
function: tokens?.code?.token?.function ?? ["400", "600"],
|
|
2004
|
+
hexcode: tokens?.code?.token?.hexcode ?? ["400", "600"],
|
|
2005
|
+
id: tokens?.code?.token?.id ?? ["400", "600"],
|
|
2006
|
+
important: tokens?.code?.token?.important ?? ["400", "600"],
|
|
2007
|
+
inserted: tokens?.code?.token?.inserted ?? ["400", "600"],
|
|
2008
|
+
keyword: tokens?.code?.token?.keyword ?? ["400", "600"],
|
|
2009
|
+
number: tokens?.code?.token?.number ?? ["400", "600"],
|
|
2010
|
+
operator: tokens?.code?.token?.operator ?? ["400", "600"],
|
|
2011
|
+
prolog: tokens?.code?.token?.prolog ?? ["400", "600"],
|
|
2012
|
+
property: tokens?.code?.token?.property ?? ["400", "600"],
|
|
2013
|
+
pseudoClass: tokens?.code?.token?.pseudoClass ?? ["400", "600"],
|
|
2014
|
+
pseudoElement: tokens?.code?.token?.pseudoElement ?? ["400", "600"],
|
|
2015
|
+
punctuation: tokens?.code?.token?.punctuation ?? ["400", "600"],
|
|
2016
|
+
regex: tokens?.code?.token?.regex ?? ["400", "600"],
|
|
2017
|
+
selector: tokens?.code?.token?.selector ?? ["400", "600"],
|
|
2018
|
+
string: tokens?.code?.token?.string ?? ["400", "600"],
|
|
2019
|
+
symbol: tokens?.code?.token?.symbol ?? ["400", "600"],
|
|
2020
|
+
tag: tokens?.code?.token?.tag ?? ["400", "600"],
|
|
2021
|
+
unit: tokens?.code?.token?.unit ?? ["400", "600"],
|
|
2022
|
+
url: tokens?.code?.token?.url ?? ["400", "600"],
|
|
2023
|
+
variable: tokens?.code?.token?.variable ?? ["400", "600"]
|
|
2024
|
+
}
|
|
2025
|
+
},
|
|
1964
2026
|
focusRing: tokens?.focusRing ?? ["500", "500"],
|
|
1965
2027
|
link: {
|
|
1966
2028
|
fg: tokens?.link?.fg ?? ["400", "600"]
|
|
@@ -1975,44 +2037,6 @@ function resolveCardColorTokens(tokens) {
|
|
|
1975
2037
|
from: tokens?.skeleton?.from ?? ["900", "100"],
|
|
1976
2038
|
to: tokens?.skeleton?.to ?? ["950", "50"]
|
|
1977
2039
|
},
|
|
1978
|
-
token: {
|
|
1979
|
-
atrule: tokens?.token?.atrule ?? ["400", "600"],
|
|
1980
|
-
attribute: tokens?.token?.attribute ?? ["400", "600"],
|
|
1981
|
-
attrName: tokens?.token?.attrName ?? ["400", "600"],
|
|
1982
|
-
attrValue: tokens?.token?.attrValue ?? ["400", "600"],
|
|
1983
|
-
boolean: tokens?.token?.boolean ?? ["400", "600"],
|
|
1984
|
-
builtin: tokens?.token?.builtin ?? ["400", "600"],
|
|
1985
|
-
cdata: tokens?.token?.cdata ?? ["400", "600"],
|
|
1986
|
-
char: tokens?.token?.char ?? ["400", "600"],
|
|
1987
|
-
class: tokens?.token?.class ?? ["400", "600"],
|
|
1988
|
-
className: tokens?.token?.className ?? ["400", "600"],
|
|
1989
|
-
comment: tokens?.token?.comment ?? ["600", "400"],
|
|
1990
|
-
constant: tokens?.token?.constant ?? ["400", "600"],
|
|
1991
|
-
deleted: tokens?.token?.deleted ?? ["400", "600"],
|
|
1992
|
-
doctype: tokens?.token?.doctype ?? ["400", "600"],
|
|
1993
|
-
entity: tokens?.token?.entity ?? ["400", "600"],
|
|
1994
|
-
function: tokens?.token?.function ?? ["400", "600"],
|
|
1995
|
-
hexcode: tokens?.token?.hexcode ?? ["400", "600"],
|
|
1996
|
-
id: tokens?.token?.id ?? ["400", "600"],
|
|
1997
|
-
important: tokens?.token?.important ?? ["400", "600"],
|
|
1998
|
-
inserted: tokens?.token?.inserted ?? ["400", "600"],
|
|
1999
|
-
keyword: tokens?.token?.keyword ?? ["400", "600"],
|
|
2000
|
-
number: tokens?.token?.number ?? ["400", "600"],
|
|
2001
|
-
operator: tokens?.token?.operator ?? ["400", "600"],
|
|
2002
|
-
prolog: tokens?.token?.prolog ?? ["400", "600"],
|
|
2003
|
-
property: tokens?.token?.property ?? ["400", "600"],
|
|
2004
|
-
pseudoClass: tokens?.token?.pseudoClass ?? ["400", "600"],
|
|
2005
|
-
pseudoElement: tokens?.token?.pseudoElement ?? ["400", "600"],
|
|
2006
|
-
punctuation: tokens?.token?.punctuation ?? ["400", "600"],
|
|
2007
|
-
regex: tokens?.token?.regex ?? ["400", "600"],
|
|
2008
|
-
selector: tokens?.token?.selector ?? ["400", "600"],
|
|
2009
|
-
string: tokens?.token?.string ?? ["400", "600"],
|
|
2010
|
-
symbol: tokens?.token?.symbol ?? ["400", "600"],
|
|
2011
|
-
tag: tokens?.token?.tag ?? ["400", "600"],
|
|
2012
|
-
unit: tokens?.token?.unit ?? ["400", "600"],
|
|
2013
|
-
url: tokens?.token?.url ?? ["400", "600"],
|
|
2014
|
-
variable: tokens?.token?.variable ?? ["400", "600"]
|
|
2015
|
-
},
|
|
2016
2040
|
variant: {
|
|
2017
2041
|
solid: {
|
|
2018
2042
|
"*": resolveElementTokens(tokens?.variant?.solid?.["*"]),
|
|
@@ -2202,7 +2226,7 @@ function themeColor_v3_v2(options) {
|
|
|
2202
2226
|
variant: "tinted"
|
|
2203
2227
|
}), states), {}), tones2), {}),
|
|
2204
2228
|
shadow: color.shadow,
|
|
2205
|
-
syntax: color.token
|
|
2229
|
+
syntax: color.code.token
|
|
2206
2230
|
};
|
|
2207
2231
|
}
|
|
2208
2232
|
const stateShades = {
|