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

Commit c31ce4e

Browse files
SelemondevSelemondev
Selemondev
authored and
Selemondev
committed
chore: cleanup
1 parent b837094 commit c31ce4e

File tree

4 files changed

+28
-509
lines changed

4 files changed

+28
-509
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"simple-git-hooks": "^2.9.0",
3131
"taze": "^0.11.2",
3232
"typescript": "^5.1.6",
33-
"unbuild": "^1.2.1",
3433
"unplugin-vue-components": "^0.25.1",
3534
"vite": "^4.4.9",
3635
"vite-plugin-dts": "^3.5.1",

packages/nuxt-ui-vue/src/App.vue

+1-7
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,5 @@
22
</script>
33

44
<template>
5-
<div class="grid place-items-center min-h-screen w-full">
6-
<UAvatarGroup size="sm" :max="2">
7-
<UAvatar src="https://avatars.githubusercontent.com/u/739984?v=4" alt="benjamincanac" />
8-
<UAvatar src="https://avatars.githubusercontent.com/u/904724?v=4" alt="Atinux" />
9-
<UAvatar src="https://avatars.githubusercontent.com/u/7547335?v=4" alt="smarroufin" />
10-
</UAvatarGroup>
11-
</div>
5+
<div />
126
</template>

packages/nuxt-ui-vue/tailwind.config.js

-32
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,9 @@
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: {

0 commit comments

Comments
 (0)