Commit e1dcfd4
fix(regression-test): resolve the semantic page-background token via its factory
newTheme.semantics is a factory (primitives) => tokens, not a resolved object, so
reading `.semantics.color.background.page` off it was always undefined and the
background fell back to transparent (white) for every theme. Call the factory
with newTheme.primitives — the same way emotion's useComputedTheme resolves it.
Verified against the compiled themes: dark #10141A, light #F2F4F5, canvas #ffffff.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 68767a2 commit e1dcfd4
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
| |||
0 commit comments