feat(theme): rebuild dark note colours as a consistent family

This commit is contained in:
Frederic Cabassut
2026-07-31 12:03:39 +02:00
committed by Fred Cabassut
parent 365f941240
commit 9600c62288
4 changed files with 57 additions and 17 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ test.describe.serial('Dark mode', () => {
const noteCard = page.getByTestId('note-card').first();
await expect(noteCard).toBeVisible();
const bg = await noteCard.evaluate((el) => getComputedStyle(el).backgroundColor);
// Dark default color is #2a2520 = rgb(42, 37, 32); NOT light default rgb(250, 245, 235)
// Dark default color is #21201f = rgb(33, 32, 31); NOT light default rgb(250, 245, 235)
expect(bg).not.toBe('rgb(250, 245, 235)');
});
});
+1 -1
View File
@@ -139,7 +139,7 @@ test.describe('Public Note Sharing', () => {
await expect(publicPage.locator('html')).toHaveAttribute('data-theme', 'dark');
await expect(publicPage.getByTestId('shared-note')).toHaveCSS(
'background-color',
'rgb(34, 46, 58)'
'rgb(37, 57, 70)'
);
await context.close();