Add theming boilerplate

This commit is contained in:
2025-05-26 02:37:54 +02:00
parent cd65f06c5f
commit 339a98d8ab
2 changed files with 25 additions and 1 deletions

View File

@ -2,9 +2,13 @@ import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.tsx'
import { CssVarsProvider } from '@mui/joy'
import theme from "./theme.ts";
createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />
<CssVarsProvider theme={theme}>
<App />
</CssVarsProvider>;
</StrictMode>,
)

20
src/theme.ts Normal file
View File

@ -0,0 +1,20 @@
import { extendTheme } from '@mui/joy/styles';
declare module '@mui/joy/styles' {
// No custom tokens found, you can skip the theme augmentation.
}
const theme = extendTheme({
"colorSchemes": {
"light": {
"palette": {}
},
"dark": {
"palette": {}
}
}
})
export default theme;