package com.cottondb.storyimport androidx.compose.ui.graphics.Colorimport androidx.compose.ui.text.font.FontFamilyimport com.cottondb.story.ink.Inkimport com.cottondb.story.ink.InkCardLookimport com.cottondb.story.ink.InkPaletteimport com.cottondb.story.ink.InkTypeimport org.junit.Afterimport org.junit.Assert.assertEqualsimport org.junit.Test/** * RULE: the shell's parts drawn in Story's look (Passkeys, Delete account, the sheets' ground) take the paper standing * now, not the one Story opened on. With Night chosen for a dark phone they stayed in the day's navy on the night ground, * all but invisible (the store pass, emulator-5602, 26 Nov 2026). */classStoryCardLookPaperTest {privateval night = InkPalette.of(mapOf("ground" to Color(0xFF0E1018), "sheet" to Color(0xFF15171F), "ink" to Color(0xFFE6E8F2), "accent" to Color(0xFF8EA2FF))) @After fun grey() { Ink.palette = InkPalette.grey } @Test fun the_look_made_on_grey_follows_a_change_to_night() {Ink.palette = InkPalette.greyval look = InkCardLook(InkType(FontFamily.Monospace, FontFamily.Monospace))Ink.palette = night assertEquals(night.ink, look.ink) assertEquals(night.ink, look.danger) assertEquals(night.sheet, look.ground) assertEquals(night.blue, look.accent) }}