How can an extension add some specific CSS/Less styles for a particular design package or theme?

Step 1

Detect the current design package and theme with JavaScript.

Step 2

Add specific styles for a design pavkage or theme: