NatDS Styles
A collection of design tokens and themes from the Natura Design System for projects that don’t use React.Overview
@naturacosmeticos/natds-styles provides raw design tokens and theme configurations without React components. This package is ideal for:
- Non-React JavaScript projects
- Vanilla JS applications
- Vue, Angular, or other framework projects
- Custom component libraries
- Design token integration
If you’re building a React application, we recommend using
@naturacosmeticos/natds-react or @naturacosmeticos/natds-web instead, as they include ready-to-use React components.Design Tokens
Access color, typography, spacing, and other design tokens
Multi-Brand Themes
Pre-configured themes for all Natura brands
TypeScript Support
Full type definitions included
Framework Agnostic
Use with any JavaScript framework or vanilla JS
Installation
Dependencies
This package includes:@naturacosmeticos/natds-themes(v0.84.0) - Theme definitionshex-to-rgba(v2.0.1) - Color conversion utility
Basic Usage
Importing Tokens
Using Themes
Available Tokens
The package exports comprehensive design tokens across multiple categories:Color Tokens
Typography Tokens
- Font Families
- Type Styles
Spacing Tokens
Elevation (Shadows)
Border Radius
Opacity
Icon Sizes
Avatar Sizes
Button Sizes
Component Sizes
Overlay
TypeScript Support
The package includes comprehensive TypeScript definitions:Theme Structure
Each theme object contains:Available Themes
Natura
themes.natura.light
themes.natura.darkAvon
themes.avon.light
themes.avon.darkAesop
themes.aesop.light
themes.aesop.darkThe Body Shop
themes.theBodyShop.light
themes.theBodyShop.darkUsage Examples
Vanilla JavaScript
CSS-in-JS
Vue.js
Angular
Use Cases
Non-React Projects
Perfect for Vue, Angular, Svelte, or vanilla JavaScript projects that need Natura Design System tokens.
Design Token Integration
Integrate Natura design language into existing projects without adopting React components.
Comparison with Other Packages
vs natds-react
natds-react includes React components built with these tokens. Use natds-styles if you need tokens without React.vs natds-web
natds-web is a React library that depends on natds-styles. Use natds-styles directly for non-React projects.Additional Information
Dependency Note
Both@naturacosmeticos/natds-react and @naturacosmeticos/natds-web use this package internally. When using those packages, you automatically get access to these tokens through their theme systems.
Storybook Documentation
For visual examples of all design tokens:View Token Documentation
Browse all available design tokens in Storybook
Resources
GitHub
View source code and contribute
npm Package
View on npm registry
natds-web Integration
See how natds-web uses this package
Contributing
Learn how to contribute
Package Info
- Version: 3.8.3
- License: ISC
- Maintained by: Natura Cosméticos
- Contact: [email protected]
For React projects, consider using the higher-level packages
@naturacosmeticos/natds-react or @naturacosmeticos/natds-web which include pre-built components.
