First implementation of theme API calls.