Sp-dev-fx-webparts: select primary theme color in react-enhanced-powerapps

Created on 1 Sep 2020  路  4Comments  路  Source: pnp/sp-dev-fx-webparts

How do I select the primaryThemeColor in the react-emhanced-powerapps sample webpart? Looking at the docs at https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-theme-colors-in-your-customizations it seems to say that themePrimary is the 'default' color for my sites, bit that is not an option in the react-enhanced-powerapps.

I'm looking to use the background color of the new button here:
image

Which option do I use?

answered question

All 4 comments

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Hey @russgove,

Take a look at this post which lists all the colors available for semantic colors:
https://tahoeninjas.blog/2020/07/28/adding-support-for-theme-variants-in-spfx-web-parts/

It may help?

Thanks hugo. menuHeader seems to work for me.
This webpart rocks! thanks

Thank you @russgove! I'll #goahead and close this issue. Let us know if you need anything else at all.

Was this page helpful?
0 / 5 - 0 ratings