Open billbliss opened 7 years ago
The documentation for themeColor appears to disallow such use. Quoting:
themeColor
to brand cards to your color.themeColor
to indicate status.That's nonsense. That's exactly what it's for.
(That documentation is incorrect.)
I suspect (although have no direct knowledge) that's why this property is named themeColor
instead of simply color
in the Slack style. Its usage parallels the ThemeColor
class in SharePoint.
Having said that, I don't see any other candidate property that'd serve the purpose you propose, so...
Are we looking into this? Or has this been resolved?
Request: add the special values
good
,warning
, anddanger
as theme colors. Slack has these and it's a lot easier than looking up the hex values.I'm not set up to build or test this, but this works in my own version. If you'd rather, I could just submit a PR but it's not very clear how to set up the build environment and run the tests. @robin-liao I'll contact you offline.
Suggested source:
Current source: