update defoult styling

This commit is contained in:
MeghdadFadaee committed 2026-09-09 20:03:56 +03:30
1 parent 9a28ff7354
commit 5c83f59332
8 files changed
+126 -67

No files matched your search

+7 -1
View File
@@ -1,5 +1,6 @@
import { describe, expect, it } from 'vitest'
import {
accentContrast,
currentLogoUrl,
sameTenant,
tenantInitial,
@@ -14,7 +15,12 @@ describe('tenant state helpers', () => {
it('builds safe presentation fallbacks', () => {
expect(tenantInitial(' alpha')).toBe('A')
expect(tenantStyle({ accent: null })).toEqual({ '--tenant-accent': '#7c3aed' })
expect(tenantStyle({ accent: null })).toEqual({})
expect(tenantStyle({ accent: '#ffffff' })).toEqual({
'--tenant-accent': '#ffffff',
'--tenant-accent-contrast': '#0f172a',
})
expect(accentContrast('#2563eb')).toBe('#ffffff')
})
it('creates a cache-busted fixed logo endpoint', () => {