https://dev.kronoz.win/r/marzneshin.git
| 1 | bf7c131 | Mardin | 2y ago | import { ColorMode } from '@chakra-ui/react'; |
| 2 | a47eb4c | Dawsh | 2y ago | |
| 3 | a47eb4c | Dawsh | 2y ago | export const updateThemeColor = (colorMode: ColorMode) => { |
| 4 | a47eb4c | Dawsh | 2y ago | const el = document.querySelector('meta[name="theme-color"]'); |
| 5 | bf7c131 | Mardin | 2y ago | el?.setAttribute('content', colorMode == 'dark' ? '#1A202C' : '#3B81F6'); |
| 6 | a47eb4c | Dawsh | 2y ago | }; |