Bundle css from web component export #4778
Unanswered
maxmezzomo
asked this question in
Q&A
Replies: 2 comments
-
with sp-theme I can get some styles loaded like fonts etc.. but the table specific styles I think are not loaded (css vars not defined) because I never imported, I am unsure how/where to get them. |
Beta Was this translation helpful? Give feedback.
0 replies
-
As additional context, and if the use case I gave is too specific, what would be the recommendation for users who would like to use the web components without a build step, is that supported? I read the entire section on open web components about buildless but was not sure how that applies to spectrum. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use spectrum web components in a rust server side rendered app, so html templates (askama), like jinja for python.
I had a look around but there are some many resources and different packages I think I just got more confused.
I currently use a blank vite project and one main file where I import (with side effect) the web components I would like to use, and build one file to serve via web server. But there is no css input. I also do not import the css into main.js because I see no css export. For example I am using @spectrum-web-components/table/elements.js".
Is it possible to do this, must I add spectrum css separately? Or do you really recommend scaffolding a open web component project. I tried that but the options did not really seem to fit my need (web component library), was options to scaffold a component or app.
Any help and advice is appreciated, thanks 🙏
Beta Was this translation helpful? Give feedback.
All reactions