chore(themes): add new themes api v2, add in-app theme editor/creator, macos compatibility, fix asset loading, rework settings and setup wizard
This commit is contained in:
1 parent
417f54a94a
commit
87202de656
97 files changed
+10968
-1422
No files matched your search
@@ -0,0 +1,18 @@
|
||||
export type ThemeFontChoice = {
|
||||
label: string;
|
||||
family: string;
|
||||
category: 'Sans' | 'Serif' | 'Display' | 'Mono' | 'Custom';
|
||||
};
|
||||
|
||||
/** Fonts bundled with the launcher through @fontsource. */
|
||||
export const BUNDLED_THEME_FONTS: ThemeFontChoice[] = [
|
||||
{ label: 'Sora', family: 'Sora Variable', category: 'Sans' },
|
||||
{ label: 'Montserrat', family: 'Montserrat Variable', category: 'Sans' },
|
||||
{ label: 'Bebas Neue', family: 'Bebas Neue', category: 'Display' },
|
||||
{ label: 'Playfair Display', family: 'Playfair Display Variable', category: 'Serif' },
|
||||
{ label: 'Space Mono', family: 'Space Mono', category: 'Mono' },
|
||||
{ label: 'JetBrains Mono', family: 'JetBrains Mono Variable', category: 'Mono' },
|
||||
];
|
||||
|
||||
export const fontStack = (family: string | undefined, fallback = 'Sora Variable') =>
|
||||
`"${(family || fallback).replace(/["\\]/g, '\\$&')}", ui-sans-serif, system-ui, sans-serif`;
|
||||
Reference in new issue
Block a user