Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(example): fix vite-svelte-postcss example #2701

Merged
merged 1 commit into from Jun 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/guide/index.md
Expand Up @@ -137,7 +137,7 @@ Source code for all the examples can be found in the [/examples](https://github.
| `vite-react` | [GitHub](https://github.com/unocss/unocss/tree/main/examples/vite-react) | [Play Online](https://stackblitz.com/fork/github/unocss/unocss/tree/main/examples/vite-react) |
| `vite-solid` | [GitHub](https://github.com/unocss/unocss/tree/main/examples/vite-solid) | [Play Online](https://stackblitz.com/fork/github/unocss/unocss/tree/main/examples/vite-solid) |
| `vite-svelte` | [GitHub](https://github.com/unocss/unocss/tree/main/examples/vite-svelte) | [Play Online](https://stackblitz.com/fork/github/unocss/unocss/tree/main/examples/vite-svelte) |
| `vite-svelte-postcss` | [GitHub](https://github.com/unocss/unocss/tree/main/examples/vite-svelte-postcss) |
| `vite-svelte-postcss` | [GitHub](https://github.com/unocss/unocss/tree/main/examples/vite-svelte-postcss) | [Play Online](https://stackblitz.com/fork/github/unocss/unocss/tree/main/examples/vite-svelte-postcss) |
| `vite-vue3` | [GitHub](https://github.com/unocss/unocss/tree/main/examples/vite-vue3) | [Play Online](https://stackblitz.com/fork/github/unocss/unocss/tree/main/examples/vite-vue3) |
| `vite-vue3-postcss` | [GitHub](https://github.com/unocss/unocss/tree/main/examples/vite-vue3-postcss) | [Play Online](https://stackblitz.com/fork/github/unocss/unocss/tree/main/examples/vite-vue3-postcss) |
| `vite-watch-mode` | [GitHub](https://github.com/unocss/unocss/tree/main/examples/vite-watch-mode) | [Play Online](https://stackblitz.com/fork/github/unocss/unocss/tree/main/examples/vite-watch-mode?view=editor) |
Expand Down
10 changes: 4 additions & 6 deletions examples/vite-svelte-postcss/src/App.svelte
@@ -1,7 +1,7 @@
<div text-center font-sans p4 flex flex-col items-center gap-8>
<div class="flex gap-4">
<div class="i-logos-svelte-icon text-3xl" />
<div class="i-logos-unocss text-3xl" />
<div class="i-logos-svelte-icon text-3xl" />
<div class="i-logos-postcss text-3xl" />
</div>
<div text-gray2 text-2xl font-medium>
Expand All @@ -22,10 +22,8 @@
</div>

<style lang="postcss">
@screen md {
.my-class {
@apply bg-red-800;
color: theme('colors.red.300');
}
.my-class {
@apply bg-red-800 p-2 rounded;
color: theme('colors.red.200');
}
</style>