denoland / fresh

The next-gen web framework.
https://fresh.deno.dev
MIT License
12.65k stars 655 forks source link

Double-digit tailwindcss colors are not rendered in html #2773

Closed canadaduane closed 3 days ago

canadaduane commented 3 days ago

When I use a triple-digit color, everything is fine:

   <span class="text-sky-100">Hello World</span>

   /// renders as a span with .text-sky-100 class in html

But when I use a double-digit color, the class does not render in html:

   <span class="text-sky-90">Hello World</span>

   /// the .text-sky-90 class is missing

I can see that the color exists in tailwindcss, (and I have not customized my palette in config):

import colors from "tailwindcss/colors";

console.log("sky-50", colors.sky[50]);
# -> #f0f9ff

Versions:

    "@fresh/plugin-tailwind": "jsr:@fresh/plugin-tailwind@^0.0.1-alpha.7",
    "fresh": "jsr:@fresh/core@^2.0.0-alpha.25",
canadaduane commented 3 days ago

I spoke too soon. The text editor suggests 'text-sky-90' exists, but it does not. 'text-sky-50' does, however.