@toeverything/theme
Advanced tools
Comparing version 0.7.29 to 0.7.30
@@ -117,3 +117,3 @@ import { grabbingCursor, grabCursor } from './cursors'; | ||
'0px 1px 2px 0px rgba(0, 0, 0, 0.25), inset -2px -3px 2px 0px rgba(0, 0, 0, 0.05)', | ||
buttonInnerShadow: '0px 1px 2px 0px rgba(255, 255, 255, 0.25) inset', | ||
buttonInnerShadow: 'unset', | ||
multiCursorsShadow: '0px 2px 4px 0px rgba(0, 0, 0, 0.28)', | ||
@@ -120,0 +120,0 @@ multiPlayersShadow: '0px 1px 6px 0px rgba(0, 0, 0, 0.16)', |
@@ -43,3 +43,3 @@ function t(r) { | ||
</svg> | ||
`), C = (r) => typeof r != "string" ? "" : r.replace(/-/g, "_").replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z])(?=[a-z])/g, "$1-$2").toLowerCase().replace(/(\D+)(\d+)$/g, "$1-$2").replace(/\s|_/g, "-"), o = (r, a) => `url(${r}), ${a.join(", ")}`, p = (r) => `--affine-${C(r)}`, d = (r) => Object.entries(r), e = "apple-system, BlinkMacSystemFont, 'Helvetica Neue', Tahoma, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji','Segoe UI Symbol', 'Noto Color Emoji'", b = { | ||
`), C = (r) => typeof r != "string" ? "" : r.replace(/-/g, "_").replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z])(?=[a-z])/g, "$1-$2").toLowerCase().replace(/(\D+)(\d+)$/g, "$1-$2").replace(/\s|_/g, "-"), o = (r, a) => `url(${r}), ${a.join(", ")}`, b = (r) => `--affine-${C(r)}`, d = (r) => Object.entries(r), e = "apple-system, BlinkMacSystemFont, 'Helvetica Neue', Tahoma, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji','Segoe UI Symbol', 'Noto Color Emoji'", p = { | ||
// font | ||
@@ -115,3 +115,3 @@ fontFamily: `'Inter', 'Source Sans 3', Poppins, ${e}`, | ||
toggleCircleShadow: "0px 1px 2px 0px rgba(0, 0, 0, 0.25), inset -2px -3px 2px 0px rgba(0, 0, 0, 0.05)", | ||
buttonInnerShadow: "0px 1px 2px 0px rgba(255, 255, 255, 0.25) inset", | ||
buttonInnerShadow: "unset", | ||
multiCursorsShadow: "0px 2px 4px 0px rgba(0, 0, 0, 0.28)", | ||
@@ -123,3 +123,3 @@ multiPlayersShadow: "0px 1px 6px 0px rgba(0, 0, 0, 0.16)", | ||
}, h = { | ||
...b, | ||
...p, | ||
themeMode: "light", | ||
@@ -241,3 +241,3 @@ brandColor: "#1E96EB", | ||
}, u = { | ||
...b, | ||
...p, | ||
themeMode: "dark", | ||
@@ -358,8 +358,8 @@ brandColor: "#1E96EB", | ||
embedShadow: "0px 0px 0px 2px rgba(255, 255, 255, 0.08)" | ||
}, l = (r) => d(r).reduce((a, [g, x]) => ({ ...a, [p(g)]: x }), {}), c = l(h), s = l(u); | ||
}, l = (r) => d(r).reduce((a, [g, x]) => ({ ...a, [b(g)]: x }), {}), c = l(h), s = l(u); | ||
function w(r, a) { | ||
return `var(${r.startsWith("--") ? r : p(r)}${a ? `, ${a}` : ""})`; | ||
return `var(${r.startsWith("--") ? r : b(r)}${a ? `, ${a}` : ""})`; | ||
} | ||
export { | ||
b as baseTheme, | ||
p as baseTheme, | ||
C as camelToKebab, | ||
@@ -366,0 +366,0 @@ w as cssVar, |
{ | ||
"name": "@toeverything/theme", | ||
"version": "0.7.29", | ||
"version": "0.7.30", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "repository": "toeverything/design", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
191531
4
1510