79232834

Date: 2024-11-28 06:57:20
Score: 1.5
Natty:
Report link

According to the documentation on Font Size (https://tailwindcss.com/docs/font-size#arbitrary-values)

You would need to use text-[...px] instead of font-size-[...px].

Something like

@layer components {
    .h1 {
        @apply sm:text-[33px] md:text-[35px] lg:text-[43px];
    }
}

should work.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Wessel van leeuwen