Automatic contrast color picking (fixes #43)

This commit is contained in:
daudix
2024-12-23 22:48:34 +03:00
parent b4734dd6e1
commit 08860f5974
8 changed files with 25 additions and 98 deletions

View File

@ -667,19 +667,10 @@ With `centered` and `big` classes:
<!-- For the demo purposes only -->
<div id="color-picker-container">
<small>Accent color:</small>
<br />
<input id="color-picker-light" type="color" value="#ff7800" />
<label for="color-picker-light">Light theme</label>
<br />
<input id="color-picker-dark" type="color" value="#ffa348" />
<label for="color-picker-dark">Dark theme</label>
<br />
<small>Fix contrast:</small>
<br />
<input id="contrast-color-light" class="switch" type="checkbox" />
<label for="contrast-color-light">Light theme</label>
<br />
<input id="contrast-color-dark" class="switch" type="checkbox" checked />
<label for="contrast-color-dark">Dark theme</label>
</div>
<!-- End -->