Skip to content
Discussion options

You must be logged in to vote

There are several potential issues and considerations with your Tailwind CSS and Next.js configuration, especially regarding Safari compatibility. Few things to check 😃

1. CSS Variable Usage in Tailwind Config Colors

You’re using Tailwind custom colors like:

border: "hsl(var(--border))",
input: "hsl(var(--input))",
...

This means your CSS uses variables (--border, etc.) declared in globals.css.
Potential issue:

  • CSS Variables require correct scoping and compatibility: Some older Safari versions don’t handle custom properties (var(--something)) well, especially inside HSL/Color functions or if the variable is undefined at the time of style application.
  • If styles break on Safari but are fin…

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@zainali0303
Comment options

Comment options

You must be logged in to vote
1 reply
@CodeByStella
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by CodeByStella
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@zainali0303
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Programming Help Discussions around programming languages, open source and software development
5 participants