feat: pure black

This commit is contained in:
codytseng 2025-10-18 17:54:28 +08:00
parent 057de9595b
commit b17846f264
27 changed files with 156 additions and 63 deletions

View file

@ -80,7 +80,7 @@ function AccountManagerNav({
const wizard = new NstartModal({
baseUrl: 'https://nstart.me',
an: 'Jumble',
am: themeSetting,
am: themeSetting === 'pure-black' ? 'dark' : themeSetting,
al: i18n.language.slice(0, 2),
onComplete: ({ nostrLogin }) => {
if (!nostrLogin) return

View file

@ -1,16 +1,14 @@
// import { useTheme } from "next-themes"
import { useTheme } from '@/providers/ThemeProvider'
import { Toaster as Sonner } from 'sonner'
type ToasterProps = React.ComponentProps<typeof Sonner>
const Toaster = ({ ...props }: ToasterProps) => {
// const { theme = "system" } = useTheme()
const { themeSetting } = useTheme()
return (
<Sonner
theme={themeSetting}
theme={themeSetting === 'pure-black' ? 'dark' : themeSetting}
className="toaster group"
richColors
mobileOffset={64}