constant var css
:root {
--mobile-width: 375px;
--desctop-width: 1440px;
--very-dark-blue: hsl(216, 12%, 8%);
--dark-blue: hsl(213, 19%, 18%);
--medium-grey: hsl(216, 12%, 40%);
--light-gray: hsl(217, 12%, 63%);
--white: hsl(0, 0%, 100%);
--primary: hsl(25, 97%, 53%);
--font-size: 15px;
--font-family: Overpass;
--font-weight-small: 400;
--font-weight-big: 700;
}
css 분리(interface 분리 원칙과 비슷)
:before 을 이용하여 content를 직접 삽입할 수 있다.
input style을 label과 함께 이용하여 커스텀 할 수 있다.
input[type='radio'] {
display: none;
}
input[type='radio']:checked + label {
color: var(--white);
background-color: var(--light-gray);
}
css
를 더 효율적으로 관리할 순 없을까?scss
에서 쓸 수 있는 mixIn
기능이 순수 css
에는 없는걸까?FormData
지만 observer pattern
을 쓰는게 좋을까?