Dew Styles Foundation

The comprehensive design system foundation for Freshworks Dew 2.0. Beautiful colors, typography, spacing, and more for consistent UI development.

🎨

Rich Color System

Comprehensive color palettes with semantic tokens for light and dark themes.

📏

Design Tokens

Consistent spacing, typography, and numerical values for scalable design systems.

🔧

Multiple Formats

SCSS variables, CSS custom properties, and web components support.

Color Palettes

Dew 2.0 comprehensive color system with semantic meanings

Typography

Inter font family with consistent weights and sizes

Inter Font Family

Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz
The quick brown fox
jumps over the lazy dog
0123456789

Spacing & Numbers

Consistent numerical values for spacing, border radius, and more

Spacing Scale

Border Radius

Box Shadows

Usage Examples

How to integrate Dew Styles in your projects

SCSS

SCSS Import

Import specific modules or everything

// Import all styles
@use '@freshworks/dew-styles';

// Or import specific modules
@use '@freshworks/dew-styles/colors' as colors;
@use '@freshworks/dew-styles/numbers' as numbers;
@use '@freshworks/dew-styles/fonts' as fonts;

// Use color variables
.my-component {
  background-color: colors.$A500; // Azure 500
  color: colors.$S800; // Smoke 800
  padding: numbers.$number-16; // 16px
  border-radius: numbers.$number-br-m; // 8px
}
CSS

CSS Variables

Use with CSS custom properties

/* Available as CSS custom properties */
.my-component {
  background-color: var(--color-azure-500);
  color: var(--color-smoke-800);
  padding: var(--number-16);
  border-radius: var(--number-br-m);
  box-shadow: var(--box-shadow-md);
}

/* Theme-aware colors */
.dew-light-theme .card {
  background-color: var(--color-neutral-1);
}

.dew-dark-theme .card {
  background-color: var(--color-dark-neutral-1);
}
NPM

Installation

Add to your project

# Install the package
npm install @freshworks/dew-styles

# Or with pnpm
pnpm add @freshworks/dew-styles

# Or with yarn
yarn add @freshworks/dew-styles