ui-lib(button): size variants

This commit is contained in:
Corentin Thomasset 2023-05-07 23:29:55 +02:00 committed by Corentin THOMASSET
parent edae4c6915
commit 401f13f7e3
3 changed files with 51 additions and 20 deletions

View file

@ -27,6 +27,21 @@ const createTheme = ({ style }: { style: 'light' | 'dark' }) => {
const theme = appThemes[style];
return {
size: {
small: {
width: '28px',
fontSize: '12px',
},
medium: {
width: '34px',
fontSize: '14px',
},
large: {
width: '40px',
fontSize: '16px',
},
},
basic: {
default: createState({
textColor: theme.text.baseColor,