-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
51 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,53 @@ | ||
import theme from '../theme.css'; | ||
import type { | ||
ButtonColorTheme, | ||
ButtonColorThemeWithStatus, | ||
ButtonSizeTheme, | ||
} from './types'; | ||
import theme from "../theme.css"; | ||
import type { ButtonColorTheme, ButtonColorThemeWithStatus, ButtonSizeTheme } from "./types"; | ||
|
||
export const bgColors: Record<ButtonColorThemeWithStatus, string> = { | ||
'white-default': theme.colors.white, | ||
'black-default': theme.colors.gray700, | ||
'blue-default': theme.colors.success, | ||
'red-default': theme.colors.error, | ||
'white-hover': theme.colors.gray50, | ||
'black-hover': theme.colors.gray600, | ||
'blue-hover': theme.colors.blue500, | ||
'red-hover': theme.colors.red500, | ||
'white-press': theme.colors.gray100, | ||
'black-press': theme.colors.gray500, | ||
'blue-press': theme.colors.blue600, | ||
'red-press': theme.colors.red600, | ||
"white-default": theme.colors.white, | ||
"black-default": theme.colors.gray700, | ||
"blue-default": theme.colors.success, | ||
"red-default": theme.colors.error, | ||
"white-hover": theme.colors.gray50, | ||
"black-hover": theme.colors.gray600, | ||
"blue-hover": theme.colors.blue500, | ||
"red-hover": theme.colors.red500, | ||
"white-press": theme.colors.gray100, | ||
"black-press": theme.colors.gray500, | ||
"blue-press": theme.colors.blue600, | ||
"red-press": theme.colors.red600, | ||
}; | ||
|
||
export const textColors = { | ||
light: theme.colors.white, | ||
dark: theme.colors.gray800, | ||
}; | ||
|
||
export const colorThemeToTextColor: Record<ButtonColorTheme, 'light' | 'dark'> = | ||
{ | ||
white: 'dark', | ||
black: 'light', | ||
red: 'light', | ||
blue: 'light', | ||
}; | ||
export const colorThemeToTextColor: Record<ButtonColorTheme, "light" | "dark"> = { | ||
white: "dark", | ||
black: "light", | ||
red: "light", | ||
blue: "light", | ||
}; | ||
|
||
export const borderRadiuses: Record<ButtonSizeTheme, string> = { | ||
sm: '8px', | ||
md: '10px', | ||
lg: '12px', | ||
sm: "8px", | ||
md: "10px", | ||
lg: "12px", | ||
}; | ||
|
||
export const paddings: Record<ButtonSizeTheme, string> = { | ||
sm: '9px 14px', | ||
md: '12px 20px', | ||
lg: '16px 26px', | ||
sm: "9px 14px", | ||
md: "12px 20px", | ||
lg: "16px 26px", | ||
}; | ||
|
||
export const fontSizes: Record<ButtonSizeTheme, string> = { | ||
sm: '14px', | ||
md: '14px', | ||
lg: '18px', | ||
sm: "14px", | ||
md: "14px", | ||
lg: "18px", | ||
}; | ||
|
||
export const iconSizes: Record<ButtonSizeTheme, number> = { | ||
sm: 16, | ||
md: 20, | ||
lg: 24, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters