0.4.0 • Published 6 years ago
boros v0.4.0
Boros - Design System for TDCX
Boros is the design system for TDCX built on Material-UI.
Install
npm install boros --save
Usage
Basic:
Apply Boros default theme (in the top level of your react tree)
import {BorosThemeProvider, Button} from 'boros';
const App = () => {
return <BorosThemeProvider>
<Button variant="contained" color="primary">Button</Button>
</BorosThemeProvider>;
};Advanced:
Apply Boros theme but override some of the attributes
import {createMuiTheme} from "@material-ui/core";
import {BorosThemeProvider, Button} from 'boros';
const theme = createMuiTheme({
palette: {
primary: {
main: '#FFFFFF',
}
}
});
const App = () => {
return <BorosThemeProvider theme={theme}>
<Button variant="contained" color="primary">Button</Button>
</BorosThemeProvider>;
};You can find the list of attributes here.
API
The Components API is the same as Material-UI.
Contributing
The following commands should get you started:
npm install
npm startopen http://localhost:3001/ in browser
Testing
To run the tests locally just run jest in the root folder
npm run testYou'll see the coverage data in your console, please maintain coverage above 90% at least, preferably 100%.
License
The files included in this repository are licensed under the ISC license.