일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- JS
- object
- git
- learn next.js
- ES6+
- This
- JavaScript
- es6
- API
- 변수
- react
- 우아한테코톡
- 햇소
- CSS
- github
- 함수
- hatso
- next.js
- hooks
- DOM
- html5
- AI
- gitCLI
- Python
- 최적화
- 선택자
- array
- dev
- developerlife
- ES5+
- Today
- Total
목록CSS (4)
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 라이브러리를 사용해서 적용시키고자 한다면, 위 코드처럼 ..

Theme 정의하는 방법 테마 객체를 만들어 일관성 있는 디자인 시스템을 구축하는 방법입니다. 유지보수가 용이하며, 생산력을 높여줄 수 있는 방법입니다. // theme.js export const theme = { colors: { primary: '#3498db', secondary: '#2ecc71', text: '#333', background: '#ecf0f1', }, spacing: { small: '8px', medium: '16px', large: '24px', }, }; // App.js import React from 'react'; import { ThemeProvider } from 'styled-components'; import { theme } from './theme'; im..

Flexbox의 구성 container item container display flex : container에 display의 속성, flex 값을 주어야 flexbox 기능이 적용된다. flex-direction row: 요소들을 텍스트의 방향과 동일하게 정렬합니다. row-reverse: 요소들을 텍스트의 반대 방향으로 정렬합니다. column: 요소들을 위에서 아래로 정렬합니다. column-reverse: 요소들을 아래에서 위로 정렬합니다. flex-wrap nowrap (default) wrap wrap-reverse flex-flow 다음의 속성들을 간략히 한 속성입니다. flex-direction and flex-wrap. justify-content flex-start (default) ..

Cascading Style Sheet *cascade : 작은 폭포, 폭포처럼 흐르다, 연속화, 연속적인, 종속, 직렬 Cascading Author style : 우리가 만든 .css 파일 | 우선순위 1 User style : 유저가 다크모드 같은 브라우저의 설정 값을 바꾸는 것 | 우선순위 2 Browser : 브라우저에서 기본으로 기정된 스타일 | 우선순위 3 * ! important : 모든 우선순위를 무시하고 가장 중요한 것을 지정해 버리는 것. 이것은 좋지 않은 구조를 만들 위험이 있어 조심히.. 아니 사용하지 않은 것을 추천한다. selectors (지정자, 선택자) Universal * type Tag ID #id Class .class State : Attribute [] 기본 문법 ..