성능
통과프레임 속도: 평균 60 fps, p5 59.9 · 긴 작업: 0개, 총 0 ms, 최장 0 ms · 소스 gzip 2.3 KB · 런타임 2.3 KB
splendid-panda-57MIT토글Uiverse.io
JaydipPrajapati1910가 HTML과 CSS만으로 만든 토글입니다. Uiverse.io에서 MIT 라이선스로 수집했고 여기서 실제로 실행됩니다.
품질 보고
등급과 점수는 빌드 또는 테스트 때 실행한 자동 검사에서 나옵니다. 실행하지 않은 항목은 '미검사'로 표시하며, 숫자를 지어내지 않습니다.
프레임 속도: 평균 60 fps, p5 59.9 · 긴 작업: 0개, 총 0 ms, 최장 0 ms · 소스 gzip 2.3 KB · 런타임 2.3 KB
문제 0 · 스크린 리더: 주의
지속 움직임 없음
넘침 없음
프레임 속도와 긴 작업 수치는 헤드리스 Chromium에서 소프트웨어 WebGL로 측정했습니다. 이 사이트의 컴포넌트끼리만 비교해야 하며, 실제 기기의 성능이 아닙니다.
해당 없음: 정지 상태에서 보이는 애니메이션이 없습니다. 호버로 시작되는 애니메이션은 검사하지 않았습니다.
axe-core 위반이 없습니다.

검사일 2026년 11월 15일 · 수치는 자동 스크립트에서 오며, 손으로 쓴 예시가 아닙니다.
실제 크기로 보여 줍니다.
복사한 내용은 라이선스 고지로 시작합니다. 코드를 쓸 때 남겨 두세요.
<div class="btn-container">
<svg viewBox="0 0 16 16" class="bi bi-sun-fill" fill="currentColor" width="23" xmlns="http://www.w3.org/2000/svg">
<path d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z" color="red"></path>
</svg>
<label class="switch btn-color-mode-switch">
<input value="1" id="color_mode" name="color_mode" type="checkbox">
<label class="btn-color-mode-switch-inner" data-off="Light" data-on="Dark" for="color_mode"></label>
</label>
<svg viewBox="0 0 16 16" class="bi bi-moon-stars-fill" fill="currentColor" width="23" xmlns="http://www.w3.org/2000/svg">
<path d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z" color="orange"></path>
<path d="M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z" color="black"></path>
</svg>
</div>/* From Uiverse.io by JaydipPrajapati1910 - Tags: switch, moon, sun, theme-switch, light&dark, sunset, switcher, toggle switch */
.btn-container {
display: table-cell;
vertical-align: middle;
text-align: center;
}
.btn-container i {
display: inline-block;
position: relative;
top: -9px;
}
label {
font-size: 13px;
color: #424242;
font-weight: 500;
}
.btn-color-mode-switch {
display: inline-block;
margin: 0px;
position: relative;
}
.btn-color-mode-switch > label.btn-color-mode-switch-inner {
margin: 0px;
width: 140px;
height: 30px;
background: #E0E0E0;
border-radius: 26px;
overflow: hidden;
position: relative;
transition: all 0.3s ease;
/*box-shadow: 0px 0px 8px 0px rgba(17, 17, 17, 0.34) inset;*/
display: block;
}
.btn-color-mode-switch > label.btn-color-mode-switch-inner:before {
content: attr(data-on);
position: absolute;
font-size: 12px;
font-weight: 500;
top: 7px;
right: 20px;
}
.btn-color-mode-switch > label.btn-color-mode-switch-inner:after {
content: attr(data-off);
width: 70px;
height: 16px;
background: #fff;
border-radius: 26px;
position: absolute;
left: 2px;
top: 2px;
text-align: center;
transition: all 0.3s ease;
box-shadow: 0px 0px 6px -2px #111;
padding: 5px 0px;
}
.btn-color-mode-switch > .alert {
display: none;
background: #FF9800;
border: none;
color: #fff;
}
.btn-color-mode-switch input[type="checkbox"] {
cursor: pointer;
width: 50px;
height: 25px;
opacity: 0;
position: absolute;
top: 0;
z-index: 1;
margin: 0px;
}
.btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner {
background: #151515;
color: #fff;
}
.btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner:after {
content: attr(data-on);
left: 68px;
background: #3c3c3c;
}
.btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner:before {
content: attr(data-off);
right: auto;
left: 20px;
}
.btn-color-mode-switch input[type="checkbox"]:checked ~ .alert {
display: block;
}
.dark-preview {
background: #0d0d0d;
}
.white-preview {
background: #fff;
}컨트롤 · HTML · CSS · JS
코드를 고치고 컨트롤로 다듬어 보세요. 입력하는 대로 미리보기가 바뀝니다.

이 컴포넌트는 번들된 빌드로 실행되므로 여기서는 스크립트를 읽기만 할 수 있습니다. HTML과 CSS는 수정할 수 있고 전체 소스는 코드 탭에 있습니다.
모든 컴포넌트를 바로 편집하고, 컨트롤로 다듬고, 전체 소스를 내려받고, 고급 프롬프트를 복사하세요.
1회 결제 $49임시 가격
테스트 모드: 실제 결제는 이루어지지 않습니다.
무료: 미리보기, 복사 버튼, 레슨 설명.
빛과 어둠이 적힌 스위치는 태양과 달 아이콘 사이에 위치하므로 선택 사항이 추측되지 않고 철자로 표시됩니다.
헤더, 문서 사이트 및 설정의 테마 선택기.
data-off 및 data-on 레이블, 13px #424242 텍스트, 트랙 색상 및 슬라이드 거리를 변경합니다.
순수 HTML, CSS, JavaScript(프레임워크 없이)로 "밝은 어둠 라벨이 붙은 스위치" 컴포넌트를 만들어 주세요. 빛과 어둠이 적힌 스위치는 태양과 달 아이콘 사이에 위치하므로 선택 사항이 추측되지 않고 철자로 표시됩니다. 쓰는 곳: 헤더, 문서 사이트 및 설정의 테마 선택기. 다음 항목을 조정할 수 있게 해 주세요: data-off 및 data-on 레이블, 13px #424242 텍스트, 트랙 색상 및 슬라이드 거리를 변경합니다. 라이트와 다크 테마를 지원하고, prefers-reduced-motion에서는 정지 화면을 보여 주고, 글자는 잘 읽히고 컨트롤은 키보드로도 쓸 수 있게 해 주세요. 유료나 제한된 컴포넌트 라이브러리에서 복사하지 말고 직접 작성해 주세요.
조정, 접근성, 연동 단계까지 담은 긴 프롬프트입니다.