Style elevations & update styleTrees

Also rename `info` -> `accent`

Co-Authored-By: Kay Simmons <3323631+Kethku@users.noreply.github.com>
This commit is contained in:
Nate Butler 2022-10-11 17:38:28 -04:00
parent 95bc18a995
commit 5708879b5a
11 changed files with 84 additions and 79 deletions

View file

@ -6,14 +6,14 @@ function isStyleSet(key: any): key is StyleSets {
"base",
"variant",
"on",
"info",
"accent",
"positive",
"warning",
"negative",
].includes(key);
}
function isStyle(key: any): key is Styles {
return ["default", "active", "disabled", "hovered", "pressed"].includes(key);
return ["default", "active", "disabled", "hovered", "pressed", "inverted"].includes(key);
}
function getStyle(
layer: Layer,