Skip to content

Commit

Permalink
fix: theme
Browse files Browse the repository at this point in the history
  • Loading branch information
drl990114 committed Mar 2, 2024
1 parent 5d140f5 commit 0a3e1e9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ let publicPath: string | undefined;

// Github Pages 部署时需要更换为自己的仓库名
if (process.env.NODE_ENV === 'production' && process.env.PREVIEW !== '1') {
console.log('production')
base = '/zens/';
publicPath = '/zens/';
}
Expand All @@ -20,7 +21,7 @@ export default defineConfig({
atomDirs: [{ type: 'component', dir: 'src' }],
},
themeConfig: {
logo: '/logo.png',
logo: (publicPath || '') + '/logo.png',
lastUpdated: true,
socialLinks: {
github: 'https://github.com/drl990114/zens',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],
"scripts": {
"build": "npm run clean && npm run build:types && gulp",
"build:site": "dumi build",
"build:site": "cross-env NODE_ENV=production dumi build",
"build:types": "tsc -p tsconfig.build.json && cpr lib esm",
"clean": "rimraf lib esm dist .dumi/tmp doc-site",
"commit": "cz",
Expand Down
4 changes: 4 additions & 0 deletions src/Theme/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ export const styledDarkTheme = {
// components
contextMenuBgColor: '#1E1F20',
contextMenuBgColorHover: '#1552B3',
buttonBgColor: '#21262c',
tooltipBgColor: '#43414A',
dialogBgColor: '#05010d',
dialogBackdropColor: 'rgb(18, 18, 18, 0.7)',
}
4 changes: 4 additions & 0 deletions src/Theme/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ export const styledLightTheme = {
// components
contextMenuBgColor: '#f6f7f9',
contextMenuBgColorHover: '#1552B3',
buttonBgColor: '#f6f7f9',
tooltipBgColor: '#d7d7dc',
dialogBgColor: '#f6f7f9',
dialogBackdropColor: 'rgba(220, 220, 220, 0.4)',
}

0 comments on commit 0a3e1e9

Please sign in to comment.