@freshworks/dew-theme-generator
v1.0.0
Published
Freshworks Dew:Theme Generator Library
Maintainers
Keywords
Readme
@freshworks/dew-theme-generator
This package contains the theme generation utilities for the Freshworks Dew 2.0 Design System
Documentation Site: https://wondrous-selkie-e1b5f1.netlify.app/
📋 Overview
This package provides utilities and tools for generating custom themes for the Freshworks Dew 2.0 Design System. It allows developers to create and customize themes programmatically, ensuring consistency across applications while providing flexibility for different use cases.
Features
✅ TypeScript Support: Full TypeScript setup with proper type definitions ✅ Vite Bundler: Configured for modern JavaScript bundling ✅ Vitest Testing: Configured for unit testing with Vitest ✅ ESLint Integration: Proper linting configuration matching workspace standards ✅ Package Publishing: Ready for npm publishing with proper exports ✅ Nx Integration: All standard Nx targets available
Installation
npm install @freshworks/dew-theme-generator
# or
yarn add @freshworks/dew-theme-generator
# or
pnpm add @freshworks/dew-theme-generatorAvailable Commands
# Using Nx CLI
nx run dew-theme-generator:build # Build the package
nx run dew-theme-generator:test # Run tests
nx run dew-theme-generator:lint # Lint the code
nx run dew-theme-generator:typecheck # Type checking
## Usage
```typescript
import { generateTheme } from '@freshworks/dew-theme-generator';
// Basic usage
const theme = generateTheme({
// Theme configuration
});Development
This package is part of the Freshworks Dew Design System monorepo.
Building
pnpm buildTesting
pnpm testLinting
pnpm lintLicense
This project is licensed under the MIT License.
