| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- gitCLI
- next.js
- array
- github
- ES6+
- ChatGPT
- ES5+
- 선택자
- JavaScript
- hooks
- JS
- API
- DOM
- learn next.js
- object
- AI
- Python
- hatso
- 햇소
- 최적화
- es6
- git
- This
- react
- dev
- html5
- 우아한테코톡
- 변수
- 함수
- CSS
Archives
- Today
- Total
목록font-family (1)
codinghatso
theme.js import { createGlobalStyle } from "styled-components"; export const GlobalStyle = createGlobalStyle` @import url('https://fonts.googleapis.com/...'); body{ font-family: 'Dongle', sans-serif; ... } `; export const theme = { colors: { ... }, spacing: { ... }, }; 코드의 구조를 살펴보시면 GlobalStyle과 theme를 export 해서 적용시키고자 하는 파일에서 import 해서 사용하면 됩니다. styled-components 라이브러리를 사용해서 적용시키고자 한다면, 위 코드처럼 ..
WEB/React
2024. 1. 12. 12:28