JSPM

@naturacosmeticos/natds-themes

0.50.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 682
  • Score
    100M100P100Q115033F
  • License ISC

The single source of truth for Natura Design System tokens.

Package Exports

  • @naturacosmeticos/natds-themes
  • @naturacosmeticos/natds-themes/dist/esm/index.js
  • @naturacosmeticos/natds-themes/dist/index
  • @naturacosmeticos/natds-themes/dist/index.js
  • @naturacosmeticos/natds-themes/dist/umd/index.js
  • @naturacosmeticos/natds-themes/react-native
  • @naturacosmeticos/natds-themes/react-native/index.js

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

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

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;