Skip to content

createThemes — @gj-kit/expo-ui

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

import { createThemes } from '@gj-kit/expo-ui/theme';
/**
* "Brand colors for both schemes at once" — builds a pair by merging shared
* overrides first, then per-scheme ones. Overriding only light leaves dark on the
* default dark palette; nothing is derived automatically, by explicit principle.
*/
declare function createThemes(input?: {
readonly shared?: ThemeOverrides | undefined;
readonly light?: ThemeOverrides | undefined;
readonly dark?: ThemeOverrides | undefined;
}): ThemePair;

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: ./theme
  • Source: GitHub