A css theme implemented for the OVH brand.
yarn add --dev "https://github.com/ovh-ux/ovh-ui-kit"
Those dependencies will be installed automatically by npm:
@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 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";
[...]
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";
When publishing a new version npm or yarn will execute some common tasks:
- Build the project (if the build fail, publish is aborted)
- Change the version inside the
package.json
to the new version - Commit the new
package.json
- Create a new tag like
v<version>
- Changes and tags are pushed to the remote server
npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]
yarn version --new-version <version>
Documentation is available from the packages/
folder, every package is self-documented throught a README.md
file.
- Chrome (last 2 versions)
- Safari (last 2 versions)
- Firefox (last 2 versions)
- Opera (last 2 versions)
- Edge (last 2 versions)
- Internet Explorer (10 only)