| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- CSS
- 최적화
- hooks
- ES6+
- AI
- learn next.js
- html5
- ChatGPT
- JavaScript
- Python
- git
- JS
- dev
- next.js
- gitCLI
- hatso
- 선택자
- This
- ES5+
- array
- github
- 햇소
- DOM
- object
- 변수
- API
- es6
- 함수
- 우아한테코톡
- react
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