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

Adding a custom font with layer ? #1965

Open
seb-jean opened this issue Jan 23, 2025 · 0 comments
Open

Adding a custom font with layer ? #1965

seb-jean opened this issue Jan 23, 2025 · 0 comments

Comments

@seb-jean
Copy link

seb-jean commented Jan 23, 2025

Hi,

When adding a font (https://tailwindcss.com/docs/font-family#customizing-your-theme), would it be relevant to add in the documentation @import "./fonts" layer(base); ?

Which would give:

@import 'tailwindcss';
@import "./fonts" layer(base);

Or the following lines are enough ?

@import 'tailwindcss';
@import './fonts.css';

This had been indicated on https://tailwindcss.com/blog/2023-07-18-tailwind-connect-2023-recap.

Which would allow a separation of files and to still be able to see @import xxx layer(xxx); in another place in the documentation.

@seb-jean seb-jean changed the title Adding a custom font Adding a custom font with layer ? Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant