Skip to content

Commit

Permalink
0.5.0 (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode authored Apr 27, 2024
1 parent 34b4d95 commit 7848ebc
Show file tree
Hide file tree
Showing 19 changed files with 2,416 additions and 7,860 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm test
npm test -- run
12 changes: 8 additions & 4 deletions docs/src/content/docs/integration/frameworks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@
title: Frameworks
---

## React frameworks
## React

By default, `mistcss` will generate React components:
By default, `mistcss` will generate React components that you can use in Next.js or Remix

```sh
mistcss ./components
```

## Hono

To use it with Hono, pass `--hono` option:
```sh
mistcss ./components --target=hono
```

## Astro

```sh
mistcss ./components --hono
mistcss ./components --target=astro
```
28 changes: 27 additions & 1 deletion docs/src/content/docs/integration/tailwind.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,30 @@ In v4, Tailwind provides CSS variables that can be used in your CSS.
}
}
}
```
```

## Theming using CSS variables

```css title="Button.mist.css"
@scope (button.button) {
:scope {
--padding: 0;
--color: black;

padding: var(--padding);
color: var(--color);
}
}
```

````jsx title="App.tsx"
import theme from 'tailwindcss/defaultTheme'

export const App = () => (
<CustomButton
padding={theme.spacing.8}
color={theme.colors.blue.900}
>
Save
</CustomButton>
)
1 change: 1 addition & 0 deletions docs/src/content/docs/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ It supports:
- [Remix](https://remix.run/)
- [React](https://react.dev/)
- [Hono](https://hono.dev/)
- [Astro](https://astro.build/)
- [Tailwind CSS](https://tailwindcss.com/)
- More to come...
Loading

0 comments on commit 7848ebc

Please sign in to comment.