Home
001 - Basic
002 - Variables
003 - Layer
🔥 004 - Nested Rules
010 - Grid
011 - Grid Complex
012 - Grid Contents
013 - Grid Logos
014 - Grid Spanning
020 - Container
021 - Container Style Queries
030 - Focus Visible
031 - Focus Within
040 - Color Scheme
🔥 041 - Color Light-Dark
042 - Color Mix
043 - Color Mix Mixer
044 - Color Mix Palette
🔥 045 - Relative Color
🔥 046 - Relative Color Palette
050 - Mask Image
051 - Background Clip Text
060 - Accent Color
070 - Has
🔥 071 - Starting Style
🔥 072 - Transition Behavior
090 - Text Wrap
🔥 100 - Popover
🔥 110 - scroll-driven animations
999 - Playground
Loading ...
CSS
body { --accent-color: unset; } input, progress { accent-color: var(--accent-color); }
HTML
<div class="accent-grid"> <div> <div class="accent-section"> <div class="accent-group"> <div class="accent-check"> <label for="checkbox_345615305_1"> <input id="checkbox_345615305_1" name="checkbox_345615305" type="checkbox" checked="checked" /> Checkbox 1 </label> </div> <div class="accent-check"> <label for="checkbox_345615305_2"> <input id="checkbox_345615305_2" name="checkbox_345615305" type="checkbox" /> Checkbox 2 </label> </div> </div> <div class="accent-group"> <div class="accent-check"> <label for="radio_345615305_1"> <input id="radio_345615305_1" name="radio_345615305" type="radio" checked="checked" /> Radio 1 </label> </div> <div class="accent-check"> <label for="radio_345615305_2"> <input id="radio_345615305_2" name="radio_345615305" type="radio" /> Radio 2 </label> </div> </div> <div class="accent-group"> <label for="range_345615305">Range</label> <input id="range" name="range_345615305" type="range" /> </div> <div class="accent-group"> <label for="progress">Progress</label> <progress id="progress" name="progress_345615305" max="100" value="70">70%</progress> </div> </div> </div> <div style="--accent-color: #9c27b0;"> <div class="accent-section"> <div class="accent-group"> <div class="accent-check"> <label for="checkbox_1466431454_1"> <input id="checkbox_1466431454_1" name="checkbox_1466431454" type="checkbox" checked="checked" /> Checkbox 1 </label> </div> <div class="accent-check"> <label for="checkbox_1466431454_2"> <input id="checkbox_1466431454_2" name="checkbox_1466431454" type="checkbox" /> Checkbox 2 </label> </div> </div> <div class="accent-group"> <div class="accent-check"> <label for="radio_1466431454_1"> <input id="radio_1466431454_1" name="radio_1466431454" type="radio" checked="checked" /> Radio 1 </label> </div> <div class="accent-check"> <label for="radio_1466431454_2"> <input id="radio_1466431454_2" name="radio_1466431454" type="radio" /> Radio 2 </label> </div> </div> <div class="accent-group"> <label for="range_1466431454">Range</label> <input id="range" name="range_1466431454" type="range" /> </div> <div class="accent-group"> <label for="progress">Progress</label> <progress id="progress" name="progress_1466431454" max="100" value="70">70%</progress> </div> </div> </div> <div style="--accent-color: #03a9f4;"> <div class="accent-section"> <div class="accent-group"> <div class="accent-check"> <label for="checkbox_1706722856_1"> <input id="checkbox_1706722856_1" name="checkbox_1706722856" type="checkbox" checked="checked" /> Checkbox 1 </label> </div> <div class="accent-check"> <label for="checkbox_1706722856_2"> <input id="checkbox_1706722856_2" name="checkbox_1706722856" type="checkbox" /> Checkbox 2 </label> </div> </div> <div class="accent-group"> <div class="accent-check"> <label for="radio_1706722856_1"> <input id="radio_1706722856_1" name="radio_1706722856" type="radio" checked="checked" /> Radio 1 </label> </div> <div class="accent-check"> <label for="radio_1706722856_2"> <input id="radio_1706722856_2" name="radio_1706722856" type="radio" /> Radio 2 </label> </div> </div> <div class="accent-group"> <label for="range_1706722856">Range</label> <input id="range" name="range_1706722856" type="range" /> </div> <div class="accent-group"> <label for="progress">Progress</label> <progress id="progress" name="progress_1706722856" max="100" value="70">70%</progress> </div> </div> </div> <div style="--accent-color: #7cb342;"> <div class="accent-section"> <div class="accent-group"> <div class="accent-check"> <label for="checkbox_733774176_1"> <input id="checkbox_733774176_1" name="checkbox_733774176" type="checkbox" checked="checked" /> Checkbox 1 </label> </div> <div class="accent-check"> <label for="checkbox_733774176_2"> <input id="checkbox_733774176_2" name="checkbox_733774176" type="checkbox" /> Checkbox 2 </label> </div> </div> <div class="accent-group"> <div class="accent-check"> <label for="radio_733774176_1"> <input id="radio_733774176_1" name="radio_733774176" type="radio" checked="checked" /> Radio 1 </label> </div> <div class="accent-check"> <label for="radio_733774176_2"> <input id="radio_733774176_2" name="radio_733774176" type="radio" /> Radio 2 </label> </div> </div> <div class="accent-group"> <label for="range_733774176">Range</label> <input id="range" name="range_733774176" type="range" /> </div> <div class="accent-group"> <label for="progress">Progress</label> <progress id="progress" name="progress_733774176" max="100" value="70">70%</progress> </div> </div> </div> </div> <style> label { display: block; } .accent-grid { margin: 0 auto; max-width: 600px; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .accent-section { padding: 1rem; display: grid; grid-template-columns: 1fr; gap: 1rem; border: 1px dotted; } </style>
-a
+A
Off
1/2
1/1
2/1
Zoom
Document
Container