Include tailwind & the classes that jsonforms-primevue uses
This commit is contained in:
parent
da6f1b8281
commit
7f6f1110e0
630
console/package-lock.json
generated
630
console/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -19,14 +19,17 @@
|
|||||||
"@jsonforms/vanilla-renderers": "^3.7.0",
|
"@jsonforms/vanilla-renderers": "^3.7.0",
|
||||||
"@jsonforms/vue": "^3.7.0",
|
"@jsonforms/vue": "^3.7.0",
|
||||||
"@jsonforms/vue-vanilla": "^3.7.0",
|
"@jsonforms/vue-vanilla": "^3.7.0",
|
||||||
"@primeuix/themes": "^1.0.0",
|
"@primeuix/themes": "^1.2.5",
|
||||||
"@primevue/core": "^4.2.5",
|
"@primevue/core": "^4.2.5",
|
||||||
|
"@tailwindcss/vite": "^4.2.1",
|
||||||
"chart.js": "^4.4.7",
|
"chart.js": "^4.4.7",
|
||||||
"codemirror": "^6.0.2",
|
"codemirror": "^6.0.2",
|
||||||
"jsonforms-primevue": "github:kobbejager/jsonforms-primevue",
|
"jsonforms-primevue": "github:kobbejager/jsonforms-primevue",
|
||||||
"mqtt": "^5.15.0",
|
"mqtt": "^5.15.0",
|
||||||
"primeicons": "^7.0.0",
|
"primeicons": "^7.0.0",
|
||||||
"primevue": "^4.2.5",
|
"primevue": "^4.2.5",
|
||||||
|
"tailwindcss": "^4.2.1",
|
||||||
|
"tailwindcss-primeui": "^0.6.1",
|
||||||
"vue": "^3.4.27"
|
"vue": "^3.4.27"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
@import "primeicons/primeicons.css";
|
@import "primeicons/primeicons.css";
|
||||||
|
|
||||||
|
@import "tailwindcss";
|
||||||
|
|
||||||
html {
|
html {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
|||||||
34
console/src/tailwind.config.js
Normal file
34
console/src/tailwind.config.js
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
/** tailwind.config.js */
|
||||||
|
module.exports = {
|
||||||
|
content: [
|
||||||
|
"./index.html",
|
||||||
|
"./src/**/*.{vue,js,ts,jsx,tsx}"
|
||||||
|
],
|
||||||
|
theme: {
|
||||||
|
extend: {},
|
||||||
|
},
|
||||||
|
safelist: [
|
||||||
|
'text-red-500',
|
||||||
|
'text-green-500',
|
||||||
|
'text-yellow-500',
|
||||||
|
'mb-2',
|
||||||
|
'italic',
|
||||||
|
'text-sm',
|
||||||
|
'p-2',
|
||||||
|
'rounded-md',
|
||||||
|
'bg-white',
|
||||||
|
'bg-gray-50',
|
||||||
|
'gap-8',
|
||||||
|
'text-sm',
|
||||||
|
'flex',
|
||||||
|
'flex-col',
|
||||||
|
'gap-8',
|
||||||
|
'font-bold',
|
||||||
|
'mb-2',
|
||||||
|
'text-red-500',
|
||||||
|
'italic',
|
||||||
|
'text-sm',
|
||||||
|
// Add any other classes you know jsonforms-primevue uses
|
||||||
|
],
|
||||||
|
plugins: [],
|
||||||
|
}
|
||||||
@ -2,11 +2,13 @@ import { defineConfig } from "vite";
|
|||||||
import vue from "@vitejs/plugin-vue";
|
import vue from "@vitejs/plugin-vue";
|
||||||
import Components from 'unplugin-vue-components/vite';
|
import Components from 'unplugin-vue-components/vite';
|
||||||
import { PrimeVueResolver } from '@primevue/auto-import-resolver';
|
import { PrimeVueResolver } from '@primevue/auto-import-resolver';
|
||||||
|
import tailwindcss from '@tailwindcss/vite'
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
vue(),
|
||||||
|
tailwindcss(),
|
||||||
Components({
|
Components({
|
||||||
resolvers: [
|
resolvers: [
|
||||||
PrimeVueResolver()
|
PrimeVueResolver()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user