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

Commit

Permalink
Merge pull request #127 from selemondev/cleanup
Browse files Browse the repository at this point in the history
chore: cleanup
  • Loading branch information
selemondev authored Sep 10, 2023
2 parents 9bb118f + c31ce4e commit d6df086
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 509 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"simple-git-hooks": "^2.9.0",
"taze": "^0.11.2",
"typescript": "^5.1.6",
"unbuild": "^1.2.1",
"unplugin-vue-components": "^0.25.1",
"vite": "^4.4.9",
"vite-plugin-dts": "^3.5.1",
Expand Down
8 changes: 1 addition & 7 deletions packages/nuxt-ui-vue/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,5 @@
</script>

<template>
<div class="grid place-items-center min-h-screen w-full">
<UAvatarGroup size="sm" :max="2">
<UAvatar src="https://avatars.githubusercontent.com/u/739984?v=4" alt="benjamincanac" />
<UAvatar src="https://avatars.githubusercontent.com/u/904724?v=4" alt="Atinux" />
<UAvatar src="https://avatars.githubusercontent.com/u/7547335?v=4" alt="smarroufin" />
</UAvatarGroup>
</div>
<div />
</template>
32 changes: 0 additions & 32 deletions packages/nuxt-ui-vue/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,9 @@
/* eslint-disable no-unused-expressions */
import tailwindColors from './node_modules/tailwindcss/colors'

const colorSafeList = []

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) {
colorSafeList.push(`text-${colorName}-${shade}`),
colorSafeList.push(`accent-${colorName}-${shade}`),
colorSafeList.push(`bg-${colorName}-${shade}`),
colorSafeList.push(`hover:enabled:bg-${colorName}-${shade}`),
colorSafeList.push(`focus:bg-${colorName}-${shade}`),
colorSafeList.push(`ring-${colorName}-${shade}`),
colorSafeList.push(`focus:ring-${colorName}-${shade}`),
colorSafeList.push(`border-${colorName}-${shade}`)
}
})
}
}
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
darkMode: 'class',
safelist: colorSafeList,
theme: {
extend: {
colors: tailwindColors,
backgroundColor: ['disabled'],
textColor: ['disabled'],
fontFamily: {
Expand Down
Loading

0 comments on commit d6df086

Please sign in to comment.