add more states to the theme testbench
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user