fix: built color

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei 2023-04-11 22:52:51 +08:00
parent 8d63bf8a87
commit 0c8a685313
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
3 changed files with 23 additions and 1 deletions

View File

@ -8,6 +8,11 @@
@apply fill-zinc-800;
font-family: var(--font-fans);
}
input,
textarea {
@apply bg-white;
}
}
*,

View File

@ -1,4 +1,4 @@
:root {
html {
--border-color: #eee;
--font-fans: theme("fontFamily.sans");
--theme-color: var(--auto-theme-color, theme("colors.orange.500"));
@ -7,3 +7,19 @@
/* Accent color for form controls */
accent-color: var(--theme-color);
}
html.dark {
--border-color: #333;
}
@media (prefers-color-scheme: dark) {
html.not(.light) {
--border-color: #333;
}
}
@media (prefers-color-scheme: light) {
html.not(.dark) {
--border-color: #eee;
}
}

View File

@ -39,6 +39,7 @@ const persister = createIDBPersister()
function MyApp({ Component, pageProps }: AppPropsWithLayout) {
const getLayout = Component.getLayout ?? ((page) => page)
useMediaToggle()
return (
<WagmiConfig client={wagmiClient}>
<PersistQueryClientProvider