import { load, rootVariables, style } from "./css.js"; test("rootVariables", () => { expect(rootVariables(load({ css: "gmi-web.css" }))).toMatchInlineSnapshot(` Object { "a-decoration": "underline", "a-family": "var(--serif)", "a-height": "1.5", "a-size": "var(--p-size)", "a-style": "normal", "background": "white", "body-width": "48rem", "foreground": "black", "h1-family": "var(--sans-serif)", "h1-height": "1.25", "h1-size": "3rem", "h2-family": "var(--sans-serif)", "h2-height": "1.25", "h2-size": "2.25rem", "h3-family": "var(--sans-serif)", "h3-height": "1.25", "h3-size": "1.5rem", "hyphens": "manual", "mono": "consolas, monaco, monospace", "p-family": "var(--serif)", "p-height": "1.5", "p-indent": "0rem", "p-size": "1.25rem", "pre-family": "var(--mono)", "pre-height": "1", "pre-size": "1rem", "quote-family": "var(--serif)", "quote-height": "1.25", "quote-size": "var(--p-size)", "quote-style": "italic", "sans-serif": "avenir, helvetica, arial, sans-serif", "serif": "georgia, times, serif", "ul-family": "var(--serif)", "ul-height": "1.25", "ul-size": "var(--p-size)", "ul-style": "circle", } `); }); test("style with variable overrides", () => { expect(style({ css: "gmi-web.css", foreground: "#137752" })) .toMatchInlineSnapshot(` " " `); });