@texturehq/edges 1.30.5 → 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/{colors-67HNJviq.d.ts → colors-CIlEq8T6.d.ts} +13 -0
- package/dist/{colors-DIRyY7OV.d.cts → colors-oRbPetNs.d.cts} +13 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/styles/legacy-bridge.css +22 -0
- package/dist/styles/theme-light-override.css +38 -36
- package/dist/styles.css +755 -705
- package/dist/theme.css +21 -15
- package/package.json +2 -1
- package/scripts/copy-assets.js +1 -20
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 (
|
|
6
|
-
* 2.
|
|
7
|
-
* 3.
|
|
8
|
-
* 4.
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
@import "
|
|
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:
|
|
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
|
-
/*
|
|
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.
|
|
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",
|
package/scripts/copy-assets.js
CHANGED
|
@@ -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);
|