27 lines · 873 B · TypeScript
RawDownload
import defaultThemeVariables from "../../generated-uniwind-default-theme-variables.json"; import {  DEFAULT_MOBILE_THEME_ID,  getMobileThemeVariables,  type MobileThemeAppearance,  type MobileThemeId,  type MobileThemeVariables,} from "./mobileTheme"; const defaults = defaultThemeVariables as Readonly<  Record<MobileThemeAppearance, MobileThemeVariables>>; /** * Complete palette for native and third-party APIs that cannot consume a * Uniwind className. The standard palette is generated from global.css; custom * palettes share the same source that generates their registered CSS themes. */export function getMobileThemeRuntimeVariables(  themeId: MobileThemeId,  appearance: MobileThemeAppearance,): MobileThemeVariables {  return themeId === DEFAULT_MOBILE_THEME_ID    ? defaults[appearance]    : getMobileThemeVariables(themeId, appearance);}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t