add green theme

This commit is contained in:
pompurin404 2024-08-13 20:22:04 +08:00
parent a992a9cb5c
commit b4545263b2
No known key found for this signature in database
8 changed files with 64 additions and 6 deletions

View File

@ -14,7 +14,8 @@
</a>
</p>
| | 深色 | 灰色 | 浅色 |
| ---- | --------------------------- | --------------------------- | ---------------------------- |
| 蓝色 | ![](./images/dark-blue.png) | ![](./images/gray-blue.png) | ![](./images/light-blue.png) |
| 粉色 | ![](./images/dark-pink.png) | ![](./images/gray-pink.png) | ![](./images/light-pink.png) |
| | 深色 | 灰色 | 浅色 |
| ---- | ---------------------------- | ---------------------------- | ----------------------------- |
| 蓝色 | ![](./images/dark-blue.png) | ![](./images/gray-blue.png) | ![](./images/light-blue.png) |
| 粉色 | ![](./images/dark-pink.png) | ![](./images/gray-pink.png) | ![](./images/light-pink.png) |
| 绿色 | ![](./images/dark-green.png) | ![](./images/gray-green.png) | ![](./images/light-green.png) |

BIN
images/dark-green.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

BIN
images/gray-green.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

BIN
images/light-green.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

View File

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

View File

@ -146,6 +146,7 @@ const Settings: React.FC = () => {
>
<Tab key="blue" title="蓝色" />
<Tab key="pink" title="粉色" />
<Tab key="green" title="绿色" />
</Tabs>
</SettingItem>
)}

12
src/shared/types.d.ts vendored
View File

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

View File

@ -62,6 +62,42 @@ module.exports = {
primary: '#ED9CC2',
secondary: '#71CCAA'
}
},
'light-green': {
extend: 'light',
colors: {
primary: '#71CCAA',
secondary: '#ED9CC2',
danger: '#ED9CC2'
}
},
'dark-green': {
extend: 'dark',
colors: {
primary: '#71CCAA',
secondary: '#ED9CC2',
danger: '#ED9CC2'
}
},
'gray-green': {
extend: 'dark',
colors: {
background: '#18181b',
content1: '#27272a',
content2: '#3f3f46',
content3: '#52525b',
default: {
DEFAULT: '#52525b',
50: '#27272a',
100: '#3f3f46',
200: '#52525b',
300: '#71717a',
400: '#a1a1aa'
},
primary: '#71CCAA',
secondary: '#ED9CC2',
danger: '#ED9CC2'
}
}
}
})