@hraness/design-kit 0.36.3 → 0.36.4
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/PALETTES.md +7 -5
- package/README.md +6 -2
- package/dist/react/index.js +2 -0
- package/dist/stylex-manifest.json +1 -1
- package/package.json +1 -1
- package/portfolio-inventory.json +1 -1
- package/src/palette-bridge.css +1 -1
- package/src/palette-system.css +5 -5
- package/src/react/design-gallery.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hraness/design-kit",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.4",
|
|
4
4
|
"description": "React components and CSS for Hraness apps and product sites: application shells, marketing sections, charts, themes, effects, and syntax highlighting. Built on @hraness/ui.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/portfolio-inventory.json
CHANGED
package/src/palette-bridge.css
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
.hraness-palette.hraness-palette[data-palette],
|
|
102
102
|
:root[data-palette][data-theme],
|
|
103
103
|
[data-palette][data-theme],
|
|
104
|
-
:root[data-palette]:not([data-theme]),
|
|
104
|
+
:root[data-palette][data-palette]:not([data-theme]),
|
|
105
105
|
[data-palette]:not([data-theme]),
|
|
106
106
|
:root.hraness-palette.hraness-palette[data-theme],
|
|
107
107
|
.hraness-palette.hraness-palette[data-theme] {
|
package/src/palette-system.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Generated by scripts/generate-palettes.ts. System-first palette paint without JavaScript. */
|
|
2
|
-
:root[data-palette="catppuccin"]:not([data-theme]),
|
|
2
|
+
:root[data-palette][data-palette="catppuccin"]:not([data-theme]),
|
|
3
3
|
[data-palette="catppuccin"]:not([data-theme]) {
|
|
4
4
|
color-scheme: light dark;
|
|
5
5
|
--hraness-palette-background: light-dark(#eff1f5, #1e1e2e);
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
--hraness-palette-chart4: #f9e2af;
|
|
144
144
|
--hraness-palette-chart5: #cda9f7;
|
|
145
145
|
}
|
|
146
|
-
:root[data-palette="gruvbox"]:not([data-theme]),
|
|
146
|
+
:root[data-palette][data-palette="gruvbox"]:not([data-theme]),
|
|
147
147
|
[data-palette="gruvbox"]:not([data-theme]) {
|
|
148
148
|
color-scheme: light dark;
|
|
149
149
|
--hraness-palette-background: light-dark(#fbf1c7, #282828);
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
--hraness-palette-chart4: #fabd2f;
|
|
288
288
|
--hraness-palette-chart5: #e2aebc;
|
|
289
289
|
}
|
|
290
|
-
:root[data-palette="rose-pine"]:not([data-theme]),
|
|
290
|
+
:root[data-palette][data-palette="rose-pine"]:not([data-theme]),
|
|
291
291
|
[data-palette="rose-pine"]:not([data-theme]) {
|
|
292
292
|
color-scheme: light dark;
|
|
293
293
|
--hraness-palette-background: light-dark(#faf4ed, #191724);
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
--hraness-palette-chart4: #f6c177;
|
|
432
432
|
--hraness-palette-chart5: #c4a7e7;
|
|
433
433
|
}
|
|
434
|
-
:root[data-palette="tokyo-night"]:not([data-theme]),
|
|
434
|
+
:root[data-palette][data-palette="tokyo-night"]:not([data-theme]),
|
|
435
435
|
[data-palette="tokyo-night"]:not([data-theme]) {
|
|
436
436
|
color-scheme: light dark;
|
|
437
437
|
--hraness-palette-background: light-dark(#e1e2e7, #1a1b26);
|
|
@@ -575,7 +575,7 @@
|
|
|
575
575
|
--hraness-palette-chart4: #e0af68;
|
|
576
576
|
--hraness-palette-chart5: #bb9af7;
|
|
577
577
|
}
|
|
578
|
-
:root[data-palette="paper"]:not([data-theme]),
|
|
578
|
+
:root[data-palette][data-palette="paper"]:not([data-theme]),
|
|
579
579
|
[data-palette="paper"]:not([data-theme]) {
|
|
580
580
|
color-scheme: light dark;
|
|
581
581
|
--hraness-palette-background: light-dark(#f8f7f4, #12100f);
|
|
@@ -286,14 +286,14 @@ export function DesignSystemGallery({
|
|
|
286
286
|
<section className="design-gallery__section" id="paper-theme">
|
|
287
287
|
<h2>Paper theme</h2>
|
|
288
288
|
<p>Import paper-theme.css to share warm neutral colors and compact typography without replacing layouts or saved appearance choices.</p>
|
|
289
|
-
<div className="design-gallery__paper" data-hraness-theme="paper" data-theme="light">
|
|
289
|
+
<div className="design-gallery__paper" data-hraness-theme="paper" data-palette="paper" data-theme="light">
|
|
290
290
|
<MarketingSiteHeader brand="Light paper" brandHref="#paper-theme" links={[{ href: "#foundation", label: "Foundation" }]} sticky={false} />
|
|
291
291
|
<TopBar surface="glass" title="Glass application header" data-gallery-glass-top-bar="" />
|
|
292
292
|
<h3>Light paper</h3><p>Headers blur scrolling content and become opaque when reduced transparency is preferred.</p>
|
|
293
293
|
<p><a className="design-gallery__paper-link" href="#foundation">Read about the foundation</a></p>
|
|
294
294
|
<Button variant="primary">Create note</Button>
|
|
295
295
|
</div>
|
|
296
|
-
<div className="design-gallery__paper" data-hraness-theme="paper" data-theme="dark">
|
|
296
|
+
<div className="design-gallery__paper" data-hraness-theme="paper" data-palette="paper" data-theme="dark">
|
|
297
297
|
<MarketingSiteHeader brand="Dark paper" brandHref="#paper-theme" links={[{ href: "#foundation", label: "Foundation" }]} sticky={false} />
|
|
298
298
|
<TopBar surface="glass" title="Glass application header" data-gallery-glass-top-bar="" />
|
|
299
299
|
<h3>Dark paper</h3><p>The same header treatment follows an explicit dark preference.</p>
|