Git Product home page Git Product logo

niui's Introduction

niui: mostly native front-end library

A lightweight framework leveraging browsers' built-in capabilities, with subtle and powerful customisation.

To use niui, get niui.min.css, niui.min.js and index.html and edit the latter. Check the homepage for details.

NPM usage:

  • npm install --save-dev niui-npm
  • require('./node_modules/niui-npm/index.js');

Demo pages (reimplemented real world examples)

WordPress theme, Microsoft, Imperial Innovations, Pebble homepage, Seat 61, JetBlue, Mitsubishi Regional Jet, MUBI, SWISS, Mapbox, Airbnb, GOV.UK, Google Design, Daring Fireball, Vitsœ, Apple, Brand Union, Tesla, Amnesty, Stripe, Star Wars, Norwegian, David Bowie Is (Japan), Uncharted: The Lost Legacy, Seehotel Jägerwirt, Truphone, Pixel Pioneers, Apex, Loco2, VI.nl, Nikon D850, Enoden, Tuts+, Hasselblad Chinese, CNN Travel, Postbank, To Make a Film, Oslo


  • Unbreakable, flexible, responsive grid. Supports Bootstrap-style wrapping columns, but with ._1/3 (1/3) etc., instead of .col...4 (4/12). Auto equal width columns with equal height and vertical alignment.
  • Baseline-aligned typography, quote block, drop caps.
  • Unique class names
  • Embeddable grid and elements. Support for multiple modals, nested carousels, nested accordions etc
  • Built around edge cases (overflowing headlines, images etc)
  • Flat default style without rounded edges, shadows etc
  • Semantic structure
  • Dynamic components, dynamically initialised by MutationObserver
  • (Mobile) navigation. Drop-down nav: Touch-first, CSS-only, JS enhanced, 1-3 levels, responsive, label/link items support
  • Buttons with group container for proper line wrap
  • Modal windows with multiple instances, supporting iPhone Safari toolbars
  • Lightbox gallery supporting huge galleries and click to zoom. Can be opened automatically by URI page#lightbox_id. Video in lightbox. Inline lightboxes switchable to full screen.
  • Tooltips with full HTML content
  • Nested ordered lists
  • Forms with validation, customisation and accessibility. Rich select available.
  • Native sliders, swipeable on mobile and desktop, with numbered or thumbnail (tabs) navigation, vertical and full window options, slider inside slider, fade in/out option, auto height option
  • Accordions
  • Tabs
  • Cards
  • Grid with inline popups
  • Tables accessible on narrow screens by scrolling; sortable.
  • Footer sticking to the very bottom on short pages
  • Language selector
  • Aspect ratio image container
  • Arabic (RTL) layout ready
  • Masonry CSS-only (vertical track only)
  • Parallax scrolling
  • Fixed background
  • WordPress theme with lightbox gallery
  • Notification bar
  • Click to copy to clipboard
  • Functional without JS and accessible without CSS
  • NPM install
  • Documentation
  • ~10 KB first view CSS + optional ~10 KB JS (combined, minified, macOS gzip)
  • Seamless transition from CSS-only to JS-enhanced layout
  • No dependencies
  • Supporting evergreen browsers and Internet Explorer (CSS-only)
  • All components accessible by keyboard

© 2014-2020 rado.bg

Standalone components

Accordion, Slider, Drop nav

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

niui's People

Contributors

radogado avatar monkeywithacupcake avatar viliusle avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.