@texturehq/edges 1.30.6 → 1.31.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/dist/theme.css CHANGED
@@ -2,28 +2,34 @@
2
2
  * Edges Design System - Complete Theme
3
3
  *
4
4
  * This file imports all theme layers in the correct order:
5
- * 1. Design tokens (generated from token system)
6
- * 2. Animation features
7
- * 3. Computed values (derived from tokens)
8
- * 4. Utility classes
5
+ * 1. Design tokens (from @texturehq/edges-tokens)
6
+ * 2. Legacy aliases (backward compat for old variable names)
7
+ * 3. Animation features
8
+ * 4. Computed values (derived from tokens)
9
+ * 5. Utility classes
9
10
  */
10
11
 
11
12
  /* Layer 1: Design Tokens
12
- These are generated from the token system and contain all design decisions */
13
- @import "./generated/tailwind-tokens-light.css";
14
- @import "./generated/tailwind-tokens-dark.css";
13
+ Sourced from @texturehq/edges-tokens the single source of truth for colors,
14
+ motion, spacing, radius, and typography primitives. */
15
+ @import "@texturehq/edges-tokens/css/light";
16
+ @import "@texturehq/edges-tokens/css/dark";
15
17
 
16
- /* Layer 1b: Responsive Typography
18
+ /* Layer 1b: Legacy Aliases
19
+ Backward-compat aliases from old variable names (--action-brand-background,
20
+ --feedback-*, --skeleton-*, etc.) to new ones. Remove after migration. */
21
+ @import "@texturehq/edges-tokens/css/legacy";
22
+
23
+ /* Layer 1b2: Legacy Bridge
24
+ Maps --theme-* vars (used in utility classes) to --color-* vars from edges-tokens.
25
+ Remove once utility classes are updated to reference --color-* directly. */
26
+ @import "./styles/legacy-bridge.css";
27
+
28
+ /* Layer 1c: Responsive Typography
17
29
  Overrides font-size tokens with responsive values (smaller on mobile, larger on desktop) */
18
30
  @import "./styles/responsive-typography.css";
19
31
 
20
- /* Data visualization colors loaded separately due to Tailwind 4 @theme filtering
21
- See: https://github.com/tailwindlabs/tailwindcss/issues/XXXXX
22
- These variables are also in tailwind-tokens-light.css but Tailwind strips them
23
- from the @theme block, so we load them separately in a plain :root block. */
24
- @import "./generated/viz-runtime.css";
25
-
26
- /* Layer 1c: Light Theme Override
32
+ /* Layer 1d: Light Theme Override
27
33
  Allows forcing light-mode tokens on a subtree via .theme-light class */
28
34
  @import "./styles/theme-light-override.css";
29
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@texturehq/edges",
3
- "version": "1.30.6",
3
+ "version": "1.31.0",
4
4
  "author": "Nicholas Brown <nick@texturehq.com>",
5
5
  "description": "A shared component library for Texture",
6
6
  "type": "module",
@@ -93,6 +93,7 @@
93
93
  "@dnd-kit/utilities": "^3.2.2",
94
94
  "@phosphor-icons/react": "^2.1.7",
95
95
  "@tanstack/react-virtual": "^3.13.12",
96
+ "@texturehq/edges-tokens": "workspace:*",
96
97
  "@tiptap/core": "^3.4.5",
97
98
  "@tiptap/extension-link": "^3.4.5",
98
99
  "@tiptap/pm": "^3.4.5",
@@ -16,6 +16,7 @@ try {
16
16
  "src/styles/utilities.css",
17
17
  "src/styles/responsive-typography.css",
18
18
  "src/styles/theme-light-override.css",
19
+ "src/styles/legacy-bridge.css",
19
20
  ];
20
21
 
21
22
  // Create styles directory in dist
@@ -31,26 +32,6 @@ try {
31
32
  }
32
33
  });
33
34
 
34
- // Copy generated token CSS to dist (if they exist)
35
- const tokenFiles = [
36
- "src/generated/tailwind-tokens-light.css",
37
- "src/generated/tailwind-tokens-dark.css",
38
- "src/generated/viz-runtime.css",
39
- ];
40
-
41
- // Create generated directory in dist
42
- if (!fs.existsSync("dist/generated")) {
43
- fs.mkdirSync("dist/generated", { recursive: true });
44
- }
45
-
46
- tokenFiles.forEach((file) => {
47
- if (fs.existsSync(file)) {
48
- const filename = file.split("/").pop();
49
- fs.copyFileSync(file, `dist/generated/${filename}`);
50
- console.log(`✅ Token CSS ${filename} copied to dist/generated`);
51
- }
52
- });
53
-
54
35
  console.log("🎉 All assets copied successfully!");
55
36
  } catch (error) {
56
37
  console.error("❌ Failed to copy assets:", error.message);