diff --git a/index.html b/index.html index 402f480..dcae95e 100644 --- a/index.html +++ b/index.html @@ -17,6 +17,10 @@ rel="stylesheet" href="/src/assets/main.css" > + diff --git a/src/assets/main.css b/src/assets/main.css index c0bb224..3fa6172 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -1,7 +1,3 @@ -/* @tailwind base; */ -/* @tailwind components; */ -/* @tailwind utilities; */ - body { background-color: #f3f4f6; color: #1f2937; @@ -14,7 +10,6 @@ body { } } - .attributes-group { padding: 1.5rem; border: 1px solid #e5e7eb; @@ -28,4 +23,4 @@ body { border-color: #374151; background-color: #1f2937; } -} \ No newline at end of file +} diff --git a/src/assets/tailwind.css b/src/assets/tailwind.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/src/assets/tailwind.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/src/assets/vue.svg b/src/assets/vue.svg deleted file mode 100644 index 770e9d3..0000000 --- a/src/assets/vue.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index d7807b5..aabfa62 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,7 +5,7 @@ import formKitConfig from '../formkit.config' import App from './App.vue' // import '@unocss/reset/tailwind-compat.css' -import '@unocss/reset/tailwind.css' +// import '@unocss/reset/tailwind.css' import 'virtual:uno.css' const app = createApp(App) diff --git a/src/style.css b/src/style.css deleted file mode 100644 index bb131d6..0000000 --- a/src/style.css +++ /dev/null @@ -1,79 +0,0 @@ -:root { - font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; - line-height: 1.5; - font-weight: 400; - - color-scheme: light dark; - color: rgba(255, 255, 255, 0.87); - background-color: #242424; - - font-synthesis: none; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -a { - font-weight: 500; - color: #646cff; - text-decoration: inherit; -} -a:hover { - color: #535bf2; -} - -body { - margin: 0; - display: flex; - place-items: center; - min-width: 320px; - min-height: 100vh; -} - -h1 { - font-size: 3.2em; - line-height: 1.1; -} - -button { - border-radius: 8px; - border: 1px solid transparent; - padding: 0.6em 1.2em; - font-size: 1em; - font-weight: 500; - font-family: inherit; - background-color: #1a1a1a; - cursor: pointer; - transition: border-color 0.25s; -} -button:hover { - border-color: #646cff; -} -button:focus, -button:focus-visible { - outline: 4px auto -webkit-focus-ring-color; -} - -.card { - padding: 2em; -} - -#app { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - text-align: center; -} - -@media (prefers-color-scheme: light) { - :root { - color: #213547; - background-color: #ffffff; - } - a:hover { - color: #747bff; - } - button { - background-color: #f9f9f9; - } -} diff --git a/tailwind.config.js b/tailwind.config.js index f568958..a5d9c43 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -2,8 +2,8 @@ export default { prefix: '', content: [ - "./index.html", - "./src/**/*.vue", + // "./index.html", + // "./src/**/*.vue", "./formkit.config.theme.ts", "./formkit.config.ts", ], diff --git a/unocss.config.ts b/unocss.config.ts index 099cfe2..1e78b8f 100644 --- a/unocss.config.ts +++ b/unocss.config.ts @@ -4,55 +4,8 @@ import { presetUno, transformerVariantGroup } from "unocss"; -import { fkLibrary } from "./formkit.config.fkLibrary"; -import { classes, globals } from "./formkit.config.theme"; - -const familyList = [ - ...new Set(Object.values(fkLibrary).map((lib) => lib.family)), -].filter((f) => f) as string[]; -const typeList = [ - ...new Set(Object.values(fkLibrary).map((lib) => lib.type)), -].filter((f) => f) as string[]; - -console.debug(`familyList :>> `, familyList); -console.debug(`typeList :>> `, typeList); - -const globalsR = [ - ...new Set(Object.values(globals).flatMap((v) => Object.keys(v))), -]; -const classesR = [ - ...new Set( - Object.keys(classes) - .filter( - (k) => - familyList.some((f) => k.includes(f)) || - typeList.some((t) => k.includes(t)) - ) - .map((k) => classes[k]) - .flatMap((v) => Object.keys(v)) - .filter((className) => !className.includes("[]")) - .filter((className) => !className.includes("&::")) - ), -]; -// console.debug(`classesR :>> `, classesR); export default defineConfig({ - content: { - filesystem: ["xx.ts"], - inline: [ - "!border-none", // for: "range__inner" - classesR.join(" "), - globalsR.join(" "), - async () => { - return ""; - }, - ], - pipeline: { - // include: [ - // /xx.ts($|\?)/, - // ], - }, - }, presets: [ presetUno({ dark: "media", diff --git a/xx.ts b/xx.ts deleted file mode 100644 index 8e0912d..0000000 --- a/xx.ts +++ /dev/null @@ -1,8 +0,0 @@ -const classss = [ - 'text-8882', - 'formkit-disabled:opacity-40', -] - -const globals: Record> = { - -};