We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
μ€νμΌ μ¬μ© λ°©λ²μ λλ€!!
import 'styled-components'; declare module 'styled-components' { export interface DefaultTheme { colors: { Pic_Color_Coral: string; Pic_Color_Yellow: string; Pic_Color_Blue: string; Pic_Color_Sky: string; Pic_Color_Gray_Black: string; Pic_Color_Gray_2: string; Pic_Color_Gray_3: string; Pic_Color_Gray_4: string; Pic_Color_Gray_5: string; Pic_Color_Gray_6: string; Pic_Color_White: string; }; fonts: { Pic_Title1_Pretendard_Bold_24: SerializedStyles; Pic_Title2_Pretendard_Bold_20: SerializedStyles; Pic_Subtitle1_Pretendard_Semibold_20: SerializedStyles; Pic_Body1_Pretendard_Medium_16: SerializedStyles; Pic_Caption1_Pretendard_Semibold_12: SerializedStyles; }; } }
import { css, DefaultTheme } from 'styled-components'; const colors = { Pic_Color_Coral: '#FF5D5D', Pic_Color_Yellow: '#FFFDC2', Pic_Color_Blue: '#3973CB', Pic_Color_Sky: '#C6DDFF', Pic_Color_Gray_Black: '#1E1F21', Pic_Color_Gray_2: '#525C67', Pic_Color_Gray_3: '#8A949E', Pic_Color_Gray_4: '#C3CDD5', Pic_Color_Gray_5: '#E8EBEF', Pic_Color_Gray_6: '#F4F5F7', Pic_Color_White: '#FFFFFF', }; const fonts = { Pic_Title1_Pretendard_Bold_24: css` font-family: 'PretendardBold'; font-size: 2.4rem; font-weight: 700; font-style: normal; line-height: 2.9rem; `, Pic_Title2_Pretendard_Bold_20: css` font-family: 'PretendardBold'; font-size: 2rem; font-weight: 700; font-style: normal; line-height: 2.4rem; `, Pic_Subtitle1_Pretendard_Semibold_20: css` font-family: 'PretendardSemiBold'; font-size: 2rem; font-weight: 600; font-style: normal; line-height: 2.4rem; `, Pic_Body1_Pretendard_Medium_16: css` font-family: 'PretendardMedium'; font-size: 1.6rem; font-weight: 500; font-style: normal; line-height: 1.9rem; `, Pic_Caption1_Pretendard_Semibold_12: css` font-family: 'PretendardSemiBold'; font-size: 1.2rem; font-weight: 600; font-style: normal; line-height: 1.4rem; `, }; const theme: DefaultTheme = { colors, fonts, }; export default theme;
const StGuide = styled.div` // μμ μ€μ background-color: ${({ theme }) => theme.colors.Pic_Color_Blue}; // ν°νΈ μ€μ , μ μ΄μ font-family, size, weight λ€ μ§μ ν΄ μ£ΌμκΈ° λλ¬Έμ νμ€λ‘ μ μΈνλ κ²μ΄ κ°λ₯ν©λλ€! // π ${({ theme }) => theme.fonts.Pic_Title2_Pretendard_Bold_20} `
ν λ² μ μ©ν΄λ³΄κ³ ν΄μ£ΌμΈμπ
The text was updated successfully, but these errors were encountered:
Happhee
No branches or pull requests
π μ΄λ€ κΈ°λ₯μΈκ°μ?
μ€νμΌ μ¬μ© λ°©λ²μ λλ€!!
β¨ style.d.ts
β¨ theme.ts
font π κ°μ κ²½μ°μλ νΌκ·Έλ§μ μ§μ λ font, colorλͺ μΌλ‘ μ°κ²°μμΌμ νΌκ·Έλ§μ μ λ‘λ ν΄μ£Όμ λ€κ³ ν©λλ€!
β¨ μ¬μ©λ²
ν λ² μ μ©ν΄λ³΄κ³ ν΄μ£ΌμΈμπ
The text was updated successfully, but these errors were encountered: