1.0.0 • Published 4 years ago

deriv-shared-am v1.0.0

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

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'