To enable the dark topbar, add data-topbar-color="dark" to the <html> tag in your layout. You can apply this dynamically using the LayoutStoreService with setTopbarColor('dark').