Hacker News new | ask | show | jobs
by neoziro 2951 days ago
Smooth UI is not better than other libraries like Material UI or Ant UI but the focus is different. Smooth UI put the focus on developer experience, extending a style is very simple. Also it exposes some classes, you don't have to learn any API to extend components, you can simply inspect components and use the classes!

An example of extend: https://codesandbox.io/s/7k8o4x7lj6

1 comments

Writing !important to something I extend is not what I'd expect, it feels like a hack.
Looks like the example uses that because it would otherwise be overridden by the variant=primary (which seems to be the default) so explicitly overriding that variant would probably be more intuitive and not require the !important hack.
I did not dig into that, but I would expect some intuitive solution if they mention developer experience.