nemesis: Meta's logo, chromeless plates and card, sky-led theme, denser terrain, scene style picker

- Logo: Meta's white matte (2026-11-09) as the UI mark; icons are the mark on a night-sky tile. Dark ink on Noonday Sky.
- Plates (title bars, lists, composer) and the sign-in card: blur with a light sky tint (PLATE_TINT 0.45), never opaque.
- auto sky picks the theme from the resolved sky: day light mode, night dark mode, dusk the dark-ink crossover.
- Terrain grid 768/2048 full, 512/1024 low, 256/1024 still.
- Temporary Background group (Terrain, Ridges) in the sky menu, also on the sign-in card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Eureka Self 2026-11-10 13:18:59 +00:00
commit 5712068902
30 changed files with 127 additions and 32 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 817 B

After

Width:  |  Height:  |  Size: 2 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Before After
Before After

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1,001 B

After

Width:  |  Height:  |  Size: 59 KiB

Before After
Before After

View file

@ -1,8 +1,9 @@
import React, { useEffect, useRef } from 'react';
import React, { useEffect, useMemo, useRef } from 'react';
import { useClientConfig } from '../../hooks/useClientConfig';
import { getFallbackSession } from '../../state/sessions';
import { mountBackgroundScene } from './host';
import { readCapabilities, resolveTier } from './tier';
import { getSceneStyleOverride } from './sceneStyle';
import './sceneShell.css';
/** Set on <html> while a scene runs, so signed-out screens can let it show through. */
@ -16,7 +17,11 @@ export const SCENE_ACTIVE_ATTRIBUTE = 'data-scene';
* Tier 'off' renders nothing and loads nothing.
*/
export function BackgroundScene() {
const config = useClientConfig().backgroundScene;
const configured = useClientConfig().backgroundScene;
const config = useMemo(() => {
const style = getSceneStyleOverride();
return configured && style ? { ...configured, style } : configured;
}, [configured]);
const enabled = resolveTier(config, readCapabilities(navigator)) !== 'off';
const canvasRef = useRef<HTMLCanvasElement>(null);

View file

@ -1,9 +1,29 @@
import React, { MouseEventHandler, useState } from 'react';
import { Box, config, Icon, IconButton, Icons, Menu, MenuItem, PopOut, RectCords, Text } from 'folds';
import {
Box,
config,
Icon,
IconButton,
Icons,
Menu,
MenuItem,
PopOut,
RectCords,
Text,
} from 'folds';
import FocusTrap from 'focus-trap-react';
import { stopPropagation } from '../../utils/keyboard';
import { useSkyState } from '../../hooks/useSkyState';
import { SKY_STATES, setSkyState, type SkyState } from './skyState';
import { useClientConfig } from '../../hooks/useClientConfig';
import {
getSceneStyleOverride,
SERVED_SCENE_STYLES,
setSceneStyle,
type ServedSceneStyle,
} from './sceneStyle';
const STYLE_LABEL: Record<ServedSceneStyle, string> = { terrain: 'Terrain', ridge: 'Ridges' };
const LABEL: Record<SkyState, string> = {
auto: 'Auto',
@ -19,6 +39,9 @@ const LABEL: Record<SkyState, string> = {
export function SkyStateControl() {
const state = useSkyState();
const [cords, setCords] = useState<RectCords>();
const configuredStyle = useClientConfig().backgroundScene?.style;
const sceneStyle: ServedSceneStyle =
getSceneStyleOverride() ?? (configuredStyle === 'terrain' ? 'terrain' : 'ridge');
const open: MouseEventHandler<HTMLButtonElement> = (evt) => {
setCords(evt.currentTarget.getBoundingClientRect());
@ -62,6 +85,32 @@ export function SkyStateControl() {
</Box>
</MenuItem>
))}
<Text
size="L400"
priority="300"
style={{ padding: `${config.space.S200} ${config.space.S200} 0` }}
>
Background
</Text>
{SERVED_SCENE_STYLES.map((st) => (
<MenuItem
key={st}
size="300"
variant="Surface"
radii="300"
role="menuitemradio"
aria-checked={sceneStyle === st}
onClick={() => {
setCords(undefined);
if (st !== sceneStyle) setSceneStyle(st);
}}
after={sceneStyle === st ? <Icon size="100" src={Icons.Check} /> : undefined}
>
<Box grow="Yes">
<Text size="T300">{STYLE_LABEL[st]}</Text>
</Box>
</MenuItem>
))}
</Box>
</Menu>
</FocusTrap>

View file

@ -0,0 +1,28 @@
// Temporary: which background the viewer picked (terrain or ridges), kept in one localStorage key so the two scenes we
// serve can be compared on any device. Absent, the client config's backgroundScene.style decides.
import type { SceneStyle } from './tier';
export type ServedSceneStyle = Extract<SceneStyle, 'terrain' | 'ridge'>;
export const SERVED_SCENE_STYLES: readonly ServedSceneStyle[] = ['terrain', 'ridge'];
export const SCENE_STYLE_KEY = 'ratatoskr.sceneStyle';
export function getSceneStyleOverride(): ServedSceneStyle | undefined {
try {
const v = localStorage.getItem(SCENE_STYLE_KEY);
return SERVED_SCENE_STYLES.includes(v as ServedSceneStyle)
? (v as ServedSceneStyle)
: undefined;
} catch {
return undefined;
}
}
/** Store the pick and reload, so the scene host mounts the other scene from a clean page. */
export function setSceneStyle(s: ServedSceneStyle): void {
try {
localStorage.setItem(SCENE_STYLE_KEY, s);
} catch {
return;
}
window.location.reload();
}

View file

@ -7,7 +7,7 @@ import { MembersDrawer } from '../room/MembersDrawer.css';
import { CallStatus } from '../call-status/styles.css';
import { RoomViewFollowing } from '../room/RoomViewFollowing.css';
import { RoomViewTyping } from '../room/RoomViewTyping.css';
import { SKY_PLATE_FALLBACK } from './skyPlate';
import { PLATE_TINT, SKY_PLATE_FALLBACK } from './skyPlate';
// Over the scene (html[data-scene]) the signed-in shell is clear (sceneShell.css.ts), so text
// outside a chat bubble would sit on bare sky, which a sky state can make light, dark or both
@ -47,7 +47,9 @@ const within = (ancestor: string) =>
plateRegions.map((r) => `${ancestor} ${r.startsWith('#root') ? '' : '#root '}${r}`).join(', ');
globalStyle(within(scene), {
backgroundColor: fill,
// Blur with a light tint toward the sky, like the chat bubbles; never an opaque slab (PLATE_TINT).
backgroundColor: [fill, `color-mix(in srgb, ${fill} ${PLATE_TINT * 100}%, transparent)`],
backdropFilter: 'blur(12px)',
color: text,
// Themed ink was chosen for the clear shell; inside the plate every token reads the plate's.
vars: {

View file

@ -18,3 +18,11 @@ export const SKY_PLATE_FALLBACK = {
* on, the worst link contrast is 5.0 at Dusk, 5.7 at Day and 11.2 at Night.
*/
export const FOOTER_TINT = 0.82;
/**
* How much of the plate's fill (--sky-bubble) is mixed over the blurred scene behind a plate (title bars, lists, the
* composer, the sign-in card). Meta, 2026-11-09: "The app shouldn't need chrome, and where it does help for readability it
* should be like the chat bubbles, blur with a bit of tint towards the background color. If that's not working, the fix
* is in the background, not covering it up."
*/
export const PLATE_TINT = 0.45;

View file

@ -10,7 +10,7 @@
// derived outside this code (src/sky/skyTokens.js). Midnight Sky's link is derived there against the lightest Night sky
// (4.53 on it, 5.43 on the darkest). The plate (skyPlate.css.ts) is still in the shell, pending
// its removal.
import type { FixedSkyState, SkyState } from './skyState';
import { resolveSkyState, type FixedSkyState, type SkyState } from './skyState';
export type SkyThemeId = 'midnight-sky' | 'noonday-sky';
@ -21,4 +21,4 @@ const BY_STATE: Record<FixedSkyState, SkyThemeId> = {
};
export const skyThemeId = (state: SkyState): SkyThemeId | undefined =>
state === 'auto' ? undefined : BY_STATE[state];
BY_STATE[resolveSkyState(state)];

View file

@ -11,9 +11,9 @@ export const TERRAIN = { span: 3000, hmax: 256 };
* under shading read from the height map shows as hard-edged facets and stepped crests.
*/
export const GRID = {
still: { grid: 192, tex: 512 },
low: { grid: 320, tex: 1024 },
full: { grid: 384, tex: 1024 },
still: { grid: 256, tex: 1024 },
low: { grid: 512, tex: 1024 },
full: { grid: 768, tex: 2048 },
} as const;
/** The camera: at the patch centre, above the highest peak, turning slowly and looking a little down. */

View file

@ -21,6 +21,7 @@ import {
import { AsyncStatus, useAsyncCallback } from '../../hooks/useAsyncCallback';
import { LOGIN_PATH, REGISTER_PATH, RESET_PASSWORD_PATH } from '../paths';
import RatatoskrSVG from '../../../../public/res/svg/ratatoskr.svg';
import { SkyStateControl } from '../../features/scene/SkyStateControl';
import { ServerPicker } from './ServerPicker';
import { AutoDiscoveryAction, autoDiscovery } from '../../cs-api';
import { SpecVersionsLoader } from '../../components/SpecVersionsLoader';
@ -137,6 +138,7 @@ export function AuthLayout() {
<img className={css.AuthLogo} src={RatatoskrSVG} alt="Ratatoskr logo" />
<Text size="H3">Ratatoskr</Text>
</Box>
<SkyStateControl />
</Header>
<Box className={css.AuthCardContent} direction="Column">
<Box direction="Column" gap="100">

View file

@ -1,6 +1,6 @@
import { globalStyle, style } from '@vanilla-extract/css';
import { DefaultReset, color, config, toRem } from 'folds';
import { FOOTER_TINT } from '../../features/scene/skyPlate';
import { FOOTER_TINT, PLATE_TINT } from '../../features/scene/skyPlate';
export const AuthLayout = style({
minHeight: '100%',
@ -27,13 +27,16 @@ export const AuthCard = style({
export const AuthLogo = style([
DefaultReset,
{
width: toRem(26),
height: toRem(26),
width: toRem(32),
height: toRem(32),
borderRadius: '50%',
},
]);
// The mark is white (Meta's matte); on the light sky theme it takes the dark ink instead.
globalStyle('body.noonday-sky img[src*="ratatoskr"]', { filter: 'brightness(0.18)' });
export const AuthHeader = style({
padding: `0 ${config.space.S400}`,
borderBottomWidth: config.borderWidth.B300,
@ -67,22 +70,35 @@ export const AuthFooter = style({
// made for their own grounds, not this card; Dark and Butter already use the same hsl(213 100% 80%).
// The card is also made shorter so it leaves more of the scene visible on a phone.
const scene = ':root[data-scene]';
const tint = `color-mix(in srgb, var(--sky-bubble, #0d1a26) ${FOOTER_TINT * 100}%, transparent)`;
globalStyle(`${scene} ${AuthLayout}`, {
backgroundColor: 'transparent',
backgroundImage: 'none',
});
globalStyle(`${scene} ${AuthCard}`, {
backgroundColor: 'var(--sky-bubble, #0d1a26)',
// Meta, 2026-11-09: no chrome; where readability needs help, the chat-bubble treatment (blur with a tint toward the
// background), and if that is not enough the fix goes in the background, not in a plate. Same tint as the footer band.
backgroundColor: [
'var(--sky-bubble, #0d1a26)',
`color-mix(in srgb, var(--sky-bubble, #0d1a26) ${PLATE_TINT * 100}%, transparent)`,
],
backdropFilter: 'blur(12px)',
color: 'var(--sky-bubble-text, #b7c7d9)',
borderRadius: config.radii.R500,
// A faint inner edge, so a pane this clear still reads as a surface.
borderColor: 'rgba(183, 199, 217, 0.14)',
border: 'none',
boxShadow: 'none',
});
globalStyle(`${scene} body:not(.gamecult-theme) ${AuthCard}`, {
vars: { '--tc-link': '#99c7ff' },
});
globalStyle(`${scene} ${AuthHeader}`, {
backgroundColor: 'transparent',
borderBottomWidth: 0,
boxShadow: 'none',
});
globalStyle(`${scene} #root header.${AuthHeader}`, {
backgroundColor: 'transparent',
backdropFilter: 'none',
});
globalStyle(`${scene} ${AuthCardContent}`, {
paddingTop: config.space.S500,
@ -99,7 +115,6 @@ const FADE_Y =
'linear-gradient(to bottom, transparent, #000 16px, #000 calc(100% - 16px), transparent)';
const FADE_X =
'linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent)';
const tint = `color-mix(in srgb, var(--sky-bubble, #0d1a26) ${FOOTER_TINT * 100}%, transparent)`;
globalStyle(`${scene} ${AuthFooter}`, {
paddingTop: config.space.S500,
paddingBottom: config.space.S500,