I got up while it was still dark.

Literal

I [topic-は] dark while-[うちに] got-up.

暗いうちに ('while it's still dark') uses ~うちに ('while, during') — indicating the action happened within the window of darkness. 起きた ('got up'). Simple but the うちに pattern is instructive.