by shubhamjain · 9y ago · 0 comments
1) Every class name is prefixed with "uk-": a wise decision to avoid conflicts and make it easy recognise the framework classes.
2) Useful generic classes: UIKit has many helper classes to avoid adding another rule—for removing padding, introducing a small margin, rounding the borders, adding a box shadow.
3) Clean theme: The default UIKit theme looks an order of magnitude better than Bootstrap's.
4) Additional helpful components: Loading spinner, Cards, Notifications, Sortable list. Shipping them by default saves a lot of time in searching and integrating them in your application.
5) Default Icons Support: The icons look clean and beautiful and because they are SVG, they don't require a font file. (Although, requiring Javascript can be turning off for some)
6) Much better components: Try creating an input box with an icon in bootstrap; with UIKit it only takes a little markup.
Whenever I develop with Bootstrap, I have to spend half the time muting the existing styles and introducing new ones. With UIKit, it never felt like a problem.
2) Bootstrap 4 includes dozens of utilities like these and more. Still have some to add, but there are tons.
3) Our theme state is busted in the beta it will be there for final. Open to feedback!
4) v4 has cards. Spinners are slated for v4.1. Toasts are slated for v4.2 I think. Peep the project pulls page :).
5) Everyone else does amazing icons. We pulled our icon font out long ago in v4. Use any SVG library.
6) That’s a solid idea. Care to open an issue for it!? :D
Take a look at the new v4 beta docs and let me know what else is missing or cumbersome for you, please. <3
UIKit has many CSS classes with hover states but not focus states and it's not easy to add them to classes like .uk-hidden because it's not a direct declaration but relies on a parent class. It lacks an equivalent to Bootstrap's .sr-only (visually hide but expose content to screen readers); you can always add such a class yourself but it makes the UIKit framework incomplete. UIKit makes it harder to make a site accessible than if UIKit was not used.
CSS Frameworks are supposed to make the job easier by taking care of problems you're not even aware of; UIKit fails to do that in this respect.
And nope just text. Grey low contrast text.
Once you change the stylesheet the components look ok. Still lot of let's-replace-icky-tables-with-divs.
2) BS 4 added a ton of helper classes, to the point where I find myself using these rather than writing custom CSS.
3) Ultra light font weight, light gray font color, capitalized text might look great, but I prefer better usability. The point with BS (as of my observations that is) has always been to provide a no-bullshit™ style. It doesn't follow trends, it does what's sane.
4) I half-agree. Not sure how useful it is to have "notifications". I personally never needed that and doubt their usability on mostly document oriented websites.
5) BS used to come with icons, but now there are tons of icon sets to choose from. BS is a CSS framework after all.
6) Besides that, what components does UIKit have that BS can't do? Maybe sticky behavior with a delay would be helpful.
BS is 125 KB vs UIKit 256 KB minified though (that's only for CSS), besides all the accessibility issues.
Though IIRC, Apple's UIKit came out a year after the web UIkit.
.uk-list>li::before, .uk-list>li::after {
content: "";
display: table;
}
Yikes, it's this mixing class/element/combinator-style styling that BS4 did away with. Granted, some of it was still in 3.Personally I agree with the complaint about BS that all sites built with it look similar and honestly, bland.
A framework really can't offer semantic classes, since it doesn't know the semantics of your app/page.