Something went wrong. Try again.
Utilities and UI components for cross-platform React Native apps
Something went wrong. Try again.
1.8 kB · 66 lines
TypeScript
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667// Copyright (c) 2025 Joseph Hale//// This Source Code Form is subject to the terms of the Mozilla Public// License, v. 2.0. If a copy of the MPL was not distributed with this// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Modified from React Native Paper. Used under the terms of the MIT license.// https://github.com/callstack/react-native-paper/blob/ff0df5454eb13d6e8e2d8f1c87c0bca8bb3635f0/src/types.tsx#
import type { ThemeFonts } from '../fonts/types';import type { Theme, ThemeDefinition, ThemeColors } from '../types';
export interface MaterialTheme extends Theme<MaterialThemeColors> { fonts: ThemeFonts; colors: MaterialThemeColors;}
export interface MaterialThemeDefinition extends ThemeDefinition<MaterialThemeColors> { fonts: ThemeFonts; dark: MaterialThemeColors; light: MaterialThemeColors;}
export interface MaterialThemeColors extends ThemeColors { primary: string; primaryContainer: string; secondary: string; secondaryContainer: string; tertiary: string; tertiaryContainer: string; surface: string; surfaceVariant: string; surfaceDisabled: string; background: string; error: string; errorContainer: string; onPrimary: string; onPrimaryContainer: string; onSecondary: string; onSecondaryContainer: string; onTertiary: string; onTertiaryContainer: string; onSurface: string; onSurfaceVariant: string; onSurfaceDisabled: string; onError: string; onErrorContainer: string; onBackground: string; outline: string; outlineVariant: string; inverseSurface: string; inverseOnSurface: string; inversePrimary: string; shadow: string; scrim: string; backdrop: string; elevation: { level0: string; level1: string; level2: string; level3: string; level4: string; level5: string; };}