mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 16:28:49 +08:00
110 lines
4.8 KiB
TypeScript
Executable File
110 lines
4.8 KiB
TypeScript
Executable File
export const lightTheme = {
|
|
// shadcn
|
|
'--background': '1 0 0',
|
|
'--foreground': '0.141 0.005 285.823',
|
|
'--card': '1 0 0',
|
|
'--card-foreground': '0.141 0.005 285.823',
|
|
'--popover': '1 0 0',
|
|
'--popover-foreground': '0.141 0.005 285.823',
|
|
'--primary': '0.21 0.006 285.885',
|
|
'--primary-foreground': '0.985 0 0',
|
|
'--secondary': '0.967 0.001 286.375',
|
|
'--secondary-foreground': '0.21 0.006 285.885',
|
|
'--muted': '0.967 0.001 286.375',
|
|
'--muted-foreground': '0.552 0.016 285.938',
|
|
'--accent': '0.967 0.001 286.375',
|
|
'--accent-foreground': '0.21 0.006 285.885',
|
|
'--destructive': '0.577 0.245 27.325',
|
|
'--border': '0.92 0.004 286.32',
|
|
'--input': '0.92 0.004 286.32',
|
|
'--ring': '0.705 0.015 286.067',
|
|
// 主要区域
|
|
'--g-main-area-bg': 'oklch(0.9612 0 0)',
|
|
// 头部
|
|
'--g-header-bg': 'oklch(var(--background))',
|
|
'--g-header-color': 'oklch(var(--foreground))',
|
|
'--g-header-menu-color': 'oklch(var(--accent-foreground))',
|
|
'--g-header-menu-hover-bg': 'oklch(var(--accent))',
|
|
'--g-header-menu-hover-color': 'oklch(var(--accent-foreground))',
|
|
'--g-header-menu-active-bg': 'oklch(var(--primary))',
|
|
'--g-header-menu-active-color': 'oklch(var(--primary-foreground))',
|
|
// 主导航
|
|
'--g-main-sidebar-bg': 'oklch(var(--background))',
|
|
'--g-main-sidebar-menu-color': 'oklch(var(--accent-foreground))',
|
|
'--g-main-sidebar-menu-hover-bg': 'oklch(var(--accent))',
|
|
'--g-main-sidebar-menu-hover-color': 'oklch(var(--accent-foreground))',
|
|
'--g-main-sidebar-menu-active-bg': 'oklch(var(--primary))',
|
|
'--g-main-sidebar-menu-active-color': 'oklch(var(--primary-foreground))',
|
|
// 次导航
|
|
'--g-sub-sidebar-bg': 'oklch(var(--background))',
|
|
'--g-sub-sidebar-menu-color': 'oklch(var(--accent-foreground))',
|
|
'--g-sub-sidebar-menu-hover-bg': 'oklch(var(--accent))',
|
|
'--g-sub-sidebar-menu-hover-color': 'oklch(var(--accent-foreground))',
|
|
'--g-sub-sidebar-menu-active-bg': 'oklch(var(--primary))',
|
|
'--g-sub-sidebar-menu-active-color': 'oklch(var(--primary-foreground))',
|
|
// 标签栏
|
|
'--g-tabbar-bg': 'oklch(var(--background))',
|
|
'--g-tabbar-tab-color': 'oklch(var(--accent-foreground) / 50%)',
|
|
'--g-tabbar-tab-hover-bg': 'oklch(var(--accent) / 50%)',
|
|
'--g-tabbar-tab-hover-color': 'oklch(var(--accent-foreground) / 50%)',
|
|
'--g-tabbar-tab-active-bg': 'oklch(var(--accent))',
|
|
'--g-tabbar-tab-active-color': 'oklch(var(--foreground))',
|
|
// 工具栏
|
|
'--g-toolbar-bg': 'oklch(var(--background))',
|
|
} as const
|
|
|
|
export const darkTheme = {
|
|
// shadcn
|
|
'--background': '0.141 0.005 285.823',
|
|
'--foreground': '0.985 0 0',
|
|
'--card': '0.21 0.006 285.885',
|
|
'--card-foreground': '0.985 0 0',
|
|
'--popover': '0.21 0.006 285.885',
|
|
'--popover-foreground': '0.985 0 0',
|
|
'--primary': '0.92 0.004 286.32',
|
|
'--primary-foreground': '0.21 0.006 285.885',
|
|
'--secondary': '0.274 0.006 286.033',
|
|
'--secondary-foreground': '0.985 0 0',
|
|
'--muted': '0.274 0.006 286.033',
|
|
'--muted-foreground': '0.705 0.015 286.067',
|
|
'--accent': '0.274 0.006 286.033',
|
|
'--accent-foreground': '0.985 0 0',
|
|
'--destructive': '0.704 0.191 22.216',
|
|
'--border': '0.252 0.002 286.27',
|
|
'--input': '0.341 0 0',
|
|
'--ring': '0.552 0.016 285.938',
|
|
// 主要区域
|
|
'--g-main-area-bg': 'oklch(var(--background))',
|
|
// 头部
|
|
'--g-header-bg': 'oklch(var(--background))',
|
|
'--g-header-color': 'oklch(var(--foreground))',
|
|
'--g-header-menu-color': 'oklch(var(--muted-foreground))',
|
|
'--g-header-menu-hover-bg': 'oklch(var(--muted))',
|
|
'--g-header-menu-hover-color': 'oklch(var(--muted-foreground))',
|
|
'--g-header-menu-active-bg': 'oklch(var(--accent))',
|
|
'--g-header-menu-active-color': 'oklch(var(--accent-foreground))',
|
|
// 主导航
|
|
'--g-main-sidebar-bg': 'oklch(var(--background))',
|
|
'--g-main-sidebar-menu-color': 'oklch(var(--muted-foreground))',
|
|
'--g-main-sidebar-menu-hover-bg': 'oklch(var(--muted))',
|
|
'--g-main-sidebar-menu-hover-color': 'oklch(var(--muted-foreground))',
|
|
'--g-main-sidebar-menu-active-bg': 'oklch(var(--accent))',
|
|
'--g-main-sidebar-menu-active-color': 'oklch(var(--accent-foreground))',
|
|
// 次导航
|
|
'--g-sub-sidebar-bg': 'oklch(var(--background))',
|
|
'--g-sub-sidebar-menu-color': 'oklch(var(--muted-foreground))',
|
|
'--g-sub-sidebar-menu-hover-bg': 'oklch(var(--muted))',
|
|
'--g-sub-sidebar-menu-hover-color': 'oklch(var(--muted-foreground))',
|
|
'--g-sub-sidebar-menu-active-bg': 'oklch(var(--accent))',
|
|
'--g-sub-sidebar-menu-active-color': 'oklch(var(--accent-foreground))',
|
|
// 标签栏
|
|
'--g-tabbar-bg': 'oklch(var(--background))',
|
|
'--g-tabbar-tab-color': 'oklch(var(--accent-foreground) / 50%)',
|
|
'--g-tabbar-tab-hover-bg': 'oklch(var(--accent) / 50%)',
|
|
'--g-tabbar-tab-hover-color': 'oklch(var(--accent-foreground) / 50%)',
|
|
'--g-tabbar-tab-active-bg': 'oklch(var(--accent))',
|
|
'--g-tabbar-tab-active-color': 'oklch(var(--foreground))',
|
|
// 工具栏
|
|
'--g-toolbar-bg': 'oklch(var(--background))',
|
|
} as const
|