Created
June 11, 2022 10:25
-
-
Save gsans/13b7def1262f34b1bced63bce9b50b0b to your computer and use it in GitHub Desktop.
codez053: set media query breakpoints
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
const defaultTheme = require('tailwindcss/defaultTheme') | |
module.exports = { | |
purge: { content: ['./public/**/*.html', './src/**/*.vue'] }, | |
darkMode: false, // or 'media' or 'class' | |
theme: { | |
container: { | |
center: true | |
}, | |
maxHeight: { | |
'full': '85%', | |
}, | |
extend: { | |
fontFamily: { | |
sans: [...defaultTheme.fontFamily.sans] | |
}, | |
colors: { | |
'blue': '#1DA1F2', | |
'darkblue': '#2795D9', | |
'lightblue': '#EFF9FF', | |
'dark': '#657786', | |
'light': '#AAB8C2', | |
'lighter': '#E1E8ED', | |
'lightest': '#F5F8FA', | |
} | |
}, | |
screens: { | |
'sm': '360px', | |
// => @media (min-width: 360px) { ... } | |
'md': '768px', | |
// => @media (min-width: 768px) { ... } | |
'lg': '1024px', | |
// => @media (min-width: 1024px) { ... } | |
'xl': '1280px', | |
// => @media (min-width: 1280px) { ... } | |
'2xl': '1536px', | |
// => @media (min-width: 1536px) { ... } | |
}, | |
}, | |
variants: { | |
extend: {}, | |
}, | |
plugins: [], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment