frontend-theme.test.js 683 B

12345678910111213141516
  1. import test from 'node:test';
  2. import assert from 'node:assert/strict';
  3. import { mailhubTheme, brandColors } from '../src/frontend/theme.ts';
  4. test('brand primary is indigo, not Ant Design default blue', () => {
  5. assert.equal(brandColors.primary, '#4F46E5');
  6. assert.notEqual(brandColors.primary.toLowerCase(), '#1677ff');
  7. assert.equal(mailhubTheme.token.colorPrimary, brandColors.primary);
  8. });
  9. test('layout canvas and ink tokens match redesign spec', () => {
  10. assert.equal(brandColors.canvas, '#F4F6FB');
  11. assert.equal(brandColors.ink, '#0F172A');
  12. assert.equal(mailhubTheme.token.colorBgLayout, brandColors.canvas);
  13. assert.equal(mailhubTheme.token.controlHeight, 44);
  14. });