Installation
This guide will help you install and set up the Natura Design System in your React project.Prerequisites
Before installing, ensure your project meets these requirements:- React: Version 16.8.4 or higher
- React DOM: Version 16.8.4 or higher
- Node.js: Version 8.0.0 or higher (recommended)
- TypeScript: Version 2.1 or higher (optional, for TypeScript projects)
Install the Package
Choose your preferred package manager to install@naturacosmeticos/natds-react:
Installing
@naturacosmeticos/natds-react automatically installs these dependencies:@naturacosmeticos/natds-themes- Design tokens and themes@naturacosmeticos/natds-icons- Icon libraryreact-jss- CSS-in-JS styling engine
Install Required Fonts
The design system requires specific fonts to render correctly. You need to load both Roboto (base font) and brand-specific fonts.Roboto Font (Required)
Add the Roboto font with weights 400 and 500 to yourindex.html:
index.html
Brand-Specific Fonts (Required)
Each brand (Natura, Avon, The Body Shop, Aesop) has custom fonts that must be loaded. Add the appropriate font file to yourindex.html based on your brand:
Install Icon Fonts
The design system uses icon fonts from@naturacosmeticos/natds-icons. You can load them via CDN or import from node_modules.
Option 1: CDN (Recommended)
Add this to yourindex.html:
index.html
Option 2: Import from node_modules
Import the CSS file in your application entry point:main.js
Using the CDN approach is simpler and ensures you always get the latest icons, but importing from node_modules gives you more control over versioning.
Verify Installation
After installation, verify that all packages are installed correctly:TypeScript Configuration (Optional)
If you’re using TypeScript, the package includes full type definitions. No additional configuration is needed, but ensure yourtsconfig.json has:
tsconfig.json
Complete HTML Setup Example
Here’s a complete example ofindex.html with all required resources:
index.html
Troubleshooting
For more troubleshooting help, see the Troubleshooting Guide.Next Steps
Quick Start Guide
Learn how to configure the ThemeProvider and start using components

