Replies: 1 comment 3 replies
-
Hey @MLNW, I'm not quite sure I follow your request here. Why wouldn't you use CSS to handle CSS styling? Or use Javascript to manipulate the CSS? Can you walk through a few use cases and perhaps I can make some suggestions? We've heard the request about accessing theme colors via JS a few times, so we'll most likely be introducing a new JSON export alongside the CSS export for themes. This will provide the same values in a format easily understood by javascript. We had a contributor volunteer to add this yesterday, but I may aim to get a quick draft of this inserted this upcoming release. We have use of it as well within our documentation. Unfortunately we've not had success accessing Tailwind colors through Javascript either. They're instructions don't seem to take Vite into account. If you find a way to do this please let me know, I have some use cases for this! |
Beta Was this translation helpful? Give feedback.
-
Hey, I need to theme an external library, i.e., https://github.com/bpmn-io/bpmn-js. This library offers ways to do so from code but I haven't found a way to access the Skeleton configuration values from TypeScript in my SvelteKit project. At the very least I need access to my theme colors, but it would also be great if I could add margin to a specific element depending on the current break point without having to resort to media queries myself.
I tried to access the tailwind config as described in their documentation but that did not work.
Has anyone tried and succeeded with this? Help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions