Skip to content

Commit

Permalink
Style: 색상 테마 설정 및 공용 font style 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
seoyoung-min committed Feb 7, 2024
1 parent 199b7fb commit 91c75e2
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 0 deletions.
74 changes: 74 additions & 0 deletions src/styles/font.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import { style } from '@vanilla-extract/css';

export const largeTitle = style({
fontSize: '3.4rem',
fontWeight: '800',
letterSpacing: '-0.102rem',
});

export const title1 = style({
fontSize: '2.8rem',
fontWeight: '700',
letterSpacing: '-0.084rem',
});

export const title2 = style({
fontSize: '2.2rem',
fontWeight: '600',
lineHeight: '2.5rem',
letterSpacing: '-0.066rem',
});

export const title3 = style({
fontSize: '2rem',
fontWeight: '600',
lineHeight: '2.5rem',
letterSpacing: '-0.06rem',
});

export const headline = style({
fontSize: '1.7rem',
fontWeight: '600',
letterSpacing: '-0.051rem',
});

export const body1 = style({
fontSize: '1.6rem',
fontWeight: '400',
lineHeight: '1.6rem',
letterSpacing: '-0.48px',
});

export const body2 = style({
fontSize: '1.5rem',
fontWeight: '400',
lineHeight: '2.5rem',
letterSpacing: '-0.045rem',
});

export const body3 = style({
fontSize: '1.4rem',
fontWeight: '400',
lineHeight: '2.5rem',
letterSpacing: '-0.042rem',
});

export const footnote = style({
fontSize: '1.3rem',
fontWeight: '400',
lineHeight: '1.6rem',
});

export const caption1 = style({
fontSize: '1.2rem',
fontWeight: '400',
lineHeight: '2.5rem',
letterSpacing: '-0.036rem',
});

export const caption2 = style({
fontSize: '1.1rem',
fontWeight: '400',
lineHeight: '2.5rem',
letterSpacing: '-0.033rem',
});
33 changes: 33 additions & 0 deletions src/styles/theme.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { createThemeContract, createGlobalTheme } from '@vanilla-extract/css';

export const vars = createThemeContract({
color: {
black: 'color-black',
white: 'color-white',
gray9: 'color-gray9',
gray7: 'color-gray7',
gray5: 'color-gray5',
gray3: 'color-gray3',
blue: 'color-blue',
skyblue: 'color-skyblue',
lightblue: 'color-lightblue',
yellow: 'color-yellow',
red: 'color-red',
},
});

createGlobalTheme(':root', vars, {
color: {
black: '#19191B',
white: '#fff',
gray9: '#61646B',
gray7: '#AFB1B6',
gray5: '#EFEFF0',
gray3: '#FAFAFA',
blue: '#0047FF',
skyblue: '#82C3FF',
lightblue: '#EBF4FF',
yellow: '#FFF6A5',
red: '#FF5454',
},
});

0 comments on commit 91c75e2

Please sign in to comment.