@canonical/styles 0.28.0 → 0.29.0

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@canonical/styles",
3
3
  "description": "Canonical Design System global stylesheet. Aggregates normalize, typography, and design tokens.",
4
- "version": "0.28.0",
4
+ "version": "0.29.0",
5
5
  "main": "src/index.css",
6
6
  "exports": {
7
7
  ".": "./src/index.css",
@@ -30,11 +30,11 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@biomejs/biome": "2.4.9",
33
- "@canonical/biome-config": "^0.28.0"
33
+ "@canonical/biome-config": "^0.29.0"
34
34
  },
35
35
  "dependencies": {
36
36
  "@canonical/design-tokens": "^0.6.0",
37
- "@canonical/styles-typography": "^0.28.0",
37
+ "@canonical/styles-typography": "^0.29.0",
38
38
  "normalize.css": "^8.0.1"
39
39
  },
40
40
  "peerDependencies": {
@@ -45,5 +45,5 @@
45
45
  "optional": true
46
46
  }
47
47
  },
48
- "gitHead": "8297d72122bcba903f7e8833cb23ccbaa164ed56"
48
+ "gitHead": "535302c1e1e5dd8fa9bc2da4144de57ec4e63005"
49
49
  }
package/src/index.css CHANGED
@@ -31,3 +31,6 @@
31
31
 
32
32
  /* Scroll overflow affordance tokens */
33
33
  @import url("./overflow.css");
34
+
35
+ /* Motion tokens (placeholder durations/easings) */
36
+ @import url("./motion.css");
package/src/motion.css ADDED
@@ -0,0 +1,22 @@
1
+ /* @canonical/styles — Motion tokens
2
+ *
3
+ * PLACEHOLDER durations and easings. These are provisional values chosen to be
4
+ * plausible defaults; they are NOT yet ratified by design and will migrate to
5
+ * @canonical/design-tokens once validated. Components should reference these
6
+ * tokens rather than hardcoding transition timings.
7
+ *
8
+ * Convention: ALL available custom properties are listed here so the full API
9
+ * surface is visible in one place.
10
+ */
11
+
12
+ :root {
13
+ /* ── Durations ──────────────────────────────────────────────────── */
14
+ --motion-duration-fast: 0.165s; /* small state changes: chevrons, toggles */
15
+ --motion-duration-medium: 0.25s; /* panels, disclosures */
16
+ --motion-duration-slow: 0.4s; /* larger transitions, overlays */
17
+
18
+ /* ── Easings ────────────────────────────────────────────────────── */
19
+ --motion-easing-standard: ease-out; /* enter/exit default */
20
+ --motion-easing-decelerate: cubic-bezier(0, 0, 0.2, 1); /* entering */
21
+ --motion-easing-accelerate: cubic-bezier(0.4, 0, 1, 1); /* exiting */
22
+ }