added changes layout

This commit is contained in:
markaguilar committed 2020-09-27 20:09:41 +08:00
1 parent 405993a258
commit 4c13d209b5
3 files changed
+357 -491

No files matched your search

+29
View File
@@ -1,10 +1,16 @@
module.exports = {
corePlugins: {
container: false,
},
future: {
// removeDeprecatedGapUtilities: true,
// purgeLayersByDefault: true,
},
purge: [],
theme: {
container: {
center: true,
},
extend: {
fontsFamily: {
body: ['PT Sans']
@@ -67,5 +73,28 @@ module.exports = {
},
plugins: [
require('@tailwindcss/ui'),
({ addComponents, theme }) => {
addComponents({
".container": {
marginInline: "auto",
paddingInline: theme("spacing.4"),
maxWidth: theme("screens.sm"),
// Breakpoints
"@screen sm": {
maxWidth: theme("screens.sm"),
},
"@screen md": {
maxWidth: theme("screens.md"),
},
"@screen lg": {
maxWidth: theme("screens.lg"),
},
"@screen xl": {
maxWidth: theme("screens.xl"),
},
},
});
},
],
}