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

Add a pwa/browser modifier to the tailwind config #157

Open
johnpangalos opened this issue Oct 2, 2022 · 0 comments
Open

Add a pwa/browser modifier to the tailwind config #157

johnpangalos opened this issue Oct 2, 2022 · 0 comments

Comments

@johnpangalos
Copy link
Owner

Add a modifier that is just applied to pwa/browsers to tailwind.

using the following media queries:

/* It targets only the app used within the browser */
@media (display-mode: browser) {
}
/* It targets only the app used with a system icon in standalone mode */
@media (display-mode: standalone) {
}

And making a plugin:
https://tailwindcss.com/docs/plugins#adding-variants

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