Skip to content

Commit

Permalink
feat: theming
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-d committed Mar 11, 2024
1 parent cacd927 commit c27b65e
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 51 deletions.
26 changes: 24 additions & 2 deletions btp-cap-monorepo/apps/launchpad/src/styles/antd/dark.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
// @import 'node_modules/ng-zorro-antd/ng-zorro-antd';
@import "node_modules/ng-zorro-antd/ng-zorro-antd.variable.less";
@import "../themes/dark";
@import (multiple) 'node_modules/ng-zorro-antd/src/style/themes/dark';
@import './themes/base';
@import './modal/search';

@layout-sider-background: #141414;
@layout-header-background: #141414;

:root {
--zng-header-bg-color: #141414;
--zng-header-color: theme('colors.gray.500');
--zng-header-color-hover: theme('colors.gray.300');
--zng-scrollbar-track-background: rgba(255,255,255,.15);
--zng-scrollbar-thumb-background: rgba(255,255,255,.2);
--zng-scrollbar-color: theme('colors.neutral.800');
--zng-card-background-color: theme('colors.neutral.900');
--zng-layout-body-background: @layout-body-background;
--zng-color-primary: @primary-color;

--ngm-copilot-bg-color: theme('colors.neutral.900');
}

.zng-layout__menu-dark {
--zng-header-bg-color: #141414;
}
25 changes: 22 additions & 3 deletions btp-cap-monorepo/apps/launchpad/src/styles/antd/default.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
@import "node_modules/ng-zorro-antd/ng-zorro-antd.variable.less";
// @import (multiple) 'node_modules/ng-zorro-antd/src/style/themes/default';
// @import 'node_modules/ng-zorro-antd/ng-zorro-antd';
@import "../themes/default";
@import './themes/base';
@import './modal/search';

@layout-sider-background: @white;
@layout-trigger-background: @white;

:root {
--zng-header-bg-color: white;
--zng-header-color: theme('colors.gray.500');
--zng-header-color-hover: theme('colors.gray.700');
--zng-card-background-color: theme('colors.neutral.100');
--zng-layout-body-background: @layout-body-background;
--zng-color-primary: @primary-color;

--ngm-copilot-bg-color: theme('colors.white');
}

.zng-layout__menu-dark {
--zng-header-bg-color: #001529;
--zng-header-color: theme('colors.gray.500');
--zng-header-color-hover: theme('colors.gray.300');
}
24 changes: 0 additions & 24 deletions btp-cap-monorepo/apps/launchpad/src/styles/themes/dark.less

This file was deleted.

22 changes: 0 additions & 22 deletions btp-cap-monorepo/apps/launchpad/src/styles/themes/default.less

This file was deleted.

0 comments on commit c27b65e

Please sign in to comment.