Skip to content

Commit

Permalink
docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed May 5, 2024
1 parent eecc1ed commit 5ddb233
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/src/content/docs/integration/frameworks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
title: Frameworks
---

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

## React

```sh
mistcss ./components
# or
mistcss ./components --target=react
```

## Vue
Expand Down
11 changes: 8 additions & 3 deletions docs/src/content/docs/integration/tailwind.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ title: Tailwind CSS

If Tailwind CSS is already enabled in your project, you have nothing else to do. Otherwise, please refer to your framework documentation.

## Tailwind v3
## @apply (Tailwind v3)

In v3, you can use the Tailwind's `@apply` directive.

```css title="Button.mist.css"
@scope (button.button) {
Expand All @@ -18,7 +20,7 @@ If Tailwind CSS is already enabled in your project, you have nothing else to do.
}
```

## Tailwind v4
## CSS Variables (Tailwind v4)

In v4, Tailwind provides CSS variables that can be used in your CSS.

Expand All @@ -35,11 +37,14 @@ In v4, Tailwind provides CSS variables that can be used in your CSS.
}
```

## Theming using CSS variables
## JavaScript

You can also import Tailwind's theme and apply it from there.

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

Expand Down

0 comments on commit 5ddb233

Please sign in to comment.