Skip to content

Commit

Permalink
feat(color): red color를 추가합니다. (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
jungwoo3490 authored Dec 7, 2024
1 parent fdb3641 commit 4574bd0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/breezy-apples-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@setaday/design-token": minor
---

add red color token
1 change: 1 addition & 0 deletions packages/design-token/src/color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const color = {
key: "#4F8FF6",
white: "#FFFFFF",
black: "#000000",
red: "FF7070",

sub: {
1: "#ECF4FD",
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/TextField/TextField.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const textFieldVariants = cva(
{
variants: {
isError: {
true: "shadow-[inset_0_0_0_1px_red]",
true: "shadow-[inset_0_0_0_1px_theme('colors.red')]",
},
inputSize: {
desktop: "w-[33.5rem] h-[5.7rem]",
Expand All @@ -19,7 +19,7 @@ export const textFieldVariants = cva(
export const textCountVariants = cva("", {
variants: {
isError: {
true: "text-red-100",
true: "text-red",
},
},
});
2 changes: 1 addition & 1 deletion packages/ui/src/TextField/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const TextField = ({ isError = false, errorMessage, value, maxLength, inputSize,
</div>
<div className="h-[1.45rem]">
{value.length > maxLength || (isError && errorMessage) ? (
<span className="text-red-100 font-caption1_m_12">
<span className="text-red font-caption1_m_12">
{value.length > maxLength ? `${maxLength}자가 초과되었어요` : errorMessage}
</span>
) : null}
Expand Down

0 comments on commit 4574bd0

Please sign in to comment.