>Yes, I think it's better. Perhaps $theme should take value like jui/theme/red instead of just red?

Hmm... Yes i think its more agile. User can create bundles with simple names like `'myjui/red'`