Skip to content

Instantly share code, notes, and snippets.

@rakarangga
Forked from diegod3v/index.css
Created November 10, 2021 06:49
Show Gist options
  • Select an option

  • Save rakarangga/41f87a5acde59e24e5b64686fe991290 to your computer and use it in GitHub Desktop.

Select an option

Save rakarangga/41f87a5acde59e24e5b64686fe991290 to your computer and use it in GitHub Desktop.
Configuración básica tailwindcss
@tailwind base;
/* estilos base (aplicados a los elementos) */
@tailwind components;
/* aquí van nuestras clases de componentes
(extraidos, podemos usar @apply para
aplicar estilos de tailwind */
.btn-blue {
@apply bg-blue-500 text-white font-bold py-2 px-4 rounded;
}
@tailwind utilities;
/* nuestras utilidades extra */
module.exports = {
plugins: [
'tailwindcss',
'postcss-flexbugs-fixes',
[
'postcss-preset-env',
{
autoprefixer: {
flexbox: 'no-2009',
},
stage: 3,
features: {
'custom-properties': false,
},
},
],
],
}
module.exports = {
future: {
removeDeprecatedGapUtilities: true,
},
purge: ['./components/**/*.{js,ts,jsx,tsx}', './pages/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
'accent-1': '#333',
},
},
},
variants: {},
plugins: [],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment