add pink theme

This commit is contained in:
pompurin404 2024-08-09 23:01:03 +08:00
parent 2959cee2df
commit d3bbb3bda7
No known key found for this signature in database
5 changed files with 11 additions and 3 deletions

View File

@ -30,7 +30,7 @@ const App: React.FC = () => {
useEffect(() => { useEffect(() => {
setTheme(appTheme) setTheme(appTheme)
}, []) }, [appTheme])
return ( return (
<div className="w-full h-[100vh] flex"> <div className="w-full h-[100vh] flex">

View File

@ -13,7 +13,7 @@ init().then(() => {
<NextUIProvider> <NextUIProvider>
<NextThemesProvider <NextThemesProvider
attribute="class" attribute="class"
themes={['light', 'dark', 'gray']} themes={['light', 'dark', 'gray', 'pink']}
enableSystem enableSystem
defaultTheme="dark" defaultTheme="dark"
> >

View File

@ -98,6 +98,7 @@ const Settings: React.FC = () => {
<Tab key="system" title="自动" /> <Tab key="system" title="自动" />
<Tab key="dark" title="深色" /> <Tab key="dark" title="深色" />
<Tab key="gray" title="灰色" /> <Tab key="gray" title="灰色" />
<Tab key="pink" title="粉色" />
<Tab key="light" title="浅色" /> <Tab key="light" title="浅色" />
</Tabs> </Tabs>
</SettingItem> </SettingItem>

View File

@ -1,7 +1,7 @@
type OutboundMode = 'rule' | 'global' | 'direct' type OutboundMode = 'rule' | 'global' | 'direct'
type LogLevel = 'info' | 'debug' | 'warning' | 'error' | 'silent' type LogLevel = 'info' | 'debug' | 'warning' | 'error' | 'silent'
type SysProxyMode = 'auto' | 'manual' type SysProxyMode = 'auto' | 'manual'
type AppTheme = 'system' | 'light' | 'dark' | 'gray' type AppTheme = 'system' | 'light' | 'dark' | 'gray' | 'pink'
type MihomoGroupType = 'Selector' | 'URLTest' | 'LoadBalance' | 'Relay' type MihomoGroupType = 'Selector' | 'URLTest' | 'LoadBalance' | 'Relay'
type MihomoProxyType = type MihomoProxyType =
| 'Direct' | 'Direct'

View File

@ -29,6 +29,13 @@ module.exports = {
400: '#a1a1aa' 400: '#a1a1aa'
} }
} }
},
pink: {
extend: 'light',
colors: {
primary: '#ED9CC2',
secondary: '#71CCAA'
}
} }
} }
}) })