@toeverything/theme
Advanced tools
Comparing version 0.0.0-20230529065324-69d50af to 0.0.0-20230530064828-8cd3bf6
@@ -86,2 +86,3 @@ export declare const camelToKebab: (s: string) => string; | ||
quoteColor: string; | ||
listColor: string; | ||
iconColor: string; | ||
@@ -197,2 +198,3 @@ iconSecondary: string; | ||
quoteColor: string; | ||
listColor: string; | ||
linkColor: string; | ||
@@ -199,0 +201,0 @@ edgelessGridColor: string; |
@@ -1,6 +0,6 @@ | ||
const g = (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 = "apple-system, BlinkMacSystemFont,Helvetica Neue, Tahoma, PingFang SC, Microsoft Yahei, Arial,Hiragino Sans GB, sans-serif, Apple Color Emoji, Segoe UI Emoji,Segoe UI Symbol, Noto Color Emoji", b = { | ||
const g = (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, "-"), e = "apple-system, BlinkMacSystemFont,Helvetica Neue, Tahoma, PingFang SC, Microsoft Yahei, Arial,Hiragino Sans GB, sans-serif, Apple Color Emoji, Segoe UI Emoji,Segoe UI Symbol, Noto Color Emoji", b = { | ||
// font | ||
fontFamily: `Avenir Next, Poppins, ${o}`, | ||
fontNumberFamily: `Roboto Mono, ${o}`, | ||
fontCodeFamily: `Space Mono, Consolas, Menlo, Monaco, Courier, monospace, ${o}`, | ||
fontFamily: `Avenir Next, Poppins, ${e}`, | ||
fontNumberFamily: `Roboto Mono, ${e}`, | ||
fontCodeFamily: `Space Mono, Consolas, Menlo, Monaco, Courier, monospace, ${e}`, | ||
fontTitle: "36px", | ||
@@ -78,3 +78,4 @@ fontH1: "28px", | ||
linkColor: "rgba(88, 114, 251, 1)", | ||
quoteColor: "rgba(94, 80, 182, 1)", | ||
quoteColor: "rgba(194, 193, 197, 1)", | ||
listColor: "rgba(133, 131, 140, 1)", | ||
iconColor: "rgb(119, 117, 125)", | ||
@@ -139,3 +140,4 @@ iconSecondary: "rgba(119, 117, 125, 0.6)", | ||
placeholderColor: "rgb(62, 62, 63)", | ||
quoteColor: "rgba(189, 181, 240, 1)", | ||
quoteColor: "rgba(142, 141, 145, 1)", | ||
listColor: "rgba(156, 155, 160, 1)", | ||
linkColor: "rgb(185, 191, 227)", | ||
@@ -196,6 +198,6 @@ edgelessGridColor: "rgb(49, 49, 49)", | ||
}, p = Object.entries(l).reduce( | ||
(r, [a, e]) => (r[`--affine-${g(a)}`] = e, r), | ||
(r, [a, o]) => (r[`--affine-${g(a)}`] = o, r), | ||
{} | ||
), n = Object.entries(t).reduce( | ||
(r, [a, e]) => (r[`--affine-${g(a)}`] = e, r), | ||
(r, [a, o]) => (r[`--affine-${g(a)}`] = o, r), | ||
{} | ||
@@ -202,0 +204,0 @@ ); |
{ | ||
"name": "@toeverything/theme", | ||
"version": "0.0.0-20230529065324-69d50af", | ||
"version": "0.0.0-20230530064828-8cd3bf6", | ||
"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
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
80507
593