@toeverything/theme
Advanced tools
Comparing version 0.7.23 to 0.7.24
@@ -157,3 +157,3 @@ import { grabbingCursor,grabCursor } from "./cursors"; | ||
backgroundModalColor: 'rgba(0, 0, 0, 0.75)', | ||
textPrimaryColor: 'rgb(18, 18, 18)', | ||
textPrimaryColor: 'rgb(66, 65, 73)', | ||
textSecondaryColor: 'rgb(142, 141, 145)', | ||
@@ -230,18 +230,10 @@ textDisableColor: 'rgb(169, 169, 173)', | ||
windowsCloseButton: '#C42B1C', | ||
textHighlightRed: 'rgba(198, 34, 34, 1)', | ||
textHighlightOrange: 'rgba(211, 79, 11, 1)', | ||
textHighlightYellow: 'rgba(182, 124, 4, 1)', | ||
textHighlightGreen: 'rgba(20, 147, 67, 1)', | ||
textHighlightTeal: 'rgba(7, 130, 160, 1)', | ||
textHighlightBlue: 'rgba(33, 89, 211, 1)', | ||
textHighlightPurple: 'rgba(132, 46, 211, 1)', | ||
textHighlightGrey: 'rgba(68, 77, 89, 1)', | ||
textHighlightBackgroundRed: 'rgba(254, 213, 213, 1)', | ||
textHighlightBackgroundOrange: 'rgba(254, 223, 187, 1)', | ||
textHighlightBackgroundYellow: 'rgba(254, 243, 161, 1)', | ||
textHighlightBackgroundGreen: 'rgba(225, 250, 177, 1)', | ||
textHighlightBackgroundTeal: 'rgba(173, 248, 233, 1)', | ||
textHighlightBackgroundBlue: 'rgba(204, 226, 254, 1)', | ||
textHighlightBackgroundPurple: 'rgba(237, 221, 255, 1)', | ||
textHighlightBackgroundGrey: 'rgba(234, 236, 239, 1)', | ||
textHighlightPink: 'rgba(255, 206, 206, 1)', | ||
textHighlightOrange: 'rgba(255, 203, 166, 1)', | ||
textHighlightYellow: 'rgba(255, 245, 171, 1)', | ||
textHighlightGreen: 'rgba(197, 251, 224, 1)', | ||
textHighlightTeal: 'rgba(198, 241, 243, 1)', | ||
textHighlightBlue: 'rgba(195, 219, 255, 1)', | ||
textHighlightPurple: 'rgba(227, 222, 255, 1)', | ||
textHighlightGrey: 'rgba(236, 241, 251, 1)', | ||
}; | ||
@@ -356,18 +348,10 @@ | ||
windowsCloseButton: '#C42B1C', | ||
textHighlightRed: 'rgba(249, 141, 141, 1)', | ||
textHighlightOrange: 'rgba(252, 168, 99, 1)', | ||
textHighlightYellow: 'rgba(251, 214, 68, 1)', | ||
textHighlightGreen: 'rgba(110, 229, 153, 1)', | ||
textHighlightTeal: 'rgba(87, 221, 204, 1)', | ||
textHighlightBlue: 'rgba(128, 183, 251, 1)', | ||
textHighlightPurple: 'rgba(205, 157, 253, 1)', | ||
textHighlightGrey: 'rgba(176, 181, 191, 1)', | ||
textHighlightBackgroundRed: 'rgba(108, 39, 39, 1)', | ||
textHighlightBackgroundOrange: 'rgba(112, 58, 21, 1)', | ||
textHighlightBackgroundYellow: 'rgba(106, 84, 15, 1)', | ||
textHighlightBackgroundGreen: 'rgba(26, 91, 50, 1)', | ||
textHighlightBackgroundTeal: 'rgba(14, 85, 97, 1)', | ||
textHighlightBackgroundBlue: 'rgba(56, 75, 122, 1)', | ||
textHighlightBackgroundPurple: 'rgba(80, 46, 111, 1)', | ||
textHighlightBackgroundGrey: 'rgba(64, 67, 74, 1)', | ||
textHighlightPink: 'rgba(127, 93, 93, 1)', | ||
textHighlightOrange: 'rgba(127, 102, 84, 1)', | ||
textHighlightYellow: 'rgba(137, 133, 90, 1)', | ||
textHighlightGreen: 'rgba(90, 127, 109, 1)', | ||
textHighlightTeal: 'rgba(76, 125, 127, 1)', | ||
textHighlightBlue: 'rgba(72, 95, 127, 1)', | ||
textHighlightPurple: 'rgba(97, 90, 127, 1)', | ||
textHighlightGrey: 'rgba(111, 112, 117, 1)', | ||
} satisfies Omit<AffineTheme, 'editorMode'>; | ||
@@ -374,0 +358,0 @@ |
@@ -180,3 +180,3 @@ export declare const camelToKebab: (s: string) => string; | ||
windowsCloseButton: string; | ||
textHighlightRed: string; | ||
textHighlightPink: string; | ||
textHighlightOrange: string; | ||
@@ -189,10 +189,2 @@ textHighlightYellow: string; | ||
textHighlightGrey: string; | ||
textHighlightBackgroundRed: string; | ||
textHighlightBackgroundOrange: string; | ||
textHighlightBackgroundYellow: string; | ||
textHighlightBackgroundGreen: string; | ||
textHighlightBackgroundTeal: string; | ||
textHighlightBackgroundBlue: string; | ||
textHighlightBackgroundPurple: string; | ||
textHighlightBackgroundGrey: string; | ||
fontFamily: string; | ||
@@ -368,3 +360,3 @@ fontSerifFamily: string; | ||
windowsCloseButton: string; | ||
textHighlightRed: string; | ||
textHighlightPink: string; | ||
textHighlightOrange: string; | ||
@@ -377,10 +369,2 @@ textHighlightYellow: string; | ||
textHighlightGrey: string; | ||
textHighlightBackgroundRed: string; | ||
textHighlightBackgroundOrange: string; | ||
textHighlightBackgroundYellow: string; | ||
textHighlightBackgroundGreen: string; | ||
textHighlightBackgroundTeal: string; | ||
textHighlightBackgroundBlue: string; | ||
textHighlightBackgroundPurple: string; | ||
textHighlightBackgroundGrey: string; | ||
fontFamily: string; | ||
@@ -387,0 +371,0 @@ fontSerifFamily: string; |
@@ -1,6 +0,6 @@ | ||
function t(r) { | ||
function b(r) { | ||
const a = r.replace(/\n/g, "").replace(/[\s]{2,}/g, " "); | ||
return `data:image/svg+xml,${encodeURIComponent(a)}`; | ||
} | ||
const p = t(` | ||
const l = b(` | ||
<svg | ||
@@ -24,3 +24,3 @@ width="24" | ||
</svg> | ||
`), x = t(` | ||
`), x = b(` | ||
<svg | ||
@@ -44,3 +44,3 @@ width="24" | ||
</svg> | ||
`), b = (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(", ")}`, 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'", l = { | ||
`), t = (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, "-"), g = (r, a) => `url(${r}), ${a.join(", ")}`, 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'", p = { | ||
// font | ||
@@ -120,6 +120,6 @@ fontFamily: `'Inter', 'Source Sans 3', Poppins, ${e}`, | ||
// cursors | ||
grabbingCursor: o(p, ["grabbing"]), | ||
grabCursor: o(x, ["grab"]) | ||
}, n = { | ||
...l, | ||
grabbingCursor: g(l, ["grabbing"]), | ||
grabCursor: g(x, ["grab"]) | ||
}, C = { | ||
...p, | ||
themeMode: "light", | ||
@@ -152,3 +152,3 @@ brandColor: "#1E96EB", | ||
backgroundModalColor: "rgba(0, 0, 0, 0.75)", | ||
textPrimaryColor: "rgb(18, 18, 18)", | ||
textPrimaryColor: "rgb(66, 65, 73)", | ||
textSecondaryColor: "rgb(142, 141, 145)", | ||
@@ -220,20 +220,12 @@ textDisableColor: "rgb(169, 169, 173)", | ||
windowsCloseButton: "#C42B1C", | ||
textHighlightRed: "rgba(198, 34, 34, 1)", | ||
textHighlightOrange: "rgba(211, 79, 11, 1)", | ||
textHighlightYellow: "rgba(182, 124, 4, 1)", | ||
textHighlightGreen: "rgba(20, 147, 67, 1)", | ||
textHighlightTeal: "rgba(7, 130, 160, 1)", | ||
textHighlightBlue: "rgba(33, 89, 211, 1)", | ||
textHighlightPurple: "rgba(132, 46, 211, 1)", | ||
textHighlightGrey: "rgba(68, 77, 89, 1)", | ||
textHighlightBackgroundRed: "rgba(254, 213, 213, 1)", | ||
textHighlightBackgroundOrange: "rgba(254, 223, 187, 1)", | ||
textHighlightBackgroundYellow: "rgba(254, 243, 161, 1)", | ||
textHighlightBackgroundGreen: "rgba(225, 250, 177, 1)", | ||
textHighlightBackgroundTeal: "rgba(173, 248, 233, 1)", | ||
textHighlightBackgroundBlue: "rgba(204, 226, 254, 1)", | ||
textHighlightBackgroundPurple: "rgba(237, 221, 255, 1)", | ||
textHighlightBackgroundGrey: "rgba(234, 236, 239, 1)" | ||
}, i = { | ||
...l, | ||
textHighlightPink: "rgba(255, 206, 206, 1)", | ||
textHighlightOrange: "rgba(255, 203, 166, 1)", | ||
textHighlightYellow: "rgba(255, 245, 171, 1)", | ||
textHighlightGreen: "rgba(197, 251, 224, 1)", | ||
textHighlightTeal: "rgba(198, 241, 243, 1)", | ||
textHighlightBlue: "rgba(195, 219, 255, 1)", | ||
textHighlightPurple: "rgba(227, 222, 255, 1)", | ||
textHighlightGrey: "rgba(236, 241, 251, 1)" | ||
}, n = { | ||
...p, | ||
themeMode: "dark", | ||
@@ -333,33 +325,25 @@ brandColor: "#1E96EB", | ||
windowsCloseButton: "#C42B1C", | ||
textHighlightRed: "rgba(249, 141, 141, 1)", | ||
textHighlightOrange: "rgba(252, 168, 99, 1)", | ||
textHighlightYellow: "rgba(251, 214, 68, 1)", | ||
textHighlightGreen: "rgba(110, 229, 153, 1)", | ||
textHighlightTeal: "rgba(87, 221, 204, 1)", | ||
textHighlightBlue: "rgba(128, 183, 251, 1)", | ||
textHighlightPurple: "rgba(205, 157, 253, 1)", | ||
textHighlightGrey: "rgba(176, 181, 191, 1)", | ||
textHighlightBackgroundRed: "rgba(108, 39, 39, 1)", | ||
textHighlightBackgroundOrange: "rgba(112, 58, 21, 1)", | ||
textHighlightBackgroundYellow: "rgba(106, 84, 15, 1)", | ||
textHighlightBackgroundGreen: "rgba(26, 91, 50, 1)", | ||
textHighlightBackgroundTeal: "rgba(14, 85, 97, 1)", | ||
textHighlightBackgroundBlue: "rgba(56, 75, 122, 1)", | ||
textHighlightBackgroundPurple: "rgba(80, 46, 111, 1)", | ||
textHighlightBackgroundGrey: "rgba(64, 67, 74, 1)" | ||
}, C = Object.entries(n).reduce( | ||
(r, [a, g]) => (r[`--affine-${b(a)}`] = g, r), | ||
textHighlightPink: "rgba(127, 93, 93, 1)", | ||
textHighlightOrange: "rgba(127, 102, 84, 1)", | ||
textHighlightYellow: "rgba(137, 133, 90, 1)", | ||
textHighlightGreen: "rgba(90, 127, 109, 1)", | ||
textHighlightTeal: "rgba(76, 125, 127, 1)", | ||
textHighlightBlue: "rgba(72, 95, 127, 1)", | ||
textHighlightPurple: "rgba(97, 90, 127, 1)", | ||
textHighlightGrey: "rgba(111, 112, 117, 1)" | ||
}, i = Object.entries(C).reduce( | ||
(r, [a, o]) => (r[`--affine-${t(a)}`] = o, r), | ||
{} | ||
), d = Object.entries(i).reduce( | ||
(r, [a, g]) => (r[`--affine-${b(a)}`] = g, r), | ||
), d = Object.entries(n).reduce( | ||
(r, [a, o]) => (r[`--affine-${t(a)}`] = o, r), | ||
{} | ||
); | ||
export { | ||
l as baseTheme, | ||
b as camelToKebab, | ||
p as baseTheme, | ||
t as camelToKebab, | ||
d as darkCssVariables, | ||
i as darkTheme, | ||
C as lightCssVariables, | ||
n as lightTheme | ||
n as darkTheme, | ||
i as lightCssVariables, | ||
C as lightTheme | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@toeverything/theme", | ||
"version": "0.7.23", | ||
"version": "0.7.24", | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
180644
1409