@surrealdb/ui 2.2.0 → 3.0.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@surrealdb/ui",
3
- "version": "2.2.0",
3
+ "version": "3.0.0-beta.2",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "packageManager": "bun@1.3.14",
package/res/_mixins.scss CHANGED
@@ -9,7 +9,9 @@
9
9
 
10
10
  /**
11
11
  * Derives a colour from the ground the element is standing on, by moving its
12
- * OKLCH lightness and leaving chroma and hue untouched.
12
+ * OKLab lightness and leaving the a and b axes untouched, so the tint of the
13
+ * surface carries through. OKLab rather than OKLCH: Chromium resolves the hue of
14
+ * a near-grey as `none`, which reads as 0deg and turns a lifted grey red.
13
15
  *
14
16
  * Use it for hover, press and any edge that has to stay in a fixed relationship
15
17
  * with the surface beneath it. A positive delta always moves away from the
@@ -22,8 +24,8 @@
22
24
  */
23
25
  @function surface-shift($delta) {
24
26
  @return light-dark(
25
- oklch(from var(--surreal-ground) calc(l - #{$delta}) c h),
26
- oklch(from var(--surreal-ground) calc(l + #{$delta}) c h)
27
+ oklab(from var(--surreal-ground) calc(l - #{$delta}) a b),
28
+ oklab(from var(--surreal-ground) calc(l + #{$delta}) a b)
27
29
  );
28
30
  }
29
31