From f947bd1d1ec2d91e05264c77c5c03f9de5fec6fb Mon Sep 17 00:00:00 2001 From: Innei Date: Sat, 18 Jan 2025 16:59:29 +0800 Subject: [PATCH] feat: integrate react-native-uikit-colors for improved theming and UI consistency - Added `react-native-uikit-colors` package to enhance color management. - Updated `tailwind.config.ts` to utilize `withUIKit` for better color integration. - Refactored color handling in `colors.ts` and `utils.ts` to leverage the new package. - Adjusted components to use safe area insets and improved layout in `rsshub-form.tsx`. - Enhanced `MarkdownWeb` component with custom styles for better rendering. This update streamlines color management and improves the overall UI experience. Signed-off-by: Innei --- apps/mobile/package.json | 1 + .../components/ui/typography/MarkdownWeb.tsx | 10 ++ .../src/screens/(modal)/rsshub-form.tsx | 11 +- apps/mobile/src/theme/colors.ts | 165 +----------------- apps/mobile/src/theme/utils.ts | 22 +-- apps/mobile/src/theme/web.ts | 25 +-- apps/mobile/tailwind.config.ts | 60 +------ pnpm-lock.yaml | 26 ++- 8 files changed, 46 insertions(+), 274 deletions(-) diff --git a/apps/mobile/package.json b/apps/mobile/package.json index 3899f1b20..f3a800c3b 100644 --- a/apps/mobile/package.json +++ b/apps/mobile/package.json @@ -82,6 +82,7 @@ "react-native-safe-area-context": "4.12.0", "react-native-screens": "~4.1.0", "react-native-svg": "15.8.0", + "react-native-uikit-colors": "0.1.1", "react-native-web": "~0.19.13", "react-native-webview": "13.12.5", "swiftui-react-native": "6.3.3", diff --git a/apps/mobile/src/components/ui/typography/MarkdownWeb.tsx b/apps/mobile/src/components/ui/typography/MarkdownWeb.tsx index f6ad599be..37158ce36 100644 --- a/apps/mobile/src/components/ui/typography/MarkdownWeb.tsx +++ b/apps/mobile/src/components/ui/typography/MarkdownWeb.tsx @@ -20,6 +20,16 @@ const MarkdownWeb: WebComponent<{ value: string; style?: React.CSSProperties }> className={cn("text-text prose min-w-0", isDarkMode ? "prose-invert" : "prose")} style={style} > +