Sfoglia il codice sorgente

[create]fix UnoCSS template by https://github.com/unocss/unocss/issues/2961

杜府 3 anni fa
parent
commit
a704e69c10

+ 1 - 1
packages/create-stdf/package.json

@@ -1,6 +1,6 @@
 {
     "name": "create-stdf",
-    "version": "0.0.23",
+    "version": "0.0.24",
     "description": "A CLI for creating new STDF projects",
     "bin": {
         "create-stdf": "index.js"

+ 6 - 1
packages/create-stdf/templates/vite-uno/src/app.css

@@ -1,3 +1,8 @@
+@import '@unocss/reset/tailwind.css';
+
+:root {
+    --un-default-border-color: currentColor;
+}
 html {
-  -webkit-tap-highlight-color: transparent;
+    -webkit-tap-highlight-color: transparent;
 }

+ 0 - 1
packages/create-stdf/templates/vite-uno/src/main.js

@@ -1,7 +1,6 @@
 import './app.css';
 import App from './App.svelte';
 import 'uno.css';
-import '@unocss/reset/tailwind.css';
 
 const app = new App({
     target: document.getElementById('app'),