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
[](https://www.npmjs.com/package/sd-tailwindcss-transformer)
Generate `tailwind.config.js` by setting type to `all`.
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.
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.
| type | Set the name of each theme (colors, fontSize, etc.) for `'all'` or tailwind. |`'all'` or string |
190
-
| formatType | Set the format of the Tailwind CSS configuration file. <br>Default value: `js`|`'js'``'cjs'`|
191
-
| isVariables | Set when using CSS custom variables. <br>Default value: `false`| boolean |
192
-
| 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 |
193
-
| 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 |
194
-
| buildPath |[`platform.buildPath`](https://github.com/amzn/style-dictionary/blob/main/README.md#configjson) attribute of style-dictionary.<br>Default value: `'build/web/'`| string |
195
-
| 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 |
196
-
| 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'`|
197
-
| 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
+
| 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 |
195
+
| 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 |
196
+
| buildPath |[`platform.buildPath`](https://github.com/amzn/style-dictionary/blob/main/README.md#configjson) attribute of style-dictionary.<br>Default value: `'build/web/'`| string |
197
+
| 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 |
198
+
| 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 |
199
+
| 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'`|
200
+
| 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'`|
0 commit comments