react-dockable-desktop 7.1.3 → 7.3.0
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/README.md +27 -3
- package/dist/styles.css +543 -468
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# React Dockable Desktop
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/react-dockable-desktop)
|
|
4
4
|
[](https://www.typescriptlang.org/)
|
|
5
5
|
[](#touch--mobile)
|
|
6
6
|
[](#license)
|
|
@@ -53,7 +53,7 @@ Import styles in your app entry file:
|
|
|
53
53
|
import 'react-dockable-desktop/styles.css';
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
**Requirements:** React ≥ 18. No other runtime dependencies.
|
|
56
|
+
**Requirements:** React ≥ 18, and a browser with CSS `color-mix()` (Chrome/Edge 111, Safari 16.2, Firefox 113 or later). No other runtime dependencies.
|
|
57
57
|
|
|
58
58
|
---
|
|
59
59
|
|
|
@@ -403,7 +403,31 @@ See the [RTL Support guide](https://felipecarrillo100.github.io/react-dockable-d
|
|
|
403
403
|
| `obsidian` | Vercel Midnight — pure black/white | Deep glow + icon drop-shadow |
|
|
404
404
|
| `tokyo` | Tokyo Night — purple accent | Neon glow + vivid icon drop-shadow |
|
|
405
405
|
|
|
406
|
-
All built-in skins include dark and light variants
|
|
406
|
+
All built-in skins include dark and light variants, and each brings its own font (the platform's UI font where it has a known one: VS Code's, San Francisco, Google's, Fluent's Segoe UI).
|
|
407
|
+
|
|
408
|
+
**Branding.** Put your company's colour and font on any built-in skin — no skin of your own needed:
|
|
409
|
+
|
|
410
|
+
```css
|
|
411
|
+
:root {
|
|
412
|
+
--rdd-brand-accent: #e4002b; /* every accent use, in every skin, dark and light */
|
|
413
|
+
--rdd-brand-on-accent: #ffffff; /* text on a brand-coloured fill — set a dark one for light brands */
|
|
414
|
+
--rdd-font-family: 'Acme Sans', sans-serif; /* your font (the library loads none) */
|
|
415
|
+
}
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
Point them at your UI framework's theme to follow it: `var(--bs-primary)` (Bootstrap), `var(--mui-palette-primary-main)` (MUI with CSS variables), `var(--mat-sys-primary)` (Angular Material 3). See [Brand your app](https://felipecarrillo100.github.io/react-dockable-desktop/guide/theming#brand-your-app).
|
|
419
|
+
|
|
420
|
+
Your own surfaces and corner shape, too (7.3.0):
|
|
421
|
+
|
|
422
|
+
```css
|
|
423
|
+
:root:not([data-color-scheme="light"]) { /* dark: the attribute's absence */
|
|
424
|
+
--rdd-brand-surface: #0b1f3a; /* app background — panels, bars and borders are derived from it */
|
|
425
|
+
--rdd-brand-text: #e8eef7; /* main text — set both, or neither */
|
|
426
|
+
}
|
|
427
|
+
:root { --rdd-radius-scale: 0; } /* 0 square · 1 each skin's own · 1.5 rounder */
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
Create your own skin by overriding CSS custom properties under a `[data-rdd-skin="myskin"]` selector. See the [Theming Guide](https://felipecarrillo100.github.io/react-dockable-desktop/guide/theming) for the full variable reference and the [Per-skin active state guide](https://felipecarrillo100.github.io/react-dockable-desktop/guide/theming#per-skin-active-state-design-language) to customise the sidebar/toolbar active indicator in your own skin.
|
|
407
431
|
|
|
408
432
|
---
|
|
409
433
|
|