I’ve followed the NextJS installation guide for Plasmic and that worked wonderfully. I have my own custom components showing up in Plasmic and rendering on my local site.
The only issue is I’m using CSS Modules to apply styling to some opinionated components. The CSS Module styling doesn’t seem to be showing up in either Plasmic or my local dev environment when injected via Plasmic.
I found this CLI setup tutorial which mentions CSS Modules are supported, but it references a few things that aren’t covered in the NextJS setup tutorial (e.g. plasmic.json)
I installed the CLI, set up plasmic.json with the following config and am still getting unstyled components.
Hello! The CLI is only for users who are trying to do codegen instead of the more common headless api/plasmicloader.
When you say that you are trying to use CSS modules, do you mean you have some handwritten CSS modules applied to some handwritten components, but when you register and insert those components in Plasmic Studio, the styles don’t appear correctly?
do you mean you have some handwritten CSS modules applied to some handwritten components, but when you register and insert those components in Plasmic Studio, the styles don’t appear correctly?
Correct.
I just added plasmicops to the GitHub repo. It’s very small, only just started
Well, there’s progress. But the Plasmic reset is still causing havoc. Some text areas have the correct color, some are still black. None of them have the right font (I added my local font in the Plasmic editor to no avail)
It seems Plasmic has stopped pulling in recent updates now? I’ve replaced the component I was originally testing with with a basic text field. The old component is still showing on my site up and the new Plasmic-provided text-only field is not