add more states to the theme testbench

This commit is contained in:
K Simmons
2022-09-22 14:25:15 -07:00
parent 962f087ac2
commit 96f9ee784d
4 changed files with 96 additions and 44 deletions
+15
View File
@@ -85,6 +85,14 @@ export function text(
) {
let style = getStyle(layer, styleSetStyleOrProperties, styleOrProperties);
let size = fontSizes[properties?.size || "sm"];
if (typeof styleSetStyleOrProperties === "object") {
properties = styleSetStyleOrProperties;
}
if (typeof styleOrProperties === "object") {
properties = styleOrProperties;
}
return {
family: fontFamilies[fontFamily],
color: style.foreground,
@@ -141,6 +149,13 @@ export function border(
): Border {
let style = getStyle(layer, styleSetStyleOrProperties, styleOrProperties);
if (typeof styleSetStyleOrProperties === "object") {
properties = styleSetStyleOrProperties;
}
if (typeof styleOrProperties === "object") {
properties = styleOrProperties;
}
return {
color: style.border,
width: 1,
+1 -1
View File
@@ -118,7 +118,7 @@ export default function workspace(colorScheme: ColorScheme) {
toolbar: {
height: 34,
background: background(elevation.top),
border: border(elevation.top, "variant", { bottom: true }),
border: border(elevation.top, { bottom: true }),
itemSpacing: 8,
navButton: {
color: foreground(elevation.top, "on"),