GithubHelp home page GithubHelp logo

evectis / ovh-ui-kit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ovh/ovh-ui-kit

0.0 2.0 0.0 2.09 MB

OVH UI Kit - Master UI Framework (Soon used by vNext Manager Platform)

License: Other

JavaScript 0.73% CSS 99.27%

ovh-ui-kit's Introduction

Project statuc alpha Github tag Maintenance Chat on gitter

OVH UI (Less)

A css theme implemented for the OVH brand.

Installation

yarn add --dev "https://github.com/ovh-ux/ovh-ui-kit"

Usage

Dependencies

Those dependencies will be installed automatically by npm:

Integration

grunt (grunt-contrib-less)

@import "./node_modules/ovh-ui-kit/packages/oui/stylekit";

// or you can import every component a-la-carte:

@import "./node_modules/ovh-ui-kit/packages/oui-button/button";
@import "./node_modules/ovh-ui-kit/packages/oui-radio/radio";
@import "./node_modules/ovh-ui-kit/packages/oui-formfield/formfield";

[...]

webpack (less-loader)

Webpack provide the ~ prefix for package imports:

@import "~ovh-ui-kit/packages/oui/stylekit.less";

// or a-la-carte:

@import "~ovh-ui-kit/packages/oui-button/button.less";
@import "~ovh-ui-kit/packages/oui-radio/radio.less";
@import "~ovh-ui-kit/packages/oui-formfield/formfield.less";

[...]

bootstrap

For those who want to use ovh-ui-kit with bootstrap on the same project you need change the rem-base to 10px otherwise components proportions will not be respected.

@import '~bootstrap/less/bootstrap';

// Sets rem-base to 10px because bootstrap sets font-size: 10px on the html element.
@rem-base: rem-base(10px);

@import "~ovh-ui-kit/packages/oui/stylekit.less";

Publish a new version

When publishing a new version npm or yarn will execute some common tasks:

  1. Build the project (if the build fail, publish is aborted)
  2. Change the version inside the package.json to the new version
  3. Commit the new package.json
  4. Create a new tag like v<version>
  5. Changes and tags are pushed to the remote server

npm

npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]

yarn

yarn version --new-version <version>

Documentation

Documentation is available from the packages/ folder, every package is self-documented throught a README.md file.

Browser Support

  • Chrome (last 2 versions)
  • Safari (last 2 versions)
  • Firefox (last 2 versions)
  • Opera (last 2 versions)
  • Edge (last 2 versions)
  • Internet Explorer (10 only)

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.