Skip to content

Commit

Permalink
only export semantic and component colors from theme
Browse files Browse the repository at this point in the history
  • Loading branch information
interim17 committed Dec 18, 2024
1 parent 60bbf94 commit 8a8cc43
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/components/CustomDropdown/DropdownMenuItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ const baseStyles = css`
color: ${({ theme }) => theme.colors.dropdown.text};
cursor: pointer;
height: 28px;
padding: 4px;
padding: 6px;
width: 100%;
min-width: 177px;
font-size: 14px;
&&& {
Expand Down
2 changes: 1 addition & 1 deletion src/components/LoadFileMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const LoadFileMenu = ({
to={{ pathname: VIEWER_PATHNAME }}
onClick={openConversionForm}
>
Import other file type
Other file type
</DropdownRouterLink>
),
},
Expand Down
4 changes: 2 additions & 2 deletions src/styles/theme/colors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const baseColors = {
const baseColors = {
black: "#000000",
white: {
pure: "#ffffff",
Expand Down Expand Up @@ -51,6 +51,7 @@ export const baseColors = {

export const semanticColors = {
// bg colors
transparentBg: baseColors.transparent,
lightBg: baseColors.gray.one,
mediumBg: baseColors.dark.six,
grayBg: baseColors.gray.four,
Expand Down Expand Up @@ -138,7 +139,6 @@ export const componentColors = {
};

export const themeColors = {
...baseColors,
...semanticColors,
...componentColors,
};
2 changes: 1 addition & 1 deletion src/styles/theme/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const antdTheme: ThemeConfig = {
handleColor: themeColors.slider.color,
trackHoverBg: themeColors.slider.color,
handleActiveColor: themeColors.slider.color,
handleActiveOutlineColor: themeColors.transparent,
handleActiveOutlineColor: themeColors.transparentBg,
handleSize: 5.5,
handleSizeHover: 5.5,
dotBorderColor: themeColors.slider.color,
Expand Down

0 comments on commit 8a8cc43

Please sign in to comment.