Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mertasan committed Jul 2, 2022
1 parent 51e2f86 commit ceaa0d9
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,23 @@ module.exports = {
}
```

### toBase

By default, variables are added to `@tailwind base;` styles.
If you don't include `@tailwind base;` styles in your `css`, set the `toBase` option to `false`. In this case, the variables will be added to the `@tailwind components;` styles.

```js
//...
plugins: [
require('@mertasan/tailwindcss-variables')({
toBase: false, // default: true
})
]
//...
```

- [tailwindcss.com - Functions and directives](https://tailwindcss.com/docs/functions-and-directives#tailwind)

## API example for your own plugins

- [Detailed Explanation](#gerçek-kullanım-örneği-detaylı)
Expand Down
18 changes: 18 additions & 0 deletions README.tr.md
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,24 @@ module.exports = {
}
```

### toBase

Varsayılan olarak, değişkenler `@tailwind base;` stillerine eklenir.
Eğer projenizin `css` dosyasına `@tailwind base;` stillerini dahil etmiyorsanız, `toBase` seçeneğini `false` durumuna getirebilirsiniz.
Bu durumda değişkenler `@tailwind components;` stillerine dahil edilecektir.

```js
//...
plugins: [
require('@mertasan/tailwindcss-variables')({
toBase: false, // varsayılan: true
})
]
//...
```

- [tailwindcss.com - Functions and directives](https://tailwindcss.com/docs/functions-and-directives#tailwind)


## Kendi eklentileriniz için API örneği

Expand Down

0 comments on commit ceaa0d9

Please sign in to comment.