Cant get styles to work at all #1614
Replies: 3 comments
-
My guess is that your root classes aren't imported correctly. Check your imports and make sure your tailwind.config file is also correctly set up. Usually when styles don't load and there are no visible errors, it means that import fails for some reason. I'm not sure if the file type has anything to do with it, but the instructions use ts and you have mjs in your import so check that just in case. Mjs file type should be fine though since you're using ECMAscript modules in a node environment but check that as well. Also make sure that what you have in package.json reflects the file types you're using. I hope you can figure it out soon. |
Beta Was this translation helpful? Give feedback.
-
The // package.json
...
"type": "module",
...
Imports work fine as far as i can tell , my tailwind classes work , even the Sadly i don't see any other cause for this , the instructions are really simple too... I haven't run the create-app helper though , cause i have an already existing project
the formkit config file and theme file is generated for me by the // formkit.config.mjs
import { defineFormKitConfig } from '@formkit/vue'
import { rootClasses } from './formkit.theme.mjs'
export default defineFormKitConfig({
config: {
rootClasses
}
}) I have added the formkit.theme to the tailwind config file too import config from 'formkit.config.mjs'
app.use(plugin, defaultConfig(config)) |
Beta Was this translation helpful? Give feedback.
-
import { plugin, defaultConfig } from '@formkit/vue'
import config from '../formkit.config.mjs'
....
/** Loading Splash */
app.use(plugin, defaultConfig(config())); What seemed to make it work was passing in the default config the config object and calling it |
Beta Was this translation helpful? Give feedback.
-
I am not opening an issue unless its a bug , this probably is user error.
I used the steps on the website after theme customization but my forms still have the default theme.
![image](https://private-user-images.githubusercontent.com/61395246/412796051-5bccf7d7-4e40-4bb6-ac89-a7f6bc83939e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MzQ4ODgsIm5iZiI6MTczOTkzNDU4OCwicGF0aCI6Ii82MTM5NTI0Ni80MTI3OTYwNTEtNWJjY2Y3ZDctNGU0MC00YmI2LWFjODktYTdmNmJjODM5MzllLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDAzMDk0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZiOWFmNTkyZjNmOWMxNzcwMTQ5ODdkNWE1YWI4MzhiZmZhZjIzMDg5ZWMyMDNhMWQwOTRkMDYzMGQ3NTU3OTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.p1dHR4mxN-mhhjHfv3UI4Cjmjh8ke3jabxTc1gxfil8)
What could be the issue ?
Beta Was this translation helpful? Give feedback.
All reactions