|
|
|
|
|
by jacobr
2616 days ago
|
|
Nice, looks very well made. It does force everyone in your organization to not only use React, but also Styletron which might be a pretty large switch for some teams. Has this been a problem? I think this could lead to limited adoption in some organizations because autonomies teams want to keep delivering with their current stack. One idea I considered is to have an Atomic CSS library for theme stuff like whitespace, color and typography, and compose those into components for React or Svelte 3 or whatever is hot right now. All other styling could be done with Styletron, styled components, or plain CSS, whichever suits your team. |
|
However, CSS in JS is more controversial and there are some other more popular libraries now. We keep monitoring them and at the same time we are bringing the best features back into Styletron. Also, you could use BaseWeb+Styletron and some other CSS solution for everything else. It's not a big deal (Styletron has like 7kB). But all CSS in JS libs are very similar anyway.
So overall, Base Web was not a big tech switch, React and Styletron have been already widely used.