Responsive

To control the borders between elements at a specific breakpoint, add a {screen}: prefix to any existing divide utility. For example, adding the class md:divide-x-8 to an element would apply the divide-x-8 utility at medium screen sizes and above.

For more information about Tailwind's responsive design features, check out the Responsive Design documentation.

1

2

3

1

2

3

1

2

3

1

2

3

1

2

3

Customizing

Border Colors

You can customize your color palette by editing the theme.colors section of your tailwind.config.js file, customize just your border and divide colors together using the theme.borderColor section, or customize only the divide colors using the theme.divideColor section.

// tailwind.config.js

module.exports = {

theme: {

divideColor: theme => ({

- ...theme('borderColors'),

+ 'primary': '#3490dc',

+ 'secondary': '#ffed4a',

+ 'danger': '#e3342f',

})

}

}

Responsive and pseudo-class variants

By default, only responsive variants are generated for divide color utilities.

You can control which variants are generated for the divide color utilities by modifying the divideColor property in the variants section of your tailwind.config.js file.

For example, this config will also generate hover and focus variants:

// tailwind.config.js

module.exports = {

variants: {

// ...

- divideColor: ['responsive'],

+ divideColor: ['responsive', 'hover', 'focus'],

}

}

Disabling

If you don't plan to use the divide color utilities in your project, you can disable them entirely by setting the divideColor property to false in the corePlugins section of your config file: