Sfoglia il codice sorgente

[create]Delect some tempalte

dufu1991 1 anno fa
parent
commit
c0c8ac8f1e
44 ha cambiato i file con 0 aggiunte e 898 eliminazioni
  1. 0 13
      packages/create-stdf/templates/vite-tailwind/README.md
  2. 0 15
      packages/create-stdf/templates/vite-tailwind/index.html
  3. 0 21
      packages/create-stdf/templates/vite-tailwind/package.json
  4. 0 7
      packages/create-stdf/templates/vite-tailwind/postcss.config.js
  5. 0 4
      packages/create-stdf/templates/vite-tailwind/public/stdf.svg
  6. 0 4
      packages/create-stdf/templates/vite-tailwind/public/stdf_dark.svg
  7. 0 145
      packages/create-stdf/templates/vite-tailwind/src/App.svelte
  8. 0 45
      packages/create-stdf/templates/vite-tailwind/src/app.css
  9. 0 4
      packages/create-stdf/templates/vite-tailwind/src/assets/Heroicons/cake.svg
  10. 0 1
      packages/create-stdf/templates/vite-tailwind/src/assets/IconPark/cup.svg
  11. 0 1
      packages/create-stdf/templates/vite-tailwind/src/assets/Remix/javascript-fill.svg
  12. 0 1
      packages/create-stdf/templates/vite-tailwind/src/assets/Remix/riding-line.svg
  13. 0 1
      packages/create-stdf/templates/vite-tailwind/src/assets/Remix/spy-line.svg
  14. 0 1
      packages/create-stdf/templates/vite-tailwind/src/assets/Remix/switch-line.svg
  15. 0 1
      packages/create-stdf/templates/vite-tailwind/src/assets/svelte.svg
  16. 0 6
      packages/create-stdf/templates/vite-tailwind/src/assets/tailwindcss.svg
  17. 0 1
      packages/create-stdf/templates/vite-tailwind/src/assets/vite.svg
  18. 0 46
      packages/create-stdf/templates/vite-tailwind/src/data/Nintendo.js
  19. 0 9
      packages/create-stdf/templates/vite-tailwind/src/lib/Counter.svelte
  20. 0 15
      packages/create-stdf/templates/vite-tailwind/src/main.js
  21. 0 7
      packages/create-stdf/templates/vite-tailwind/svelte.config.js
  22. 0 75
      packages/create-stdf/templates/vite-tailwind/tailwind.config.js
  23. 0 30
      packages/create-stdf/templates/vite-tailwind/vite.config.js
  24. 0 13
      packages/create-stdf/templates/vite-uno/README.md
  25. 0 15
      packages/create-stdf/templates/vite-uno/index.html
  26. 0 21
      packages/create-stdf/templates/vite-uno/package.json
  27. 0 4
      packages/create-stdf/templates/vite-uno/public/stdf.svg
  28. 0 4
      packages/create-stdf/templates/vite-uno/public/stdf_dark.svg
  29. 0 145
      packages/create-stdf/templates/vite-uno/src/App.svelte
  30. 0 44
      packages/create-stdf/templates/vite-uno/src/app.css
  31. 0 4
      packages/create-stdf/templates/vite-uno/src/assets/Heroicons/cake.svg
  32. 0 1
      packages/create-stdf/templates/vite-uno/src/assets/IconPark/cup.svg
  33. 0 1
      packages/create-stdf/templates/vite-uno/src/assets/Remix/javascript-fill.svg
  34. 0 1
      packages/create-stdf/templates/vite-uno/src/assets/Remix/riding-line.svg
  35. 0 1
      packages/create-stdf/templates/vite-uno/src/assets/Remix/spy-line.svg
  36. 0 1
      packages/create-stdf/templates/vite-uno/src/assets/svelte.svg
  37. 0 5
      packages/create-stdf/templates/vite-uno/src/assets/uno.svg
  38. 0 1
      packages/create-stdf/templates/vite-uno/src/assets/vite.svg
  39. 0 46
      packages/create-stdf/templates/vite-uno/src/data/Nintendo.js
  40. 0 9
      packages/create-stdf/templates/vite-uno/src/lib/Counter.svelte
  41. 0 9
      packages/create-stdf/templates/vite-uno/src/main.js
  42. 0 7
      packages/create-stdf/templates/vite-uno/svelte.config.js
  43. 0 79
      packages/create-stdf/templates/vite-uno/uno.config.js
  44. 0 34
      packages/create-stdf/templates/vite-uno/vite.config.js

+ 0 - 13
packages/create-stdf/templates/vite-tailwind/README.md

