change: theme switch sun icon color in dark theme

This commit is contained in:
Mahyar Khanbolooki
2025-08-12 23:47:56 +03:30
parent 289fb05a92
commit e15a7c0835
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ function FoodPage({ }: Props) {
priority
/>
<div className="absolute top-4 left-0 pe-5.5 ps-7 w-full inline-flex justify-between items-center">
<div className="bg-white rounded-[34px] py-1.5 px-4 w-min text-xs text-disabled2 font-bold">
<div className="bg-container rounded-[34px] py-1.5 px-4 w-min text-xs text-disabled2 dark:text-disabled-text font-bold">
خوراک
</div>
<button>
+4 -2
View File
@@ -30,11 +30,13 @@ export default function NightModeSwitch({ checked, onClick }: Props) {
<Moon
data-nightmode={checked}
size={12}
className='stroke-primary z-0 data-[nightmode=true]:stroke-white' />
className='stroke-primary z-0 data-[nightmode=true]:stroke-white'
/>
<Sun1
data-nightmode={checked}
size={12}
className='stroke-[#FFA800] z-0' />
className='stroke-[#FFA800] data-[nightmode=true]:fill-[#FFA800] z-0'
/>
</div>
)
}