|
<div class="bg-gray-100 block min-h-screen"> |
|
|
|
<div class="bg-gray-900 border-b-1 mb-4 border-gray-500 text-white p-4 shadow-lg"> |
|
<h1 class="text-2xl uppercase font-bold">Tailwind Accessibility Config 🎨</h1> |
|
<div class="text-xs"> |
|
Github: <a href="https://github.com/optimizasean/TailwindAccessibilityConfig" target="_blank" class="font-mono">optimizasean/TailwindAccessibilityConfig |
|
</a> |
|
</div> |
|
</div> |
|
|
|
<div class="overflow-auto block" x-data="wheel()" x-cloak> |
|
|
|
<label class="p-2"><input type="checkbox" x-model="mode" /> mode <span x-text="mode==true?'rgb':'hex'"></span></label> |
|
|
|
<div class="space-y-1 h-auto text-xs p-2 mx-auto items-center flex flex-row items-start lg:block"> |
|
|
|
<template x-for="set in Object.entries(colorset)" :key="set"> |
|
<div class="p-2 flex flex-col"> |
|
|
|
<div x-text="set[0]" class="text-center lg:text-left block font-bold text-sm mb-2 w-40"></div> |
|
|
|
<div class="flex flex-col lg:flex-row items-center space-y-2 lg:space-y-0 lg:space-x-1"> |
|
<template x-for="color in Object.entries(Object.assign({'010':null,'020':null,'030':null,'040':null,'050':null,'100':null,'200':null,'300':null,'400':null,'500':null,'600':null,'700':null,'800':null,'900':null}, set[1])).sort()" :key="color"> |
|
<div class="p-1 shadow bg-white flex items-center rounded-full hover:bg-transparent hover:text-white groupedcolor transition-all w- duration-300" :class="{'hascolor': !!color[1]}"> |
|
<div class="flex items-center leading-normal mx-1"> |
|
<span class="font-mono groupedcolor-key" x-text="color[0]"></span> |
|
<span class="font-mono hidden groupedcolor-color z-1 select-all w-auto flex-grow-1 truncate" |
|
x-text="mode ? hexToRgb(color[1]) : color[1]" |
|
></span> |
|
</div> |
|
<div class="ml-auto block w-6 h-6 rounded-full shadow-inner flex-shrink-0 groupedcolor-swatch z-0 transition duration-100 ease-out" |
|
:style="`background-color: ${color[1]};`" |
|
></div> |
|
</div> |
|
</template> |
|
</div> |
|
|
|
</div> |
|
</template> |
|
|
|
</div> |
|
</div> |
|
</div> |