I am working on a webapp that exclusively uses Tailwind for the frontend, and I have constructed a simple sidebar for it like so:
<!--SIDEBAR Element (Tailwind)-->
<div
class="flex flex-col w-full py-8 m-auto text-gray-300 shadow-md justify-around bg-palegray space-y-12 rounded-xl"
>
<!--PENCIL BUTTON-->
<button
class="px-3 mx-auto w-full space-y-4 border-solid border-gray-400 border-r-4"
id="pencil-button"
>
<div class="flex justify-around" id="icon">
<svg xmlns="http://www.w3.org/2000/svg" class="w-8" viewBox="0 0 20 20" fill="currentColor">
<path
d="M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z" />
</svg>
</div>
<p class="text-xs">Draw</p>
</button>
<!--SQUARE BUTTON-->
<button class="px-3 mx-auto ...">
<!--Basically the same markup as the button above-->
</button>
<!--CIRCLE BUTTON-->
<button class="px-3 mx-auto ...">
<!--Basically the same markup as the button above-->
</button>
<!--SPRAY BUTTON-->
<button class="px-3 mx-auto ...">
<!--Basically the same markup as the button above-->
</button>
<!--PATTERN BUTTON-->
<button class="px-3 mx-auto ...">
<!--Basically the same markup as the button above-->
</button>
<!--TEXTURE BUTTON-->
<button class="px-3 mx-auto ...">
<!--Basically the same markup as the button above-->
</button>
</div>
Unfortunately, while it works on Firefox and Chromium-based browsers, it completely breaks on all webkit browsers (such as epiphany and safari). This is what it looks like there:
The problem apparently seems to be the space-y-4 class, which uses css variables and may not work on webkit-based browsers. However, removing this class did not solve the issue. Additionally, I re-ran tailwind to produce vendor prefixes for webkit, but that has not helped solve the issue.