Skip to content

๐ŸŽ„๋””์ž์ธ ์‹œ์Šคํ…œ ํ™œ์šฉ ๋ฐฉ๋ฒ•

Jiye Lee edited this page Dec 23, 2024 · 9 revisions

์„ค์ •๋œ ๋””์ž์ธ ์‹œ์Šคํ…œ์„ tailwindCSS๋กœ ํ™œ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๊ด€ํ•œ Wiki์ž…๋‹ˆ๋‹ค.

Color

  • Color๋Š” semantic ์•ˆ์— light์™€ dark๋กœ ๋‚˜๋‰จ

Color ์šฉ๋ก€

  • figma : semantic/feedback/negative
    • styled-component : ${({ theme }) => theme.colors?.light["feedback-negative"]}
    • light ๊ฐ์ฒด ์•ˆ์—์„œ semantic์„ ์—†์•ค ์ƒ‰์ด๋ฆ„์œผ๋กœ ์ ‘๊ทผ

Alpha

  • Alpha ๊ฐ’์€ ๊ทธ๋ฆผ์ž์ƒ‰์œผ๋กœ ์‚ฌ์šฉ๋จ

Alpha ์šฉ๋ก€

  • figma : alpha/08
    • styled-component : ${({ theme }) => theme.colors?.alpha[8]}

Typography

Typography ์šฉ๋ก€

  • figma : typography/body/2xs
    • styled-component : ${({ theme }) => theme.typography?.body["2xs"]}

Scheme

Gap ์šฉ๋ก€

  • figma : gap/2xl
    • styled-component : ${({ theme }) => theme.gap?.["2xl"]}

Radius ์šฉ๋ก€

  • figma : radius/circle
    • styled-component : ${({ theme }) => theme.radius?.circle}

Stroke ์šฉ๋ก€

  • figma : stroke/none
    • styled-component : ${({ theme }) => theme.stroke?.none}

Opacity ์šฉ๋ก€

  • figma : opacity/08
    • styled-component : ${({ theme }) => theme.opacity?.[8]}