1.0.0 • Published 5 years ago

deriv-shared v1.0.0

Weekly downloads
5
License
Apache-2.0
Repository
github
Last release
5 years ago

deriv-shared

Responsible for the shared utilities and styles for all packages.

##Commands: setup :

lerna bootstrap

serve :

npm run serve

build :

npm run build

test :

npm run test

Usage

Base styles

Fonts, Constants, Mixins, Themes, Devices:

Run npm i sass-resources-loader --save-dev and add the following in your webpack css loader

    loader: 'sass-resources-loader',
    options: {
        resources: require('deriv-shared/utils/index.js'),
    }
}

Browser css reset:

@import deriv-shared/src/styles/reset.scss

Google fonts:

@import deriv-shared/src/styles/google-fonts.scss

Utility functions

import { toMomemt } 'deriv-shared/utils/date'