Different styles in Chrome vs Firefox (font-medium) #3083
AdamowiczPawel
started this conversation in
General
Replies: 1 comment
-
This is happening to me too. I managed to make it look slightly more similar by increasing the weight of tailwind.config.js: module.exports = {
theme: {
extend: {
+ fontWeight: {
+ medium: "501",
+ },
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a problem with displaying styles between browsers (Firefox vs Chrome),
Website https://ui.shadcn.com/ looks the same in Firefox and Chrome.
When I use components from shadcn (after installation according to the Vite instructions), for example, buttons look different in Firefox (font weight is not taken into account).
The problem occurs with font-medium style. As far as I found, this problem is probably related to the lack of font-weight 500.
I tried adding font to index.css however, this does not solve the problem.
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
I believe this is Tailwind problem but does anyone know how to bypass this difference and why there is no such problem on https://ui.shadcn.com?
Best regards
Beta Was this translation helpful? Give feedback.
All reactions