-
Hi, Now my questions: Question 1:Geist-UI's I know that geist-ui does not use CSS modules, so maybe this combination is a problem in and of itself. An example: Unfortunately, there is default styling for the HTML tag that is injected into a While default styles for HTML elements are useful, I'm at a loss here on how to get rid of them selectively, except maybe for customizing the theme? Question 2When adding custom components, I want to access geist-ui's spacing values. I see that Naively, I'd love to have some custom properties that I could access in e.g. CSS modules to use Geist's spacing values. I see that there are some CSS custom properties here and there, mostly related to buttons, but they don't seem to be a core part of Geist's CSS styling architecture. Probably this means that my approach doesn't sit well with Geist's philosophy as a whole. Anyway, I'd love to hear some feedback on recommended approaches for these use cases. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
My question 1 is kind of resolved, as I can override styles if I really need to in my current SSG setup, I just need to be specific enough. Which leads to Question 2: Still, all of this is brittle and the preferred way would seemingly be to just properly configure the theme and/or use styled-jsx. I find theme configuration to be a little hard in some places, especially with SSG, but that's another topic. I would love a framework that allows leveraging CSS custom properties for the design system, but I see that Geist UI probably just is not that framework. Still it's very nice 👍 |
Beta Was this translation helpful? Give feedback.
-
My issues with theme configuration also seem related to #747 |
Beta Was this translation helpful? Give feedback.
My question 1 is kind of resolved, as I can override styles if I really need to in my current SSG setup, I just need to be specific enough. Which leads to
Question 2:
Geist-UI apparently just requires sticking to CSS-in-JS, it uses styled-jsx which uses inline styles, overriding them instead of configuring the theme is an uphill battle. Although my CSS modules are also injected as inline style tags in the SSG setup I currently use, which makes overriding geist a little easier.
Still, all of this is brittle and the preferred way would seemingly be to just properly configure the theme and/or use styled-jsx.
I find theme configuration to be a little hard in some places, especially with SSG, …