diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-12-28 08:48:22 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-12-28 08:48:22 +0000 |
| commit | e800d744b51fdd2951b447830ca7c9f688542b66 (patch) | |
| tree | 7a176cbc3b0348dcb05ab4129d6ea10505f58742 /apps/mobile/tailwind.config.js | |
| parent | 173fb99aed957fd8b9b47455a1cb5b6cf4115c34 (diff) | |
| download | karakeep-e800d744b51fdd2951b447830ca7c9f688542b66.tar.zst | |
feat(mobile): use oled friendly colors for android app. fixes #1958
Diffstat (limited to 'apps/mobile/tailwind.config.js')
| -rw-r--r-- | apps/mobile/tailwind.config.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/apps/mobile/tailwind.config.js b/apps/mobile/tailwind.config.js index 74a9f30a..ee6214f0 100644 --- a/apps/mobile/tailwind.config.js +++ b/apps/mobile/tailwind.config.js @@ -1,4 +1,4 @@ -const { hairlineWidth, platformSelect } = require("nativewind/theme"); +const { hairlineWidth } = require("nativewind/theme"); /** @type {import('tailwindcss').Config} */ module.exports = { @@ -53,14 +53,8 @@ module.exports = { function withOpacity(variableName) { return ({ opacityValue }) => { if (opacityValue !== undefined) { - return platformSelect({ - ios: `rgb(var(--${variableName}) / ${opacityValue})`, - android: `rgb(var(--android-${variableName}) / ${opacityValue})`, - }); + return `rgb(var(--${variableName}) / ${opacityValue})`; } - return platformSelect({ - ios: `rgb(var(--${variableName}))`, - android: `rgb(var(--android-${variableName}))`, - }); + return `rgb(var(--${variableName}))`; }; } |
