@deadragdoll/reactnu 0.1.14 → 0.1.16
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/dist/index.cjs +38 -1
- package/dist/index.js +38 -1
- package/dist/styles.css +12 -0
- package/dist/theme/themes.d.ts +1 -0
- package/docs/NuThemeProvider.md +2 -1
- package/docs/TOKEN_CHECKLIST.md +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9451,10 +9451,47 @@ var phosphorTheme = {
|
|
|
9451
9451
|
windowModalBackdrop: "rgb(6 18 8 / 0.34)"
|
|
9452
9452
|
}
|
|
9453
9453
|
};
|
|
9454
|
+
var midnightTheme = {
|
|
9455
|
+
name: "midnight",
|
|
9456
|
+
label: "Midnight Slate",
|
|
9457
|
+
tokens: {
|
|
9458
|
+
desktopBackground: "#1b2430",
|
|
9459
|
+
desktopPattern: "rgb(156 177 201 / 0.24)",
|
|
9460
|
+
shellBackground: "#101722",
|
|
9461
|
+
appBackground: "#17273b",
|
|
9462
|
+
appBackgroundAlt: "#0d1724",
|
|
9463
|
+
chromeBackground: "#d4dde8",
|
|
9464
|
+
panelBackground: "#17273b",
|
|
9465
|
+
panelInsetBackground: "#111e2e",
|
|
9466
|
+
titleBackground: "#d4dde8",
|
|
9467
|
+
titleText: "#14233a",
|
|
9468
|
+
textPrimary: "#e6edf7",
|
|
9469
|
+
textMuted: "#aebdcd",
|
|
9470
|
+
textInverse: "#0b1220",
|
|
9471
|
+
textAccent: "#ffd166",
|
|
9472
|
+
textHotkey: "#ff7171",
|
|
9473
|
+
buttonFace: "#d4dde8",
|
|
9474
|
+
buttonFaceAlt: "#9baabd",
|
|
9475
|
+
buttonDanger: "#a94d57",
|
|
9476
|
+
buttonSuccess: "#3c936d",
|
|
9477
|
+
buttonText: "#0b1220",
|
|
9478
|
+
fieldBackground: "#09111c",
|
|
9479
|
+
fieldText: "#e6edf7",
|
|
9480
|
+
borderLight: "#e6edf7",
|
|
9481
|
+
borderDark: "#070c14",
|
|
9482
|
+
borderAccent: "#ffd166",
|
|
9483
|
+
shadowColor: "#070c14",
|
|
9484
|
+
panelShadowColor: "rgb(7 12 20 / 0.56)",
|
|
9485
|
+
focusColor: "#ffd166",
|
|
9486
|
+
windowInactiveOverlay: "rgb(7 12 20 / 0.3)",
|
|
9487
|
+
windowModalBackdrop: "rgb(7 12 20 / 0.48)"
|
|
9488
|
+
}
|
|
9489
|
+
};
|
|
9454
9490
|
var nuThemes = {
|
|
9455
9491
|
classic: classicTheme,
|
|
9456
9492
|
amber: amberTheme,
|
|
9457
|
-
phosphor: phosphorTheme
|
|
9493
|
+
phosphor: phosphorTheme,
|
|
9494
|
+
midnight: midnightTheme
|
|
9458
9495
|
};
|
|
9459
9496
|
function isNuThemeName(value) {
|
|
9460
9497
|
return value in nuThemes;
|
package/dist/index.js
CHANGED
|
@@ -9487,10 +9487,47 @@ var phosphorTheme = {
|
|
|
9487
9487
|
windowModalBackdrop: "rgb(6 18 8 / 0.34)"
|
|
9488
9488
|
}
|
|
9489
9489
|
};
|
|
9490
|
+
var midnightTheme = {
|
|
9491
|
+
name: "midnight",
|
|
9492
|
+
label: "Midnight Slate",
|
|
9493
|
+
tokens: {
|
|
9494
|
+
desktopBackground: "#1b2430",
|
|
9495
|
+
desktopPattern: "rgb(156 177 201 / 0.24)",
|
|
9496
|
+
shellBackground: "#101722",
|
|
9497
|
+
appBackground: "#17273b",
|
|
9498
|
+
appBackgroundAlt: "#0d1724",
|
|
9499
|
+
chromeBackground: "#d4dde8",
|
|
9500
|
+
panelBackground: "#17273b",
|
|
9501
|
+
panelInsetBackground: "#111e2e",
|
|
9502
|
+
titleBackground: "#d4dde8",
|
|
9503
|
+
titleText: "#14233a",
|
|
9504
|
+
textPrimary: "#e6edf7",
|
|
9505
|
+
textMuted: "#aebdcd",
|
|
9506
|
+
textInverse: "#0b1220",
|
|
9507
|
+
textAccent: "#ffd166",
|
|
9508
|
+
textHotkey: "#ff7171",
|
|
9509
|
+
buttonFace: "#d4dde8",
|
|
9510
|
+
buttonFaceAlt: "#9baabd",
|
|
9511
|
+
buttonDanger: "#a94d57",
|
|
9512
|
+
buttonSuccess: "#3c936d",
|
|
9513
|
+
buttonText: "#0b1220",
|
|
9514
|
+
fieldBackground: "#09111c",
|
|
9515
|
+
fieldText: "#e6edf7",
|
|
9516
|
+
borderLight: "#e6edf7",
|
|
9517
|
+
borderDark: "#070c14",
|
|
9518
|
+
borderAccent: "#ffd166",
|
|
9519
|
+
shadowColor: "#070c14",
|
|
9520
|
+
panelShadowColor: "rgb(7 12 20 / 0.56)",
|
|
9521
|
+
focusColor: "#ffd166",
|
|
9522
|
+
windowInactiveOverlay: "rgb(7 12 20 / 0.3)",
|
|
9523
|
+
windowModalBackdrop: "rgb(7 12 20 / 0.48)"
|
|
9524
|
+
}
|
|
9525
|
+
};
|
|
9490
9526
|
var nuThemes = {
|
|
9491
9527
|
classic: classicTheme,
|
|
9492
9528
|
amber: amberTheme,
|
|
9493
|
-
phosphor: phosphorTheme
|
|
9529
|
+
phosphor: phosphorTheme,
|
|
9530
|
+
midnight: midnightTheme
|
|
9494
9531
|
};
|
|
9495
9532
|
function isNuThemeName(value) {
|
|
9496
9533
|
return value in nuThemes;
|
package/dist/styles.css
CHANGED
|
@@ -49,6 +49,11 @@
|
|
|
49
49
|
--nu-window-shadow-offset-x: 1ch;
|
|
50
50
|
--nu-window-shadow-offset-y: 1em;
|
|
51
51
|
--nu-window-inactive-overlay: rgba(0, 0, 0, 0.22);
|
|
52
|
+
--nu-window-inactive-border: color-mix(
|
|
53
|
+
in srgb,
|
|
54
|
+
var(--nu-border-light) 78%,
|
|
55
|
+
var(--nu-border-dark)
|
|
56
|
+
);
|
|
52
57
|
--nu-window-modal-backdrop: rgba(0, 0, 0, 0.32);
|
|
53
58
|
--nu-scrollbar-track: transparent;
|
|
54
59
|
--nu-scrollbar-thumb: var(--nu-color-button-face);
|
|
@@ -3345,10 +3350,17 @@
|
|
|
3345
3350
|
.nu-window[data-border="single"] {
|
|
3346
3351
|
border: 1px solid var(--nu-border-light);
|
|
3347
3352
|
}
|
|
3353
|
+
.nu-window:not([data-active])[data-border="single"] {
|
|
3354
|
+
border-color: var(--nu-window-inactive-border);
|
|
3355
|
+
}
|
|
3348
3356
|
.nu-window[data-border="double"] {
|
|
3349
3357
|
border: 1px solid var(--nu-border-light);
|
|
3350
3358
|
box-shadow: inset 0 0 0 1px var(--nu-border-light);
|
|
3351
3359
|
}
|
|
3360
|
+
.nu-window:not([data-active])[data-border="double"] {
|
|
3361
|
+
border-color: var(--nu-window-inactive-border);
|
|
3362
|
+
box-shadow: inset 0 0 0 1px var(--nu-window-inactive-border);
|
|
3363
|
+
}
|
|
3352
3364
|
.nu-window__shadow {
|
|
3353
3365
|
position: absolute;
|
|
3354
3366
|
z-index: -1;
|
package/dist/theme/themes.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare const nuThemes: {
|
|
|
41
41
|
readonly classic: NuThemeDefinition;
|
|
42
42
|
readonly amber: NuThemeDefinition;
|
|
43
43
|
readonly phosphor: NuThemeDefinition;
|
|
44
|
+
readonly midnight: NuThemeDefinition;
|
|
44
45
|
};
|
|
45
46
|
export type NuThemeName = keyof typeof nuThemes;
|
|
46
47
|
export declare function isNuThemeName(value: string): value is NuThemeName;
|
package/docs/NuThemeProvider.md
CHANGED
|
@@ -59,6 +59,7 @@ Supported props:
|
|
|
59
59
|
|
|
60
60
|
## Notes
|
|
61
61
|
|
|
62
|
-
-
|
|
62
|
+
- Built-in themes are `classic` (default), `amber`, `phosphor`, and `midnight`.
|
|
63
|
+
- `midnight` is a restrained dark blue-gray palette with pale chrome and yellow focus accents.
|
|
63
64
|
- Theme tokens drive desktop, windowing, controls, selection, and inactive overlays.
|
|
64
65
|
- Provider typography affects preview content, managed windows, dialogs, menus, and popup portals rendered inside the theme scope.
|
package/docs/TOKEN_CHECKLIST.md
CHANGED
|
@@ -97,7 +97,7 @@ If a component needs a new reusable visual value, add it there first instead of
|
|
|
97
97
|
- Shadows:
|
|
98
98
|
- If it is raised, is it reusing button/window shadow logic instead of inventing a new one?
|
|
99
99
|
- Theme coverage:
|
|
100
|
-
- Would the component still read correctly in `classic`, `amber`, and `
|
|
100
|
+
- Would the component still read correctly in `classic`, `amber`, `phosphor`, and `midnight`?
|
|
101
101
|
- Hardcoded values:
|
|
102
102
|
- Are any colors or dimensions local only because they are truly component-specific?
|
|
103
103
|
|