Create custom tailwind.config.js file
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
screens: {
'sm': '640px',
'md': '768px',
'lg': '1024px',
'xl': '1280px',
'2xl': '1536px',
},
extend: {
colors: {
primary: '#3b82f6',
secondary: '#10b981',
},
fontFamily: {
sans: ['Inter', 'sans-serif'],
},
},
},
plugins: [],
}The Tailwind Config Generator tool helps you create a tailwind.config.js file with the most common customizations: custom colors (primary, secondary), font family, responsive breakpoints, dark mode, and prefix. Instead of having to read the documentation and write the config manually, you just need to adjust the visual options and copy the generated config. Especially useful when setting up a new project or needing to standardize Tailwind config for the team.
Tailwind CSS is the most popular CSS framework today, but customizing config can take time if you are not familiar with it. Each project often needs: custom brand colors, own font family, breakpoints suitable for the design. Instead of having to read docs and write config from scratch, this tool allows you to make intuitive adjustments and generate ready-to-use config. Especially useful for: (1) Quick new project setup; (2) Standardize configuration for the team; (3) Learn how to structure tailwind.config.js.
We not only design websites, but also help businesses build strong digital brands. Providing comprehensive website design services from design to SEO optimization. Please contact Mavis Digital immediately to create breakthrough, effective and sustainable technology solutions for your business in Ho Chi Minh.