Responsible for the shared utilities and styles for all packages.
In this document
For Fonts, Constants, Mixins, Themes, Devices:
- Run
npm i sass-resources-loader --save-dev
- Add the following in your webpack css loader
{
loader: 'sass-resources-loader',
options: {
resources: require('@deriv/shared/src/styles/index.ts'),
}
}
@import @deriv / shared/utils/styles/reset.scss;
@import @deriv / shared/utils/styles/google-fonts.scss;
import { toMoment } '@deriv/shared'