Skip to content

ThemeMetrics — @gj-kit/expo-ui

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

import { ThemeMetrics } from '@gj-kit/expo-ui/theme';
/**
* Component dimension tokens — the map adopted in §0 (A). It converges what used to
* be scattered module literals: the predecessor's buttonSizes (36/44/52), the input
* minHeight of 48, the icon sizes, and the
* EMPTY_STATE_MAX_FONT_SIZE_MULTIPLIER constant.
*/
interface ThemeMetrics {
readonly control: {
readonly sm: number;
readonly md: number;
readonly lg: number;
};
readonly input: number;
readonly icon: {
readonly sm: number;
readonly md: number;
readonly lg: number;
};
readonly maxFontScale: number;
}

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