Kirby Dev
close
프로필 배경
프로필 로고

Kirby Dev

  • 분류 전체보기
  • 홈
  • 태그
  • 방명록
JavaScript로 다크모드(Dark Mode) 쉽게 구현하는 방법

JavaScript로 다크모드(Dark Mode) 쉽게 구현하는 방법

다크모드가 필요한 이유눈의 피로 감소 : 어두운 화면은 장시간 사용 시, 밝은화면에 비해 눈이 덜 피곤함배터리 절약 : OLED 디스플레이에서는 검은색 픽셀이 전력 소모를 줄임개인화된 사용자 경험 제공다크모드 적용 방법 1️⃣ CSS 변수 (Custom Properties) 활용CSS 변수를 사용하면 테마 변경이 매우 간단해집니다.:root { --bg-color: #ffffff; --text-color: #333333;}.dark-mode { --bg-color: #222222; --text-color: #ffffff;}body { background-color: var(--bg-color); color: var(--text-color); transition: background-color..

  • format_list_bulleted 카테고리 없음
  • · 2025. 2. 12.
  • textsms
CSS Grid vs Flexbox 언제 무엇을 사용하는게 좋을까?

CSS Grid vs Flexbox 언제 무엇을 사용하는게 좋을까?

✅ Grid 와 Flexbox의 차이를 알아보자!비교GridFlexbox레이아웃 유형2차원 (행 + 열)1차원 (행 또는 열)주로 사용하는 경우전체 페이지 /  큰 구조작은 UI 요소 정렬배열 방식grid-template-rowsgrid-template-columnsflex-direction 으로 한 방향 정렬정렬 방식justify-itemsalign-itemsjustify-itemsalign-items❓ 언제 Grid를 사용해야할까?전체 페이지 레이아웃을 구성할 때복잡한 카드 UI 레이아웃을 짤 때행(row)과 열(column)을 동시에 정렬해야할 때Grid를 적용한 예제코드 1 2 3.grid-container { display: grid; grid-template-columns: repea..

  • format_list_bulleted 카테고리 없음
  • · 2025. 2. 11.
  • textsms
  • navigate_before
  • 1
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기
최근 글
인기 글
최근 댓글
태그
  • #타임리프 팁
  • #스타일
  • #CSS
  • #devfest
  • #ferralax scrolling
  • #웹퍼블리싱
  • #스타일 관리방법
  • #JavaScript
  • #유지보수
  • #실무 팁
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바