@jdcpuwiz/homelab-ui 0.10.0 → 0.10.1

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.
Files changed (2) hide show
  1. package/globals.css +10 -6
  2. package/package.json +1 -1
package/globals.css CHANGED
@@ -168,12 +168,16 @@ body {
168
168
  }
169
169
 
170
170
  /* Tailwind preflight ships `input::placeholder, textarea::placeholder` —
171
- a (0,0,1) selector — so a bare `::placeholder` (0,0,0) loses regardless
172
- of source order. This rule MUST match that specificity to win. Consumers
173
- must import this file AFTER their own `@tailwind base` for source order
174
- to decide the tie. */
175
- input::placeholder,
176
- textarea::placeholder {
171
+ specificity (0,0,2) counting the pseudo-element — so a same-shaped rule
172
+ only TIES it, and the tie is decided by source order. That's not safe
173
+ to rely on here: every consumer imports this file BEFORE their own
174
+ `@tailwind base` (see the file-header note above and the README), which
175
+ puts preflight's rule LATER in the compiled bundle — a same-shaped rule
176
+ from this file would lose every time, order deciding against it. Prepend
177
+ `:root` (a pseudo-CLASS, not a type selector) to reach (0,1,2), which
178
+ beats preflight outright and stops depending on import order at all. */
179
+ :root input::placeholder,
180
+ :root textarea::placeholder {
177
181
  color: var(--hl-placeholder);
178
182
  opacity: 1; /* Firefox dims placeholders with its own default opacity */
179
183
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jdcpuwiz/homelab-ui",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Shared dark-theme UI primitives for the JdCpuWiz homelab \u2014 Sidebar, Button, Modal, PageHeader, TagChips, plus the canonical Tailwind preset, CSS vars, and the sanctioned three-face typography (Poppins / Orbitron / JetBrains Mono) on one flat #f0f1f4 text color.",
5
5
  "license": "MIT",
6
6
  "author": "Wiz <shad@deckerzoo.com>",