@@ -42,55 +42,7 @@ const Layout = ({
4242 toggleSidebar,
4343 isAppFullscreen,
4444 fezcodexTheme,
45- headerFont,
46- bodyFont,
4745 } = useVisualSettings ( ) ;
48-
49- const FONT_FAMILY = {
50- 'font-sans' : "'Space Mono', monospace" ,
51- 'font-mono' : "'JetBrains Mono', monospace" ,
52- 'font-inter' : "'Inter', sans-serif" ,
53- 'font-arvo' : "'Arvo', serif" ,
54- 'font-playfairDisplay' : "'Playfair Display', serif" ,
55- 'font-syne' : "'Syne', sans-serif" ,
56- 'font-outfit' : "'Outfit', sans-serif" ,
57- 'font-ibm-plex-mono' : "'IBM Plex Mono', monospace" ,
58- 'font-instr-serif' : "'Instrument Serif', serif" ,
59- 'font-nunito' : "'Nunito', sans-serif" ,
60- 'font-fraunces' : "'Fraunces', 'Times New Roman', serif" ,
61- } ;
62-
63- const themedFontCss =
64- fezcodexTheme === 'terracotta' || fezcodexTheme === 'luxe'
65- ? `
66- [data-fezcodex-theme="${ fezcodexTheme } "],
67- [data-fezcodex-theme="${ fezcodexTheme } "] p,
68- [data-fezcodex-theme="${ fezcodexTheme } "] li,
69- [data-fezcodex-theme="${ fezcodexTheme } "] span,
70- [data-fezcodex-theme="${ fezcodexTheme } "] div,
71- [data-fezcodex-theme="${ fezcodexTheme } "] a,
72- [data-fezcodex-theme="${ fezcodexTheme } "] button,
73- [data-fezcodex-theme="${ fezcodexTheme } "] blockquote {
74- font-family: ${ FONT_FAMILY [ bodyFont ] || FONT_FAMILY [ 'font-outfit' ] } ;
75- }
76- [data-fezcodex-theme="${ fezcodexTheme } "] h1,
77- [data-fezcodex-theme="${ fezcodexTheme } "] h2,
78- [data-fezcodex-theme="${ fezcodexTheme } "] h3,
79- [data-fezcodex-theme="${ fezcodexTheme } "] h4,
80- [data-fezcodex-theme="${ fezcodexTheme } "] h5,
81- [data-fezcodex-theme="${ fezcodexTheme } "] h6 {
82- font-family: ${ FONT_FAMILY [ headerFont ] || FONT_FAMILY [ 'font-outfit' ] } ;
83- }
84- /* Respect explicit monospace labels — mono stays mono regardless */
85- [data-fezcodex-theme="${ fezcodexTheme } "] code,
86- [data-fezcodex-theme="${ fezcodexTheme } "] pre,
87- [data-fezcodex-theme="${ fezcodexTheme } "] kbd,
88- [data-fezcodex-theme="${ fezcodexTheme } "] .font-mono,
89- [data-fezcodex-theme="${ fezcodexTheme } "] .font-ibm-plex-mono {
90- font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
91- }
92- `
93- : '' ;
9446 const location = useLocation ( ) ;
9547 const { projects } = useProjects ( ) ;
9648
@@ -133,7 +85,6 @@ const Layout = ({
13385 < DndProvider > { children } </ DndProvider >
13486 ) : (
13587 < div
136- data-fezcodex-theme = { fezcodexTheme }
13788 className = { `${
13889 fezcodexTheme === 'luxe'
13990 ? 'bg-[#F5F5F0]'
@@ -142,7 +93,6 @@ const Layout = ({
14293 : 'bg-[#050505]'
14394 } min-h-screen font-sans flex`}
14495 >
145- { themedFontCss && < style > { themedFontCss } </ style > }
14696 { ! hideLayout &&
14797 ( fezcodexTheme === 'luxe' ? (
14898 < LuxeSidebar
0 commit comments