Wynn Netherland changelog.com/posts

UIKit - Modern UI components for the modern web

TJ is at it again. The creator of Express, Stylus, and other projects you probably use has released UIKit, a lightweight web UI component library. Let’s be honest, most JavaScript UI component libraries are bloated, tangled messes. UIKit aims to be leaner yet object-oriented. Consider this ColorPicker example:

var picker = new ui.ColorPicker;
picker.el.appendTo('#default-color-picker');
picker.on('change', function(color){
  $('.r').text(color.r)
  $('.g').text(color.g)
  $('.b').text(color.b)
  $('.rgb').text(color.toString()).css('background', color)
});

Color Picker

Check the project web site or source for a list of components and usage.


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00