Skip to content

Commit 35803c4

Browse files
committed
fix: use tailwind css
1 parent e1aeb8f commit 35803c4

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

src/components/button/FormButton.tsx

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,13 @@ const FormButton = ({
2828
const fontWeight =
2929
size === "md" ? "font-bold" : selected ? "font-bold" : "font-medium";
3030

31-
const backgroundColor = selected ? "var(--color-primary-pale)" : "#FFFFFF";
32-
33-
const borderColor = selected
34-
? "var(--color-primary-light)"
35-
: "var(--color-gray-200)";
36-
37-
const fontColor = selected
38-
? "var(--color-primary-normal)"
39-
: "var(--color-gray-900)";
31+
const backgroundColor = selected ? "bg-primary-pale" : "bg-white";
32+
const borderColor = selected ? "border-primary-light" : "border-gray-200";
33+
const fontColor = selected ? "text-primary-normal" : "text-gray-900";
4034

4135
return (
4236
<button
43-
className={`${baseStyles} ${sizeStyles} ${fontSize} ${fontWeight}`}
44-
style={{
45-
backgroundColor,
46-
border: `1px solid ${borderColor}`,
47-
color: fontColor
48-
}}
37+
className={`${baseStyles} ${sizeStyles} ${fontSize} ${fontWeight} ${backgroundColor} ${borderColor} ${fontColor} border`}
4938
onClick={onClick}
5039
>
5140
{children}

0 commit comments

Comments
 (0)