Skip to content
Source
Sign inSign up
Open History to see the last commit

nativeComposerTheme.test.ts

16 lines621 Bytes

1import { describe, expect, it } from "vite-plus/test";
2​
3import { getMobileThemeVariables } from "./mobileTheme";
4import { createNativeComposerTheme } from "./nativeComposerTheme";
5​
6describe("native composer colors", () => {
7 it("flattens Material You alpha colors over the composer rather than falling back to defaults", () => {
8 const theme = createNativeComposerTheme({
9 ...getMobileThemeVariables("t3-code", "light"),
10 "--color-screen": "#ffffffff",
11 "--color-composer-surface": "#ffffffff",
12 "--color-placeholder": "#0000009e",
13 });
14 expect(theme.placeholder).toBe("#616161");
15 });
16});