Once you have installed tailwindcss or installed one of our website template, you can follow the configuration steps.
The official Tailwind CSS IntelliSense extension for Visual Studio Code enhances the Tailwind development experience by providing users with advanced features such as autocomplete, syntax highlighting, and linting.
Because Tailwind is a framework for building bespoke user interfaces, it has been designed from the ground up with customization in mind.
By default, Tailwind will look for an optional tailwind.config.js
file at the root of your project where you can define any customizations.
By default, here how the file looks like after an installation. Your's might be different if you are using our website template.
module.exports = {
content: [],
theme: {
extend: {},
},
plugins: [],
}
From here, you can customize a varitey of options like font-sizes, typography, responsive & hover variants and lot more.
Here's how a customized config file would look like:
module.exports = {
content: ['./src/**/*.{html,js}'],
theme: {
colors: {
'blue': '#1fb6ff',
'purple': '#7e5bef',
'pink': '#ff49db',
'orange': '#ff7849',
'green': '#13ce66',
'yellow': '#ffc82c',
'gray-dark': '#273444',
'gray': '#8492a6',
'gray-light': '#d3dce6',
},
fontFamily: {
sans: ['Graphik', 'sans-serif'],
serif: ['Merriweather', 'serif'],
},
extend: {
spacing: {
'8xl': '96rem',
'9xl': '128rem',
},
borderRadius: {
'4xl': '2rem',
}
}
}
}
More configuration option can be found at the official docs