@@ -1,13 +0,0 @@
-# Vite + Svelte + Tailwind + STDF
-
-This template should help get you started developing with Svelte + Tailwind + STDF in Vite.
-
-## Recommended IDE Setup
-
-- [VS Code](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode) + [Tailwind](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss) + [STDF](https://stdf.design) .
-
-- [WebStorm](https://www.jetbrains.com/webstorm/) + [Svelte](https://www.jetbrains.com/help/webstorm/svelte.html) + [Tailwind](https://www.jetbrains.com/help/webstorm/tailwind-css.html) + [STDF](https://stdf.design) .
-
-## More Info
-
-For more information about quickly create a new project, see the STDF [Quick start](https://stdf.design/#/guide) guide.

+ 0 - 15
packages/create-stdf/templates/vite-tailwind/index.html

@@ -1,15 +0,0 @@
-<!doctype html>
-<html>
-	<head>
-		<meta charset="UTF-8" />
-		<link rel="icon" type="image/svg+xml" href="/stdf.svg" media="(prefers-color-scheme: light)" />
-		<link rel="icon" type="image/svg+xml" href="/stdf_dark.svg" media="(prefers-color-scheme: dark)" />
-		<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
-		<title>Vite + Svelte + Tailwind + STDF</title>
-	</head>
-
-	<body class="bg-primaryWhite dark:bg-darkBlack text-black dark:text-white">
-		<div id="app"></div>
-		<script type="module" src="/src/main.js"></script>
-	</body>
-</html>

+ 0 - 21
packages/create-stdf/templates/vite-tailwind/package.json

@@ -1,21 +0,0 @@
-{
-	"name": "stdf-project",
-	"private": true,
-	"version": "0.0.0",
-	"type": "module",
-	"scripts": {
-		"dev": "vite",
-		"build": "vite build",
-		"preview": "vite preview"
-	},
-	"devDependencies": {
-		"@sveltejs/vite-plugin-svelte": "^2.4.6",
-		"autoprefixer": "^10.4.16",
-		"postcss": "^8.4.31",
-		"stdf": "file:../../../stdf",
-		"svelte": "^4.2.1",
-		"tailwindcss": "^3.3.3",
-		"vite": "^4.4.9",
-		"rollup-plugin-stdf-icon": "file:../../../rollup-plugin-stdf-icon"
-	}
-}

+ 0 - 7
packages/create-stdf/templates/vite-tailwind/postcss.config.js

@@ -1,7 +0,0 @@
-import tailwind from 'tailwindcss';
-import tailwindConfig from './tailwind.config.js';
-import autoprefixer from 'autoprefixer';
-
-export default {
-	plugins: [tailwind(tailwindConfig), autoprefixer],
-};

+ 0 - 4
packages/create-stdf/templates/vite-tailwind/public/stdf.svg

@@ -1,4 +0,0 @@
-<svg width="90" height="80" viewBox="0 0 90 80" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0H20H40H50C64.8056 0 77.7325 8.04398 84.6487 20H50H40V22.6757V30H50C55.5229 30 60 34.4771 60 40C60 45.5229 55.5229 50 50 50H40V57.3243V78.7398V80H20V66.4583V20H15.3513H0V0ZM50 80C72.0914 80 90 62.0914 90 40C90 36.547 89.5625 33.1962 88.7398 30H67.3244C69.0261 32.9417 70 36.3571 70 40C70 51.0457 61.0457 60 50 60V80Z" fill="#0B24FB"/>
-<path fill-rule="evenodd" clip-rule="evenodd" d="M20 30V0L0 50H20V80L40 30H20Z" fill="#FFC043"/>
-</svg>

+ 0 - 4
packages/create-stdf/templates/vite-tailwind/public/stdf_dark.svg

@@ -1,4 +0,0 @@
-<svg width="90" height="80" viewBox="0 0 90 80" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0H20H40H50C64.8056 0 77.7325 8.04398 84.6487 20H50H40V22.6757V30H50C55.5229 30 60 34.4771 60 40C60 45.5229 55.5229 50 50 50H40V57.3243V78.7398V80H20V66.4583V20H15.3513H0V0ZM50 80C72.0914 80 90 62.0914 90 40C90 36.547 89.5625 33.1962 88.7398 30H67.3244C69.0261 32.9417 70 36.3571 70 40C70 51.0457 61.0457 60 50 60V80Z" fill="#FFC043"/>
-<path fill-rule="evenodd" clip-rule="evenodd" d="M20 30V0L0 50H20V80L40 30H20Z" fill="#0B24FB"/>
-</svg>

+ 0 - 145
packages/create-stdf/templates/vite-tailwind/src/App.svelte

@@ -1,145 +0,0 @@
-<script>
-	import { setContext } from 'svelte';
-	import en_US from 'stdf/lang/en_US';
-	import zh_CN from 'stdf/lang/zh_CN';
-	import { Button, Cell, Calendar, Icon } from 'stdf';
-	import { stdfTheme, switchTheme, darkMode } from 'stdf/theme';
-	import NintendoTheme from './data/Nintendo';
-	import Counter from './lib/Counter.svelte';
-
-	// @ts-ignore
-	import viteLogo from './assets/vite.svg';
-	// @ts-ignore
-	import svelteLogo from './assets/svelte.svg';
-	// @ts-ignore
-	import tailwindLogo from './assets/tailwindcss.svg';
-
-	//切换亮暗模式(toggle light or dark mode)
-	let mode = sessionStorage.getItem('mode') === 'dark' ? 'dark' : 'light';
-	if (mode === 'dark') {
-		darkMode(true);
-	}
-	const toggleModeFun = () => {
-		if (mode === 'dark') {
-			// 切换到(light switch to light)
-			mode = 'light';
-			darkMode(false);
-			sessionStorage.setItem('mode', 'light');
-		} else {
-			// 切换到(dark switch to dark)
-			mode = 'dark';
-			darkMode(true);
-			sessionStorage.setItem('mode', 'dark');
-		}
-	};
-
-	// 设置语言(setting language)
-	let lang = sessionStorage.getItem('lang') === 'en_US' ? 'en_US' : 'zh_CN';
-	$: isZh = lang === 'zh_CN';
-	setContext('STDF_lang', sessionStorage.getItem('lang') === 'en_US' ? en_US : zh_CN);
-	const toggleLangFun = () => {
-		lang = isZh ? 'en_US' : 'zh_CN';
-		sessionStorage.setItem('lang', isZh ? 'en_US' : 'zh_CN');
-		// 刷新(refresh)
-		location.reload();
-	};
-
-	// 进度条(percent)
-	let percent = 20;
-	const reduceFunc = () => {
-		percent > 0 && (percent -= 10);
-	};
-	const increaseFunc = () => {
-		percent < 100 && (percent += 10);
-	};
-
-	// 日历(calendar)
-	let visible = false;
-
-	// 主题(theme)
-	let theme = 'STDF';
-	const toggleThemeFun = () => {
-		if (theme === 'STDF') {
-			theme = 'Nintendo';
-			switchTheme(NintendoTheme);
-		} else {
-			theme = 'STDF';
-			switchTheme(stdfTheme);
-		}
-	};
-</script>
-
-<main>
-	<div class="flex justify-center items-center text-center gap-4 pt-20">
-		<a class="flex flex-col items-center w-10" href="https://vitejs.dev" target="_blank" rel="noreferrer">
-			<img src={viteLogo} alt="Vite Logo" />
-		</a>+
-		<a class="flex flex-col items-center w-10" href="https://svelte.dev" target="_blank" rel="noreferrer">
-			<img src={svelteLogo} alt="Svelte Logo" />
-		</a>+
-		<a class="flex flex-col items-center w-10" href="https://tailwindcss.com" target="_blank" rel="noreferrer">
-			<img src={tailwindLogo} alt="Tailwind Logo" />
-		</a>+
-		<a class="flex flex-col items-center w-8" href="https://stdf.design" target="_blank" rel="noreferrer">
-			<svg viewBox="0 0 90 80" fill="currentColor">
-				<path
-					class="text-primary dark:text-dark"
-					d="M0 0H20H40H50C64.8056 0 77.7325 8.04398 84.6487 20H50H40V22.6757V30H50C55.5229 30 60 34.4771 60 40C60 45.5229 55.5229 50 50 50H40V57.3243V78.7398V80H20V66.4583V20H15.3513H0V0ZM50 80C72.0914 80 90 62.0914 90 40C90 36.547 89.5625 33.1962 88.7398 30H67.3244C69.0261 32.9417 70 36.3571 70 40C70 51.0457 61.0457 60 50 60V80Z"
-				/>
-				<path class="text-dark dark:text-primary" d="M20 30V0L0 50H20V80L40 30H20Z" />
-			</svg>
-		</a>
-	</div>
-	<div class="text-center my-6 text-xs">
-		{#if isZh}
-			<p>这是一个使用 Vite + Svelte + Tailwind + STDF 构建的模板。</p>
-			<p class="mt-2">点击上方 LOGO 了解更多。</p>
-		{:else}
-			<p>This is a template using Vite + Svelte + TailwindCSS + STDF.</p>
-			<p class="mt-2">Click the logo above to learn more.</p>
-		{/if}
-	</div>
-	<div class="my-6">
-		<Cell title={isZh ? '暗模式' : 'Dark mode'} right={{ type: 'switch', switch: { check: mode === 'dark' } }} on:click={toggleModeFun} />
-	</div>
-	<div class="my-6">
-		<Counter bind:percent />
-	</div>
-	<div class="my-6">
-		<Button heightIn="0" group fill="lineTheme">
-			<div class="flex divide-x">
-				<!-- svelte-ignore a11y-click-events-have-key-events -->
-				<!-- svelte-ignore a11y-no-static-element-interactions -->
-				<div class="flex-1 border-primary dark:border-dark py-2 active:opacity-80" on:click={reduceFunc}>-10</div>
-				<!-- svelte-ignore a11y-click-events-have-key-events -->
-				<!-- svelte-ignore a11y-no-static-element-interactions -->
-				<div class="flex-1 border-primary dark:border-dark py-2 active:opacity-80" on:click={increaseFunc}>+10</div>
-				<!-- svelte-ignore a11y-click-events-have-key-events -->
-				<!-- svelte-ignore a11y-no-static-element-interactions -->
-				<div class="flex-1 border-primary dark:border-dark py-2 active:opacity-80" on:click={() => (percent = 20)}>
-					{isZh ? '重置' : 'Reset'}
-				</div>
-			</div>
-		</Button>
-	</div>
-	<div class="my-6">
-		<Button fill="lineTheme" on:click={() => (visible = true)}>{isZh ? '日历' : 'Calendar'}</Button>
-	</div>
-	<Calendar bind:visible />
-	<div class="my-6 px-8 flex justify-between">
-		<Icon name="cake" theme path="fonts/Heroicons.svg" />
-		<Icon name="riding-line" path="fonts/Remix.svg" />
-		<Icon name="spy-line" theme path="fonts/Remix.svg" />
-		<Icon name="javascript-fill" injClass="text-[red] dark:text-green" path="fonts/Remix.svg" />
-		<Icon name="cup" theme path="fonts/IconPark.svg" />
-	</div>
-	<div class="px-4 text-xs">
-		{isZh ? '图标:第一个来自' : 'Icons: The first one comes from'} <a class="underline" href="https://heroicons.com">Heroicons</a>
-		,{isZh ? '最后一个来自' : 'the last one comes from'} <a class="underline" href="https://iconpark.oceanengine.com">IconPark</a>
-		,{isZh ? '其余来自' : 'the rest come from'} <a class="underline" href="https://remixicon.com">Remix Icon</a> 。
-	</div>
-	<div class="my-6">
-		<Button on:click={toggleLangFun}>{isZh ? '切换语言' : 'Toggle language'}</Button>
-		<Button fill="lineTheme" on:click={toggleThemeFun}>{isZh ? '切换主题' : 'Toggle theme'}</Button>
-	</div>
-</main>

+ 0 - 45
packages/create-stdf/templates/vite-tailwind/src/app.css

@@ -1,45 +0,0 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
-
-@layer base {
-	:root {
-		--theme-color-primary-50: 245, 248, 255;
-		--theme-color-primary-100: 232, 238, 255;
-		--theme-color-primary-200: 187, 203, 254;
-		--theme-color-primary-300: 143, 165, 253;
-		--theme-color-primary-400: 99, 124, 253;
-		--theme-color-primary-500: 55, 81, 252;
-		--theme-color-primary: 11, 36, 251;
-		--theme-color-primary-700: 7, 20, 207;
-		--theme-color-primary-800: 4, 9, 164;
-		--theme-color-primary-900: 1, 1, 120;
-		--theme-color-primary-950: 3, 0, 77;
-		--theme-color-dark-50: 255, 254, 245;
-		--theme-color-dark-100: 255, 251, 232;
-		--theme-color-dark-200: 255, 244, 199;
-		--theme-color-dark-300: 255, 234, 166;
-		--theme-color-dark-400: 255, 222, 133;
-		--theme-color-dark-500: 255, 209, 100;
-		--theme-color-dark: 255, 192, 67;
-		--theme-color-dark-700: 210, 148, 41;
-		--theme-color-dark-800: 166, 108, 22;
-		--theme-color-dark-900: 121, 72, 8;
-		--theme-color-dark-950: 77, 41, 0;
-		--theme-color-primaryBlack: 1, 3, 25;
-		--theme-color-primaryWhite: 242, 242, 243;
-		--theme-color-darkBlack: 25, 17, 1;
-		--theme-color-darkWhite: 243, 242, 242;
-		--theme-color-functional-success: 17, 187, 141;
-		--theme-color-functional-warning: 185, 80, 0;
-		--theme-color-functional-error: 218, 20, 20;
-		--theme-color-functional-info: 46, 90, 172;
-		--theme-color-extend0: 0, 172, 238;
-		--theme-color-extend1: 255, 105, 55;
-		--theme-color-extend2: 0, 112, 74;
-	}
-}
-
-html {
-	-webkit-tap-highlight-color: transparent;
-}

+ 0 - 4
packages/create-stdf/templates/vite-tailwind/src/assets/Heroicons/cake.svg

@@ -1,4 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
-    <path stroke-linecap="round" stroke-linejoin="round" d="M12 8.25v-1.5m0 1.5c-1.355 0-2.697.056-4.024.166C6.845 8.51 6 9.473 6 10.608v2.513m6-4.87c1.355 0 2.697.055 4.024.165C17.155 8.51 18 9.473 18 10.608v2.513m-3-4.87v-1.5m-6 1.5v-1.5m12 9.75l-1.5.75a3.354 3.354 0 01-3 0 3.354 3.354 0 00-3 0 3.354 3.354 0 01-3 0 3.354 3.354 0 00-3 0 3.354 3.354 0 01-3 0L3 16.5m15-3.38a48.474 48.474 0 00-6-.37c-2.032 0-4.034.125-6 .37m12 0c.39.049.777.102 1.163.16 1.07.16 1.837 1.094 1.837 2.175v5.17c0 .62-.504 1.124-1.125 1.124H4.125A1.125 1.125 0 013 20.625v-5.17c0-1.08.768-2.014 1.837-2.174A47.78 47.78 0 016 13.12M12.265 3.11a.375.375 0 11-.53 0L12 2.845l.265.265zm-3 0a.375.375 0 11-.53 0L9 2.845l.265.265zm6 0a.375.375 0 11-.53 0L15 2.845l.265.265z" />
-  </svg>
-  

+ 0 - 1
packages/create-stdf/templates/vite-tailwind/src/assets/IconPark/cup.svg

@@ -1 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?><svg width="24" height="24" viewBox="0 0 49 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.77783 17.012C8.77783 16.4531 9.23094 16 9.78988 16H33.7658C34.3247 16 34.7778 16.4531 34.7778 17.012V31C34.7778 38.1797 28.9575 44 21.7778 44V44C14.5981 44 8.77783 38.1797 8.77783 31V17.012Z" stroke="#000000" stroke-width="4"/><rect x="8.77783" y="23" width="26" height="8" fill="none" stroke="#000000" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M21.7778 4V10" stroke="#000000" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M13.7778 6V8" stroke="#000000" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M29.7778 6V8" stroke="#000000" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M34.7778 34C38.6438 34 41.7778 30.866 41.7778 27C41.7778 23.134 38.6438 20 34.7778 20" stroke="#000000" stroke-width="4" stroke-linecap="round"/></svg>

+ 0 - 1
packages/create-stdf/templates/vite-tailwind/src/assets/Remix/javascript-fill.svg

@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 3C4.34315 3 3 4.34315 3 6V18C3 19.6569 4.34315 21 6 21H18C19.6569 21 21 19.6569 21 18V6C21 4.34315 19.6569 3 18 3H6ZM13.3344 16.055C14.0531 16.6343 14.7717 16.9203 15.4904 16.913C15.9304 16.913 16.2677 16.8323 16.5024 16.671C16.7297 16.517 16.8434 16.297 16.8434 16.011C16.8434 15.7177 16.7297 15.4683 16.5024 15.263C16.2677 15.0577 15.8241 14.8523 15.1714 14.647C14.3867 14.4197 13.7817 14.1263 13.3564 13.767C12.9384 13.4077 12.7257 12.9053 12.7184 12.26C12.7184 11.6513 12.9824 11.1417 13.5104 10.731C14.0237 10.3203 14.6801 10.115 15.4794 10.115C16.5941 10.115 17.4887 10.3863 18.1634 10.929L17.3934 12.128C17.1221 11.9153 16.8104 11.7613 16.4584 11.666C16.1064 11.556 15.7911 11.501 15.5124 11.501C15.1311 11.501 14.8267 11.5707 14.5994 11.71C14.3721 11.8493 14.2584 12.0327 14.2584 12.26C14.2584 12.5093 14.3977 12.722 14.6764 12.898C14.9551 13.0667 15.4317 13.2537 16.1064 13.459C16.9204 13.701 17.4997 14.0237 17.8444 14.427C18.1891 14.8303 18.3614 15.3437 18.3614 15.967C18.3614 16.605 18.1157 17.155 17.6244 17.617C17.1404 18.0717 16.4364 18.31 15.5124 18.332C14.3024 18.332 13.2904 17.969 12.4764 17.243L13.3344 16.055ZM7.80405 16.693C8.03872 16.8397 8.32105 16.913 8.65105 16.913C8.99572 16.913 9.28172 16.814 9.50905 16.616C9.73639 16.4107 9.85005 16.055 9.85005 15.549V10.247H11.3351V15.835C11.3131 16.7003 11.0637 17.3237 10.5871 17.705C10.3157 17.9323 10.0187 18.0937 9.69605 18.189C9.37339 18.2843 9.06172 18.332 8.76105 18.332C8.21105 18.332 7.72339 18.2367 7.29805 18.046C6.84339 17.8407 6.46205 17.4777 6.15405 16.957L7.18805 16.11C7.37872 16.3667 7.58405 16.561 7.80405 16.693Z"></path></svg>

+ 0 - 1
packages/create-stdf/templates/vite-tailwind/src/assets/Remix/riding-line.svg

@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5.5 21C3.01472 21 1 18.9853 1 16.5C1 14.0147 3.01472 12 5.5 12C7.98528 12 10 14.0147 10 16.5C10 18.9853 7.98528 21 5.5 21ZM5.5 19C6.88071 19 8 17.8807 8 16.5C8 15.1193 6.88071 14 5.5 14C4.11929 14 3 15.1193 3 16.5C3 17.8807 4.11929 19 5.5 19ZM18.5 21C16.0147 21 14 18.9853 14 16.5C14 14.0147 16.0147 12 18.5 12C20.9853 12 23 14.0147 23 16.5C23 18.9853 20.9853 21 18.5 21ZM18.5 19C19.8807 19 21 17.8807 21 16.5C21 15.1193 19.8807 14 18.5 14C17.1193 14 16 15.1193 16 16.5C16 17.8807 17.1193 19 18.5 19ZM11.023 10.3054L13 12V18H11V13L8.28117 10.7343C8.18221 10.6661 8.08802 10.588 8 10.5C7.21895 9.71895 7.21895 8.45262 8 7.67157L10.8284 4.84315C11.6095 4.0621 12.8758 4.0621 13.6569 4.84315L15.0711 6.25736C16.1746 7.36086 17.5548 8.01891 18.9884 8.23151L18.978 10.2474C17.0335 10.0218 15.1485 9.16323 13.6569 7.67157L11.023 10.3054ZM16 5C14.8954 5 14 4.10457 14 3C14 1.89543 14.8954 1 16 1C17.1046 1 18 1.89543 18 3C18 4.10457 17.1046 5 16 5Z"></path></svg>

+ 0 - 1
packages/create-stdf/templates/vite-tailwind/src/assets/Remix/spy-line.svg

@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 13C19.2091 13 21 14.7909 21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17H11C11 19.2091 9.20914 21 7 21C4.79086 21 3 19.2091 3 17C3 14.7909 4.79086 13 7 13C8.48052 13 9.77317 13.8043 10.4648 14.9999H13.5352C14.2268 13.8043 15.5195 13 17 13ZM7 15C5.89543 15 5 15.8954 5 17C5 18.1046 5.89543 19 7 19C8.10457 19 9 18.1046 9 17C9 15.8954 8.10457 15 7 15ZM17 15C15.8954 15 15 15.8954 15 17C15 18.1046 15.8954 19 17 19C18.1046 19 19 18.1046 19 17C19 15.8954 18.1046 15 17 15ZM16 3C18.2091 3 20 4.79086 20 7V10H22V12H2V10H4V7C4 4.79086 5.79086 3 8 3H16ZM16 5H8C6.94564 5 6 5.95 6 7V10H18V7C18 5.94564 17.05 5 16 5Z"></path></svg>

+ 0 - 1
packages/create-stdf/templates/vite-tailwind/src/assets/Remix/switch-line.svg

@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.001 3V21H7.60098C5.06047 21 3.00098 18.9405 3.00098 16.4V7.6C3.00098 5.05949 5.06047 3 7.60098 3H12.001ZM10.001 5H7.60098C6.16504 5 5.00098 6.16406 5.00098 7.6V16.4C5.00098 17.8359 6.16504 19 7.60098 19H10.001V5ZM7.50098 10C6.67255 10 6.00098 9.32843 6.00098 8.5C6.00098 7.67157 6.67255 7 7.50098 7C8.3294 7 9.00098 7.67157 9.00098 8.5C9.00098 9.32843 8.3294 10 7.50098 10ZM14.001 3H16.401C18.9415 3 21.001 5.05949 21.001 7.6V16.4C21.001 18.9405 18.9415 21 16.401 21H14.001V3ZM17.001 14.7C17.9951 14.7 18.801 13.8941 18.801 12.9C18.801 11.9059 17.9951 11.1 17.001 11.1C16.0069 11.1 15.201 11.9059 15.201 12.9C15.201 13.8941 16.0069 14.7 17.001 14.7Z"></path></svg>

+ 0 - 1
packages/create-stdf/templates/vite-tailwind/src/assets/svelte.svg

@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="26.6" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 308"><path fill="#FF3E00" d="M239.682 40.707C211.113-.182 154.69-12.301 113.895 13.69L42.247 59.356a82.198 82.198 0 0 0-37.135 55.056a86.566 86.566 0 0 0 8.536 55.576a82.425 82.425 0 0 0-12.296 30.719a87.596 87.596 0 0 0 14.964 66.244c28.574 40.893 84.997 53.007 125.787 27.016l71.648-45.664a82.182 82.182 0 0 0 37.135-55.057a86.601 86.601 0 0 0-8.53-55.577a82.409 82.409 0 0 0 12.29-30.718a87.573 87.573 0 0 0-14.963-66.244"></path><path fill="#FFF" d="M106.889 270.841c-23.102 6.007-47.497-3.036-61.103-22.648a52.685 52.685 0 0 1-9.003-39.85a49.978 49.978 0 0 1 1.713-6.693l1.35-4.115l3.671 2.697a92.447 92.447 0 0 0 28.036 14.007l2.663.808l-.245 2.659a16.067 16.067 0 0 0 2.89 10.656a17.143 17.143 0 0 0 18.397 6.828a15.786 15.786 0 0 0 4.403-1.935l71.67-45.672a14.922 14.922 0 0 0 6.734-9.977a15.923 15.923 0 0 0-2.713-12.011a17.156 17.156 0 0 0-18.404-6.832a15.78 15.78 0 0 0-4.396 1.933l-27.35 17.434a52.298 52.298 0 0 1-14.553 6.391c-23.101 6.007-47.497-3.036-61.101-22.649a52.681 52.681 0 0 1-9.004-39.849a49.428 49.428 0 0 1 22.34-33.114l71.664-45.677a52.218 52.218 0 0 1 14.563-6.398c23.101-6.007 47.497 3.036 61.101 22.648a52.685 52.685 0 0 1 9.004 39.85a50.559 50.559 0 0 1-1.713 6.692l-1.35 4.116l-3.67-2.693a92.373 92.373 0 0 0-28.037-14.013l-2.664-.809l.246-2.658a16.099 16.099 0 0 0-2.89-10.656a17.143 17.143 0 0 0-18.398-6.828a15.786 15.786 0 0 0-4.402 1.935l-71.67 45.674a14.898 14.898 0 0 0-6.73 9.975a15.9 15.9 0 0 0 2.709 12.012a17.156 17.156 0 0 0 18.404 6.832a15.841 15.841 0 0 0 4.402-1.935l27.345-17.427a52.147 52.147 0 0 1 14.552-6.397c23.101-6.006 47.497 3.037 61.102 22.65a52.681 52.681 0 0 1 9.003 39.848a49.453 49.453 0 0 1-22.34 33.12l-71.664 45.673a52.218 52.218 0 0 1-14.563 6.398"></path></svg>

+ 0 - 6
packages/create-stdf/templates/vite-tailwind/src/assets/tailwindcss.svg

@@ -1,6 +0,0 @@
-<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
-    <title>Tailwind CSS</title>
-    <path
-    fill="#06B6D4"
-        d="M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z" />
-</svg>

+ 0 - 1
packages/create-stdf/templates/vite-tailwind/src/assets/vite.svg

@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>

+ 0 - 46
packages/create-stdf/templates/vite-tailwind/src/data/Nintendo.js

@@ -1,46 +0,0 @@
-export default {
-	name: 'Nintendo',
-	color: {
-		primary: {
-			50: '255, 246, 245', // #FFF6F5
-			100: '255, 234, 232', // #FFEAE8
-			200: '250, 185, 182', // #FAB9B6
-			300: '245, 136, 134', // #F58886
-			400: '240, 87, 90', // #F0575A
-			500: '235, 43, 52', // #EB2B34
-			default: '230, 0, 18', // #E60012
-			700: '192, 0, 22', // #C00016
-			800: '153, 0, 23', // #990017
-			900: '115, 0, 21', // #730015
-			950: '77, 0, 17', // #4D0011
-		},
-		dark: {
-			50: '245, 255, 254', // #F5FFFE
-			100: '232, 255, 254', // #E8FFFE
-			200: '182, 249, 249', // #B6F9F9
-			300: '133, 240, 244', // #85F0F4
-			400: '87, 228, 238', // #57E4EE
-			500: '42, 214, 233', // #2AD6E9
-			default: '0, 195, 227', // #00C3E3
-			700: '0, 158, 189', // #009EBD
-			800: '0, 121, 152', // #007998
-			900: '0, 87, 114', // #005772
-			950: '0, 56, 77', // #00384D
-		},
-		primaryBlack: '25, 1, 3', // #190103
-		primaryWhite: '243, 242, 242', // #F3F2F2
-		darkBlack: '1, 22, 25', // #011619
-		darkWhite: '242, 243, 243', // #F2F3F3
-		functional: {
-			success: '0, 180, 42', // #00b42a
-			warning: '255, 125, 0', // #ff7d00
-			error: '245, 63, 63', // #f53f3f
-			info: '22, 93, 255', // #165dff
-		},
-		extend: [
-			{ color: '0, 82, 217', alias: 'Tencent' }, // #0052d9
-			{ color: '26, 173, 25', alias: 'WeChat' }, // #1aad19
-			{ color: '243, 112, 33', alias: 'Hermès' }, // #f37021
-		],
-	},
-};

+ 0 - 9
packages/create-stdf/templates/vite-tailwind/src/lib/Counter.svelte

@@ -1,9 +0,0 @@
-<script>
-	import { Progress } from 'stdf';
-
-	export let percent = 20;
-</script>
-
-<div class="p-4">
-	<Progress {percent} />
-</div>

+ 0 - 15
packages/create-stdf/templates/vite-tailwind/src/main.js

@@ -1,15 +0,0 @@
-import './app.css';
-import App from './App.svelte';
-
-const app = new App({
-	target: document.getElementById('app'),
-});
-
-//解决ios不支持按钮:active伪类
-// Solve the problem that ios does not support the button: active pseudo class
-document.body.addEventListener('touchstart', function () {
-	//...空函数即可
-	// ... Empty function is OK
-});
-
-export default app;

+ 0 - 7
packages/create-stdf/templates/vite-tailwind/svelte.config.js

@@ -1,7 +0,0 @@
-import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
-
-export default {
-	// Consult https://svelte.dev/docs#compile-time-svelte-preprocess
-	// for more information about preprocessors
-	preprocess: vitePreprocess(),
-};

+ 0 - 75
packages/create-stdf/templates/vite-tailwind/tailwind.config.js

@@ -1,75 +0,0 @@
-/** @type {import('tailwindcss').Config} */
-export default {
-	content: ['./index.html', './src/**/*.svelte', './node_modules/stdf/**/*.svelte'],
-	theme: {
-		colors: {
-			// 主题色
-			// Theme Color
-			primary: {
-				50: 'rgba(var(--theme-color-primary-50), <alpha-value>)',
-				100: 'rgba(var(--theme-color-primary-100), <alpha-value>)',
-				200: 'rgba(var(--theme-color-primary-200), <alpha-value>)',
-				300: 'rgba(var(--theme-color-primary-300), <alpha-value>)',
-				400: 'rgba(var(--theme-color-primary-400), <alpha-value>)',
-				500: 'rgba(var(--theme-color-primary-500), <alpha-value>)',
-				DEFAULT: 'rgba(var(--theme-color-primary), <alpha-value>)',
-				700: 'rgba(var(--theme-color-primary-700), <alpha-value>)',
-				800: 'rgba(var(--theme-color-primary-800), <alpha-value>)',
-				900: 'rgba(var(--theme-color-primary-900), <alpha-value>)',
-				950: 'rgba(var(--theme-color-primary-950), <alpha-value>)',
-			},
-			dark: {
-				50: 'rgba(var(--theme-color-dark-50), <alpha-value>)',
-				100: 'rgba(var(--theme-color-dark-100), <alpha-value>)',
-				200: 'rgba(var(--theme-color-dark-200), <alpha-value>)',
-				300: 'rgba(var(--theme-color-dark-300), <alpha-value>)',
-				400: 'rgba(var(--theme-color-dark-400), <alpha-value>)',
-				500: 'rgba(var(--theme-color-dark-500), <alpha-value>)',
-				DEFAULT: 'rgba(var(--theme-color-dark), <alpha-value>)',
-				700: 'rgba(var(--theme-color-dark-700), <alpha-value>)',
-				800: 'rgba(var(--theme-color-dark-800), <alpha-value>)',
-				900: 'rgba(var(--theme-color-dark-900), <alpha-value>)',
-				950: 'rgba(var(--theme-color-dark-950), <alpha-value>)',
-			},
-			primaryBlack: 'rgba(var(--theme-color-primaryBlack), <alpha-value>)',
-			primaryWhite: 'rgba(var(--theme-color-primaryWhite), <alpha-value>)',
-			darkBlack: 'rgba(var(--theme-color-darkBlack), <alpha-value>)',
-			darkWhite: 'rgba(var(--theme-color-darkWhite), <alpha-value>)',
-
-			// 功能色
-			// Functional Color
-			success: 'rgba(var(--theme-color-functional-success), <alpha-value>)',
-			warning: 'rgba(var(--theme-color-functional-warning), <alpha-value>)',
-			error: 'rgba(var(--theme-color-functional-error), <alpha-value>)',
-			info: 'rgba(var(--theme-color-functional-info), <alpha-value>)',
-
-			// 扩展色
-			// Extended Color
-			extend0: 'rgba(var(--theme-color-extend0), <alpha-value>)',
-			extend1: 'rgba(var(--theme-color-extend1), <alpha-value>)',
-			extend2: 'rgba(var(--theme-color-extend2), <alpha-value>)',
-
-			// 中性色
-			// Neutral Color
-			black: '#000000',
-			white: '#ffffff',
-			gray: {
-				50: '#f2f2f2',
-				100: '#e6e6e6',
-				200: '#cccccc',
-				300: '#b3b3b3',
-				400: '#999999',
-				500: '#808080',
-				600: '#666666',
-				700: '#4D4D4D',
-				800: '#333333',
-				900: '#1A1A1A',
-				950: '#0D0D0D',
-			},
-			transparent: 'transparent',
-		},
-		extend: {},
-	},
-	darkMode: 'class',
-	plugins: [],
-};

+ 0 - 30
packages/create-stdf/templates/vite-tailwind/vite.config.js

@@ -1,30 +0,0 @@
-import postcss from './postcss.config.js';
-import { defineConfig } from 'vite';
-import { svelte } from '@sveltejs/vite-plugin-svelte';
-import svgSprite from 'rollup-plugin-stdf-icon';
-
-// https://vitejs.dev/config/
-// @ts-ignore
-export default defineConfig({
-	// @ts-ignore
-	plugins: [
-		svelte({
-			onwarn(warning, defaultHandler) {
-				if (warning.code.startsWith('a11y-')) {
-					return;
-				}
-				// handle all other warnings normally
-				defaultHandler(warning);
-			},
-		}),
-		// 一般来说,一个应用的的 svg 不多时都放在一个文件夹下,合并为一个 symbol 即可。此处演示了不同文件夹下的图标如何合并为不同的 symbol。
-		// Generally speaking, when the svg of an application is not much, it is placed in a folder and merged into one symbol. This example shows how the icons in different folders are merged into different symbols.
-		svgSprite([
-			{ inFile: 'src/assets/Heroicons', outFile: 'public/fonts' },
-			{ inFile: 'src/assets/IconPark', outFile: 'public/fonts' },
-			{ inFile: 'src/assets/Remix', outFile: 'public/fonts' },
-		]),
-	],
-	// @ts-ignore
-	css: { postcss },
-});

+ 0 - 13
packages/create-stdf/templates/vite-uno/README.md

@@ -1,13 +0,0 @@
-# Vite + Svelte + UnoCSS + STDF
-
-This template should help get you started developing with Svelte + UnoCSS + STDF in Vite.
-
-## Recommended IDE Setup
-
-- [VS Code](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode) + [UnoCSS](https://marketplace.visualstudio.com/items?itemName=antfu.unocss) + [STDF](https://stdf.design) .
-
-- [WebStorm](https://www.jetbrains.com/webstorm/) + [Svelte](https://www.jetbrains.com/help/webstorm/svelte.html) + [UnoCSS](https://plugins.jetbrains.com/plugin/22204-unocss) + [STDF](https://stdf.design) .
-
-## More Info
-
-For more information about quickly create a new project, see the STDF [Quick start](https://stdf.design/#/guide) guide.

+ 0 - 15
packages/create-stdf/templates/vite-uno/index.html

@@ -1,15 +0,0 @@
-<!doctype html>
-<html>
-	<head>
-		<meta charset="UTF-8" />
-		<link rel="icon" type="image/svg+xml" href="/stdf.svg" media="(prefers-color-scheme: light)" />
-		<link rel="icon" type="image/svg+xml" href="/stdf_dark.svg" media="(prefers-color-scheme: dark)" />
-		<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
-		<title>Vite + Svelte + UnoCSS + STDF</title>
-	</head>
-
-	<body class="bg-primaryWhite dark:bg-darkBlack text-black dark:text-white">
-		<div id="app"></div>
-		<script type="module" src="/src/main.js"></script>
-	</body>
-</html>

+ 0 - 21
packages/create-stdf/templates/vite-uno/package.json

@@ -1,21 +0,0 @@
-{
-	"name": "stdf-project",
-	"private": true,
-	"version": "0.0.0",
-	"type": "module",
-	"scripts": {
-		"dev": "vite",
-		"build": "vite build",
-		"preview": "vite preview"
-	},
-	"devDependencies": {
-		"@sveltejs/vite-plugin-svelte": "^2.4.6",
-		"@unocss/extractor-svelte": "^0.56.4",
-		"@unocss/reset": "^0.56.4",
-		"stdf": "file:../../../stdf",
-		"svelte": "^4.2.1",
-		"unocss": "^0.56.4",
-		"vite": "^4.4.9",
-		"rollup-plugin-stdf-icon": "file:../../../rollup-plugin-stdf-icon"
-	}
-}

+ 0 - 4
packages/create-stdf/templates/vite-uno/public/stdf.svg

@@ -1,4 +0,0 @@
-<svg width="90" height="80" viewBox="0 0 90 80" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0H20H40H50C64.8056 0 77.7325 8.04398 84.6487 20H50H40V22.6757V30H50C55.5229 30 60 34.4771 60 40C60 45.5229 55.5229 50 50 50H40V57.3243V78.7398V80H20V66.4583V20H15.3513H0V0ZM50 80C72.0914 80 90 62.0914 90 40C90 36.547 89.5625 33.1962 88.7398 30H67.3244C69.0261 32.9417 70 36.3571 70 40C70 51.0457 61.0457 60 50 60V80Z" fill="#0B24FB"/>
-<path fill-rule="evenodd" clip-rule="evenodd" d="M20 30V0L0 50H20V80L40 30H20Z" fill="#FFC043"/>
-</svg>

+ 0 - 4
packages/create-stdf/templates/vite-uno/public/stdf_dark.svg

@@ -1,4 +0,0 @@
-<svg width="90" height="80" viewBox="0 0 90 80" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0H20H40H50C64.8056 0 77.7325 8.04398 84.6487 20H50H40V22.6757V30H50C55.5229 30 60 34.4771 60 40C60 45.5229 55.5229 50 50 50H40V57.3243V78.7398V80H20V66.4583V20H15.3513H0V0ZM50 80C72.0914 80 90 62.0914 90 40C90 36.547 89.5625 33.1962 88.7398 30H67.3244C69.0261 32.9417 70 36.3571 70 40C70 51.0457 61.0457 60 50 60V80Z" fill="#FFC043"/>
-<path fill-rule="evenodd" clip-rule="evenodd" d="M20 30V0L0 50H20V80L40 30H20Z" fill="#0B24FB"/>
-</svg>

+ 0 - 145
packages/create-stdf/templates/vite-uno/src/App.svelte

@@ -1,145 +0,0 @@
-<script>
-	import { setContext } from 'svelte';
-	import en_US from 'stdf/lang/en_US';
-	import zh_CN from 'stdf/lang/zh_CN';
-	import { Button, Cell, Calendar, Icon } from 'stdf';
-	import { stdfTheme, switchTheme, darkMode } from 'stdf/theme';
-	import NintendoTheme from './data/Nintendo';
-	import Counter from './lib/Counter.svelte';
-
-	// @ts-ignore
-	import viteLogo from './assets/vite.svg';
-	// @ts-ignore
-	import svelteLogo from './assets/svelte.svg';
-	// @ts-ignore
-	import unoLogo from './assets/uno.svg';
-
-	//切换亮暗模式(toggle light or dark mode)
-	let mode = sessionStorage.getItem('mode') === 'dark' ? 'dark' : 'light';
-	if (mode === 'dark') {
-		darkMode();
-	}
-	const toggleModeFun = () => {
-		if (mode === 'dark') {
-			// 切换到(light switch to light)
-			mode = 'light';
-			darkMode(false);
-			sessionStorage.setItem('mode', 'light');
-		} else {
-			// 切换到(dark switch to dark)
-			mode = 'dark';
-			darkMode();
-			sessionStorage.setItem('mode', 'dark');
-		}
-	};
-
-	// 设置语言(setting language)
-	let lang = sessionStorage.getItem('lang') === 'en_US' ? 'en_US' : 'zh_CN';
-	$: isZh = lang === 'zh_CN';
-	setContext('STDF_lang', sessionStorage.getItem('lang') === 'en_US' ? en_US : zh_CN);
-	const toggleLangFun = () => {
-		lang = isZh ? 'en_US' : 'zh_CN';
-		sessionStorage.setItem('lang', isZh ? 'en_US' : 'zh_CN');
-		// 刷新(refresh)
-		location.reload();
-	};
-
-	// 进度条(percent)
-	let percent = 20;
-	const reduceFunc = () => {
-		percent > 0 && (percent -= 10);
-	};
-	const increaseFunc = () => {
-		percent < 100 && (percent += 10);
-	};
-
-	// 日历(calendar)
-	let visible = false;
-
-	// 主题(theme)
-	let theme = 'STDF';
-	const toggleThemeFun = () => {
-		if (theme === 'STDF') {
-			theme = 'Nintendo';
-			switchTheme(NintendoTheme);
-		} else {
-			theme = 'STDF';
-			switchTheme(stdfTheme);
-		}
-	};
-</script>
-
-<main>
-	<div class="flex justify-center items-center text-center gap-4 pt-20">
-		<a class="flex flex-col items-center w-10" href="https://vitejs.dev" target="_blank" rel="noreferrer">
-			<img src={viteLogo} alt="Vite Logo" />
-		</a>+
-		<a class="flex flex-col items-center w-10" href="https://svelte.dev" target="_blank" rel="noreferrer">
-			<img src={svelteLogo} alt="Svelte Logo" />
-		</a>+
-		<a class="flex flex-col items-center w-8" href="https://unocss.dev" target="_blank" rel="noreferrer">
-			<img src={unoLogo} alt="UnoCSS Logo" />
-		</a>+
-		<a class="flex flex-col items-center w-8" href="https://stdf.design" target="_blank" rel="noreferrer">
-			<svg viewBox="0 0 90 80" fill="currentColor">
-				<path
-					class="text-primary dark:text-dark"
-					d="M0 0H20H40H50C64.8056 0 77.7325 8.04398 84.6487 20H50H40V22.6757V30H50C55.5229 30 60 34.4771 60 40C60 45.5229 55.5229 50 50 50H40V57.3243V78.7398V80H20V66.4583V20H15.3513H0V0ZM50 80C72.0914 80 90 62.0914 90 40C90 36.547 89.5625 33.1962 88.7398 30H67.3244C69.0261 32.9417 70 36.3571 70 40C70 51.0457 61.0457 60 50 60V80Z"
-				/>
-				<path class="text-dark dark:text-primary" d="M20 30V0L0 50H20V80L40 30H20Z" />
-			</svg>
-		</a>
-	</div>
-	<div class="text-center my-6 text-xs">
-		{#if isZh}
-			<p>这是一个使用 Vite + Svelte + UnoCSS + STDF 构建的模板。</p>
-			<p class="mt-2">点击上方 LOGO 了解更多。</p>
-		{:else}
-			<p>This is a template using Vite + Svelte + UnoCSS + STDF.</p>
-			<p class="mt-2">Click the logo above to learn more.</p>
-		{/if}
-	</div>
-	<div class="my-6">
-		<Cell title={isZh ? '暗模式' : 'Dark mode'} right={{ type: 'switch', switch: { check: mode === 'dark' } }} on:click={toggleModeFun} />
-	</div>
-	<div class="my-6">
-		<Counter bind:percent />
-	</div>
-	<div class="my-6">
-		<Button heightIn="0" group fill="lineTheme">
-			<div class="flex divide-x">
-				<!-- svelte-ignore a11y-click-events-have-key-events -->
-				<!-- svelte-ignore a11y-no-static-element-interactions -->
-				<div class="flex-1 border-primary dark:border-dark py-2 active:opacity-80" on:click={reduceFunc}>-10</div>
-				<!-- svelte-ignore a11y-click-events-have-key-events -->
-				<!-- svelte-ignore a11y-no-static-element-interactions -->
-				<div class="flex-1 border-primary dark:border-dark py-2 active:opacity-80" on:click={increaseFunc}>+10</div>
-				<!-- svelte-ignore a11y-click-events-have-key-events -->
-				<!-- svelte-ignore a11y-no-static-element-interactions -->
-				<div class="flex-1 border-primary dark:border-dark py-2 active:opacity-80" on:click={() => (percent = 20)}>
-					{isZh ? '重置' : 'Reset'}
-				</div>
-			</div>
-		</Button>
-	</div>
-	<div class="my-6">
-		<Button fill="lineTheme" on:click={() => (visible = true)}>{isZh ? '日历' : 'Calendar'}</Button>
-	</div>
-	<Calendar bind:visible />
-	<div class="my-6 px-8 flex justify-between">
-		<Icon name="cake" theme path="fonts/Heroicons.svg" />
-		<Icon name="riding-line" path="fonts/Remix.svg" />
-		<Icon name="spy-line" theme path="fonts/Remix.svg" />
-		<Icon name="javascript-fill" injClass="text-[red] dark:text-green" path="fonts/Remix.svg" />
-		<Icon name="cup" theme path="fonts/IconPark.svg" />
-	</div>
-	<div class="px-4 text-xs">
-		{isZh ? '图标:第一个来自' : 'Icons: The first one comes from'} <a class="underline" href="https://heroicons.com">Heroicons</a>
-		,{isZh ? '最后一个来自' : 'the last one comes from'} <a class="underline" href="https://iconpark.oceanengine.com">IconPark</a>
-		,{isZh ? '其余来自' : 'the rest come from'} <a class="underline" href="https://remixicon.com">Remix Icon</a> 。
-	</div>
-	<div class="my-6">
-		<Button on:click={toggleLangFun}>{isZh ? '切换语言' : 'Toggle language'}</Button>
-		<Button fill="lineTheme" on:click={toggleThemeFun}>{isZh ? '切换主题' : 'Toggle theme'}</Button>
-	</div>
-</main>

+ 0 - 44
packages/create-stdf/templates/vite-uno/src/app.css

@@ -1,44 +0,0 @@
-@import '@unocss/reset/tailwind.css';
-
-:root {
-	--theme-color-primary-50: 245, 248, 255;
-	--theme-color-primary-100: 232, 238, 255;
-	--theme-color-primary-200: 187, 203, 254;
-	--theme-color-primary-300: 143, 165, 253;
-	--theme-color-primary-400: 99, 124, 253;
-	--theme-color-primary-500: 55, 81, 252;
-	--theme-color-primary: 11, 36, 251;
-	--theme-color-primary-700: 7, 20, 207;
-	--theme-color-primary-800: 4, 9, 164;
-	--theme-color-primary-900: 1, 1, 120;
-	--theme-color-primary-950: 3, 0, 77;
-	--theme-color-dark-50: 255, 254, 245;
-	--theme-color-dark-100: 255, 251, 232;
-	--theme-color-dark-200: 255, 244, 199;
-	--theme-color-dark-300: 255, 234, 166;
-	--theme-color-dark-400: 255, 222, 133;
-	--theme-color-dark-500: 255, 209, 100;
-	--theme-color-dark: 255, 192, 67;
-	--theme-color-dark-700: 210, 148, 41;
-	--theme-color-dark-800: 166, 108, 22;
-	--theme-color-dark-900: 121, 72, 8;
-	--theme-color-dark-950: 77, 41, 0;
-	--theme-color-primaryBlack: 1, 3, 25;
-	--theme-color-primaryWhite: 242, 242, 243;
-	--theme-color-darkBlack: 25, 17, 1;
-	--theme-color-darkWhite: 243, 242, 242;
-	--theme-color-functional-success: 17, 187, 141;
-	--theme-color-functional-warning: 185, 80, 0;
-	--theme-color-functional-error: 218, 20, 20;
-	--theme-color-functional-info: 46, 90, 172;
-	--theme-color-extend0: 0, 172, 238;
-	--theme-color-extend1: 255, 105, 55;
-	--theme-color-extend2: 0, 112, 74;
-}
-
-:root {
-	--un-default-border-color: currentColor;
-}
-html {
-	-webkit-tap-highlight-color: transparent;
-}

+ 0 - 4
packages/create-stdf/templates/vite-uno/src/assets/Heroicons/cake.svg

@@ -1,4 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
-    <path stroke-linecap="round" stroke-linejoin="round" d="M12 8.25v-1.5m0 1.5c-1.355 0-2.697.056-4.024.166C6.845 8.51 6 9.473 6 10.608v2.513m6-4.87c1.355 0 2.697.055 4.024.165C17.155 8.51 18 9.473 18 10.608v2.513m-3-4.87v-1.5m-6 1.5v-1.5m12 9.75l-1.5.75a3.354 3.354 0 01-3 0 3.354 3.354 0 00-3 0 3.354 3.354 0 01-3 0 3.354 3.354 0 00-3 0 3.354 3.354 0 01-3 0L3 16.5m15-3.38a48.474 48.474 0 00-6-.37c-2.032 0-4.034.125-6 .37m12 0c.39.049.777.102 1.163.16 1.07.16 1.837 1.094 1.837 2.175v5.17c0 .62-.504 1.124-1.125 1.124H4.125A1.125 1.125 0 013 20.625v-5.17c0-1.08.768-2.014 1.837-2.174A47.78 47.78 0 016 13.12M12.265 3.11a.375.375 0 11-.53 0L12 2.845l.265.265zm-3 0a.375.375 0 11-.53 0L9 2.845l.265.265zm6 0a.375.375 0 11-.53 0L15 2.845l.265.265z" />
-  </svg>
-  

+ 0 - 1
packages/create-stdf/templates/vite-uno/src/assets/IconPark/cup.svg

@@ -1 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?><svg width="24" height="24" viewBox="0 0 49 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.77783 17.012C8.77783 16.4531 9.23094 16 9.78988 16H33.7658C34.3247 16 34.7778 16.4531 34.7778 17.012V31C34.7778 38.1797 28.9575 44 21.7778 44V44C14.5981 44 8.77783 38.1797 8.77783 31V17.012Z" stroke="#000000" stroke-width="4"/><rect x="8.77783" y="23" width="26" height="8" fill="none" stroke="#000000" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M21.7778 4V10" stroke="#000000" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M13.7778 6V8" stroke="#000000" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M29.7778 6V8" stroke="#000000" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M34.7778 34C38.6438 34 41.7778 30.866 41.7778 27C41.7778 23.134 38.6438 20 34.7778 20" stroke="#000000" stroke-width="4" stroke-linecap="round"/></svg>

+ 0 - 1
packages/create-stdf/templates/vite-uno/src/assets/Remix/javascript-fill.svg

@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 3C4.34315 3 3 4.34315 3 6V18C3 19.6569 4.34315 21 6 21H18C19.6569 21 21 19.6569 21 18V6C21 4.34315 19.6569 3 18 3H6ZM13.3344 16.055C14.0531 16.6343 14.7717 16.9203 15.4904 16.913C15.9304 16.913 16.2677 16.8323 16.5024 16.671C16.7297 16.517 16.8434 16.297 16.8434 16.011C16.8434 15.7177 16.7297 15.4683 16.5024 15.263C16.2677 15.0577 15.8241 14.8523 15.1714 14.647C14.3867 14.4197 13.7817 14.1263 13.3564 13.767C12.9384 13.4077 12.7257 12.9053 12.7184 12.26C12.7184 11.6513 12.9824 11.1417 13.5104 10.731C14.0237 10.3203 14.6801 10.115 15.4794 10.115C16.5941 10.115 17.4887 10.3863 18.1634 10.929L17.3934 12.128C17.1221 11.9153 16.8104 11.7613 16.4584 11.666C16.1064 11.556 15.7911 11.501 15.5124 11.501C15.1311 11.501 14.8267 11.5707 14.5994 11.71C14.3721 11.8493 14.2584 12.0327 14.2584 12.26C14.2584 12.5093 14.3977 12.722 14.6764 12.898C14.9551 13.0667 15.4317 13.2537 16.1064 13.459C16.9204 13.701 17.4997 14.0237 17.8444 14.427C18.1891 14.8303 18.3614 15.3437 18.3614 15.967C18.3614 16.605 18.1157 17.155 17.6244 17.617C17.1404 18.0717 16.4364 18.31 15.5124 18.332C14.3024 18.332 13.2904 17.969 12.4764 17.243L13.3344 16.055ZM7.80405 16.693C8.03872 16.8397 8.32105 16.913 8.65105 16.913C8.99572 16.913 9.28172 16.814 9.50905 16.616C9.73639 16.4107 9.85005 16.055 9.85005 15.549V10.247H11.3351V15.835C11.3131 16.7003 11.0637 17.3237 10.5871 17.705C10.3157 17.9323 10.0187 18.0937 9.69605 18.189C9.37339 18.2843 9.06172 18.332 8.76105 18.332C8.21105 18.332 7.72339 18.2367 7.29805 18.046C6.84339 17.8407 6.46205 17.4777 6.15405 16.957L7.18805 16.11C7.37872 16.3667 7.58405 16.561 7.80405 16.693Z"></path></svg>

+ 0 - 1
packages/create-stdf/templates/vite-uno/src/assets/Remix/riding-line.svg

@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5.5 21C3.01472 21 1 18.9853 1 16.5C1 14.0147 3.01472 12 5.5 12C7.98528 12 10 14.0147 10 16.5C10 18.9853 7.98528 21 5.5 21ZM5.5 19C6.88071 19 8 17.8807 8 16.5C8 15.1193 6.88071 14 5.5 14C4.11929 14 3 15.1193 3 16.5C3 17.8807 4.11929 19 5.5 19ZM18.5 21C16.0147 21 14 18.9853 14 16.5C14 14.0147 16.0147 12 18.5 12C20.9853 12 23 14.0147 23 16.5C23 18.9853 20.9853 21 18.5 21ZM18.5 19C19.8807 19 21 17.8807 21 16.5C21 15.1193 19.8807 14 18.5 14C17.1193 14 16 15.1193 16 16.5C16 17.8807 17.1193 19 18.5 19ZM11.023 10.3054L13 12V18H11V13L8.28117 10.7343C8.18221 10.6661 8.08802 10.588 8 10.5C7.21895 9.71895 7.21895 8.45262 8 7.67157L10.8284 4.84315C11.6095 4.0621 12.8758 4.0621 13.6569 4.84315L15.0711 6.25736C16.1746 7.36086 17.5548 8.01891 18.9884 8.23151L18.978 10.2474C17.0335 10.0218 15.1485 9.16323 13.6569 7.67157L11.023 10.3054ZM16 5C14.8954 5 14 4.10457 14 3C14 1.89543 14.8954 1 16 1C17.1046 1 18 1.89543 18 3C18 4.10457 17.1046 5 16 5Z"></path></svg>

+ 0 - 1
packages/create-stdf/templates/vite-uno/src/assets/Remix/spy-line.svg

@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 13C19.2091 13 21 14.7909 21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17H11C11 19.2091 9.20914 21 7 21C4.79086 21 3 19.2091 3 17C3 14.7909 4.79086 13 7 13C8.48052 13 9.77317 13.8043 10.4648 14.9999H13.5352C14.2268 13.8043 15.5195 13 17 13ZM7 15C5.89543 15 5 15.8954 5 17C5 18.1046 5.89543 19 7 19C8.10457 19 9 18.1046 9 17C9 15.8954 8.10457 15 7 15ZM17 15C15.8954 15 15 15.8954 15 17C15 18.1046 15.8954 19 17 19C18.1046 19 19 18.1046 19 17C19 15.8954 18.1046 15 17 15ZM16 3C18.2091 3 20 4.79086 20 7V10H22V12H2V10H4V7C4 4.79086 5.79086 3 8 3H16ZM16 5H8C6.94564 5 6 5.95 6 7V10H18V7C18 5.94564 17.05 5 16 5Z"></path></svg>

+ 0 - 1
packages/create-stdf/templates/vite-uno/src/assets/svelte.svg

@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="26.6" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 308"><path fill="#FF3E00" d="M239.682 40.707C211.113-.182 154.69-12.301 113.895 13.69L42.247 59.356a82.198 82.198 0 0 0-37.135 55.056a86.566 86.566 0 0 0 8.536 55.576a82.425 82.425 0 0 0-12.296 30.719a87.596 87.596 0 0 0 14.964 66.244c28.574 40.893 84.997 53.007 125.787 27.016l71.648-45.664a82.182 82.182 0 0 0 37.135-55.057a86.601 86.601 0 0 0-8.53-55.577a82.409 82.409 0 0 0 12.29-30.718a87.573 87.573 0 0 0-14.963-66.244"></path><path fill="#FFF" d="M106.889 270.841c-23.102 6.007-47.497-3.036-61.103-22.648a52.685 52.685 0 0 1-9.003-39.85a49.978 49.978 0 0 1 1.713-6.693l1.35-4.115l3.671 2.697a92.447 92.447 0 0 0 28.036 14.007l2.663.808l-.245 2.659a16.067 16.067 0 0 0 2.89 10.656a17.143 17.143 0 0 0 18.397 6.828a15.786 15.786 0 0 0 4.403-1.935l71.67-45.672a14.922 14.922 0 0 0 6.734-9.977a15.923 15.923 0 0 0-2.713-12.011a17.156 17.156 0 0 0-18.404-6.832a15.78 15.78 0 0 0-4.396 1.933l-27.35 17.434a52.298 52.298 0 0 1-14.553 6.391c-23.101 6.007-47.497-3.036-61.101-22.649a52.681 52.681 0 0 1-9.004-39.849a49.428 49.428 0 0 1 22.34-33.114l71.664-45.677a52.218 52.218 0 0 1 14.563-6.398c23.101-6.007 47.497 3.036 61.101 22.648a52.685 52.685 0 0 1 9.004 39.85a50.559 50.559 0 0 1-1.713 6.692l-1.35 4.116l-3.67-2.693a92.373 92.373 0 0 0-28.037-14.013l-2.664-.809l.246-2.658a16.099 16.099 0 0 0-2.89-10.656a17.143 17.143 0 0 0-18.398-6.828a15.786 15.786 0 0 0-4.402 1.935l-71.67 45.674a14.898 14.898 0 0 0-6.73 9.975a15.9 15.9 0 0 0 2.709 12.012a17.156 17.156 0 0 0 18.404 6.832a15.841 15.841 0 0 0 4.402-1.935l27.345-17.427a52.147 52.147 0 0 1 14.552-6.397c23.101-6.006 47.497 3.037 61.102 22.65a52.681 52.681 0 0 1 9.003 39.848a49.453 49.453 0 0 1-22.34 33.12l-71.664 45.673a52.218 52.218 0 0 1-14.563 6.398"></path></svg>

+ 0 - 5
packages/create-stdf/templates/vite-uno/src/assets/uno.svg

@@ -1,5 +0,0 @@
-<svg width="220" height="220" viewBox="0 0 220 220" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M117.444 167.888C117.444 140.273 139.83 117.888 167.444 117.888V117.888C195.058 117.888 217.444 140.273 217.444 167.888V167.888C217.444 195.502 195.058 217.888 167.444 217.888V217.888C139.83 217.888 117.444 195.502 117.444 167.888V167.888Z" fill="#858585"/>
-<path d="M117.444 53C117.444 25.3858 139.83 3 167.444 3V3C195.058 3 217.444 25.3858 217.444 53V98C217.444 100.761 215.205 103 212.444 103H122.444C119.683 103 117.444 100.761 117.444 98V53Z" fill="#CCCCCC"/>
-<path d="M102 167.888C102 195.502 79.6142 217.888 52 217.888V217.888C24.3858 217.888 2 195.502 2 167.888L2.00001 122.888C2.00001 120.126 4.23859 117.888 7.00001 117.888L97 117.888C99.7614 117.888 102 120.126 102 122.888L102 167.888Z" fill="#4D4D4D"/>
-</svg>

+ 0 - 1
packages/create-stdf/templates/vite-uno/src/assets/vite.svg

@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>

+ 0 - 46
packages/create-stdf/templates/vite-uno/src/data/Nintendo.js

@@ -1,46 +0,0 @@
-export default {
-	name: 'Nintendo',
-	color: {
-		primary: {
-			50: '255, 246, 245', // #FFF6F5
-			100: '255, 234, 232', // #FFEAE8
-			200: '250, 185, 182', // #FAB9B6
-			300: '245, 136, 134', // #F58886
-			400: '240, 87, 90', // #F0575A
-			500: '235, 43, 52', // #EB2B34
-			default: '230, 0, 18', // #E60012
-			700: '192, 0, 22', // #C00016
-			800: '153, 0, 23', // #990017
-			900: '115, 0, 21', // #730015
-			950: '77, 0, 17', // #4D0011
-		},
-		dark: {
-			50: '245, 255, 254', // #F5FFFE
-			100: '232, 255, 254', // #E8FFFE
-			200: '182, 249, 249', // #B6F9F9
-			300: '133, 240, 244', // #85F0F4
-			400: '87, 228, 238', // #57E4EE
-			500: '42, 214, 233', // #2AD6E9
-			default: '0, 195, 227', // #00C3E3
-			700: '0, 158, 189', // #009EBD
-			800: '0, 121, 152', // #007998
-			900: '0, 87, 114', // #005772
-			950: '0, 56, 77', // #00384D
-		},
-		primaryBlack: '25, 1, 3', // #190103
-		primaryWhite: '243, 242, 242', // #F3F2F2
-		darkBlack: '1, 22, 25', // #011619
-		darkWhite: '242, 243, 243', // #F2F3F3
-		functional: {
-			success: '0, 180, 42', // #00b42a
-			warning: '255, 125, 0', // #ff7d00
-			error: '245, 63, 63', // #f53f3f
-			info: '22, 93, 255', // #165dff
-		},
-		extend: [
-			{ color: '0, 82, 217', alias: 'Tencent' }, // #0052d9
-			{ color: '26, 173, 25', alias: 'WeChat' }, // #1aad19
-			{ color: '243, 112, 33', alias: 'Hermès' }, // #f37021
-		],
-	},
-};

+ 0 - 9
packages/create-stdf/templates/vite-uno/src/lib/Counter.svelte

@@ -1,9 +0,0 @@
-<script>
-	import { Progress } from 'stdf';
-
-	export let percent = 20;
-</script>
-
-<div class="p-4">
-	<Progress {percent} />
-</div>

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

@@ -1,9 +0,0 @@
-import './app.css';
-import App from './App.svelte';
-import 'uno.css';
-
-const app = new App({
-	target: document.getElementById('app'),
-});
-
-export default app;

+ 0 - 7
packages/create-stdf/templates/vite-uno/svelte.config.js

@@ -1,7 +0,0 @@
-import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
-
-export default {
-	// Consult https://svelte.dev/docs#compile-time-svelte-preprocess
-	// for more information about preprocessors
-	preprocess: vitePreprocess(),
-};

+ 0 - 79
packages/create-stdf/templates/vite-uno/uno.config.js

@@ -1,79 +0,0 @@
-// uno.config.js
-import { defineConfig, presetUno } from 'unocss';
-
-export default defineConfig({
-	// ...UnoCSS options
-	content: {
-		filesystem: ['./node_modules/stdf/**/*.svelte'],
-	},
-	presets: [presetUno()],
-	theme: {
-		colors: {
-			// 主题色
-			// Theme Color
-			primary: {
-				50: 'rgba(var(--theme-color-primary-50), <alpha-value>)',
-				100: 'rgba(var(--theme-color-primary-100), <alpha-value>)',
-				200: 'rgba(var(--theme-color-primary-200), <alpha-value>)',
-				300: 'rgba(var(--theme-color-primary-300), <alpha-value>)',
-				400: 'rgba(var(--theme-color-primary-400), <alpha-value>)',
-				500: 'rgba(var(--theme-color-primary-500), <alpha-value>)',
-				DEFAULT: 'rgba(var(--theme-color-primary), <alpha-value>)',
-				700: 'rgba(var(--theme-color-primary-700), <alpha-value>)',
-				800: 'rgba(var(--theme-color-primary-800), <alpha-value>)',
-				900: 'rgba(var(--theme-color-primary-900), <alpha-value>)',
-				950: 'rgba(var(--theme-color-primary-950), <alpha-value>)',
-			},
-			dark: {
-				50: 'rgba(var(--theme-color-dark-50), <alpha-value>)',
-				100: 'rgba(var(--theme-color-dark-100), <alpha-value>)',
-				200: 'rgba(var(--theme-color-dark-200), <alpha-value>)',
-				300: 'rgba(var(--theme-color-dark-300), <alpha-value>)',
-				400: 'rgba(var(--theme-color-dark-400), <alpha-value>)',
-				500: 'rgba(var(--theme-color-dark-500), <alpha-value>)',
-				DEFAULT: 'rgba(var(--theme-color-dark), <alpha-value>)',
-				700: 'rgba(var(--theme-color-dark-700), <alpha-value>)',
-				800: 'rgba(var(--theme-color-dark-800), <alpha-value>)',
-				900: 'rgba(var(--theme-color-dark-900), <alpha-value>)',
-				950: 'rgba(var(--theme-color-dark-950), <alpha-value>)',
-			},
-			primaryBlack: 'rgba(var(--theme-color-primaryBlack), <alpha-value>)',
-			primaryWhite: 'rgba(var(--theme-color-primaryWhite), <alpha-value>)',
-			darkBlack: 'rgba(var(--theme-color-darkBlack), <alpha-value>)',
-			darkWhite: 'rgba(var(--theme-color-darkWhite), <alpha-value>)',
-
-			// 功能色
-			// Functional Color
-			success: 'rgba(var(--theme-color-functional-success), <alpha-value>)',
-			warning: 'rgba(var(--theme-color-functional-warning), <alpha-value>)',
-			error: 'rgba(var(--theme-color-functional-error), <alpha-value>)',
-			info: 'rgba(var(--theme-color-functional-info), <alpha-value>)',
-
-			// 扩展色
-			// Extended Color
-			extend0: 'rgba(var(--theme-color-extend0), <alpha-value>)',
-			extend1: 'rgba(var(--theme-color-extend1), <alpha-value>)',
-			extend2: 'rgba(var(--theme-color-extend2), <alpha-value>)',
-
-			// 中性色
-			// Neutral Color
-			black: '#000000',
-			white: '#ffffff',
-			gray: {
-				50: '#f2f2f2',
-				100: '#e6e6e6',
-				200: '#cccccc',
-				300: '#b3b3b3',
-				400: '#999999',
-				500: '#808080',
-				600: '#666666',
-				700: '#4D4D4D',
-				800: '#333333',
-				900: '#1A1A1A',
-				950: '#0D0D0D',
-			},
-			transparent: 'transparent',
-		},
-		extend: {},
-	},
-});

+ 0 - 34
packages/create-stdf/templates/vite-uno/vite.config.js

@@ -1,34 +0,0 @@
-import { defineConfig } from 'vite';
-import { svelte } from '@sveltejs/vite-plugin-svelte';
-import UnoCSS from 'unocss/vite';
-import extractorSvelte from '@unocss/extractor-svelte';
-import svgSprite from 'rollup-plugin-stdf-icon';
-
-// https://vitejs.dev/config/
-// @ts-ignore
-export default defineConfig({
-	// @ts-ignore
-	plugins: [
-		// @ts-ignore
-		UnoCSS({
-			extractors: [extractorSvelte()],
-		}),
-		svelte({
-			onwarn(warning, defaultHandler) {
-				if (warning.code.startsWith('a11y-')) {
-					return;
-				}
-
-				// handle all other warnings normally
-				defaultHandler(warning);
-			},
-		}),
-		// 一般来说,一个应用的的 svg 不多时都放在一个文件夹下,合并为一个 symbol 即可。此处演示了不同文件夹下的图标如何合并为不同的 symbol。
-		// Generally speaking, when the svg of an application is not much, it is placed in a folder and merged into one symbol. This example shows how the icons in different folders are merged into different symbols.
-		svgSprite([
-			{ inFile: 'src/assets/Heroicons', outFile: 'public/fonts' },
-			{ inFile: 'src/assets/IconPark', outFile: 'public/fonts' },
-			{ inFile: 'src/assets/Remix', outFile: 'public/fonts' },
-		]),
-	],
-});