feat(site-builder): section blocks default to palette tokens

Refs #44

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
shadowdaoandClaude Sonnet 5.5 committed 2026-10-07 11:24:52 -07:00
1 parent af43af7dc1
commit 488f208262
12 files changed
+93 -22

No files matched your search

@@ -84,3 +84,13 @@ describe('NumberCounter.craft.props includes the box-model/animation/visibility
expect(props).toHaveProperty('hideOnMobile', false);
});
});
describe('NumberCounter.toHtml palette token fallbacks (Refs #44)', () => {
test('number -> primary token, label -> muted token when colours are absent', () => {
const { html } = toHtml({ counters }, '');
expect(html).toContain('color:var(--wsb-primary)');
expect(html).toContain('color:var(--wsb-muted)');
expect(html).not.toContain('#3b82f6');
expect(html).not.toContain('#6b7280');
});
});