You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate `tailwind.config.js` by setting type to `all`.
23
+
Generate `tailwind.config.js` by setting type to `all`.
24
24
See [Creating each theme file](https://github.com/nado1001/sd-tailwindcss-transformer#creating-each-theme-file) if you wish to customize the configuration file with [plugin functions](https://tailwindcss.com/docs/plugins), etc.
25
25
26
26
```js
@@ -64,7 +64,7 @@ module.exports = {
64
64
65
65
### Creating each [theme](https://tailwindcss.com/docs/configuration#theme) file
66
66
67
-
Create an object for each theme, assuming that various customizations will be made in the configuration file.
67
+
Create an object for each theme, assuming that various customizations will be made in the configuration file.
68
68
Import and use the created files in `tailwind.config.js`.
69
69
70
70
```js
@@ -106,7 +106,7 @@ module.exports = {
106
106
107
107
### Using CSS custom variables
108
108
109
-
CSS custom variables can be used by setting isVariables to `true`.
109
+
CSS custom variables can be used by setting isVariables to `true`.
110
110
In this case, a CSS file must also be generated.
111
111
112
112
```js
@@ -186,19 +186,19 @@ Please see [Example](https://github.com/nado1001/sd-tailwindcss-transformer/tree
| type | Set the name of each theme (colors, fontSize, etc.) for `'all'` or tailwind. |`'all'` or string |
192
-
| formatType | Set the format of the Tailwind CSS configuration file. <br>Default value: `js`|`'js'``'cjs'`|
193
-
| isVariables | Set when using CSS custom variables. <br>Default value: `false`| boolean |
194
-
| extend | Set to add transformed styles to the `'extend'` key within the `'theme'` key or not. <br>Default value: `true`| boolean |
195
-
| source |[`source`](https://github.com/amzn/style-dictionary/blob/main/README.md#configjson) attribute of style-dictionary.<br>Default value: `['tokens/**/*.json']`| Array of strings |
196
-
| transforms |[`platform.transforms`](https://github.com/amzn/style-dictionary/blob/main/README.md#configjson) attribute of style-dictionary.<br>Default value: `['attribute/cti','name/cti/kebab']`| Array of strings |
197
-
| buildPath |[`platform.buildPath`](https://github.com/amzn/style-dictionary/blob/main/README.md#configjson) attribute of style-dictionary.<br>Default value: `'build/web/'`| string |
198
-
| prefix |[`platform.prefix`](https://github.com/amzn/style-dictionary/blob/main/types/Platform.d.ts#L21) attribute of style-dictionary.<br>Valid when using css variables (isVariables: true) | string |
199
-
| tailwind.content |[Content](https://tailwindcss.com/docs/content-configuration) attribute of Tailwind CSS. Set if necessary when 'all' is set in type. <br>Default value: `['./src/**/*.{ts,tsx}']`| Array of strings |
200
-
| tailwind.darkMode |[Dark Mode](https://tailwindcss.com/docs/dark-mode#toggling-dark-mode-manually) attribute of Tailwind CSS. Set if necessary when 'all' is set in type. <br>Default value: `'class'`|`'media'``'class'`|
201
-
| tailwind.plugin | Tailwind CSS [official plugins](https://tailwindcss.com/docs/plugins#official-plugins). Set if necessary when 'all' is set in type. | Array of `'typography'``'forms'``'aspect-ratio'``'line-clamp'``'container-queries'`|
| type | Set the name of each theme (colors, fontSize, etc.) for `'all'` or tailwind. |`'all'` or string |
192
+
| formatType | Set the format of the Tailwind CSS configuration file. <br>Default value: `js`|`'js'``'cjs'`|
193
+
| isVariables | Set when using CSS custom variables. <br>Default value: `false`| boolean |
194
+
| extend | Set to add transformed styles to the `'extend'` key within the `'theme'` key or not. <br>Default value: `true`| boolean |
195
+
| source |[`source`](https://github.com/amzn/style-dictionary/blob/main/README.md#configjson) attribute of style-dictionary.<br>Default value: `['tokens/**/*.json']`| Array of strings|
196
+
| transforms |[`platform.transforms`](https://github.com/amzn/style-dictionary/blob/main/README.md#configjson) attribute of style-dictionary.<br>Default value: `['attribute/cti','name/cti/kebab']`| Array of strings |
197
+
| buildPath |[`platform.buildPath`](https://github.com/amzn/style-dictionary/blob/main/README.md#configjson) attribute of style-dictionary.<br>Default value: `'build/web/'`| string |
198
+
| prefix |[`platform.prefix`](https://github.com/amzn/style-dictionary/blob/main/types/Platform.d.ts#L21) attribute of style-dictionary.<br>Valid when using css variables (isVariables: true) | string |
199
+
| tailwind.content |[Content](https://tailwindcss.com/docs/content-configuration) attribute of Tailwind CSS. Set if necessary when 'all' is set in type. <br>Default value: `['./src/**/*.{ts,tsx}']`| Array of strings |
200
+
| tailwind.darkMode |[Dark Mode](https://tailwindcss.com/docs/dark-mode#toggling-dark-mode-manually) attribute of Tailwind CSS. Set if necessary when 'all' is set in type. <br>Default value: `'class'`|`'media'``'class'`|
201
+
| tailwind.plugin | Tailwind CSS [official plugins](https://tailwindcss.com/docs/plugins#official-plugins). Set if necessary when 'all' is set in type. | Array of `'typography'``['typography', options]``'forms'``['forms', options]``'aspect-ratio'``'line-clamp'``'container-queries'`|
0 commit comments