New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styling with CSS #14
Comments
You need to implement your own components. We do it at baseweb.design. However, I am open to make the basic ui components more customizable so you if you need small tweaks, you don't have to copy&paste everything over. |
Thanks for the response. For now, I went with implementing my own components (knobs, specifically), which works well. Although, there are some components that I wouldn't want to implement on my own. For example, I'd like to change the flex positioning of Compiler, or change the focus border color of Editor. Compiler and Editor don't seem like the kind of components that anyone would implement any different from the library's either, so right now it's just causing duplication for projects that wish to make minor adjustments 🙂 I think adding a few global class names for tweaking would suffice. Happy to help out with this, if necessary! |
I would rather see an ability to pass down So for example, <Compiler cx={{ root: "className-a", inner: "className-b" }} /> (compiler has two nested divs) this way, you could also use CSS in JS libs to generate these classNames and avoid globals. |
Sounds good. Would you like me to kick this off with a PR? |
That would be great. Thanks! |
Hey, thanks for the great library!
I have a question about how should one go about styling certain components? A lot of the components in
ui
don't have a className to them (e.g. https://github.com/uber/react-view/blob/master/src/ui/editor.tsx#L75)The text was updated successfully, but these errors were encountered: