Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

theme: remove font scale from config

Abdullah Atta79f8b5e95e67
diff --git a/packages/theme/src/theme/font/index.ts b/packages/theme/src/theme/font/index.ts
index efc93d630..28fb40713 100644
--- a/packages/theme/src/theme/font/index.ts
+++ b/packages/theme/src/theme/font/index.ts
@@ -29,7 +29,7 @@ const SANS_FONT_STACK = [
"Helvetica",
"-apple-system",
"BlinkMacSystemFont",
- "sans-serif",
+ "sans-serif"
];
const MONOSPACE_FONT_STACK = [
"Hack",
@@ -39,7 +39,7 @@ const MONOSPACE_FONT_STACK = [
'"Liberation Mono"',
'"Courier New"',
"Courier",
- "monospace",
+ "monospace"
];
export type FontConfig = {
@@ -52,19 +52,19 @@ export type FontConfig = {
};
fonts: { body: string; monospace: string; heading: string };
};
-export function getFontConfig(scale?: number): FontConfig {
+export function getFontConfig(): FontConfig {
return {
- fontSizes: getFontSizes(scale),
+ fontSizes: getFontSizes(),
fontWeights: {
normal: 400,
body: 400,
heading: 600,
- bold: 600,
+ bold: 600
},
fonts: {
body: SANS_FONT_STACK.join(","),
monospace: MONOSPACE_FONT_STACK.join(","),
- heading: SANS_FONT_STACK.join(","),
- },
+ heading: SANS_FONT_STACK.join(",")
+ }
};
}
diff --git a/packages/theme/src/theme/index.ts b/packages/theme/src/theme/index.ts
index bd67f754a..25fb86b08 100644
--- a/packages/theme/src/theme/index.ts
+++ b/packages/theme/src/theme/index.ts
@@ -64,7 +64,7 @@ class ThemeFactory {
: {
menu: "0px 0px 10px 0px #00000022"
},
- ...getFontConfig(config.scale),
+ ...getFontConfig(),
...variants
};
theme.space.small = 3;
diff --git a/packages/theme/src/theme/types.ts b/packages/theme/src/theme/types.ts
index 735de59a8..cc5ad3c4d 100644
--- a/packages/theme/src/theme/types.ts
+++ b/packages/theme/src/theme/types.ts
@@ -21,5 +21,4 @@ import { ColorSchemes } from "./colorscheme";
export type ThemeConfig = {
theme: ColorSchemes;
accent: string;
- scale?: number;
};