Skip to content

Commit

Permalink
docs(svelte): add svelte generation
Browse files Browse the repository at this point in the history
  • Loading branch information
totto2727 committed Sep 19, 2024
1 parent d8b9e11 commit 74df95c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ All major frameworks are supported.
color: white;

/* 👇 Define component's props directly in your CSS */
&[data-variant="primary"] {
&[data-variant='primary'] {
background: blue;
}

&[data-variant="secondary"] {
&[data-variant='secondary'] {
background: gray;
}
}
Expand Down Expand Up @@ -54,7 +54,7 @@ export const App = () => (
)
```

MistCSS can generate ⚛️ __React__, 💚 __Vue__, 🚀 __Astro__ and 🔥 __Hono__ components. You can use 🍃 __Tailwind CSS__ to style them.
MistCSS can generate ⚛️ **React**, 💚 **Vue**, 🚀 **Astro**, 🧠**Svelte** and 🔥 **Hono** components. You can use 🍃 **Tailwind CSS** to style them.

## Documentation

Expand All @@ -66,6 +66,7 @@ https://typicode.github.io/mistcss
- [Remix](https://remix.run/)
- [React](https://react.dev/)
- [Vue](https://vuejs.org)
- [Svelte](https://svelte.dev/)
- [Astro](https://astro.build/)
- [Hono](https://hono.dev/)
- [Tailwind CSS](https://tailwindcss.com/)
6 changes: 6 additions & 0 deletions docs/src/content/docs/integration/frameworks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ mistcss ./components --target=react
mistcss ./components --target=vue
```

## Svelte

```sh
mistcss ./components --target=svelte
```

## Astro

```sh
Expand Down
3 changes: 2 additions & 1 deletion docs/src/content/docs/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ Supports:
- [Remix](https://remix.run/)
- [React](https://react.dev/)
- [Vue](https://vuejs.org)
- [Svelte](https://svelte.dev/)
- [Astro](https://astro.build/)
- [Hono](https://hono.dev/)
- [Tailwind CSS](https://tailwindcss.com/)

__Bonus__: if you need to switch from one framework to another, you won't have to rewrite your components. Simply change MistCSS compilation target.
__Bonus__: if you need to switch from one framework to another, you won't have to rewrite your components. Simply change MistCSS compilation target.

0 comments on commit 74df95c

Please sign in to comment.