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(() => {
setTheme(appTheme)
}, [])
}, [appTheme])
return (
<div className="w-full h-[100vh] flex">

View File

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

View File

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

View File

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

View File

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