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

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,