css(strings, ...values)Optional helper for CSS template literals.
import { css } from "@ztools.org/runtime/client";
Use css only as optional sugar when composing style text in component files.
In most cases, plain template strings are enough.
css\…``Concatenates template strings/values into one CSS string.
Note: this is mostly equivalent to a plain template string. It exists as optional semantic sugar and future extension point.
const base = "#0b57d0";
const styles = css`
.btn {
border: 1px solid ${base};
color: ${base};
padding: 8px 12px;
border-radius: 8px;
}
`;
t.style(...)import { tags as t, css } from "@ztools.org/runtime/client";
const node = t.div(
t.style(css`
.card { border: 1px solid #ddd; border-radius: 10px; padding: 12px; }
`),
t.div({ className: "card" }, "Hello")
);