diff --git a/frontend/src/tailwind.css b/frontend/src/tailwind.css index b5c61c95..e094ff47 100644 --- a/frontend/src/tailwind.css +++ b/frontend/src/tailwind.css @@ -1,3 +1,11 @@ @tailwind base; @tailwind components; @tailwind utilities; + +@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@500;700&display=swap'); + +@layer base { + html { + font-family: 'Noto Sans KR', sans-serif; + } +} \ No newline at end of file diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index d21f1cda..8ee0ee9c 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -4,5 +4,71 @@ export default { theme: { extend: {}, }, - plugins: [], + plugins: [ + ({ addComponents }) => { + const themeBase = { + bold_L: { fontWeight: '700', fontSize: '24px' }, + bold_M: { fontWeight: '700', fontSize: '16px' }, + bold_R: { fontWeight: '700', fontSize: '14px' }, + bold_S: { fontWeight: '700', fontSize: '12px' }, + medium_M: { fontWeight: '500', fontSize: '16px' }, + medium_R: { fontWeight: '500', fontSize: '14px' }, + medium_S: { fontWeight: '500', fontSize: '12px' }, + }; + + const textTheme = { + '.text-strong': { color: '#14212B' }, + '.text-bold': { color: '#4B5966' }, + '.text-default': { color: '#5E6E76' }, + '.text-weak': { color: '#879298' }, + '.text-white-default': { color: '#FFFFFF' }, + '.display-bold24': themeBase.bold_L, + '.display-bold16': themeBase.bold_M, + '.display-bold14': themeBase.bold_R, + '.display-bold12': themeBase.bold_S, + '.display-medium16': themeBase.medium_M, + '.display-medium14': themeBase.medium_R, + '.display-medium12': themeBase.medium_S, + '.available-medium16': themeBase.medium_M, + '.available-medium14': themeBase.medium_R, + '.available-medium12': themeBase.medium_S, + '.hover-medium16': { + ...themeBase.medium_M, + textDecoration: 'underline' + }, + '.hover-medium14': { + ...themeBase.medium_R, + textDecoration: 'underline' + } + }; + addComponents(textTheme); + }, + ({ addComponents }) => { + const surfaceTheme = { + '.surface-default': { background: '#181818' }, + '.surface-alt': { background: '#202123' }, + '.surface-point': { background: '#0052F0' }, + '.surface-point-alt': { background: '#7890E7' }, + '.surface-disabled': { background: '#AFABAB' }, + '.surface-content': { background: '#FFFFFF' }, + '.surface-box': { background: '#ECECEC' }, + '.surface-box-alt': { background: '#7390B1' }, + }; + addComponents(surfaceTheme); + }, + ({ addComponents }) => { + const borderTheme = { + '.border-default': { border: '1px soild #FFFFFF' }, + '.border-bold': { border: '1px soild #6E8091' }, + }; + addComponents(borderTheme); + }, + ({ addComponents }) => { + const shadowTheme = { + '.shadow-chat': { boxShadow: '0px 0px 8px 8px rgba(255, 255, 255, 0.10);' }, + '.shadow-popup': { boxShadow: '0px 4px 4px 0px rgba(0, 0, 0, 0.25)' }, + }; + addComponents(shadowTheme); + } + ], };