If you are creating a custom control and want it to conform to the global theme you can leverage the variables contained in the theme .less file. You will create a custom .less file and include it in the dynamic style on Behaviour tab. that way you can make the style applied from the global theme.