Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

261
Vistas
In Tailwind's config, what is the difference between adding properties to theme VS theme.extend?

Tailwind's documentation on its configuration makes multiple uses of the extend property, but doesn't clarify the difference of making customizations on the theme property VS the theme.extend property.

module.exports = {
  content: ['./src/**/*.{html,js}'],
  theme: {
    colors: {
      'blue': '#1fb6ff',
      'purple': '#7e5bef',
      'pink': '#ff49db',
    },
    extend: {
      spacing: {
        '8xl': '96rem',
        '9xl': '128rem',
      },
    }
  },
}

What is the difference here? I've tested and it's possible to switch the colors and spacing properties around and they still work.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

It's pretty easy, extend extends default theme, while not using extend will completely override default theme for that property.

So in your example you will only have 3 colors in total, because all the default ones will be overridden.

But the spacing will be extended with additional values while preserving defaults too.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda