Skip to content

ThemeColors — @gj-kit/expo-ui

A public interface from @gj-kit/expo-ui. The signature below is taken directly from the 0.8.1 release declaration.

import { ThemeColors } from '@gj-kit/expo-ui';
/**
* The color roles — 31 of them: the base surface and brand roles plus a strong,
* soft, and on-color trio per status. They keep status components from borrowing a
* raw color or a token that means something else (onPrimary and friends).
*/
interface ThemeColors {
readonly background: string;
readonly surface: string;
readonly surfaceSubtle: string;
readonly text: string;
readonly textMuted: string;
readonly textSubtle: string;
/** The active label and indicator color of an underline tab. */
readonly tabActive: string;
/** The inactive label color of an underline tab. */
readonly tabInactive: string;
readonly line: string;
readonly primary: string;
readonly primaryStrong: string;
readonly primarySoft: string;
readonly onPrimary: string;
readonly danger: string;
readonly dangerStrong: string;
readonly dangerSoft: string;
readonly onDanger: string;
readonly warning: string;
readonly warningStrong: string;
readonly warningSoft: string;
readonly onWarning: string;
readonly success: string;
readonly successStrong: string;
readonly successSoft: string;
readonly onSuccess: string;
readonly info: string;
readonly infoStrong: string;
readonly infoSoft: string;
readonly onInfo: string;
readonly overlay: string;
/**
* The color of every shadow — the map adopted in §0. The predecessor borrowed
* colors.text for shadows, a structural defect that produced light shadows in
* the dark theme.
*/
readonly shadow: string;
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-ui
  • Version: 0.8.1
  • Public entry: .
  • Source: GitHub