npm.io
1.0.0 • Published 6 years ago

deriv-shared-am

Licence
Apache-2.0
Version
1.0.0
Deps
0
Size
125 kB
Vulns
0
Weekly
0
Stars
101

deriv-shared

Responsible for the shared utilities and styles for all packages.

Index

  • General - Contains general philosophy and overview of this package
  • Modules docs - Contains implementation guides (i.e., scaffolding, code usage)

##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'