Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# Changelog


## v0.0.7

[compare changes](https://github.com/selemondev/nuxt-ui-vue/compare/v0.0.9-beta.0...v0.0.7)

### 🩹 Fixes

- **app:** Button theme ([7bd2c72](https://github.com/selemondev/nuxt-ui-vue/commit/7bd2c72))
- **app:** Input theme ([397b13f](https://github.com/selemondev/nuxt-ui-vue/commit/397b13f))

### ❤️ Contributors

- Selemondev <selemondev@Selemondevs-MacBook-Pro.local>

## v0.0.6

[compare changes](https://github.com/selemondev/nuxt-ui-vue/compare/v0.0.5...v0.0.6)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nuxt-ui/vue-monorepo",
"version": "0.0.6",
"version": "0.0.7",
"private": false,
"scripts": {
"build": "rimraf packages/*/{dist,es,lib} && nr -r -F \"./packages/nuxt-ui-vue\" build",
Expand Down Expand Up @@ -44,4 +44,4 @@
"pnpm lint:fix"
]
}
}
}
2 changes: 1 addition & 1 deletion packages/nuxt-ui-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuxt-ui-vue",
"version": "0.0.9-beta.0",
"version": "0.0.9-beta.1",
"private": false,
"exports": {
".": {
Expand Down
34 changes: 1 addition & 33 deletions packages/nuxt-ui-vue/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,47 +1,15 @@
/* 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: {
Roboto: 'Roboto',
},
},
},
plugins: [require('@tailwindcss/forms')],
plugins: [],
}