Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

Commit cb31031

Browse files
SelemondevSelemondev
Selemondev
authored and
Selemondev
committedSep 2, 2023
chore(app): clean up
1 parent 356063b commit cb31031

File tree

1 file changed

+1
-33
lines changed

1 file changed

+1
-33
lines changed
 
+1-33
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,15 @@
1-
/* eslint-disable no-unused-expressions */
2-
import tailwindColors from './node_modules/tailwindcss/colors'
3-
4-
const colorSafeList = []
5-
6-
const deprecated = ['lightBlue', 'warmGray', 'trueGray', 'coolGray', 'blueGray']
7-
8-
for (const colorName in tailwindColors) {
9-
if (deprecated.includes(colorName))
10-
continue
11-
12-
const shades = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900]
13-
14-
const pallette = tailwindColors[colorName]
15-
16-
if (typeof pallette === 'object') {
17-
shades.forEach((shade) => {
18-
if (shade in pallette) {
19-
colorSafeList.push(`text-${colorName}-${shade}`),
20-
colorSafeList.push(`accent-${colorName}-${shade}`),
21-
colorSafeList.push(`bg-${colorName}-${shade}`),
22-
colorSafeList.push(`hover:enabled:bg-${colorName}-${shade}`),
23-
colorSafeList.push(`focus:bg-${colorName}-${shade}`),
24-
colorSafeList.push(`ring-${colorName}-${shade}`),
25-
colorSafeList.push(`focus:ring-${colorName}-${shade}`),
26-
colorSafeList.push(`border-${colorName}-${shade}`)
27-
}
28-
})
29-
}
30-
}
311
/** @type {import('tailwindcss').Config} */
322
module.exports = {
333
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
344
darkMode: 'class',
35-
safelist: colorSafeList,
365
theme: {
376
extend: {
38-
colors: tailwindColors,
397
backgroundColor: ['disabled'],
408
textColor: ['disabled'],
419
fontFamily: {
4210
Roboto: 'Roboto',
4311
},
4412
},
4513
},
46-
plugins: [require('@tailwindcss/forms')],
14+
plugins: [],
4715
}

0 commit comments

Comments
 (0)