반응형
$ 기호를 사용하여 변수 $variable_name: variable_value를 정의합니다. 아래에서는 Codever 프로젝트에 사용되는 _colors.scss 파일에서 무연탄-회색을 정의합니다. 그런 다음 클래스 정의에서 변수를 참조합니다.
$anthracite-gray: #4A5054;
.anthracite-gray {
color: $anthracite-gray;
}
참조 -
'css' 카테고리의 다른 글
HTML 및 CSS를 사용한 간단한 상단 탐색 메뉴 - [소스 코드 포함] (0) | 2022.02.05 |
---|---|
PNG 영상에 대한 테일윈드 CSS 드롭 그림자 효과 (0) | 2022.02.05 |
상자 모델 (0) | 2022.02.05 |
Pure CSS에서 단일 Div를 사용한 Google 로고 (0) | 2022.02.05 |
순수 CSS에서 2Div만 사용한 React 로고 (0) | 2022.02.05 |
댓글