await brand.palette.set({
colors: [{ hex: "#6B3E26", role: "primary", name: "Roast" }, { hex: "#D9A441", role: "accent" }],
typography: { heading: "Fraunces", body: "Inter", mono: "" },
});
brand.palette.role("primary");
// { hex: "#6B3E26", role: "primary", name: "Roast", cmyk: [...], textColor: "#FFFFFF",
// contrast: { onWhite: { ratio, level: "AA" }, onBlack: { … } } }brand.palette.set({
"colors": [{"hex": "#6B3E26", "role": "primary", "name": "Roast"}, {"hex": "#D9A441", "role": "accent"}],
"typography": {"heading": "Fraunces", "body": "Inter", "mono": ""},
})
brand.palette.role("primary")
# {"hex": "#6B3E26", "role": "primary", "name": "Roast", "cmyk": [...], "textColor": "#FFFFFF",
# "contrast": {"onWhite": {"ratio": ..., "level": "AA"}, "onBlack": {...}}}Rollen
primary (höchstens eine), secondary, accent, neutral, background, text, success, warning und error.
Typografie ist ein Name
Die Schriftfamilien, die Ihre Oberflächen verwenden. Die Oberfläche, die eine Marke zeigt, behält ihre eigene Schrift: Die Schriften einer Marke werden beim Namen genannt, nicht geladen, um die Seite darzustellen.