@spear-ai/spectral 1.4.34 → 1.4.36
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/README.md +3 -3
- package/dist/styles/theme.css +24 -0
- package/package.json +9 -6
package/README.md
CHANGED
|
@@ -31,11 +31,11 @@ Import Spectral's design tokens and component styles in your CSS:
|
|
|
31
31
|
/* Your Tailwind imports */
|
|
32
32
|
@import "tailwindcss";
|
|
33
33
|
|
|
34
|
-
/* Spectral's
|
|
35
|
-
@import "@spear-ai/spectral/
|
|
34
|
+
/* Import Spectral's theme - this MUST be processed by Tailwind */
|
|
35
|
+
@import "@spear-ai/spectral/theme.css";
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
**Important:**
|
|
38
|
+
**Important:** The `@spear-ai/spectral/theme.css` import contains `@theme` blocks that define custom Tailwind utilities (like `bg-button-ghost-bg--hover`). Your bundler must process this file through Tailwind for the component styles to work correctly.
|
|
39
39
|
|
|
40
40
|
### Using Components
|
|
41
41
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* Spectral Theme - Import this file in your Tailwind CSS
|
|
2
|
+
*
|
|
3
|
+
* This file contains @theme blocks that Tailwind v4 needs to process
|
|
4
|
+
* to generate the utility classes used by Spectral components.
|
|
5
|
+
*
|
|
6
|
+
* Usage in Horizon globals.css:
|
|
7
|
+
* @import "tailwindcss";
|
|
8
|
+
* @import "@spear-ai/spectral/theme.css";
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* Base color primitives - these use :root and work as standard CSS */
|
|
12
|
+
@import './horizon/base-colors.css';
|
|
13
|
+
|
|
14
|
+
/* Semantic color tokens - these use @theme for Tailwind utility generation */
|
|
15
|
+
@import './horizon/colors.css';
|
|
16
|
+
|
|
17
|
+
/* Theme variables (fonts, animations) */
|
|
18
|
+
@import './horizon/theme.css';
|
|
19
|
+
|
|
20
|
+
/* Component base styles */
|
|
21
|
+
@import './horizon/base.css';
|
|
22
|
+
|
|
23
|
+
/* Custom utilities */
|
|
24
|
+
@import './horizon/utilities.css';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spear-ai/spectral",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -15,10 +15,6 @@
|
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"import": "./dist/index.js"
|
|
17
17
|
},
|
|
18
|
-
"./*": {
|
|
19
|
-
"types": "./dist/*.d.ts",
|
|
20
|
-
"import": "./dist/*.js"
|
|
21
|
-
},
|
|
22
18
|
"./Icons": {
|
|
23
19
|
"types": "./dist/Icons/index.d.ts",
|
|
24
20
|
"import": "./dist/Icons.js"
|
|
@@ -27,8 +23,15 @@
|
|
|
27
23
|
"types": "./dist/Icons/*.d.ts",
|
|
28
24
|
"import": "./dist/Icons/*.js"
|
|
29
25
|
},
|
|
26
|
+
"./theme.css": "./dist/styles/theme.css",
|
|
30
27
|
"./styles.css": "./dist/styles/main.css",
|
|
31
|
-
"./styles/base-colors.css": "./dist/styles/base-colors.css"
|
|
28
|
+
"./styles/base-colors.css": "./dist/styles/base-colors.css",
|
|
29
|
+
"./dist/styles/theme.css": "./dist/styles/theme.css",
|
|
30
|
+
"./dist/styles/horizon/*": "./dist/styles/horizon/*",
|
|
31
|
+
"./*": {
|
|
32
|
+
"types": "./dist/*.d.ts",
|
|
33
|
+
"import": "./dist/*.js"
|
|
34
|
+
}
|
|
32
35
|
},
|
|
33
36
|
"typesVersions": {
|
|
34
37
|
"*": {
|