how to add tailwind responsive classes to apply

i have downloaded a template written with tailwind 3 and i am trying to change it to tailwind 4.3.3 and customize it .

trying to simplify header class but i just cant get the responsive classes to work with apply

 <header class="max-w-lg:px-4 max-w-lg:mr-auto absolute top-0 z-20 flex h-15 w-full bg-opacity-0 px-[5%] lg:justify-around">

@import "tailwindcss";

@theme {
  --font-1: "Chewy", sans-serif;
  --font-2: "Nunito", sans-serif;
}

body {
  @apply flex min-h-screen flex-col bg-black text-white font-1;
}

header {
 @apply  absolute top-0 z-20 flex h-15 w-full bg-opacity-0 px-[5%];

 @variant  max-w-lg {
   @apply  px-4 mr-auto;
  }

  @variant lg {
  @apply  justify-around;
  }
}

what am i doing wrong. theme and body works fine

reddit.com
u/unholy182000 — 12 days ago

1 aylık tabletimi değiştirmek istiyorum en kolay yol ne olur?

Merhaba 1 ay önce Samsung tab a11 tablet aldım özellikle kitap okumak ve çizgi roman okumak için fakat bu tabletin ppi değeri düşükmüş okuma zevki pek iyi değil daha yüksek ppi değerli nir tabletle değiştirmek istiyorum. Vatan bilgisayar, mediamarkt vs. gibi yerlerin eskiyi getir yeniyi götür kampanyalarına mı bakayım yoksa ikinci el sitelerden satmaya mı çalışayım yada bildiğiniz başka bir yol var mı?

reddit.com
u/unholy182000 — 2 months ago
▲ 0 r/fixit

Philips Bodygroom plastic broken

My philips bodygroom plastic tip is broken how can i fix it. Dont have any spare parts. I am thinking making a super glue extension or a hot silicone extension is that a good idea?

u/unholy182000 — 2 months ago

How to simulate spacebar pressing periodically without sudo access

Hello I'm working in a call center like workplace. The computer i work has ubuntu but i don't have sudo access in terminal. I can mount usb drives though. I also have access to google services like docs,drive,gemini etc.

When i receive a call i have to press spacebar to open the call. Is there any way i can do this without manually pressing spacebar. Gemini offers xdotool but it requires sudo access to install. My pc also have byobu terminal if it helps in anyway. Any help you can offer please?

reddit.com
u/unholy182000 — 3 months ago