UI Component Library used at Cision
RoverUI is a collection of UI components originally built for and by Cision. These components should help the Cision team build applications that look hot, in React, quickly.
# yarn
yarn add @cision/rover-ui
# npm
npm install --save @cision/rover-ui
For more instructions on installing and using the RoverUI package in your app, see the docs in Storybook
To install and develop or run locally, you're in the right place.
import React, { Component } from 'react';
import { Media } from '@cision/rover-ui';
class Example extends Component {
render() {
return (
<Media>
<Media.Item>ππ»</Media.Item>
</Media>
);
}
}
If your front-end stack supports a CSS loader, you can add styles with import
.
import '@cision/rover-ui/dist/rover-ui.css';
Otherwise, you'll want to put the rover-ui.css stylesheet in your static resources and load it with an plain old link
.
<link href="https://github.com/afwss/rover-ui/blob/master/%PUBLIC_URL%/rover-ui.css" rel="stylesheet" />
See our Contribution guidelines for more information.
Report issues at the GitHub issue tracker.
There are a few different styling paradigms at work in RoverUI. Currently, the best way to customize appearance is by forking the project and making a custom build.
rover-ui
repositoryyarn build
from the project rootNow, you can edit CSS-in-JS and/or the CSS custom properties that are imported for use in CSS modules.
DEPRECATED: We are currently in the process of removing CSS-in-JS and will be completely removed prior to v3.x.
RoverUI uses styled-components and styled-system on some components.
Any component that's currently wrapped in the withDefaultTheme
HOC should be using theme properties.
To customize CSS-in-JS themes, edit src/shared/theme.js
and the files it imports.
RoverUI uses CSS modules with css-loader on some components.
To customize the CSS modules theme, edit src/shared/**/*.css
MIT Β© mdespuits