astryx-dracula 0.1.0 → 0.1.2

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/USAGE.md CHANGED
@@ -5,11 +5,12 @@ Three paths, same hexes. Pick one per site.
5
5
  ## Get the kit
6
6
 
7
7
  ```bash
8
- git clone https://github.com/yuzu-octopus/astryx-dracula.git
8
+ bun add astryx-dracula
9
9
  ```
10
10
 
11
- Copy what you need: `astryx-dracula.js` + `theme.css` (prebuilt), `astryx-theme.ts` (source),
12
- `tokens.css` (plain CSS), `fonts/` into served `public/fonts/`. Re-pull to update; never fork the hexes per-site.
11
+ Or clone `https://github.com/yuzu-octopus/astryx-dracula.git` and copy
12
+ `astryx-dracula.js` + `theme.css` (prebuilt), `tokens.css` (plain CSS), `fonts/` into served
13
+ `public/fonts/`. Update with a version bump; never fork the hexes per-site.
13
14
 
14
15
  ## Prebuilt (recommended for Astryx apps)
15
16
 
package/astryx-dracula.js CHANGED
@@ -136,8 +136,8 @@ export const astryxDraculaTheme = {
136
136
  "--color-background-popover": "light-dark(#424450, #424450)",
137
137
  "--color-background-muted": "light-dark(#44475A, #44475A)",
138
138
  "--color-overlay": "light-dark(#191A21CC, #191A21CC)",
139
- "--color-overlay-hover": "light-dark(#353747, #353747)",
140
- "--color-overlay-pressed": "light-dark(#44475A, #44475A)",
139
+ "--color-overlay-hover": "light-dark(#0000001F, #0000001F)",
140
+ "--color-overlay-pressed": "light-dark(#00000033, #00000033)",
141
141
  "--color-border": "light-dark(#6272A4, #6272A4)",
142
142
  "--color-border-emphasized": "light-dark(#6272A4, #6272A4)",
143
143
  "--color-accent": "light-dark(#BD93F9, #BD93F9)",
package/package.json CHANGED
@@ -57,7 +57,10 @@
57
57
  "theme:build": "bunx astryx theme build astryx-theme.ts -o theme.css",
58
58
  "theme:check": "bunx astryx theme build astryx-theme.ts -o theme.css --check"
59
59
  },
60
- "trustedDependencies": ["@astryxdesign/core", "@astryxdesign/cli"],
60
+ "trustedDependencies": [
61
+ "@astryxdesign/core",
62
+ "@astryxdesign/cli"
63
+ ],
61
64
  "type": "module",
62
- "version": "0.1.0"
65
+ "version": "0.1.2"
63
66
  }
package/theme.css CHANGED
@@ -202,8 +202,8 @@
202
202
  --color-background-popover: light-dark(#424450, #424450);
203
203
  --color-background-muted: light-dark(#44475A, #44475A);
204
204
  --color-overlay: light-dark(#191A21CC, #191A21CC);
205
- --color-overlay-hover: light-dark(#353747, #353747);
206
- --color-overlay-pressed: light-dark(#44475A, #44475A);
205
+ --color-overlay-hover: light-dark(#0000001F, #0000001F);
206
+ --color-overlay-pressed: light-dark(#00000033, #00000033);
207
207
  --color-border: light-dark(#6272A4, #6272A4);
208
208
  --color-border-emphasized: light-dark(#6272A4, #6272A4);
209
209
  --color-accent: light-dark(#BD93F9, #BD93F9);
package/tokens.css CHANGED
@@ -89,3 +89,33 @@
89
89
  --color-tag-orange: #FFB86C;
90
90
  --color-tag-pink: #FF79C6;
91
91
  }
92
+
93
+ /* Dracula scrollbars: Selection thumb on transparent track, Current Line on
94
+ * hover. Firefox uses the two properties; Chromium uses the pseudo-elements. */
95
+ :root {
96
+ scrollbar-width: thin;
97
+ scrollbar-color: var(--dracula-selection) transparent;
98
+ }
99
+
100
+ *::-webkit-scrollbar {
101
+ width: 10px;
102
+ height: 10px;
103
+ }
104
+
105
+ *::-webkit-scrollbar-track,
106
+ *::-webkit-scrollbar-corner {
107
+ background: transparent;
108
+ }
109
+
110
+ *::-webkit-scrollbar-thumb {
111
+ background: var(--dracula-selection);
112
+ border-radius: 5px;
113
+ border: 2px solid transparent;
114
+ background-clip: content-box;
115
+ }
116
+
117
+ *::-webkit-scrollbar-thumb:hover {
118
+ background: var(--dracula-current-line);
119
+ border: 2px solid transparent;
120
+ background-clip: content-box;
121
+ }