Skip to content

Instantly share code, notes, and snippets.

@DanielHemmati
Forked from mmikhan/tailwind.config.js
Created May 3, 2022 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielHemmati/9dd9619e39fb547ca4e93ce0297d3a5b to your computer and use it in GitHub Desktop.
Save DanielHemmati/9dd9619e39fb547ca4e93ce0297d3a5b 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;`
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: [],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment