0.4.0 • Published 4 years ago

boros v0.4.0

Weekly downloads
9
License
ISC
Repository
gitlab
Last release
4 years ago

Boros - Design System for TDCX

pipeline status coverage report

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 start

open http://localhost:3001/ in browser

Testing

To run the tests locally just run jest in the root folder

npm run test

You'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.

0.4.0

4 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago