carbon-components-angular icon indicating copy to clipboard operation
carbon-components-angular copied to clipboard

How to get current theme colors

Open dkhrunov opened this issue 3 years ago • 1 comments

I need to get some Carbon colors to my custom component, how can i do that?

Implemented theme in the styles.scss image

My custom component that needs Сarbon colors depending on the current theme image

dkhrunov avatar Jun 16 '22 22:06 dkhrunov

Look into the themes package (Specifically the JavaScript section): https://www.npmjs.com/package/@carbon/themes

You may have to use v10 and you'll have to manage what theme you're using/switching too.

Akshat55 avatar Jun 24 '22 20:06 Akshat55

@dkhrunov Has your question been answered?

Akshat55 avatar Sep 26 '22 04:09 Akshat55

Closing issue due to inactivity.

Akshat55 avatar Oct 04 '22 20:10 Akshat55

@dkhrunov Has your question been answered?

I will try to test the solution you suggested soon

dkhrunov avatar Oct 05 '22 04:10 dkhrunov