Spaces:
Sleeping
Sleeping
File size: 968 Bytes
a70c667 1339bad b816e2e a70c667 57a6a91 a70c667 57a6a91 a70c667 57a6a91 a70c667 b816e2e 57a6a91 1339bad 57a6a91 a70c667 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | import { describe, expect, it } from 'vitest';
import {
AMIGA_BG_DARKENED,
AMIGA_TOKEN_HEX,
MWB_PENS,
} from '../src/theme/tokenValues.js';
describe('MagicWB pens', () => {
it('exposes dark-gray palette defaults', () => {
expect(MWB_PENS).toEqual({
0: '#2A2A2A',
1: '#000000',
2: '#FFFFFF',
3: '#3B67A2',
4: '#1A1A1A',
5: '#3D3D3D',
6: '#AA907C',
7: '#FFA997',
});
});
});
describe('theme semantic tokens', () => {
it('uses very dark gray bg with light fg', () => {
expect(AMIGA_TOKEN_HEX.bg).toBe(AMIGA_BG_DARKENED);
expect(AMIGA_BG_DARKENED).toBe('#222222');
expect(AMIGA_TOKEN_HEX.fg).toBe('#F0F0F0');
expect(AMIGA_TOKEN_HEX.accent).toBe(MWB_PENS[3]);
});
it('uses pixel-perfect 16/20 typography sizes', () => {
expect(AMIGA_TOKEN_HEX.fontSizePx).toBe(16);
expect(AMIGA_TOKEN_HEX.lineHeightPx).toBe(20);
expect(AMIGA_TOKEN_HEX.fontSizePx % 8).toBe(0);
});
});
|