Skip to content

Commit ceaa0d9

Browse files
committed
update docs
1 parent 51e2f86 commit ceaa0d9

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,23 @@ module.exports = {
879879
}
880880
```
881881

882+
### toBase
883+
884+
By default, variables are added to `@tailwind base;` styles.
885+
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.
886+
887+
```js
888+
//...
889+
plugins: [
890+
require('@mertasan/tailwindcss-variables')({
891+
toBase: false, // default: true
892+
})
893+
]
894+
//...
895+
```
896+
897+
- [tailwindcss.com - Functions and directives](https://tailwindcss.com/docs/functions-and-directives#tailwind)
898+
882899
## API example for your own plugins
883900

884901
- [Detailed Explanation](#gerçek-kullanım-örneği-detaylı)

README.tr.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,24 @@ module.exports = {
879879
}
880880
```
881881

882+
### toBase
883+
884+
Varsayılan olarak, değişkenler `@tailwind base;` stillerine eklenir.
885+
Eğer projenizin `css` dosyasına `@tailwind base;` stillerini dahil etmiyorsanız, `toBase` seçeneğini `false` durumuna getirebilirsiniz.
886+
Bu durumda değişkenler `@tailwind components;` stillerine dahil edilecektir.
887+
888+
```js
889+
//...
890+
plugins: [
891+
require('@mertasan/tailwindcss-variables')({
892+
toBase: false, // varsayılan: true
893+
})
894+
]
895+
//...
896+
```
897+
898+
- [tailwindcss.com - Functions and directives](https://tailwindcss.com/docs/functions-and-directives#tailwind)
899+
882900

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

0 commit comments

Comments
 (0)