Skip to content

Commit

Permalink
refactor(ui/react/components): styles 변경사항 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
sukvvon committed May 25, 2024
1 parent 4256d29 commit d67cb91
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 35 deletions.
20 changes: 10 additions & 10 deletions packages/ui/react/src/components/button/button.styles.css.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { style, styleVariants } from '@vanilla-extract/css';
import { h5Bold, h6SemiBold } from '../../styles/text.css';
import { vars } from '../../styles/theme.css';
import { vars } from '../../styles/vars.css';

export const buttonBase = style({
borderRadius: 8,
Expand All @@ -17,23 +17,23 @@ export type ButtonSize = keyof typeof buttonSize;

export const buttonColorScheme = styleVariants({
gray: {
backgroundColor: vars.color.gray400,
border: `1px solid ${vars.color.gray400}`,
color: vars.color.gray200,
backgroundColor: vars.color.gray[400],
border: `1px solid ${vars.color.gray[400]}`,
color: vars.color.gray[200],
},
black: {
backgroundColor: vars.color.gray1000,
border: `1px solid ${vars.color.gray1000}`,
backgroundColor: vars.color.gray[1000],
border: `1px solid ${vars.color.gray[1000]}`,
color: 'white',
},
white: {
backgroundColor: 'white',
border: `1px solid ${vars.color.gray300}`,
color: vars.color.gray900,
border: `1px solid ${vars.color.gray[300]}`,
color: vars.color.gray[900],
},
red: {
backgroundColor: vars.color.system300,
border: `1px solid ${vars.color.system300}`,
backgroundColor: vars.color.system[300],
border: `1px solid ${vars.color.system[300]}`,
color: 'white',
},
});
Expand Down
18 changes: 9 additions & 9 deletions packages/ui/react/src/components/input/input.styles.css.ts
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
import { style, styleVariants } from '@vanilla-extract/css';
import { inputElementDirection } from './input-element.styles.css';
import { body3Medium } from '../../styles/text.css';
import { vars } from '../../styles/theme.css';
import { vars } from '../../styles/vars.css';

export const inputBase = style([
body3Medium,
{
boxSizing: 'border-box',
width: '100%',
color: vars.color.gray1000,
color: vars.color.gray[1000],
transition: 'border 0.2s ease',
outline: 'none',
},
]);

export const inputVariant = styleVariants({
outline: {
border: `1px solid ${vars.color.gray300}`,
border: `1px solid ${vars.color.gray[300]}`,
borderRadius: 8,
padding: '10px 12px',

selectors: {
'&:disabled': {
backgroundColor: vars.color.gray300,
backgroundColor: vars.color.gray[300],
},
'&:focus': {
border: `1px solid ${vars.color.gray900}`,
border: `1px solid ${vars.color.gray[900]}`,
},
'&::placeholder': {
color: vars.color.gray500,
color: vars.color.gray[500],
},
},
},
flushed: {
border: 'none',
borderBottom: `1px solid ${vars.color.gray300}`,
borderBottom: `1px solid ${vars.color.gray[300]}`,
padding: '10px 0',

selectors: {
'&:focus': {
borderBottom: `1px solid ${vars.color.gray900}`,
borderBottom: `1px solid ${vars.color.gray[900]}`,
},
'&::placeholder': {
color: vars.color.gray500,
color: vars.color.gray[500],
},
},
},
Expand Down
1 change: 1 addition & 0 deletions packages/ui/react/src/components/layout/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export {
type CSSPropertyValue,
} from './create-css-property-style-variants';

export { Box } from './box';
export { Flex, type FlexProps } from './flex';
4 changes: 2 additions & 2 deletions packages/ui/react/src/components/link/link-styles.css.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { style, styleVariants } from '@vanilla-extract/css';
import { body3Medium } from '../../styles/text.css';
import { vars } from '../../styles/theme.css';
import { vars } from '../../styles/vars.css';

export const linkBase = style([
body3Medium,
Expand All @@ -18,7 +18,7 @@ export const linkBase = style([

export const linkColor = styleVariants({
white: { color: 'white' },
gray: { color: vars.color.gray400 },
gray: { color: vars.color.gray[400] },
black: { color: 'black' },
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { style } from '@vanilla-extract/css';
import { vars } from '../../styles/theme.css';
import { vars } from '../../styles/vars.css';

export const modalContentBase = style({
display: 'flex',
Expand All @@ -9,6 +9,6 @@ export const modalContentBase = style({
flexDirection: 'column',
padding: 24,
minWidth: 300,
backgroundColor: vars.color.gray200,
backgroundColor: vars.color.gray[200],
borderRadius: 20,
});
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { style, styleVariants } from '@vanilla-extract/css';
import { vars } from '../../styles/theme.css';
import { vars } from '../../styles/vars.css';

export const modalTitleBase = style({
display: 'flex',
color: vars.color.gray1000,
color: vars.color.gray[1000],
});

export const modalTitleContainerLayout = styleVariants({
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/react/src/components/tag/tag-label.styles.css.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { style, styleVariants } from '@vanilla-extract/css';
import { vars } from '../../styles/theme.css';
import { vars } from '../../styles/vars.css';

export const tagLabelBase = style({
display: 'flex',
Expand All @@ -15,5 +15,5 @@ export const tagLabelSize = styleVariants({
export type TagLabelSize = keyof typeof tagLabelSize;

export const tagLabelAsIcon = style({
color: vars.color.gray400,
color: vars.color.gray[400],
});
4 changes: 2 additions & 2 deletions packages/ui/react/src/components/tag/tag.styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from '@vanilla-extract/css';
import { type TagColor, tagVars } from './tag.theme.css';
import { body3Medium, body4Medium } from '../../styles/text.css';
import { vars } from '../../styles/theme.css';
import { vars } from '../../styles/vars.css';

export const tagBase = style({
display: 'inline-flex',
Expand Down Expand Up @@ -33,7 +33,7 @@ export const tagColorScheme = styleVariants({
white: {
...createColorScheme('black'),
backgroundColor: 'white',
border: `1px solid ${vars.color.gray300}`,
border: `1px solid ${vars.color.gray[300]}`,
},
});

Expand Down
8 changes: 4 additions & 4 deletions packages/ui/react/src/components/tag/tag.theme.css.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createTheme, createThemeContract } from '@vanilla-extract/css';
import { vars as globalVars } from '../../styles/theme.css';
import { vars as globalVars } from '../../styles/vars.css';

export const tagVars = createThemeContract({
normal: {
Expand Down Expand Up @@ -28,13 +28,13 @@ export type TagColor = keyof typeof tagVars.normal;

export const tagColor = createTheme(tagVars, {
normal: {
black: globalVars.color.gray700,
black: globalVars.color.gray[700],
blue: '#2c84ec',
brightGreen: '#5db924',
coral: globalVars.color.coral,
coral: globalVars.color.archive.coral,
mint: '#15c27a',
pink: '#ff4cbc',
purple: globalVars.color.purple,
purple: globalVars.color.archive.purple,
yellow: '#ff8a35',
},
light: {
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/react/src/components/toast/toast.styles.css.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { style } from '@vanilla-extract/css';
import { vars } from '../../styles/theme.css';
import { vars } from '../../styles/vars.css';

export const toastItemBase = style({
width: '100%',
backgroundColor: vars.color.gray800,
backgroundColor: vars.color.gray[800],
borderRadius: 20,
padding: '15px 28px',
display: 'flex',
Expand Down

0 comments on commit d67cb91

Please sign in to comment.