Skip to content

Commit

Permalink
feat(tailwind): add slider-thumb variant
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Dec 28, 2023
1 parent 4d4590e commit ae09fda
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
const plugin = require('tailwindcss/plugin')

module.exports = {
content: ['./src/**/*.{html,ts,tsx}'],
Expand Down Expand Up @@ -138,6 +139,13 @@ module.exports = {
require('tailwind-scrollbar-hide'),
require('@tailwindcss/forms')({
strategy: 'class' // only generate classes
}),
plugin(({ addVariant }) => {
addVariant('slider-thumb', [
'&::-webkit-slider-thumb',
'&::-moz-range-thumb',
'&::slider-thumb'
])
})
]
}

0 comments on commit ae09fda

Please sign in to comment.