mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
fix(native): change background color to pure black for OLED screens
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
--font-mono: "GeistMono-Regular";
|
||||
|
||||
/* Sofa — dark cinema theme with warm amber accents */
|
||||
--color-background: oklch(0.13 0.006 55);
|
||||
--color-background: oklch(0 0 0);
|
||||
--color-foreground: oklch(0.93 0.015 80);
|
||||
--color-card: oklch(0.19 0.008 55);
|
||||
--color-card-foreground: oklch(0.93 0.015 80);
|
||||
|
||||
@@ -19,7 +19,7 @@ export function useTitleTheme(palette: ColorPalette | null | undefined): void {
|
||||
|
||||
const luminance = hexToRelativeLuminance(vibrant);
|
||||
const foreground =
|
||||
luminance > 0.3 ? "oklch(0.13 0.006 55)" : "oklch(0.93 0.015 80)";
|
||||
luminance > 0.3 ? "oklch(0 0 0)" : "oklch(0.93 0.015 80)";
|
||||
|
||||
Uniwind.updateCSSVariables("dark", {
|
||||
"--color-title-accent": vibrant,
|
||||
|
||||
@@ -4,7 +4,7 @@ export const sofaTheme = {
|
||||
...DarkTheme,
|
||||
colors: {
|
||||
...DarkTheme.colors,
|
||||
background: "#090706", // --color-background oklch(0.13 0.006 55)
|
||||
background: "#000000", // --color-background pure black (OLED)
|
||||
card: "#171310", // --color-card oklch(0.19 0.008 55)
|
||||
text: "#ede7dd", // --color-foreground oklch(0.93 0.015 80)
|
||||
border: "#282320", // --color-border approximate
|
||||
|
||||
Reference in New Issue
Block a user