Skip to content

Commit 0393159

Browse files
authored
Merge pull request #195 from oku-ui/tailwindcss
chore: unocss to tailwindcss
2 parents 6addaca + 9e70f42 commit 0393159

File tree

13 files changed

+581
-388
lines changed

13 files changed

+581
-388
lines changed

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"@storybook/testing-library": "^0.2.0",
4646
"@storybook/vue3": "^7.0.26",
4747
"@storybook/vue3-vite": "^7.0.26",
48-
"@unocss/preset-icons": "^0.53.5",
4948
"@vitejs/plugin-vue": "^4.2.3",
5049
"@vitest/coverage-v8": "^0.33.0",
5150
"@vue/test-utils": "^2.4.0",
@@ -71,7 +70,6 @@
7170
"turbo": "^1.10.7",
7271
"typescript": "^5.1.6",
7372
"unbuild": "^1.2.1",
74-
"unocss": "^0.53.5",
7573
"unplugin-vue-macros": "^2.3.3",
7674
"vite": "^4.4.2",
7775
"vite-plugin-dts": "^3.2.0",

playground/nuxt3/nuxt.config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { resolve } from 'pathe'
55
// https://nuxt.com/docs/api/configuration/nuxt-config
66
export default defineNuxtConfig({
77
modules: [
8-
'@unocss/nuxt',
8+
'@nuxtjs/tailwindcss',
99
async () => {
1010
const components = globbySync('../../packages/components/**/src/stories/*.@(vue)')
1111
if (components.length > 0) {
@@ -16,7 +16,4 @@ export default defineNuxtConfig({
1616
}
1717
},
1818
],
19-
css: [
20-
'@unocss/reset/tailwind.css',
21-
],
2219
})

playground/nuxt3/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"@oku-ui/separator": "workspace:^"
2020
},
2121
"devDependencies": {
22+
"@nuxtjs/tailwindcss": "^6.8.0",
2223
"@types/node": "^18.16.19",
23-
"@unocss/nuxt": "^0.53.5",
2424
"nuxt": "^3.6.2"
2525
}
2626
}

playground/nuxt3/tailwind.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/** @type {import('tailwindcss').Config} */
2+
export default {
3+
content: [
4+
'../../packages/**/src/**/*.vue',
5+
],
6+
theme: {
7+
extend: {},
8+
},
9+
plugins: [],
10+
}

playground/nuxt3/uno.config.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

playground/vue3/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"devDependencies": {
2525
"@vitejs/plugin-vue": "^4.2.3",
2626
"typescript": "^5.1.6",
27-
"unocss": "^0.53.5",
2827
"unplugin-auto-import": "^0.16.6",
2928
"unplugin-vue-components": "^0.25.1",
3029
"vite": "^4.4.2",

playground/vue3/postcss.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default {
2+
plugins: {
3+
'postcss-import': {},
4+
'tailwindcss/nesting': {},
5+
'tailwindcss': {},
6+
'autoprefixer': {},
7+
},
8+
}

playground/vue3/src/main.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import '@unocss/reset/tailwind.css'
2-
import 'virtual:uno.css'
31
import { createRouter, createWebHistory } from 'vue-router'
42
import { createApp } from 'vue'
53
import App from './App.vue'

playground/vue3/src/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
15
body {
26
@apply p-4
37
}

playground/vue3/tailwind.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/** @type {import('tailwindcss').Config} */
2+
export default {
3+
content: [
4+
'./index.html',
5+
'./src/**/*.{js,ts,jsx,tsx,vue}',
6+
'../../packages/**/src/**/*.vue',
7+
],
8+
theme: {
9+
extend: {},
10+
},
11+
plugins: [],
12+
}

0 commit comments

Comments
 (0)