diff --git a/.changeset/vivid-dark-surface.md b/.changeset/vivid-dark-surface.md deleted file mode 100644 index 2aa08c1..0000000 --- a/.changeset/vivid-dark-surface.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@highlighters/core": minor ---- - -Add a `vivid` option for keeping the ink visible on dark or saturated surfaces, where the default `multiply` optic (`backdrop x ink`) drives a colour toward black and the band disappears. When set, the ink composites on a private escape layer against the page instead of sinking under the shared multiply container. Reuses the existing dark-surface escape path; wins over `blendMode`; keeps the ink's own blend for self-overlaps (a mark crossing itself still darkens); no effect on the flat Tier C (Custom Highlight API) path. - -- `true`: a translucent colour wash (`normal` blend). Deterministic and SSR-safe (no backdrop detection), but the band sits over the text, so light text on a dark surface is muted; pair it with a saturated ink. -- `"screen"`: composite the band with `screen`. On a dark surface this mirrors `multiply` on light paper: a bright band that keeps light text legible. It washes out on light surfaces. - -Default `false`, so behaviour is unchanged for existing callers. diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 5c9c62d..a981b90 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,16 @@ # @highlighters/core +## 1.2.0 + +### Minor Changes + +- 506b8b5: Add a `vivid` option for keeping the ink visible on dark or saturated surfaces, where the default `multiply` optic (`backdrop x ink`) drives a colour toward black and the band disappears. When set, the ink composites on a private escape layer against the page instead of sinking under the shared multiply container. Reuses the existing dark-surface escape path; wins over `blendMode`; keeps the ink's own blend for self-overlaps (a mark crossing itself still darkens); no effect on the flat Tier C (Custom Highlight API) path. + + - `true`: a translucent colour wash (`normal` blend). Deterministic and SSR-safe (no backdrop detection), but the band sits over the text, so light text on a dark surface is muted; pair it with a saturated ink. + - `"screen"`: composite the band with `screen`. On a dark surface this mirrors `multiply` on light paper: a bright band that keeps light text legible. It washes out on light surfaces. + + Default `false`, so behaviour is unchanged for existing callers. + ## 1.1.2 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 2c4802c..98b58dc 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@highlighters/core", - "version": "1.1.2", + "version": "1.2.0", "description": "Framework-agnostic, realistic highlighter-pen marks for web text: multiline, deterministic, SSR-safe", "author": "Jace Attard (https://ja.mt)", "license": "MIT", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index e56f084..98f08f9 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,12 @@ # @highlighters/react +## 1.2.0 + +### Patch Changes + +- Updated dependencies [506b8b5] + - @highlighters/core@1.2.0 + ## 1.1.2 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index acf80c9..fe0f8dc 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@highlighters/react", - "version": "1.1.2", + "version": "1.2.0", "description": "React hook and component for realistic highlighter marks", "author": "Jace Attard (https://ja.mt)", "license": "MIT", diff --git a/packages/svelte/CHANGELOG.md b/packages/svelte/CHANGELOG.md index 190615e..41018c5 100644 --- a/packages/svelte/CHANGELOG.md +++ b/packages/svelte/CHANGELOG.md @@ -1,5 +1,12 @@ # @highlighters/svelte +## 1.2.0 + +### Patch Changes + +- Updated dependencies [506b8b5] + - @highlighters/core@1.2.0 + ## 1.1.2 ### Patch Changes diff --git a/packages/svelte/package.json b/packages/svelte/package.json index 78488be..b3ae2ac 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -1,6 +1,6 @@ { "name": "@highlighters/svelte", - "version": "1.1.2", + "version": "1.2.0", "description": "Svelte action for realistic highlighter marks", "author": "Jace Attard (https://ja.mt)", "license": "MIT", diff --git a/packages/vue/CHANGELOG.md b/packages/vue/CHANGELOG.md index a1df101..ea28d57 100644 --- a/packages/vue/CHANGELOG.md +++ b/packages/vue/CHANGELOG.md @@ -1,5 +1,12 @@ # @highlighters/vue +## 1.2.0 + +### Patch Changes + +- Updated dependencies [506b8b5] + - @highlighters/core@1.2.0 + ## 1.1.2 ### Patch Changes diff --git a/packages/vue/package.json b/packages/vue/package.json index 1627526..4fb89c3 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@highlighters/vue", - "version": "1.1.2", + "version": "1.2.0", "description": "Vue composable and component for realistic highlighter marks", "author": "Jace Attard (https://ja.mt)", "license": "MIT",