- - New ThemeConfigContext provider that fetches theme on app load and applies it to the DOM (title, meta description, favicon, CSS variables,
theme-color)/- - Admin Theme settings page under Settings > Theme tab/- All logo references (5 components) now pull from the theme config with fallback to default
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import { ThemeProvider } from 'next-themes';
|
||||
import { ThemeConfigProvider } from './context/ThemeConfigContext';
|
||||
import '@fontsource/fraunces/600.css';
|
||||
import '@fontsource/dm-sans/400.css';
|
||||
import '@fontsource/dm-sans/700.css';
|
||||
@@ -16,7 +17,9 @@ root.render(
|
||||
enableSystem={false}
|
||||
storageKey="admin-theme"
|
||||
>
|
||||
<App />
|
||||
<ThemeConfigProvider>
|
||||
<App />
|
||||
</ThemeConfigProvider>
|
||||
</ThemeProvider>
|
||||
</React.StrictMode>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user