콘텐츠로 이동

ThemeColors — @gj-kit/expo-ui

@gj-kit/expo-ui/theme에서 공개하는 interface입니다. package version 0.8.1의 release declaration을 그대로 표시합니다.

import { ThemeColors } from '@gj-kit/expo-ui/theme';
/**
* 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;
}

이 선언은 매개변수, optionality, 제네릭, 반환값, 공개 union/type 계약의 정본입니다. 호출 전 필요한 환경·권한·오류 경계는 패키지 Golden path와 이 subpath의 import 조건을 함께 확인하세요.

  • 패키지: @gj-kit/expo-ui
  • 버전: 0.8.1
  • 공개 entry: ./theme
  • 소스: GitHub

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).