Created
June 17, 2020 14:12
-
-
Save mmikhan/5aa934513388a6e48f44e63648a261d8 to your computer and use it in GitHub Desktop.
Tailwind CSS `grid-template-columns: auto-fit; grid-template-columns: auto-fill;` and `grid-template-rows: auto-fit; grid-template-rows: auto-fill;`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
purge: [], | |
theme: { | |
extend: { | |
gridTemplateColumns: { | |
'auto-fit': 'repeat(auto-fit, minmax(0, 1fr))', | |
'auto-fill': 'repeat(auto-fill, minmax(0, 1fr))', | |
}, | |
gridTemplateRows: { | |
'auto-fit': 'repeat(auto-fit, minmax(0, 1fr))', | |
'auto-fill': 'repeat(auto-fill, minmax(0, 1fr))', | |
}, | |
}, | |
}, | |
variants: {}, | |
plugins: [], | |
}; |
Thank you.
Thnx) 👍
Thanks, this is so useful and I believe it should be added to tailwind's default configuration. 👍 @adamwathan
This deserves to be in Tailwind v3.
Thanks man!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It will generate the following CSS classes:
You can use the relevant classes like the following:
Or