@invisibleloop/pulse 0.2.4 → 0.2.5

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/CLAUDE.md CHANGED
@@ -273,6 +273,26 @@ meta: {
273
273
 
274
274
  For multi-brand setups, each brand theme file just overrides `--font` in `:root`.
275
275
 
276
+ ## Overriding Theme Colours
277
+
278
+ `pulse-ui.css` defines light theme variables under `[data-theme="light"]`, which has **higher specificity than `:root`**. Overrides written only to `:root` will be silently beaten by those rules.
279
+
280
+ Always target `[data-theme="light"]` when overriding colours for the light theme:
281
+
282
+ ```css
283
+ /* WRONG — loses to [data-theme="light"] rules in pulse-ui.css */
284
+ :root {
285
+ --color-accent: #e25;
286
+ }
287
+
288
+ /* CORRECT */
289
+ [data-theme="light"] {
290
+ --color-accent: #e25;
291
+ }
292
+ ```
293
+
294
+ If a colour must apply in both themes, set it in both `:root` and `[data-theme="light"]`.
295
+
276
296
  ## HTTP Response Behaviour
277
297
 
278
298
  - **Full page request** — SSR HTML with hydration bootstrap
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invisibleloop/pulse",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "description": "AI-first frontend framework. The spec is the source of truth.",
6
6
  "license": "MIT",
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5