-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- {{ props }}
@@ -226,27 +145,6 @@ const nextNode = (id: string[], duration = 2000, padding = 0) => instance.value.
-
-
- Playground
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -305,6 +204,7 @@ const nextNode = (id: string[], duration = 2000, padding = 0) => instance.value.
a {
@apply text-green-500 font-semibold hover:text-green-300;
}
+
button:focus {
outline: none;
}
diff --git a/docs/.vitepress/components/home/nodes/Box.vue b/docs/.vitepress/components/home/nodes/Box.vue
index 37e4819f..a4d983c0 100644
--- a/docs/.vitepress/components/home/nodes/Box.vue
+++ b/docs/.vitepress/components/home/nodes/Box.vue
@@ -7,6 +7,5 @@ const emit = defineEmits(['next'])
-
diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts
index e7ab6b2d..46f5d1a3 100644
--- a/docs/.vitepress/config.ts
+++ b/docs/.vitepress/config.ts
@@ -4,6 +4,7 @@ import { defineConfig, HeadConfig } from 'vitepress'
import head from './head'
import WindiCSS from 'vite-plugin-windicss'
import Components from 'unplugin-vue-components/vite'
+import svgLoader from 'vite-svg-loader'
config({ path: resolve(__dirname, '.env') })
@@ -14,7 +15,13 @@ export default defineConfig({
head: head as HeadConfig[],
vite: {
+ resolve: {
+ alias: {
+ '~': resolve('../../package/src'),
+ },
+ },
plugins: [
+ svgLoader(),
WindiCSS({
config: resolve(__dirname, './windi.config.ts'),
}) as any,
diff --git a/docs/.vitepress/windi.config.ts b/docs/.vitepress/windi.config.ts
index b48b7748..3a0f5881 100644
--- a/docs/.vitepress/windi.config.ts
+++ b/docs/.vitepress/windi.config.ts
@@ -1,11 +1,71 @@
import { defineConfig } from 'windicss/helpers'
import { resolve } from 'path'
+import icons from '@windicss/plugin-icons'
+import typography from 'windicss/plugin/typography'
+import windiColors from 'windicss/colors'
export default defineConfig({
extract: {
- include: [
- resolve(__dirname, 'components/**/*.{ts,md,vue}')
- ],
+ include: [resolve(__dirname, 'components/**/*.{ts,md,vue}')],
},
+
attributify: true,
+ darkMode: 'media',
+
+ plugins: [
+ icons,
+ typography({
+ dark: true,
+ }),
+ ],
+
+ shortcuts: {
+ 'primary-gradient': 'bg-gradient-to-b from-accent-500 via-accent-700 to-accent-900',
+ },
+
+ theme: {
+ extend: {
+ colors: {
+ primary: {
+ '50': '#fcf9ff',
+ '100': '#f8f3ff',
+ '200': '#eee1fe',
+ '300': '#e4cffe',
+ '400': '#cfaafd',
+ '500': '#BB86FC',
+ '600': '#a879e3',
+ '700': '#8c65bd',
+ '800': '#705097',
+ '900': '#5c427b',
+ 'DEFAULT': '#BB86FC',
+ },
+ secondary: {
+ '50': '#c4fef9',
+ '100': '#9df7ef',
+ '200': '#77f0e4',
+ '300': '#50e8da',
+ '400': '#2ae1cf',
+ '500': '#03dac5',
+ '600': '#03ae9d',
+ '700': '#028276',
+ '800': '#02564e',
+ '900': '#012a26',
+ 'DEFAULT': '#03dac5',
+ },
+ accent: {
+ '50': '#e6d4ff',
+ '100': '#ccaafc',
+ '200': '#b17ff8',
+ '300': '#9755f5',
+ '400': '#7c2af1',
+ '500': '#6200ee',
+ '600': '#5000c1',
+ '700': '#3d0095',
+ '800': '#2b0068',
+ '900': '#18003b',
+ 'DEFAULT': '#6200ee',
+ },
+ },
+ },
+ },
})
diff --git a/docs/package.json b/docs/package.json
index 4aa29087..1a7a2ae1 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -14,12 +14,14 @@
"@types/markdown-it": "^12.2.3",
"@types/node": "^17.0.23",
"@types/prismjs": "^1.26.0",
+ "@windicss/plugin-icons": "^1.0.2",
"dotenv": "^16.0.0",
"escape-html": "^1.0.3",
"markdown-it": "^12.3.2",
"prismjs": "^1.27.0",
"unplugin-vue-components": "^0.18.5",
"vite-plugin-windicss": "^1.8.3",
+ "vite-svg-loader": "^3.2.0",
"vitepress": "^0.22.3",
"vue": "3.2.21",
"windicss": "^3.5.1"
diff --git a/docs/src/index.md b/docs/src/index.md
index 6297741c..d7f1608b 100644
--- a/docs/src/index.md
+++ b/docs/src/index.md
@@ -4,6 +4,4 @@ navbar: false
footer: MIT Licensed | Copyright © 2021-present Burak Cakmakoglu
---
-# Hello World
-
diff --git a/yarn.lock b/yarn.lock
index 7665db66..f7eb1dac 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1397,6 +1397,11 @@
jiti "^1.13.0"
windicss "^3.5.1"
+"@windicss/plugin-icons@^1.0.2":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@windicss/plugin-icons/-/plugin-icons-1.0.2.tgz#8bc4024ebeb516a9d68b013d8a16db4509f4184f"
+ integrity sha512-PN6+y9TwEFQn+x6hmCUbCH2YzCfLyImcgQZQQAZ3kCZvqvZDyfKgS9TuhHY1Y0vp12lO6ULFUWpH6YIVGOPM6A==
+
"@windicss/plugin-utils@1.8.3":
version "1.8.3"
resolved "https://registry.yarnpkg.com/@windicss/plugin-utils/-/plugin-utils-1.8.3.tgz#cec2bdc7703357de348e4512d61c7bd7802b049a"
@@ -6689,6 +6694,14 @@ vite-svg-loader@^3.1.2:
"@vue/compiler-sfc" "^3.2.20"
svgo "^2.7.0"
+vite-svg-loader@^3.2.0:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/vite-svg-loader/-/vite-svg-loader-3.2.0.tgz#7657564340db5d5177a920e43c36f46d16a0efd2"
+ integrity sha512-CQcMdtjGD8Q1EdZ6x6xRdH2SAedlHM7n3jA+zYukZPMlPBXl07RaVzsjPC29UmuD7Dw9BsMWN4i8Ae8QW4IM3A==
+ dependencies:
+ "@vue/compiler-sfc" "^3.2.20"
+ svgo "^2.7.0"
+
vite@2.5.x:
version "2.5.10"
resolved "https://registry.yarnpkg.com/vite/-/vite-2.5.10.tgz#c598e3b5a7e1956ffc52eb3b3420d177fc2ed2a5"