2017 © Pedro Peláez
 

library clarity

image

vmw/clarity

  • Thursday, August 2, 2018
  • by crothers
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • TypeScript
  • 0 Dependents
  • 0 Suggesters
  • 349 Forks
  • 0 Open issues
  • 30 Versions
  • 0 % Grown

The README.md

Clarity, (*1)

Clarity Design System

Build Status, (*2)

Project Clarity is an open source design system that brings together UX guidelines, an HTML/CSS framework, and Angular 2 components. This repository includes everything you need to build, customize, test, and deploy Clarity. For complete documentation, visit the Clarity website., (*3)

Getting Started

Clarity is published as three npm packages:, (*4)

  • clarity-icons. Contains the custom element icons.
  • clarity-ui. Contains the static styles for building HTML components.
  • clarity-angular. Contains the Angular 2 components. This package depends on clarity-ui for styles.

The easiest way to run a sample Angular 2 application with Clarity is to use the Clarity Seed., (*5)

If you already have an Angular 2 application, you can follow the installation steps below to include and use Clarity in your application., (*6)

Installing Clarity Icons

  1. Install Clarity Icons package through npm:, (*7)

    npm install clarity-icons --save
    
  2. Install the polyfill for Custom Elements:, (*8)

    npm install @webcomponents/custom-elements@1.0.0-alpha.3 --save
    
  3. (Optional) If your application supports IE10, the polyfill will require the MutationObserver shim to work. If your application doesn't support IE10, you can skip the following installation:, (*9)

    npm install mutationobserver-shim@0.3.2 --save
    
  4. Include the clarity-icons.min.css and clarity-icons.min.js in your HTML. As custom-elements.min.js is dependent on the Custom Elements polyfill, make sure to include it before clarity-icons.min.js. Also, if your app needs to support IE10, include the mutationobserver.min.js before the polyfill:, (*10)

    <link rel="stylesheet" href="path/to/node_modules/clarity-icons/clarity-icons.min.css">
    
    
    
    
    

    If your site is built with angular-cli you can achieve the above by adding the files to the styles array and scripts array in angular-cli.json:, (*11)

    "styles": [
        ...
        "../node_modules/clarity-icons/clarity-icons.min.css",
        ...
    ],
    "scripts": [
        ...
        "../node_modules/mutationobserver-shim/dist/mutationobserver.min.js",
        "../node_modules/@webcomponents/custom-elements/custom-elements.min.js",
        "../node_modules/clarity-icons/clarity-icons.min.js"
        ...
    ]
    

Installing Clarity UI

  1. Install Clarity UI package through npm:, (*12)

    npm install clarity-ui --save
    
  2. Include the clarity-ui.min.css in your HTML file:, (*13)

    <link rel="stylesheet" href="path/to/node_modules/clarity-ui/clarity-ui.min.css">
    

    If your site is built with angular-cli, you can achieve the above by adding the file to the styles array in angular-cli.json:, (*14)

    "styles": [
        ...
        "../node_modules/clarity-ui/clarity-ui.min.css"
        ...
    ]
    
  3. Write your HTML with the Clarity CSS class names and markup., (*15)

Installing Clarity Angular

  1. Follow steps above to install Clarity Icons and Clarity UI.
  2. Install the clarity-angular package through npm:, (*16)

    npm install clarity-angular --save
    
  3. Import the ClarityModule into your Angular 2 application's module. Your application's main module might look like this:, (*17)

    import { NgModule } from '@angular/core';
    import { BrowserModule } from '@angular/platform-browser';
    import { ClarityModule } from 'clarity-angular';
    import { AppComponent } from './app.component';
    
    @NgModule({
        imports: [
            BrowserModule,
            ClarityModule.forRoot(),
            ....
         ],
         declarations: [ AppComponent ],
         bootstrap: [ AppComponent ]
    })
    export class AppModule {    }
    

    If your application uses systemjs, add the clarity-angular configurations as in the example below. If your application already has packages setting for rxjs but doesn't have the main file, add it in., (*18)

    System.config({
        ...
        map: {
           ...
           'clarity-angular': 'node_modules/clarity-angular/clarity-angular.umd.js',
        },
        packages: {
            ...
            'rxjs' : { main: 'Rx.js', defaultExtension: 'js' },
        }
        ...
    });
    

Documentation

For documentation on the Clarity Design System, including a list of components and example usage, see our website., (*19)

Contributing

The Clarity project team welcomes contributions from the community. For more detailed information, see CONTRIBUTING.md., (*20)

Licenses

  • The Clarity Design System is licensed under the MIT license.
  • The font is licensed under the Open Font License (OFL).

Feedback

If you find a bug or want to request a new feature, please open a GitHub issue. If possible please provide a minimal demo illustrating the issue by forking one of the Clarity Plunker Templates - Clarity Version: Latest - Clarity Version: 0.7.6, (*21)

The Versions

02/08 2018

dev-signpost

dev-signpost

  Sources   Download

02/08 2018

dev-website

dev-website

  Sources   Download

02/08 2018

dev-notifications

dev-notifications

  Sources   Download

02/08 2018

dev-placeholders

dev-placeholders

  Sources   Download

02/08 2018

dev-saucelabs

dev-saucelabs

  Sources   Download

02/08 2018

dev-css-regression-test

dev-css-regression-test

  Sources   Download

02/08 2018

dev-gauge

dev-gauge

  Sources   Download

02/08 2018

dev-icon-demo-update

dev-icon-demo-update

  Sources   Download

02/08 2018

dev-masked-input

dev-masked-input

  Sources   Download

02/08 2018

v0.6.x-dev

0.6.9999999.9999999-dev

  Sources   Download

02/08 2018

v0.7.x-dev

0.7.9999999.9999999-dev

  Sources   Download

07/03 2018

v0.8.0

0.8.0.0

  Sources   Download

07/03 2018

v0.7.2

0.7.2.0

  Sources   Download

07/03 2018

v0.7.3

0.7.3.0

  Sources   Download

07/03 2018

v0.7.4

0.7.4.0

  Sources   Download

07/03 2018

v0.7.5

0.7.5.0

  Sources   Download

07/03 2018

v0.6.3

0.6.3.0

  Sources   Download

07/03 2018

v0.6.4

0.6.4.0

  Sources   Download

07/03 2018

v0.7.0

0.7.0.0

  Sources   Download

07/03 2018

v0.7.1

0.7.1.0

  Sources   Download

07/03 2018

v0.6.2

0.6.2.0

  Sources   Download

07/03 2018

v0.8.3

0.8.3.0

  Sources   Download

07/03 2018

v0.8.4

0.8.4.0

  Sources   Download

07/03 2018

v0.6.0

0.6.0.0

  Sources   Download

07/03 2018

v0.6.1

0.6.1.0

  Sources   Download

07/03 2018

v0.8.1

0.8.1.0

  Sources   Download

07/03 2018

v0.8.2

0.8.2.0

  Sources   Download

07/03 2018

v0.8.0-alpha

0.8.0.0-alpha

  Sources   Download

07/03 2018

v0.8.0-alpha2

0.8.0.0-alpha2

  Sources   Download

27/01 2017

dev-master

9999999-dev https://vmware.github.io/clarity/

Clarity Design System: UX guidelines, HTML/CSS framework, and Angular 2 components working together to craft exceptional experiences.

  Sources   Download

MIT

css javascript html angular design angular2