Use Night Shift on your Mac
Night Shift automatically shifts the colours of your display to the warmer end of the colour spectrum when it gets dark.
Studies have shown that exposure to bright blue light in the evening can affect your circadian rhythms and make it harder to fall asleep. Night Shift uses your computer's clock and geolocation to determine when it's sunset in your location. It then automatically shifts the colours in your display to the warmer end of the spectrum. In the morning, it returns the display to its regular settings.
How to set up Night Shift
Make sure your Mac meets the system requirements for Night Shift, then follow these steps:
Choose Apple menu > System Settings (or System Preferences).
Click Night Shift.
From here, you can create a custom Night Shift schedule, schedule Night Shift to turn on automatically from sunset to sunrise, or turn Night Shift off or on manually until sunrise or the scheduled time. You can also make the colour temperature more or less warm when Night Shift is turned on. Warmer colour temperatures show more yellow and less blue.
System requirements for Night Shift
Night Shift requires macOS Sierra 10.12.4 or later and one of these Mac computers, using the built-in display or the displays listed:
Information about products not manufactured by Apple, or independent websites not controlled or tested by Apple, is provided without recommendation or endorsement. Apple assumes no responsibility with regard to the selection, performance or use of third-party websites or products. Apple makes no representations regarding third-party website accuracy or reliability. Contact the vendor for additional information.