Skip to content

Commit 09c1eab

Browse files
authored
Merge pull request #17 from cherryontech/feat/button-component
feat(button): add responsive sizes and fonts for sm, lg, and xl tailwind breakpoints, adjusts hex codes with custom colors
2 parents c193f35 + 2344cb7 commit 09c1eab

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/components/Button.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ const buttonVariants = tv({
66
// all button variants
77
variants: {
88
size: {
9-
sm: 'h-14 w-[220px] text-2xl text-md font-semibold rounded-lg',
10-
md: 'h-16 w-82 text-2xl font-semibold rounded-lg',
11-
lg: 'h-11 w-[501px] text-lg font-medium rounded-md',
9+
sm: 'h-12 w-[162px] text-base font-semibold rounded-lg lg:h-14 lg:w-[220px] lg:text-xl',
10+
md: 'h-11 w-[218px] text-base font-semibold rounded-lg lg:h-14 lg:w-[286px] lg:text-xl xl:h-16 xl:w-[327px] xl:text-2xl',
11+
lg: 'h-11 w-[345px] text-base font-medium rounded-md lg:w-[501px]',
1212
circ: 'h-11 w-11 text-2xl rounded-full'
1313
},
1414
color: {
15-
primary: 'bg-[#1E1E1E] text-white border-1 border-[#1E1E1E]',
16-
secondary: 'bg-white text-[#1E1E1E] border-1 border-[#1E1E1E]',
17-
gradient: 'bg-gradient-to-b from-[#15F30D] to-[#0561A7] text-white'
15+
primary: 'bg-eerie text-white border-1 border-eerie',
16+
secondary: 'bg-white text-eerie border-1 border-eerie',
17+
gradient: 'bg-gradient-to-b from-electricgreen to-persianblue text-white'
1818
}
1919
},
2020
// default button styles if no specified props

0 commit comments

Comments
 (0)