Skip to content

Commit

Permalink
chore(app): update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Selemondev authored and Selemondev committed Jul 30, 2023
1 parent 588d1d7 commit 3082fa9
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 61 deletions.
5 changes: 1 addition & 4 deletions packages/windi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@
},
"dependencies": {
"@heroicons/vue": "^2.0.18",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.27",
"tailwind-merge": "^1.14.0",
"tailwindcss": "^3.3.3"
"tailwind-merge": "^1.14.0"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.8",
Expand Down
41 changes: 1 addition & 40 deletions packages/windi/tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -1,40 +1 @@
import tailwindColors from './node_modules/tailwindcss/colors'

const colorSafeList = []

// Skip these to avoid a load of deprecated warnings when tailwind starts up
const deprecated = ['lightBlue', 'warmGray', 'trueGray', 'coolGray', 'blueGray']

for (const colorName in tailwindColors) {
if (deprecated.includes(colorName))
continue

const shades = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900]

const pallette = tailwindColors[colorName]

if (typeof pallette === 'object') {
shades.forEach((shade) => {
if (shade in pallette) {
// eslint-disable-next-line no-unused-expressions
colorSafeList.push(`text-${colorName}-${shade}`),
colorSafeList.push(`accent-${colorName}-${shade}`),
colorSafeList.push(`bg-${colorName}-${shade}`),
colorSafeList.push(`hover:bg-${colorName}-${shade}`),
colorSafeList.push(`focus:bg-${colorName}-${shade}`),
colorSafeList.push(`focus:ring-${colorName}-${shade}`),
colorSafeList.push(`border-${colorName}-${shade}`)
}
})
}
}
/** @type {import('tailwindcss').Config} */
export const safelist = colorSafeList
export const content = ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}']
export const theme = {
extend: {
colors: tailwindColors,
},
}
export const plugins = [require('@windi-ui/tailwind-config/tailwind.config')]
// module.exports = require('@windi-ui/tailwind-config/tailwind.config')
module.exports = require('@windi-ui/tailwind-config/tailwind.config')
40 changes: 23 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3082fa9

Please sign in to comment.