You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wanted to track some ideas of how CSS can be used, or what can be assumed isomorphic for both Node and browser contexts.
Details
Things to validate
Using Node custom loaders to support import css from './styles.css'. In some browsers we should already have support for CSS Modules
Constructable Stylesheets - I have never used them, so at least just want to make sure I'm not missing anything obvious here that would interrupt normal usage
Other?
Perhaps option 1 could be leveraged to auto-inline CSS so in development you can have an external CSS, but not need it for production.
CSS Modules alongside Constructable Stylesheets to solve this problem. And we may be able to use ::theme and ::part to style things inside Shadow DOM. But these aren't free of problems either.
Type of Change
Summary
Wanted to track some ideas of how CSS can be used, or what can be assumed isomorphic for both Node and browser contexts.
Details
Things to validate
import css from './styles.css'
. In some browsers we should already have support for CSS ModulesPerhaps option 1 could be leveraged to auto-inline CSS so in development you can have an external CSS, but not need it for production.
LInks / Resources / References
The text was updated successfully, but these errors were encountered: