npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@unicef/design-system

v0.1.0

Published

UNICEF's design system for creating our web applications.

Downloads

4

Readme

UNICEF Design System

The status of this project is ALFA. So, incompatible changes may appear.

The goal of this project is to:

  • Define a common user interface across applications.
  • Speed up the design time allowing the design team to focus on user needs rather on tiny interaction details.
  • Speed up the development time by reusing the HTML and CSS.

Designers, product managers and anyone that has to define the user interface of a web application we provide the following UX/UI design guidelines.

For developers, we provide a reference implementation. Documentation for developers can be found here

This reference implementation is based on based on Bootstrap 4.3.

Getting started

In order to use the UNICEF's UI in your project you can reference a CDN or download using npm.

With CDN

CDNs can offer a performance benefit by hosting on servers spread across the globe. This also offers an advantage that if the visitor to your webpage has already downloaded a copy of the files from the same CDN, it won't have to be re-downloaded.

For the CSS:

<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@unicef/design-system/dist/css/unicef.css">

If you need to include the JavaScript, you have two options. The first one, a minified javascript bundle file that includes all bootstrap JavaScript (bootstrap, popper, jquery). You need this if you require dropdowns, tabs, etc.

<!-- All js bundled -->
<script src="https://cdn.jsdelivr.net/npm/@unicef/design-syste/dist/js/unicef-bundle.min.js"></script>

<!-- only the scripts that were created by UNICEF (no requirement)-->
<script src="https://cdn.jsdelivr.net/npm/@unicef/design-system/dist/js/unicef.min.js"></script>

Using npm

This bootstrap customization is based on SASS, and therefore you can easily override the CSS classes for your particular project.

First, install the npm package

 npm install @unicef/design-system

Import unicef.scss in your global scss file. For example:

/* you may need to change the path to the node_modules dir */
@import "../node_modules/@unicef/design-system/scss/unicef"

We have used bootstrap variables whenever possible. Custom created variables are defined in scss/_variables.scss.

Leaner version.

In order to make bootstrap version leaner, the following colors have been removed from $theme-colors: secondary,info,light,dark. This means that, for example, <button class="btn btn-info">Info button</button> will not work. You can activate them back in _variables.scss.

Development

We use jekyll for generating the documentation and gulp for automating the tasks.

Get source code from git repository

$ git clone https://github.com/unicef/design-system.git

Install dependencies

$ cd design-system
$ npm install
$ bundle install

Tasks

To run the local server

$ bundle exec jekyll serve --livereload

Then browse to http://localhost:4000/

While developing run in another terminal the watch task to compile and minimize the SCSS and JavaScript:

$ gulp watch

To continuously compile SASS run

$ gulp watch-sass

Contribution

Just clone the project and make a pull request.

License

Distributed under GLPv3.