Skip to content

Commit

Permalink
Extract colors to vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ciremusyoka committed May 24, 2024
1 parent e2387af commit 497aaa5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/src/components/page/Sidebar/Sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}

.ant-btn-link:hover {
color: #fff;
color: var(--menu-item-text_hover__dark-theme__color);
}
}

Expand All @@ -32,7 +32,7 @@
}

.collapse-icon {
color: rgba(255, 255, 255, 0.65);
color: var(--menu-item-text__dark-theme__color);
padding: 0 16px;
margin-right: 19px;
margin-left: auto;
Expand All @@ -45,11 +45,11 @@
}

.menu-dark ul:last-child {
background: #141414 !important;
background: var(--sub-menu-items__background) !important;
}

.ant-menu-dark.ant-menu-submenu > .ant-menu {
background: #141414 !important;
background: var(--sub-menu-items__background) !important;
}

.sidebar-icons {
Expand Down
5 changes: 5 additions & 0 deletions packages/react-utils/src/components/CommonStyles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

/* common colors */
:root {
/* side menu */
--menu-item-text__dark-theme__color: rgba(255, 255, 255, 0.7);
--menu-item-text_hover__dark-theme__color: #FFFFFF;
--sub-menu-items__background: #141414;

/* detail page tab count badge colors */
--tab-title-count-badge-active__color: #1676FE;
--tab-title-count-badge-active__background: #EBF7FF;
Expand Down

0 comments on commit 497aaa5

Please sign in to comment.