Skip to content

Commit

Permalink
improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
Atipat Pankong committed Jun 23, 2024
1 parent 4d12e69 commit 4f880b3
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,14 @@ const gridConfig = () => {
return { gridTemplateColumns, gridColumnStart, gridColumnEnd }
}

const getGridClass = () => {
const result = []

for (let i = 14; i <= 169; i++) {
result.push(`col-start-${i}`, `col-end-${i}`)
}

return result
}

/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./public/**/*.html', './src/**/*.vue'],
safelist: getGridClass(),
safelist: [
{
pattern: /col-(start|end)-(.)*/,
},
],
darkMode: 'selector', // or 'media' or 'class'
theme: {
extend: {
Expand Down

0 comments on commit 4f880b3

Please sign in to comment.