Zmiana trybu nocnego/dzienniego w zależności od ustawień systemu
Opened this issue · 0 comments
wykopx commented
const getPreferredScheme = () => window?.matchMedia?.('(prefers-color-scheme:dark)')?.matches ? 'dark' : 'light';
Opened this issue · 0 comments
const getPreferredScheme = () => window?.matchMedia?.('(prefers-color-scheme:dark)')?.matches ? 'dark' : 'light';