The trick is a consistent sleep schedule. Consistently getting sunlight within the first hour of waking up helps a lot too, and taking time to wind down, dim lights, like an hour before bed
An alarm clock with a warm-colored light on it, that slowly turns on over a period of time leading up to your alarm. Some smart lightbulbs can also be set to do the same thing, which is what I use.