@crossworks/client-types 0.239.35 → 0.239.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/dto/rows.ts +3 -2
- package/src/fresh-appearance.ts +23 -0
package/package.json
CHANGED
package/src/dto/rows.ts
CHANGED
|
@@ -297,8 +297,9 @@ export type ProfilePreferences = {
|
|
|
297
297
|
* as a compact JSON spec `{v,seed,tone,speed}` — colours are DERIVED from
|
|
298
298
|
* the live theme tokens client-side, never stored, so the background
|
|
299
299
|
* follows every colour theme and mode. Brain-level for the same reason as
|
|
300
|
-
* backgrounds: it is the look of the product.
|
|
301
|
-
*
|
|
300
|
+
* backgrounds: it is the look of the product. Never set ⇒ the
|
|
301
|
+
* fresh-install spec (FRESH_APPEARANCE); '' ⇒ off, the plain themed fill.
|
|
302
|
+
* Read via readNeatBackground, never raw. */
|
|
302
303
|
neatBackground?: string;
|
|
303
304
|
/** The brain's default light/dark mode for surfaces where the visitor has
|
|
304
305
|
* not chosen one themselves — today the public /s share reader, which stamps
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The look a brain wears until someone chooses otherwise: the Jackdaw colour
|
|
3
|
+
* theme, Lorelei avatars, and the Neat background switched on.
|
|
4
|
+
*
|
|
5
|
+
* ONE source for every reader, and it lives HERE (zero dependencies) because
|
|
6
|
+
* both sides import it: the brain (content-core's DEFAULT_PREFERENCES and its
|
|
7
|
+
* read projections) and the clients (@mantle/share-ui's DEFAULT_AVATAR_STYLE,
|
|
8
|
+
* FRESH_COLOR_THEME and resolveAppearanceAttrs). Clients pin client-types and
|
|
9
|
+
* share-ui together, so a client can never hold one half of this without the
|
|
10
|
+
* other. A stored choice always wins; nothing writes this over a row that has
|
|
11
|
+
* one. It is for FRESH installs: migration keep_existing_look wrote the old
|
|
12
|
+
* look (clean-slate, thumbs, Neat off) into every profile row that existed
|
|
13
|
+
* before this release, so an existing brain looks exactly as it did.
|
|
14
|
+
*
|
|
15
|
+
* `neatBackground` is the canonical encodeNeatSpec form of
|
|
16
|
+
* `{v:1, seed, tone:'auto', speed:2}`. The seed was picked by eye against the
|
|
17
|
+
* Jackdaw theme in light and dark: a soft wash that stays behind content.
|
|
18
|
+
*/
|
|
19
|
+
export const FRESH_APPEARANCE = {
|
|
20
|
+
colorTheme: 'jackdaw',
|
|
21
|
+
avatarStyle: 'lorelei',
|
|
22
|
+
neatBackground: '{"v":1,"seed":55361,"tone":"auto","speed":2}',
|
|
23
|
+
} as const;
|