-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support tailwind.config.ts #667
Labels
enhancement: to triage
New feature of request pending review by team member
Comments
tobyperplex
added
the
enhancement: to triage
New feature of request pending review by team member
label
Feb 1, 2024
I have the same problem, I'm trying to add histoire to an existing svelte project that uses tailwind with some theming and plugins and and these are not bing picked up. Instead histoire displays some other tailwind configuration in the ui. Here's my setup:
/** @type {import('tailwindcss').Config} */
export default {
content: [
'./src/**/*.{html,js,svelte,ts}',
'./node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}',
'./node_modules/flowbite-svelte-icons/**/*.{html,js,svelte,ts}'
],
plugins: [require('flowbite/plugin')],
darkMode: 'class',
theme: {
extend: {
colors: {
.... a bunch of colors |
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clear and concise description of the problem
Histoire will automatically detect your Tailwind CSS configuration and generate design system stories for you. But not if you make your
tailwind.config.js
with module.exports atailwind.config.ts
with export default.Suggested solution
Support both
tailwind.config.js
with module.exports andtailwind.config.ts
with export default.Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: