Initial Beta Release for OxDS Colors
Launched @ox-ds/colors
as a minimal, developer-friendly color system package, providing a simple way to use colors in JavaScript, TypeScript, and CSS.
Core Features:
- Includes an array of primary colors relating to medieval heraldry, with shades (
100
–500
), alpha (A
), P3 (P3
), and P3 alpha (P3A
) variations for modern interfaces. - Exports colors via a single
light.ts
file, accessible throughindex.ts
, for easy integration in projects.
Build Simplicity:
- Utilizes only TypeScript (
tsc
) for compilation, generatingdist/index.js
,dist/index.d.ts
, anddist/light.d.ts
for JavaScript and TypeScript support. - Features a single
build-css.js
script to generate root-level.css
files (azure.css
,cendree.css
) with CSS custom properties for direct use in stylesheets.
Developer Experience:
- Enables clean imports like
import { azure } from '@ox-ds/colors'
in JavaScript/TypeScript and@import '@ox-ds/colors/azure.css'
in CSS. - Supports modern browsers with ESM imports (Chrome 61+, Firefox 60+) and P3 colors for advanced color spaces (Chrome, Safari).
- Relies solely on typescript as a development dependency, ensuring no unnecessary plugins, deprecated files, or complex workflows.
- Designed for easy maintenance and expansion.