fix: better background (more neutral)

This commit is contained in:
2026-02-22 11:44:28 +01:00
parent 2f2d502ca9
commit 5ff4f0a2b9
3 changed files with 24 additions and 3 deletions

View File

@@ -547,7 +547,7 @@ describe('PreviewServer', () => {
async getProjectMetadata() {
return {
maxPostsPerPage: 50,
picoTheme: 'slate',
picoTheme: 'green',
};
},
} as any,
@@ -556,12 +556,13 @@ describe('PreviewServer', () => {
await server.start(0);
const response = await fetch(`${server.getBaseUrl()}/__style-preview?theme=slate&mode=dark`);
const response = await fetch(`${server.getBaseUrl()}/__style-preview?theme=green&mode=dark`);
expect(response.status).toBe(200);
const html = await response.text();
expect(html).toContain('<html lang="en" data-theme="dark">');
expect(html).toContain('href="/assets/pico.slate.min.css"');
expect(html).toContain('href="/assets/pico.green.min.css"');
expect(html).toContain('--pico-background-color: #13171f;');
});
it('limits list routes to 50 posts', async () => {