Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage with tailwind #280

Open
MuhammadM1998 opened this issue Oct 4, 2023 · 1 comment
Open

Usage with tailwind #280

MuhammadM1998 opened this issue Oct 4, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@MuhammadM1998
Copy link

🆒 Your use case

Update README to show usage with tailwind.

🆕 The solution you'd like

This is how I got it to work. The module adds the fallback fonts correctly but we need to tell tailwind the fallback font family name in order to actually use it.

// tailwind.config
module.exports = {
  theme: {
    extend: {
      fontFamily: {
		// For every font, provide another string in `${fontName} fallback` format
        plex: ["IBM Plex Sans Arabic", "IBM Plex Sans Arabic fallback"],
      },
    },
  },
};

🔍 Alternatives you've considered

No response

ℹ️ Additional info

I'd make a PR if the solution sounds good

@MuhammadM1998 MuhammadM1998 added the enhancement New feature or request label Oct 4, 2023
@Lambdac0re
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants