Feature: Toggle Page Size between ISO A4 and US Letter

This commit is contained in:
Amruth Pillai
2022-10-15 00:54:59 +02:00
parent 136e143e12
commit f0f552a635
38 changed files with 903 additions and 783 deletions

View File

@ -9,7 +9,7 @@
"build": "tsc"
},
"devDependencies": {
"eslint": "^8.24.0",
"eslint": "^8.25.0",
"typescript": "^4.8.4"
}
}

View File

@ -3,7 +3,11 @@ export type CustomCSS = {
visible: boolean;
};
export type Theme = {
export type PageConfig = {
format: 'A4' | 'Letter';
};
export type ThemeConfig = {
text: string;
background: string;
primary: string;
@ -27,6 +31,7 @@ export type Metadata = {
date: DateConfig;
layout: string[][][]; // page.column.section
template: string;
theme: Theme;
theme: ThemeConfig;
page?: PageConfig;
typography: Typography;
};