-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update font and tailwindcss theme configuration (#22)
* feat: add custom theme colors and borderRadius * feat: change font to pretendard variable * feat: update metadata * feat: add pretendard font variable * chore: move font asset to public * chore: add theme colors * fix: fix local font src path
- Loading branch information
Showing
6 changed files
with
46 additions
and
19 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import localFont from 'next/font/local' | ||
|
||
const pretendard = localFont({ | ||
src: '../../public/assets/pretendard-variable.ttf', | ||
display: 'swap', | ||
variable: '--font-pretendard', | ||
}) | ||
|
||
export { pretendard } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,43 @@ | ||
import type { Config } from "tailwindcss"; | ||
import type { Config } from 'tailwindcss' | ||
|
||
const config: Config = { | ||
content: [ | ||
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}", | ||
"./src/components/**/*.{js,ts,jsx,tsx,mdx}", | ||
"./src/app/**/*.{js,ts,jsx,tsx,mdx}", | ||
"./src/stories/**/*.{js,ts,jsx,tsx,mdx}", | ||
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}', | ||
'./src/components/**/*.{js,ts,jsx,tsx,mdx}', | ||
'./src/app/**/*.{js,ts,jsx,tsx,mdx}', | ||
'./src/stories/**/*.{js,ts,jsx,tsx,mdx}', | ||
], | ||
theme: { | ||
extend: { | ||
backgroundImage: { | ||
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))", | ||
"gradient-conic": | ||
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))", | ||
fontFamily: { | ||
pretendard: ['var(--font-pretendard)'], | ||
}, | ||
colors: { | ||
neutral: { | ||
'000': '#FFFFFF', | ||
'100': '#ADB1BA', | ||
'200': '#ADB1BA', | ||
'300': '#868B94', | ||
'400': '#6D717A', | ||
'500': '#4D4F54', | ||
'600': '#2B2E33', | ||
'700': '#212124', | ||
'800': '#17171A', | ||
}, | ||
main: { | ||
orange: '#E5684C', | ||
blue: '#3177FF', | ||
purple: '#5D5FEF', | ||
yellow: '#FFEA2F', | ||
pink: '#EFA5AE', | ||
green: '#00B57C', | ||
}, | ||
}, | ||
borderRadius: { | ||
'3xl': '20px', | ||
}, | ||
}, | ||
}, | ||
plugins: [], | ||
}; | ||
export default config; | ||
} | ||
export default config |