feat: refresh the home page and separate match event types
Add an inhouse hero, Hall of Fame, rankings, and event-specific schedules. Carry the event type through the API and admin tools, and improve results and player history displays.
This commit is contained in:
1 parent
7e0cd7cb19
commit
664af15255
58 files changed
+2316
-593
No files matched your search
@@ -14,18 +14,22 @@ const BRAND_COLORS = {
|
||||
leaf: "#2f9e58",
|
||||
} as const;
|
||||
|
||||
test("defines each brand color once as a primitive token", () => {
|
||||
test("keeps literal colors in the primitive palette", () => {
|
||||
const palette = stylesheet.match(/@theme static\s*\{[^}]*\}/)?.[0];
|
||||
assert.ok(palette, "the primitive palette must be in @theme static");
|
||||
|
||||
for (const [name, value] of Object.entries(BRAND_COLORS)) {
|
||||
assert.match(
|
||||
stylesheet,
|
||||
palette,
|
||||
new RegExp(`--color-brand-${name}: ${escapeRegExp(value)};`),
|
||||
);
|
||||
assert.equal(
|
||||
stylesheet.split(value).length - 1,
|
||||
1,
|
||||
`${name} should have one literal source`,
|
||||
);
|
||||
assert.equal(palette.split(`${value};`).length - 1, 1);
|
||||
}
|
||||
|
||||
assert.doesNotMatch(
|
||||
stylesheet.replace(palette, ""),
|
||||
/#[\da-f]{3,8}\b|\b(?:rgba?|hsla?|oklch|oklab)\(/i,
|
||||
);
|
||||
});
|
||||
|
||||
test("keeps the layer order that lets LOLYMPUS tokens override Astryx", () => {
|
||||
@@ -43,7 +47,7 @@ test("derives Astryx action colors from the brand coral", () => {
|
||||
);
|
||||
assert.match(
|
||||
stylesheet,
|
||||
/--color-text-accent: light-dark\(\s*color-mix\(in oklab, var\(--color-brand-coral\) \d+%, black\),\s*color-mix\(in oklab, var\(--color-brand-coral\) \d+%, white\)\s*\);/,
|
||||
/--color-text-accent: light-dark\(\s*color-mix\(in oklab, var\(--color-brand-coral\) \d+%, var\(--color-palette-black\)\),\s*color-mix\(in oklab, var\(--color-brand-coral\) \d+%, var\(--color-palette-white\)\)\s*\);/,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user