tailwind use font from local files globally

@Juan Marcos’ answer is correct but slightly deprecated. As of v2.1.0, Tailwind recommends in their docs to use the @layer directive for loading local fonts: @tailwind base; @tailwind components; @tailwind utilities; @layer base { @font-face { font-family: Proxima Nova; font-weight: 400; src: url(/fonts/proxima-nova/400-regular.woff) format(“woff”); } @font-face { font-family: Proxima Nova; font-weight: 500; src: url(/fonts/proxima-nova/500-medium.woff) format(“woff”); … Read more

How to use Tailwind CSS with Next.js Image

There’s a discussion and related example over at the Next.js GitHub project. It sounds like that example achieves what you want to do. tl;dr: <div className=”h-64 w-96 relative”> // “relative” is required; adjust sizes to your liking <Image src={img.img} alt=”Picture of the author” layout=”fill” // required objectFit=”cover” // change to suit your needs className=”rounded-full” // … Read more

How to use CSS variables with Tailwind CSS

Now Tailwind supports CSS custom properties as arbitrary values since v3.0. :root { –text-color: red; –text-size: 5rem; } <script src=”https://cdn.tailwindcss.com”></script> <span class=”text-[color:var(–text-color)] text-[length:var(–text-size)] font-bold”> Hello world! </span>

CSS AutoComplete font size [duplicate]

EDIT: This doesn’t work for font-size anymore, and potentially more attributes moving forward How to change Chrome autocomplete styles on input: input { … font-family: $body-font; font-size: 1rem; font-weight: bold; color: #000; background-color: #fff; // Background color &:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; } // Font styles &:-webkit-autofill::first-line { font-family: $body-font; font-size: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)