@mundogamernetwork/shared-ui 1.19.4 → 1.19.5

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.
@@ -1,43 +1,54 @@
1
1
  /*
2
- * Theme tokens of the What's New modal. Colours live ONLY here; the component
3
- * reads them through var(--mg-wn-*) with no literal fallback. A front can
4
- * restyle the modal by redefining any of these in its own theme.
5
- * Light is the default; the dark values apply under @nuxtjs/color-mode's
2
+ * Theme tokens of the What's New modal and drawer. The component reads them
3
+ * through var(--mg-wn-*) with no literal fallback.
4
+ *
5
+ * Surfaces, text, borders and the accent are NOT colours of their own: they
6
+ * alias the variables every front already defines in its own light/dark theme
7
+ * files (the same ones the user menu uses), so the modal always matches the
8
+ * front it is shown in. The accent is the front's strong text colour (and
9
+ * on-accent its surface): the brand accents differ per front and several do
10
+ * not reach 3:1 against the surface in one of the two themes, so a brand-
11
+ * coloured fill or link would be unreadable there. A front that wants its
12
+ * brand colour can redefine --mg-wn-accent / --mg-wn-on-accent.
13
+ * Only the semantic status colours, the scrims and the media chrome are fixed
14
+ * here, because no front theme has a counterpart.
15
+ * A front can still restyle the modal by redefining any --mg-wn-* in its theme.
16
+ *
17
+ * Light is the default; the status values switch under @nuxtjs/color-mode's
6
18
  * `.dark-mode` class (every front sets colorMode.preference).
7
19
  */
20
+ :root,
21
+ .light-mode,
22
+ .dark-mode {
23
+ --mg-wn-surface: var(--header-ui-config-bg);
24
+ --mg-wn-surface-2: var(--body-bg-card);
25
+ --mg-wn-text: var(--active);
26
+ --mg-wn-text-muted: var(--secondary-info-fg);
27
+ --mg-wn-border: var(--header-ui-config-border);
28
+ --mg-wn-accent: var(--active);
29
+ --mg-wn-on-accent: var(--header-ui-config-bg);
30
+ --mg-wn-neutral: var(--secondary-info-fg);
31
+ }
32
+
8
33
  :root,
9
34
  .light-mode {
10
- --mg-wn-overlay: rgba(11, 11, 20, 0.55);
11
- --mg-wn-surface: #ffffff;
12
- --mg-wn-surface-2: #f2f3f7;
13
- --mg-wn-text: #1d2030;
14
- --mg-wn-text-muted: #4f566b;
15
- --mg-wn-border: #dcdfe8;
16
- --mg-wn-accent: #3b38c4;
17
- --mg-wn-on-accent: #ffffff;
18
- --mg-wn-success: #146c43;
19
- --mg-wn-warning: #8a4f00;
20
- --mg-wn-neutral: #4f566b;
21
- --mg-wn-media-bg: #1d2030;
22
- --mg-wn-media-control-bg: rgba(0, 0, 0, 0.66);
23
- --mg-wn-media-control-fg: #ffffff;
24
- --mg-wn-shadow: rgba(0, 0, 0, 0.28);
35
+ /* scrim, status colours and media chrome: no counterpart in the front themes */
36
+ --mg-wn-overlay: rgba(11, 11, 20, 0.55); /* theme-ok: fixed scrim/status/media chrome */
37
+ --mg-wn-success: #146c43; /* theme-ok: fixed scrim/status/media chrome */
38
+ --mg-wn-warning: #8a4f00; /* theme-ok: fixed scrim/status/media chrome */
39
+ --mg-wn-media-bg: #0e0e0e; /* theme-ok: fixed scrim/status/media chrome */
40
+ --mg-wn-media-control-bg: rgba(0, 0, 0, 0.66); /* theme-ok: fixed scrim/status/media chrome */
41
+ --mg-wn-media-control-fg: #ffffff; /* theme-ok: fixed scrim/status/media chrome */
42
+ --mg-wn-shadow: rgba(0, 0, 0, 0.28); /* theme-ok: fixed scrim/status/media chrome */
25
43
  }
26
44
 
27
45
  .dark-mode {
28
- --mg-wn-overlay: rgba(0, 0, 0, 0.66);
29
- --mg-wn-surface: #1c1d2b;
30
- --mg-wn-surface-2: #262838;
31
- --mg-wn-text: #eceef8;
32
- --mg-wn-text-muted: #a9aec6;
33
- --mg-wn-border: #383b52;
34
- --mg-wn-accent: #a3a1ff;
35
- --mg-wn-on-accent: #12121c;
36
- --mg-wn-success: #5fd199;
37
- --mg-wn-warning: #f0b45a;
38
- --mg-wn-neutral: #a9aec6;
39
- --mg-wn-media-bg: #0c0c14;
40
- --mg-wn-media-control-bg: rgba(0, 0, 0, 0.72);
41
- --mg-wn-media-control-fg: #ffffff;
42
- --mg-wn-shadow: rgba(0, 0, 0, 0.6);
46
+ /* scrim, status colours and media chrome: no counterpart in the front themes */
47
+ --mg-wn-overlay: rgba(0, 0, 0, 0.66); /* theme-ok: fixed scrim/status/media chrome */
48
+ --mg-wn-success: #5fd199; /* theme-ok: fixed scrim/status/media chrome */
49
+ --mg-wn-warning: #f0b45a; /* theme-ok: fixed scrim/status/media chrome */
50
+ --mg-wn-media-bg: #050505; /* theme-ok: fixed scrim/status/media chrome */
51
+ --mg-wn-media-control-bg: rgba(0, 0, 0, 0.72); /* theme-ok: fixed scrim/status/media chrome */
52
+ --mg-wn-media-control-fg: #ffffff; /* theme-ok: fixed scrim/status/media chrome */
53
+ --mg-wn-shadow: rgba(0, 0, 0, 0.6); /* theme-ok: fixed scrim/status/media chrome */
43
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mundogamernetwork/shared-ui",
3
- "version": "1.19.4",
3
+ "version": "1.19.5",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",