Skip to content

Latest commit

 

History

History
55 lines (45 loc) · 1007 Bytes

README.md

File metadata and controls

55 lines (45 loc) · 1007 Bytes

@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/src/styles/index.js'),
    }
}

Browser css reset:

@import @deriv/shared/utils/styles/reset.scss

Google fonts:

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

Utility functions

import { toMoment } '@deriv/shared'