types.ts (1294B)
1 export type ThemeLayoutKey = "app"; 2 3 export interface ThemeLayoutParam { 4 variables: ThemeVariable[]; 5 } 6 7 export type ThemeLayoutEntry = Record<string, string>; 8 9 export interface ThemeVariable { 10 namespace: TailwindThemeNamespace; 11 name: string; 12 value: string; 13 } 14 15 export type TailwindThemeNamespace = 16 | "height" 17 | "width" 18 | "min-height" 19 | "max-height" 20 | "min-width" 21 | "max-width" 22 | "padding" 23 | "translate" 24 | "spacing"; 25 26 export interface TailwindThemeConfig { 27 height: ThemeLayoutEntry; 28 width: ThemeLayoutEntry; 29 min_height: ThemeLayoutEntry; 30 max_height: ThemeLayoutEntry; 31 min_width: ThemeLayoutEntry; 32 max_width: ThemeLayoutEntry; 33 padding: ThemeLayoutEntry; 34 translate: ThemeLayoutEntry; 35 spacing: ThemeLayoutEntry; 36 } 37 38 export type IosLayoutKey = "ios0" | "ios1"; 39 40 export type IosResponsiveLayoutKey<TBase extends string> = 41 `${TBase}_${IosLayoutKey}`; 42 43 export type LayoutHeightKey = 44 | "lo_view_main" 45 | "lo_bottom_button" 46 | "nav_tabs" 47 | "nav_page_header" 48 | "nav_page_toolbar"; 49 50 export type LayoutWidthKey = "lo" | "lo_line_entry" | "lo_textdesc"; 51 52 export type IosHeightTokenKey = IosResponsiveLayoutKey<LayoutHeightKey>; 53 54 export type IosWidthTokenKey = IosResponsiveLayoutKey<LayoutWidthKey>;