UPD: Light color detection
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
:style="{backgroundColor: color.hex()}">
|
:style="{backgroundColor: color.hex()}">
|
||||||
<div
|
<div
|
||||||
ref="colorFieldText" class="w-full flex opacity-70"
|
ref="colorFieldText" class="w-full flex opacity-70"
|
||||||
:class="color.lighten(0.37).isLight() ? 'text-black selection:bg-black selection:text-white' : 'selection:bg-white selection:text-black'"
|
:class="color.isLight() ? 'text-black selection:bg-black selection:text-white' : 'selection:bg-white selection:text-black'"
|
||||||
style="transition: color 0.2s ease-in-out">
|
style="transition: color 0.2s ease-in-out">
|
||||||
<div>
|
<div>
|
||||||
<form @submit.prevent="onSubmitHueInput">
|
<form @submit.prevent="onSubmitHueInput">
|
||||||
|
|||||||
Reference in New Issue
Block a user