Skip to content

HIG 0.1.0 — configurable primary colors

Choose a tag to compare

@joeblau joeblau released this 23 Oct 14:32
bdf8d07

The first coordinated HIG npm release includes configurable brand accents on web and React Native.

import {HIGProvider} from '@bloxwap/hig-react/provider';
// Native: import {HIGProvider} from '@bloxwap/hig-native/provider';

<HIGProvider primaryColor='#ff0000'>
  <App />
</HIGProvider>

primaryColor accepts opaque sRGB hex (#RGB or #RRGGBB). Bloxwap green remains the default. Nested providers inherit the accent; buttons, links, selection controls, focus rings, portalled overlays and chart crosshair labels follow it. Primary fills receive contrasting black or white labels. Native iOS Display P3 hosts convert the sRGB input into P3 channels.

Status and trading direction colours retain their meanings, and the approved Bloxwap mark keeps its original colours. Includes pink negative/sell and neon-yellow warning roles, plus severity-based callout strokes and glows.

Install the renderer you use:

npm install @bloxwap/hig-react@0.1.0
# or
npm install @bloxwap/hig-native@0.1.0

All eight packages share version 0.1.0: contracts, tokens, React, native, feedback, chart, native fonts and OG fonts. Web hosts import the token and component CSS as documented; native hosts retain their existing peer and font-registration setup.

Validation includes 364 web/native tests, package budgets, independent packed consumers, SSR, browser/visual/accessibility checks, Next builds, and both supported native stacks. The publishing workflow verifies the immutable tag, complete package set and tarball SHA-256 values, then validates independent registry installs.

This is a pre-1.0 release. Review a custom accent's link and focus contrast against the surfaces where it appears; automatic foreground selection applies to primary fills. Remaining v1 parity and production adoption work stays tracked in #57 and #110. Physical-device and font-rasterization acceptance uses the existing owner attestation, separately labelled from automated observations. See release authorization and scoped exceptions.