@toeverything/theme
Advanced tools
Comparing version 0.0.0-20230518070305-ed4efe1 to 0.0.0-20230518100706-f77add8
@@ -122,2 +122,4 @@ export declare const camelToKebab: (s: string) => string; | ||
buttonGrayColor: string; | ||
cardBackgroundBlue: string; | ||
cardBackgroundGreen: string; | ||
fontFamily: string; | ||
@@ -235,2 +237,4 @@ fontNumberFamily: string; | ||
buttonGrayColor: string; | ||
cardBackgroundBlue: string; | ||
cardBackgroundGreen: string; | ||
fontFamily: string; | ||
@@ -237,0 +241,0 @@ fontNumberFamily: 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, "-"), 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 = { | ||
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 = { | ||
// font | ||
fontFamily: `Avenir Next, Poppins, ${e}`, | ||
fontNumberFamily: `Roboto Mono, ${e}`, | ||
fontCodeFamily: `Space Mono, Consolas, Menlo, Monaco, Courier, monospace, ${e}`, | ||
fontFamily: `Avenir Next, Poppins, ${o}`, | ||
fontNumberFamily: `Roboto Mono, ${o}`, | ||
fontCodeFamily: `Space Mono, Consolas, Menlo, Monaco, Courier, monospace, ${o}`, | ||
fontTitle: "36px", | ||
@@ -47,3 +47,3 @@ fontH1: "28px", | ||
paletteShapeGrey: "rgb(194, 194, 194)" | ||
}, t = { | ||
}, l = { | ||
...b, | ||
@@ -62,3 +62,3 @@ themeMode: "light", | ||
backgroundOverlayPanelColor: "rgb(251, 251, 252)", | ||
backgroundSecondaryColor: "rgb(251, 250, 252)", | ||
backgroundSecondaryColor: "rgba(252, 252, 253, 1)", | ||
backgroundTertiaryColor: "rgb(245, 243, 247)", | ||
@@ -116,4 +116,6 @@ backgroundCodeBlock: "rgba(247, 246, 250, 1)", | ||
floatButtonShadow: "0px 0px 10px rgba(0, 0, 0, 0.05), 0px 0px 0px 0.5px rgba(0, 0, 0, 0.1)", | ||
buttonGrayColor: "rgba(245, 245, 245, 1)" | ||
}, l = { | ||
buttonGrayColor: "rgba(245, 245, 245, 1)", | ||
cardBackgroundBlue: "linear-gradient(180deg, #F0F3FD 0%, #FCFCFD 100%)", | ||
cardBackgroundGreen: "linear-gradient(180deg, #F3F9FD 0%, #FCFCFD 100%)" | ||
}, t = { | ||
...b, | ||
@@ -185,8 +187,10 @@ themeMode: "dark", | ||
floatButtonShadow: "0px 0px 10px rgba(0, 0, 0, 0.05), 0px 0px 0px 0.5px rgba(0, 0, 0, 0.1)", | ||
buttonGrayColor: "rgba(85, 85, 85, 1)" | ||
}, p = Object.entries(t).reduce( | ||
(r, [a, o]) => (r[`--affine-${g(a)}`] = o, r), | ||
buttonGrayColor: "rgba(85, 85, 85, 1)", | ||
cardBackgroundBlue: "linear-gradient(180deg, #14171F 0%, #202020 100%)", | ||
cardBackgroundGreen: "linear-gradient(180deg, #192023 0%, #202020 100%)" | ||
}, p = Object.entries(l).reduce( | ||
(r, [a, e]) => (r[`--affine-${g(a)}`] = e, r), | ||
{} | ||
), n = Object.entries(l).reduce( | ||
(r, [a, o]) => (r[`--affine-${g(a)}`] = o, r), | ||
), n = Object.entries(t).reduce( | ||
(r, [a, e]) => (r[`--affine-${g(a)}`] = e, r), | ||
{} | ||
@@ -198,6 +202,6 @@ ); | ||
n as darkCssVariables, | ||
l as darkTheme, | ||
t as darkTheme, | ||
p as lightCssVariables, | ||
t as lightTheme | ||
l as lightTheme | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@toeverything/theme", | ||
"version": "0.0.0-20230518070305-ed4efe1", | ||
"version": "0.0.0-20230518100706-f77add8", | ||
"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
77323
561