Picker

This module provides a theme picker UI elements to create your own theme picker.

Check out the code of the DefaultThemePicker - it uses all the available elements to create a picker UI.