Skip to content

Commit 4574bd0

Browse files
authored
feat(color): red color를 추가합니다. (#103)
1 parent fdb3641 commit 4574bd0

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.changeset/breezy-apples-wait.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@setaday/design-token": minor
3+
---
4+
5+
add red color token

packages/design-token/src/color.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const color = {
22
key: "#4F8FF6",
33
white: "#FFFFFF",
44
black: "#000000",
5+
red: "FF7070",
56

67
sub: {
78
1: "#ECF4FD",

packages/ui/src/TextField/TextField.styles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const textFieldVariants = cva(
55
{
66
variants: {
77
isError: {
8-
true: "shadow-[inset_0_0_0_1px_red]",
8+
true: "shadow-[inset_0_0_0_1px_theme('colors.red')]",
99
},
1010
inputSize: {
1111
desktop: "w-[33.5rem] h-[5.7rem]",
@@ -19,7 +19,7 @@ export const textFieldVariants = cva(
1919
export const textCountVariants = cva("", {
2020
variants: {
2121
isError: {
22-
true: "text-red-100",
22+
true: "text-red",
2323
},
2424
},
2525
});

packages/ui/src/TextField/TextField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const TextField = ({ isError = false, errorMessage, value, maxLength, inputSize,
4141
</div>
4242
<div className="h-[1.45rem]">
4343
{value.length > maxLength || (isError && errorMessage) ? (
44-
<span className="text-red-100 font-caption1_m_12">
44+
<span className="text-red font-caption1_m_12">
4545
{value.length > maxLength ? `${maxLength}자가 초과되었어요` : errorMessage}
4646
</span>
4747
) : null}

0 commit comments

Comments
 (0)