@nordhealth/color
v3.0.10
Published
This package includes Nord Design System color utilities
Downloads
1,672
Keywords
Readme
Nord Color Utilities
This package includes Nord Design System color utilities, including:
getColorPalettewhich generates color palettes programmatically for use with Nord Themes.getContrastRatiowhich calculates the contrast ratio between two colors.getTextColorwhich calculates the correct text color for a chosen background.hexToRgbwhich converts a HEX color to a RGB color.rgbToHexwhich converts a RGB color to a HEX color.
Commands
The following are the most commonly used commands during development:
pnpm start- Compile color library and start local development server on port 8000.pnpm build- Builds the project.
License
See license in LICENSE.md
Copyright
Copyright © 2025 Nordhealth Ltd.
