Package Exports
- @naturacosmeticos/natds-themes
- @naturacosmeticos/natds-themes/dist/esm/index.js
- @naturacosmeticos/natds-themes/dist/index.js
- @naturacosmeticos/natds-themes/dist/umd/index.js
- @naturacosmeticos/natds-themes/react-native
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@naturacosmeticos/natds-themes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Themes for Natura Design System
Installation
npm i @naturacosmeticos/natds-themes
⚠️ This library is still in the experimental phase. Please avoid using it in applications in production environments.
Import
For web projects (like React)
import { natura } from '@naturacosmeticos/natds-themes';
For React Native projects
import { natura } from '@naturacosmeticos/natds-themes/react-native';
Usage (1.x versions)
This example shows how to import and use tokens from Natura Light Theme.
import { natura } from '@naturacosmeticos/natds-themes';
// or
import { natura } from '@naturacosmeticos/natds-themes/react-native';
const { borderRadius, color, typography } = natura.light;
const yourAppBg = color.onBackground;
const yourAppBorderRadius = borderRadius.medium;
const yourAppFontBase = typography.fontFamily.primary;