Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
remove warnings for tailwind minification (#10414)
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya-mitra authored Jun 19, 2024
1 parent 32316b5 commit 84adaf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion packages/ui/src/primitives/tailwind/Slider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ const Slider = ({ value, min = 0, max = 100, step = 1, width = 200, onChange, on
const gradientPercent = Math.round(((value - min) / (max - min)) * 100)

const sliderStyle = {
'--tw-shadow': `-${width}px 0 0 ${width}px #214AA6 !important`,
background: `linear-gradient(to right, #214AA6 ${gradientPercent}%, #214AA6 ${gradientPercent}%)`
}

Expand Down
10 changes: 4 additions & 6 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,8 @@ module.exports = {
}
}
},
purge: {
safelist: [
...Array.from({ length: 101 }, (_, i) => `via-[${i}%]`),
...Array.from({ length: 101 }, (_, i) => `to-[${i}%]`)
]
}
safelist: [
...Array.from({ length: 101 }, (_, i) => `via-[${i}%]`),
...Array.from({ length: 101 }, (_, i) => `to-[${i}%]`)
]
}

0 comments on commit 84adaf4

Please sign in to comment.