@crystal-neuo/tailwind 0.0.0-stage → 4.0.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/LICENSE +21 -0
- package/README.md +6 -2
- package/dist/theme.css +135 -0
- package/dist/tokens.css +1204 -0
- package/dist/v3.d.ts +6 -0
- package/dist/v3.js +174 -0
- package/package.json +34 -4
package/dist/v3.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// AUTO-GENERATED — DO NOT EDIT. Source: packages/tokens/src/tokens.json. Run `bun run build:tokens`.
|
|
2
|
+
import type { Config } from 'tailwindcss';
|
|
3
|
+
|
|
4
|
+
export declare const crystalNeuoTheme: Pick<Config, 'theme'>;
|
|
5
|
+
export declare function crystalNeuoVariants(api: { addVariant: (name: string, selector: string) => void }): void;
|
|
6
|
+
export default crystalNeuoTheme;
|
package/dist/v3.js
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
// AUTO-GENERATED — DO NOT EDIT. Source: packages/tokens/src/tokens.json. Run `bun run build:tokens`.
|
|
2
|
+
|
|
3
|
+
export const crystalNeuoTheme = {
|
|
4
|
+
"theme": {
|
|
5
|
+
"extend": {
|
|
6
|
+
"colors": {
|
|
7
|
+
"surface-app": "var(--surface-app)",
|
|
8
|
+
"surface-raised": "var(--surface-raised)",
|
|
9
|
+
"surface-glass-base": "var(--surface-glass-base)",
|
|
10
|
+
"surface-glass-strong": "var(--surface-glass-strong)",
|
|
11
|
+
"surface-overlay": "var(--surface-overlay)",
|
|
12
|
+
"surface-scrim": "var(--surface-scrim)",
|
|
13
|
+
"surface-raised-1": "var(--surface-raised-1)",
|
|
14
|
+
"surface-raised-2": "var(--surface-raised-2)",
|
|
15
|
+
"surface-raised-3": "var(--surface-raised-3)",
|
|
16
|
+
"surface-glass-highlight": "var(--surface-glass-highlight)",
|
|
17
|
+
"content-primary": "var(--content-primary)",
|
|
18
|
+
"content-secondary": "var(--content-secondary)",
|
|
19
|
+
"content-tertiary": "var(--content-tertiary)",
|
|
20
|
+
"content-on-accent": "var(--content-on-accent)",
|
|
21
|
+
"content-disabled": "var(--content-disabled)",
|
|
22
|
+
"content-on-glass": "var(--content-on-glass)",
|
|
23
|
+
"border-subtle": "var(--border-subtle)",
|
|
24
|
+
"border-default": "var(--border-default)",
|
|
25
|
+
"border-strong": "var(--border-strong)",
|
|
26
|
+
"border-glass-rim": "var(--border-glass-rim)",
|
|
27
|
+
"accent-primary-base": "var(--accent-primary-base)",
|
|
28
|
+
"accent-primary-strong": "var(--accent-primary-strong)",
|
|
29
|
+
"accent-primary-subtle": "var(--accent-primary-subtle)",
|
|
30
|
+
"accent-primary-soft": "var(--accent-primary-soft)",
|
|
31
|
+
"accent-secondary-base": "var(--accent-secondary-base)",
|
|
32
|
+
"accent-secondary-strong": "var(--accent-secondary-strong)",
|
|
33
|
+
"state-success-base": "var(--state-success-base)",
|
|
34
|
+
"state-warning-base": "var(--state-warning-base)",
|
|
35
|
+
"state-danger-base": "var(--state-danger-base)",
|
|
36
|
+
"state-success-content": "var(--state-success-content)",
|
|
37
|
+
"state-warning-content": "var(--state-warning-content)",
|
|
38
|
+
"state-danger-content": "var(--state-danger-content)",
|
|
39
|
+
"state-danger-strong": "var(--state-danger-strong)",
|
|
40
|
+
"state-danger-on": "var(--state-danger-on)",
|
|
41
|
+
"state-on": "var(--state-on)",
|
|
42
|
+
"state-layer-hover": "var(--state-layer-hover)",
|
|
43
|
+
"state-layer-pressed": "var(--state-layer-pressed)",
|
|
44
|
+
"focus-ring": "var(--focus-ring)"
|
|
45
|
+
},
|
|
46
|
+
"borderRadius": {
|
|
47
|
+
"radius-xs": "var(--radius-xs)",
|
|
48
|
+
"radius-sm": "var(--radius-sm)",
|
|
49
|
+
"radius-md": "var(--radius-md)",
|
|
50
|
+
"radius-lg": "var(--radius-lg)",
|
|
51
|
+
"radius-xl": "var(--radius-xl)",
|
|
52
|
+
"radius-2xl": "var(--radius-2xl)",
|
|
53
|
+
"radius-round": "var(--radius-round)",
|
|
54
|
+
"radius-primary": "var(--radius-primary)",
|
|
55
|
+
"radius-press-scale": "var(--radius-press-scale)"
|
|
56
|
+
},
|
|
57
|
+
"spacing": {
|
|
58
|
+
"space-0": "var(--space-0)",
|
|
59
|
+
"space-1": "var(--space-1)",
|
|
60
|
+
"space-2": "var(--space-2)",
|
|
61
|
+
"space-3": "var(--space-3)",
|
|
62
|
+
"space-4": "var(--space-4)",
|
|
63
|
+
"space-5": "var(--space-5)",
|
|
64
|
+
"space-6": "var(--space-6)",
|
|
65
|
+
"space-8": "var(--space-8)",
|
|
66
|
+
"space-10": "var(--space-10)",
|
|
67
|
+
"space-12": "var(--space-12)",
|
|
68
|
+
"space-16": "var(--space-16)",
|
|
69
|
+
"size-control-sm": "var(--size-control-sm)",
|
|
70
|
+
"size-control-md": "var(--size-control-md)",
|
|
71
|
+
"size-control-lg": "var(--size-control-lg)",
|
|
72
|
+
"size-touch-min": "var(--size-touch-min)",
|
|
73
|
+
"size-icon-sm": "var(--size-icon-sm)",
|
|
74
|
+
"size-icon-md": "var(--size-icon-md)",
|
|
75
|
+
"size-icon-lg": "var(--size-icon-lg)"
|
|
76
|
+
},
|
|
77
|
+
"fontSize": {
|
|
78
|
+
"type-display": "var(--type-display)",
|
|
79
|
+
"type-h1": "var(--type-h1)",
|
|
80
|
+
"type-h2": "var(--type-h2)",
|
|
81
|
+
"type-h3": "var(--type-h3)",
|
|
82
|
+
"type-h4": "var(--type-h4)",
|
|
83
|
+
"type-h5": "var(--type-h5)",
|
|
84
|
+
"type-h6": "var(--type-h6)",
|
|
85
|
+
"type-body-lg": "var(--type-body-lg)",
|
|
86
|
+
"type-body-base": "var(--type-body-base)",
|
|
87
|
+
"type-body-sm": "var(--type-body-sm)",
|
|
88
|
+
"type-caption": "var(--type-caption)"
|
|
89
|
+
},
|
|
90
|
+
"fontFamily": {
|
|
91
|
+
"display": "var(--font-family-display)",
|
|
92
|
+
"ui": "var(--font-family-ui)",
|
|
93
|
+
"numeric": "var(--font-family-numeric)",
|
|
94
|
+
"mono": "var(--font-family-mono)"
|
|
95
|
+
},
|
|
96
|
+
"lineHeight": {
|
|
97
|
+
"leading-tight": "var(--leading-tight)",
|
|
98
|
+
"leading-snug": "var(--leading-snug)",
|
|
99
|
+
"leading-normal": "var(--leading-normal)",
|
|
100
|
+
"leading-relaxed": "var(--leading-relaxed)"
|
|
101
|
+
},
|
|
102
|
+
"letterSpacing": {
|
|
103
|
+
"tracking-tight": "var(--tracking-tight)",
|
|
104
|
+
"tracking-normal": "var(--tracking-normal)",
|
|
105
|
+
"tracking-wide": "var(--tracking-wide)"
|
|
106
|
+
},
|
|
107
|
+
"fontWeight": {
|
|
108
|
+
"weight-regular": "var(--weight-regular)",
|
|
109
|
+
"weight-medium": "var(--weight-medium)",
|
|
110
|
+
"weight-semibold": "var(--weight-semibold)",
|
|
111
|
+
"weight-bold": "var(--weight-bold)"
|
|
112
|
+
},
|
|
113
|
+
"boxShadow": {
|
|
114
|
+
"shadow-xs": "var(--shadow-xs)",
|
|
115
|
+
"shadow-sm": "var(--shadow-sm)",
|
|
116
|
+
"shadow-md": "var(--shadow-md)",
|
|
117
|
+
"shadow-lg": "var(--shadow-lg)",
|
|
118
|
+
"shadow-inset-pressed": "var(--shadow-inset-pressed)",
|
|
119
|
+
"shadow-neu-raised": "var(--shadow-neu-raised)",
|
|
120
|
+
"shadow-neu-pressed": "var(--shadow-neu-pressed)",
|
|
121
|
+
"shadow-offset-sm": "var(--shadow-offset-sm)",
|
|
122
|
+
"shadow-offset-md": "var(--shadow-offset-md)",
|
|
123
|
+
"shadow-offset-pressed": "var(--shadow-offset-pressed)"
|
|
124
|
+
},
|
|
125
|
+
"blur": {
|
|
126
|
+
"blur-glass": "var(--blur-glass)",
|
|
127
|
+
"blur-glass-strong": "var(--blur-glass-strong)"
|
|
128
|
+
},
|
|
129
|
+
"transitionTimingFunction": {
|
|
130
|
+
"motion-easing-standard": "var(--motion-easing-standard)",
|
|
131
|
+
"motion-easing-emphasized": "var(--motion-easing-emphasized)",
|
|
132
|
+
"motion-easing-decelerated": "var(--motion-easing-decelerated)",
|
|
133
|
+
"motion-easing-accelerated": "var(--motion-easing-accelerated)",
|
|
134
|
+
"motion-easing-spring": "var(--motion-easing-spring)",
|
|
135
|
+
"motion-easing-linear": "var(--motion-easing-linear)"
|
|
136
|
+
},
|
|
137
|
+
"transitionDuration": {
|
|
138
|
+
"motion-duration-instant": "var(--motion-duration-instant)",
|
|
139
|
+
"motion-duration-fast": "var(--motion-duration-fast)",
|
|
140
|
+
"motion-duration-base": "var(--motion-duration-base)",
|
|
141
|
+
"motion-duration-slow": "var(--motion-duration-slow)",
|
|
142
|
+
"motion-duration-slower": "var(--motion-duration-slower)",
|
|
143
|
+
"motion-duration-spring": "var(--motion-duration-spring)"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Axis variants for Tailwind v3 — the fallback for v4's @custom-variant.
|
|
151
|
+
* Enables `tactile:uppercase`, `dark:border-2`, `compact:p-2`, `ios:rounded-full`, etc.
|
|
152
|
+
*/
|
|
153
|
+
/** @param {{ addVariant: (name: string, selector: string) => void }} api */
|
|
154
|
+
export function crystalNeuoVariants({ addVariant }) {
|
|
155
|
+
addVariant('light', ':where([data-theme="light"] *) &');
|
|
156
|
+
addVariant('dark', ':where([data-theme="dark"] *) &');
|
|
157
|
+
addVariant('high-contrast', ':where([data-theme="high-contrast"] *) &');
|
|
158
|
+
addVariant('refraction', ':where([data-material="refraction"] *) &');
|
|
159
|
+
addVariant('tactile', ':where([data-material="tactile"] *) &');
|
|
160
|
+
addVariant('signal', ':where([data-material="signal"] *) &');
|
|
161
|
+
addVariant('folio', ':where([data-material="folio"] *) &');
|
|
162
|
+
addVariant('bloom', ':where([data-material="bloom"] *) &');
|
|
163
|
+
addVariant('hybrid', ':where([data-material="hybrid"] *) &');
|
|
164
|
+
addVariant('compact', ':where([data-density="compact"] *) &');
|
|
165
|
+
addVariant('comfortable', ':where([data-density="comfortable"] *) &');
|
|
166
|
+
addVariant('spacious', ':where([data-density="spacious"] *) &');
|
|
167
|
+
addVariant('web', ':where([data-platform="web"] *) &');
|
|
168
|
+
addVariant('ios', ':where([data-platform="ios"] *) &');
|
|
169
|
+
addVariant('android', ':where([data-platform="android"] *) &');
|
|
170
|
+
addVariant('windows', ':where([data-platform="windows"] *) &');
|
|
171
|
+
addVariant('macos', ':where([data-platform="macos"] *) &');
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export default crystalNeuoTheme;
|
package/package.json
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystal-neuo/tailwind",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"description": "Crystal Neuo Tailwind integration: v4 @theme (primary) + v3 config (fallback).",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/AnoRebel/crystal-neuo.git",
|
|
9
|
+
"directory": "packages/tailwind"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://crystal-neuo.anorebel.net",
|
|
12
|
+
"type": "module",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
"./theme.css": "./dist/theme.css",
|
|
18
|
+
"./tokens.css": "./dist/tokens.css",
|
|
19
|
+
"./v3": {
|
|
20
|
+
"types": "./dist/v3.d.ts",
|
|
21
|
+
"default": "./dist/v3.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@crystal-neuo/tokens": "4.0.0"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"tailwindcss": ">=3.4 <5"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "bun run build-tailwind.ts"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/bun": "1.4.4"
|
|
35
|
+
}
|
|
36
|
+
}
|