import { HuiThemesPalette } from '../themes' export type BrowserColors = { color: string barBgColor: string inputBgColor: string borderColor: string titleColor: string } export const getBrowserColors = (invert: boolean, palette: HuiThemesPalette): BrowserColors => { return invert ? { color: palette.background, barBgColor: palette.foreground, inputBgColor: palette.accents_12, borderColor: palette.accents_11, titleColor: palette.accents_2 } : { color: palette.foreground, barBgColor: palette.background, inputBgColor: palette.accents_1, borderColor: palette.border, titleColor: palette.accents_10 } }