Skip to content

Commit

Permalink
feat: publish new version
Browse files Browse the repository at this point in the history
  • Loading branch information
ShakedZrihen committed Sep 19, 2024
1 parent c0bfa22 commit 03a943d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "specter-ui-kit",
"private": false,
"version": "0.4.0-rc-4",
"version": "0.4.0",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
4 changes: 4 additions & 0 deletions src/@types/theme.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ declare module '@mui/material/styles' {
highlight: string;
icon: string;
};
colors: {
primary: string;
secondary: string;
}
};
}
interface ThemeOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,19 @@ import { styled } from '@mui/material/styles';
import Button from '@mui/material/Button';
import TranslateIcon from '@mui/icons-material/Translate';


const StyledTranslationButton = styled(Button)(({ theme }) => ({
backgroundColor: theme.colorPalette.secondaryColor.color,
backgroundColor: theme.colorPalette.colors.primary,
color: 'white',
'&:hover': {
backgroundColor: theme.colorPalette.primaryColor.color,
backgroundColor: theme.colorPalette.colors.secondary,
},
minWidth: 'auto',
padding: '8px',
borderRadius: '4px',
}));


const StyledTranslateIcon = styled(TranslateIcon)(() => ({
color: 'inherit',
}));

export { StyledTranslationButton, StyledTranslateIcon };
export { StyledTranslationButton, StyledTranslateIcon };
8 changes: 4 additions & 4 deletions src/context/theme/lightMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ export const colorPalette = {
highlight: '#FFDF5F',
icon: '#2860A8',
},
primaryColor: {
color: '#474E72'
colors: {
primary: '#474E72',
secondary: '#1B1E2D',
},
secondaryColor: '#1B1E2D',
};

export const lightMode = createTheme({
Expand All @@ -52,4 +52,4 @@ export const lightMode = createTheme({
},
},
},
});
});

0 comments on commit 03a943d

Please sign in to comment.