import { Platform } from 'react-native' ; import tinycolor from 'tinycolor2' ; import { sto } from './colors' ; import { firstReadable } from '@frogpond/colors' ; import type { AppTheme } from '@frogpond/app-theme' ; /**
 * The primary color of the app.
 */ export const accent = sto . gold ; export const navigationBackground = Platform . select ( { ios : accent , android : accent , } ) ; export const navigationForeground = firstReadable ( navigationBackground , [ sto . black , sto . white , ] ) ; export const buttonBackground = accent ; export const buttonForeground = firstReadable ( buttonBackground , [ sto . black , sto . white , ] ) ; export const toolbarButtonBackground = buttonBackground ; export const toolbarButtonForeground = buttonForeground ; export const iosPushButtonCellBackground = sto . white ; export const iosPushButtonCellForeground = firstReadable ( iosPushButtonCellBackground , [ accent , sto . black , sto . white ] ) ; export const switchTintOn = Platform . select ( { ios : accent , android : undefined , } ) ; export const switchTintOff = undefined ; export const switchThumbTint = Platform . select ( { ios : undefined , android : undefined , } ) ; export const androidListHeaderBackground = sto . white ; export const androidListHeaderForeground = firstReadable ( androidListHeaderBackground , [ accent , sto . black , sto . white ] ) ; export const androidTabBarBackground = accent ; export const androidTabBarForeground = firstReadable ( androidTabBarBackground , [ accent , sto . black , sto . white , ] ) ; const iosTabBarBackground = '#F7F7F7' ; export const iosTabBarActiveColor = sto . purple ; export const androidStatusBarColor = tinycolor ( navigationBackground ) . darken ( 20 ) . toRgbString ( ) ; export const statusBarStyle = Platform . select ( { ios : tinycolor . isReadable ( '#000' , navigationBackground ) ? 'dark-content' : 'light-content' , android : tinycolor . isReadable ( '#000' , androidStatusBarColor ) ? 'dark-content' : 'light-content' , } ) ; export const themeObject = { accent , navigationBackground , navigationForeground , buttonBackground , buttonForeground , toolbarButtonBackground , toolbarButtonForeground , iosPushButtonCellBackground , iosPushButtonCellForeground , switchTintOn , switchTintOff , switchThumbTint , androidListHeaderBackground , androidListHeaderForeground , androidTabBarBackground , androidTabBarForeground , iosTabBarBackground , iosTabBarActiveColor , androidStatusBarColor , statusBarStyle , } ;