jasmincss 1.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.
Files changed (76) hide show
  1. package/README.md +524 -0
  2. package/bin/jasmin.js +45 -0
  3. package/dist/index.d.ts +62 -0
  4. package/dist/index.js +14568 -0
  5. package/dist/index.mjs +14524 -0
  6. package/dist/jasmin.css +63308 -0
  7. package/dist/jasmin.min.css +1 -0
  8. package/dist/plugins/nextjs.js +14777 -0
  9. package/dist/plugins/nextjs.mjs +14747 -0
  10. package/dist/plugins/vite.js +14889 -0
  11. package/dist/plugins/vite.mjs +14860 -0
  12. package/package.json +101 -0
  13. package/src/cli/add.js +83 -0
  14. package/src/cli/init.js +210 -0
  15. package/src/cli/run.js +142 -0
  16. package/src/components/accordion.js +309 -0
  17. package/src/components/alerts.js +357 -0
  18. package/src/components/avatars.js +331 -0
  19. package/src/components/badges.js +353 -0
  20. package/src/components/buttons.js +412 -0
  21. package/src/components/cards.js +342 -0
  22. package/src/components/carousel.js +495 -0
  23. package/src/components/chips.js +440 -0
  24. package/src/components/command-palette.js +434 -0
  25. package/src/components/datepicker.js +517 -0
  26. package/src/components/dropdown.js +411 -0
  27. package/src/components/forms.js +516 -0
  28. package/src/components/index.js +81 -0
  29. package/src/components/modals.js +349 -0
  30. package/src/components/navigation.js +463 -0
  31. package/src/components/offcanvas.js +390 -0
  32. package/src/components/popover.js +427 -0
  33. package/src/components/progress.js +396 -0
  34. package/src/components/rating.js +394 -0
  35. package/src/components/skeleton.js +408 -0
  36. package/src/components/spinner.js +453 -0
  37. package/src/components/stepper.js +389 -0
  38. package/src/components/tables.js +304 -0
  39. package/src/components/timeline.js +452 -0
  40. package/src/components/timepicker.js +529 -0
  41. package/src/components/tooltips.js +345 -0
  42. package/src/components/upload.js +490 -0
  43. package/src/config/defaults.js +263 -0
  44. package/src/config/loader.js +109 -0
  45. package/src/core/base.js +241 -0
  46. package/src/core/compiler.js +135 -0
  47. package/src/core/utilities/accessibility.js +290 -0
  48. package/src/core/utilities/animations.js +205 -0
  49. package/src/core/utilities/background.js +109 -0
  50. package/src/core/utilities/colors.js +234 -0
  51. package/src/core/utilities/columns.js +161 -0
  52. package/src/core/utilities/effects.js +261 -0
  53. package/src/core/utilities/filters.js +135 -0
  54. package/src/core/utilities/icons.js +806 -0
  55. package/src/core/utilities/index.js +239 -0
  56. package/src/core/utilities/layout.js +321 -0
  57. package/src/core/utilities/scroll.js +205 -0
  58. package/src/core/utilities/spacing.js +120 -0
  59. package/src/core/utilities/svg.js +191 -0
  60. package/src/core/utilities/transforms.js +116 -0
  61. package/src/core/utilities/typography.js +188 -0
  62. package/src/index.js +7 -0
  63. package/src/js/components/accordion.js +154 -0
  64. package/src/js/components/alert.js +198 -0
  65. package/src/js/components/carousel.js +226 -0
  66. package/src/js/components/dropdown.js +166 -0
  67. package/src/js/components/modal.js +169 -0
  68. package/src/js/components/offcanvas.js +175 -0
  69. package/src/js/components/popover.js +221 -0
  70. package/src/js/components/tabs.js +163 -0
  71. package/src/js/components/tooltip.js +200 -0
  72. package/src/js/index.js +79 -0
  73. package/src/js/types/config.d.ts +228 -0
  74. package/src/js/types/index.d.ts +439 -0
  75. package/src/plugins/nextjs.js +100 -0
  76. package/src/plugins/vite.js +133 -0
@@ -0,0 +1,261 @@
1
+ export function generateEffectUtilities(config) {
2
+ const classes = [];
3
+ const { branding } = config;
4
+
5
+ // Box Shadow
6
+ const shadows = branding?.shadows || {
7
+ sm: '0 1px 2px 0 rgb(0 0 0 / 0.05)',
8
+ default: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
9
+ md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
10
+ lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
11
+ xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',
12
+ '2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',
13
+ inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)',
14
+ none: 'none'
15
+ };
16
+
17
+ classes.push({ name: 'shadow', css: `.shadow { box-shadow: var(--j-shadow-default); }` });
18
+ Object.entries(shadows).forEach(([name, value]) => {
19
+ const className = name === 'default' ? 'shadow' : `shadow-${name}`;
20
+ if (name !== 'default') {
21
+ classes.push({ name: className, css: `.${className} { box-shadow: ${value}; }` });
22
+ }
23
+ });
24
+
25
+ // Glow shadows (futuristic)
26
+ classes.push({ name: 'shadow-glow', css: '.shadow-glow { box-shadow: 0 0 20px var(--j-primary); }' });
27
+ classes.push({ name: 'shadow-glow-sm', css: '.shadow-glow-sm { box-shadow: 0 0 10px var(--j-primary); }' });
28
+ classes.push({ name: 'shadow-glow-lg', css: '.shadow-glow-lg { box-shadow: 0 0 40px var(--j-primary); }' });
29
+
30
+ // Border Radius
31
+ const radiuses = branding?.borderRadius || {
32
+ none: '0',
33
+ sm: '0.125rem',
34
+ default: '0.25rem',
35
+ md: '0.375rem',
36
+ lg: '0.5rem',
37
+ xl: '0.75rem',
38
+ '2xl': '1rem',
39
+ '3xl': '1.5rem',
40
+ full: '9999px'
41
+ };
42
+
43
+ classes.push({ name: 'rounded', css: `.rounded { border-radius: var(--j-radius-default); }` });
44
+ Object.entries(radiuses).forEach(([name, value]) => {
45
+ const className = name === 'default' ? 'rounded' : `rounded-${name}`;
46
+ if (name !== 'default') {
47
+ classes.push({ name: className, css: `.${className} { border-radius: ${value}; }` });
48
+ }
49
+ });
50
+
51
+ // Directional border radius
52
+ const directions = {
53
+ 't': ['border-top-left-radius', 'border-top-right-radius'],
54
+ 'r': ['border-top-right-radius', 'border-bottom-right-radius'],
55
+ 'b': ['border-bottom-left-radius', 'border-bottom-right-radius'],
56
+ 'l': ['border-top-left-radius', 'border-bottom-left-radius'],
57
+ 'tl': ['border-top-left-radius'],
58
+ 'tr': ['border-top-right-radius'],
59
+ 'br': ['border-bottom-right-radius'],
60
+ 'bl': ['border-bottom-left-radius'],
61
+ 's': ['border-start-start-radius', 'border-end-start-radius'],
62
+ 'e': ['border-start-end-radius', 'border-end-end-radius'],
63
+ 'ss': ['border-start-start-radius'],
64
+ 'se': ['border-start-end-radius'],
65
+ 'ee': ['border-end-end-radius'],
66
+ 'es': ['border-end-start-radius']
67
+ };
68
+
69
+ Object.entries(radiuses).forEach(([sizeName, sizeValue]) => {
70
+ Object.entries(directions).forEach(([dirName, props]) => {
71
+ const className = sizeName === 'default' ? `rounded-${dirName}` : `rounded-${dirName}-${sizeName}`;
72
+ const cssProps = props.map(p => `${p}: ${sizeValue};`).join(' ');
73
+ classes.push({ name: className, css: `.${className} { ${cssProps} }` });
74
+ });
75
+ });
76
+
77
+ // Border Width
78
+ const borderWidths = ['0', '1', '2', '4', '8'];
79
+ borderWidths.forEach(w => {
80
+ const value = w === '1' ? '1px' : w === '0' ? '0px' : `${w}px`;
81
+ const className = w === '1' ? 'border' : `border-${w}`;
82
+ classes.push({ name: className, css: `.${className} { border-width: ${value}; }` });
83
+ });
84
+ classes.push({ name: 'border', css: '.border { border-width: 1px; }' });
85
+
86
+ // Directional border width
87
+ ['t', 'r', 'b', 'l', 'x', 'y', 's', 'e'].forEach(dir => {
88
+ borderWidths.forEach(w => {
89
+ const value = w === '1' ? '1px' : w === '0' ? '0px' : `${w}px`;
90
+ const className = w === '1' ? `border-${dir}` : `border-${dir}-${w}`;
91
+ let cssProps;
92
+ switch (dir) {
93
+ case 't': cssProps = `border-top-width: ${value};`; break;
94
+ case 'r': cssProps = `border-right-width: ${value};`; break;
95
+ case 'b': cssProps = `border-bottom-width: ${value};`; break;
96
+ case 'l': cssProps = `border-left-width: ${value};`; break;
97
+ case 'x': cssProps = `border-left-width: ${value}; border-right-width: ${value};`; break;
98
+ case 'y': cssProps = `border-top-width: ${value}; border-bottom-width: ${value};`; break;
99
+ case 's': cssProps = `border-inline-start-width: ${value};`; break;
100
+ case 'e': cssProps = `border-inline-end-width: ${value};`; break;
101
+ }
102
+ classes.push({ name: className, css: `.${className} { ${cssProps} }` });
103
+ });
104
+ });
105
+
106
+ // Border Style
107
+ ['solid', 'dashed', 'dotted', 'double', 'hidden', 'none'].forEach(style => {
108
+ classes.push({ name: `border-${style}`, css: `.border-${style} { border-style: ${style}; }` });
109
+ });
110
+
111
+ // Divide Width
112
+ borderWidths.forEach(w => {
113
+ const value = w === '1' ? '1px' : w === '0' ? '0px' : `${w}px`;
114
+ const classNameX = w === '1' ? 'divide-x' : `divide-x-${w}`;
115
+ const classNameY = w === '1' ? 'divide-y' : `divide-y-${w}`;
116
+
117
+ classes.push({
118
+ name: classNameX,
119
+ css: `.${classNameX} > :not([hidden]) ~ :not([hidden]) { border-left-width: ${value}; }`
120
+ });
121
+ classes.push({
122
+ name: classNameY,
123
+ css: `.${classNameY} > :not([hidden]) ~ :not([hidden]) { border-top-width: ${value}; }`
124
+ });
125
+ });
126
+
127
+ // Divide Style
128
+ ['solid', 'dashed', 'dotted', 'double', 'none'].forEach(style => {
129
+ classes.push({
130
+ name: `divide-${style}`,
131
+ css: `.divide-${style} > :not([hidden]) ~ :not([hidden]) { border-style: ${style}; }`
132
+ });
133
+ });
134
+
135
+ // Outline Width
136
+ ['0', '1', '2', '4', '8'].forEach(w => {
137
+ const value = `${w}px`;
138
+ classes.push({ name: `outline-${w}`, css: `.outline-${w} { outline-width: ${value}; }` });
139
+ });
140
+
141
+ // Outline Style
142
+ classes.push({ name: 'outline-none', css: '.outline-none { outline: 2px solid transparent; outline-offset: 2px; }' });
143
+ classes.push({ name: 'outline', css: '.outline { outline-style: solid; }' });
144
+ classes.push({ name: 'outline-dashed', css: '.outline-dashed { outline-style: dashed; }' });
145
+ classes.push({ name: 'outline-dotted', css: '.outline-dotted { outline-style: dotted; }' });
146
+ classes.push({ name: 'outline-double', css: '.outline-double { outline-style: double; }' });
147
+
148
+ // Outline Offset
149
+ ['0', '1', '2', '4', '8'].forEach(o => {
150
+ const value = `${o}px`;
151
+ classes.push({ name: `outline-offset-${o}`, css: `.outline-offset-${o} { outline-offset: ${value}; }` });
152
+ });
153
+
154
+ // Ring
155
+ ['0', '1', '2', '4', '8'].forEach(w => {
156
+ const className = w === '1' ? 'ring' : `ring-${w}`;
157
+ const width = w === '1' ? '1px' : w === '0' ? '0px' : `${w}px`;
158
+ classes.push({
159
+ name: className,
160
+ css: `.${className} { box-shadow: 0 0 0 ${width} var(--j-ring, var(--j-primary)); }`
161
+ });
162
+ });
163
+ classes.push({ name: 'ring', css: '.ring { box-shadow: 0 0 0 3px var(--j-ring, var(--j-primary)); }' });
164
+ classes.push({ name: 'ring-inset', css: '.ring-inset { --j-ring-inset: inset; }' });
165
+
166
+ // Ring Offset
167
+ ['0', '1', '2', '4', '8'].forEach(o => {
168
+ const value = `${o}px`;
169
+ classes.push({
170
+ name: `ring-offset-${o}`,
171
+ css: `.ring-offset-${o} { --j-ring-offset-width: ${value}; box-shadow: 0 0 0 var(--j-ring-offset-width) var(--j-ring-offset-color, white), var(--j-ring-shadow); }`
172
+ });
173
+ });
174
+
175
+ // Mix Blend Mode
176
+ const blendModes = ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity', 'plus-lighter'];
177
+ blendModes.forEach(mode => {
178
+ classes.push({ name: `mix-blend-${mode}`, css: `.mix-blend-${mode} { mix-blend-mode: ${mode}; }` });
179
+ });
180
+
181
+ // Background Blend Mode
182
+ blendModes.forEach(mode => {
183
+ classes.push({ name: `bg-blend-${mode}`, css: `.bg-blend-${mode} { background-blend-mode: ${mode}; }` });
184
+ });
185
+
186
+ // Cursor
187
+ const cursors = ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 's-resize', 'e-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out'];
188
+ cursors.forEach(cursor => {
189
+ classes.push({ name: `cursor-${cursor}`, css: `.cursor-${cursor} { cursor: ${cursor}; }` });
190
+ });
191
+
192
+ // User Select
193
+ ['none', 'text', 'all', 'auto'].forEach(select => {
194
+ classes.push({ name: `select-${select}`, css: `.select-${select} { user-select: ${select}; }` });
195
+ });
196
+
197
+ // Pointer Events
198
+ classes.push({ name: 'pointer-events-none', css: '.pointer-events-none { pointer-events: none; }' });
199
+ classes.push({ name: 'pointer-events-auto', css: '.pointer-events-auto { pointer-events: auto; }' });
200
+
201
+ // Resize
202
+ ['none', 'y', 'x', 'both'].forEach(r => {
203
+ const value = r === 'both' ? 'both' : r === 'y' ? 'vertical' : r === 'x' ? 'horizontal' : 'none';
204
+ const className = r === 'both' ? 'resize' : `resize-${r}`;
205
+ classes.push({ name: className, css: `.${className} { resize: ${value}; }` });
206
+ });
207
+
208
+ // Scroll Behavior
209
+ classes.push({ name: 'scroll-auto', css: '.scroll-auto { scroll-behavior: auto; }' });
210
+ classes.push({ name: 'scroll-smooth', css: '.scroll-smooth { scroll-behavior: smooth; }' });
211
+
212
+ // Scroll Snap Type
213
+ classes.push({ name: 'snap-none', css: '.snap-none { scroll-snap-type: none; }' });
214
+ classes.push({ name: 'snap-x', css: '.snap-x { scroll-snap-type: x var(--j-scroll-snap-strictness, proximity); }' });
215
+ classes.push({ name: 'snap-y', css: '.snap-y { scroll-snap-type: y var(--j-scroll-snap-strictness, proximity); }' });
216
+ classes.push({ name: 'snap-both', css: '.snap-both { scroll-snap-type: both var(--j-scroll-snap-strictness, proximity); }' });
217
+ classes.push({ name: 'snap-mandatory', css: '.snap-mandatory { --j-scroll-snap-strictness: mandatory; }' });
218
+ classes.push({ name: 'snap-proximity', css: '.snap-proximity { --j-scroll-snap-strictness: proximity; }' });
219
+
220
+ // Scroll Snap Align
221
+ classes.push({ name: 'snap-start', css: '.snap-start { scroll-snap-align: start; }' });
222
+ classes.push({ name: 'snap-end', css: '.snap-end { scroll-snap-align: end; }' });
223
+ classes.push({ name: 'snap-center', css: '.snap-center { scroll-snap-align: center; }' });
224
+ classes.push({ name: 'snap-align-none', css: '.snap-align-none { scroll-snap-align: none; }' });
225
+
226
+ // Touch Action
227
+ ['auto', 'none', 'pan-x', 'pan-left', 'pan-right', 'pan-y', 'pan-up', 'pan-down', 'pinch-zoom', 'manipulation'].forEach(action => {
228
+ classes.push({ name: `touch-${action}`, css: `.touch-${action} { touch-action: ${action}; }` });
229
+ });
230
+
231
+ // Will Change
232
+ classes.push({ name: 'will-change-auto', css: '.will-change-auto { will-change: auto; }' });
233
+ classes.push({ name: 'will-change-scroll', css: '.will-change-scroll { will-change: scroll-position; }' });
234
+ classes.push({ name: 'will-change-contents', css: '.will-change-contents { will-change: contents; }' });
235
+ classes.push({ name: 'will-change-transform', css: '.will-change-transform { will-change: transform; }' });
236
+
237
+ // Glass Effect (futuristic)
238
+ classes.push({
239
+ name: 'glass',
240
+ css: `.glass {
241
+ background: rgba(255, 255, 255, 0.1);
242
+ backdrop-filter: blur(12px);
243
+ -webkit-backdrop-filter: blur(12px);
244
+ border: 1px solid rgba(255, 255, 255, 0.2);
245
+ }`
246
+ });
247
+ classes.push({
248
+ name: 'glass-dark',
249
+ css: `.glass-dark {
250
+ background: rgba(0, 0, 0, 0.3);
251
+ backdrop-filter: blur(12px);
252
+ -webkit-backdrop-filter: blur(12px);
253
+ border: 1px solid rgba(255, 255, 255, 0.1);
254
+ }`
255
+ });
256
+
257
+ return {
258
+ css: classes.map(c => c.css).join('\n'),
259
+ classes
260
+ };
261
+ }
@@ -0,0 +1,135 @@
1
+ export function generateFilterUtilities(config) {
2
+ const classes = [];
3
+
4
+ // Filter
5
+ classes.push({
6
+ name: 'filter',
7
+ css: `.filter { filter: var(--j-blur, ) var(--j-brightness, ) var(--j-contrast, ) var(--j-grayscale, ) var(--j-hue-rotate, ) var(--j-invert, ) var(--j-saturate, ) var(--j-sepia, ) var(--j-drop-shadow, ); }`
8
+ });
9
+ classes.push({ name: 'filter-none', css: '.filter-none { filter: none; }' });
10
+
11
+ // Backdrop Filter
12
+ classes.push({
13
+ name: 'backdrop-filter',
14
+ css: `.backdrop-filter { backdrop-filter: var(--j-backdrop-blur, ) var(--j-backdrop-brightness, ) var(--j-backdrop-contrast, ) var(--j-backdrop-grayscale, ) var(--j-backdrop-hue-rotate, ) var(--j-backdrop-invert, ) var(--j-backdrop-saturate, ) var(--j-backdrop-sepia, ); -webkit-backdrop-filter: var(--j-backdrop-blur, ) var(--j-backdrop-brightness, ) var(--j-backdrop-contrast, ) var(--j-backdrop-grayscale, ) var(--j-backdrop-hue-rotate, ) var(--j-backdrop-invert, ) var(--j-backdrop-saturate, ) var(--j-backdrop-sepia, ); }`
15
+ });
16
+ classes.push({ name: 'backdrop-filter-none', css: '.backdrop-filter-none { backdrop-filter: none; -webkit-backdrop-filter: none; }' });
17
+
18
+ // Blur
19
+ const blurs = {
20
+ 'none': '0',
21
+ 'sm': '4px',
22
+ 'DEFAULT': '8px',
23
+ 'md': '12px',
24
+ 'lg': '16px',
25
+ 'xl': '24px',
26
+ '2xl': '40px',
27
+ '3xl': '64px'
28
+ };
29
+
30
+ Object.entries(blurs).forEach(([name, value]) => {
31
+ const className = name === 'DEFAULT' ? 'blur' : `blur-${name}`;
32
+ classes.push({ name: className, css: `.${className} { --j-blur: blur(${value}); filter: blur(${value}); }` });
33
+
34
+ const backdropClassName = name === 'DEFAULT' ? 'backdrop-blur' : `backdrop-blur-${name}`;
35
+ classes.push({
36
+ name: backdropClassName,
37
+ css: `.${backdropClassName} { --j-backdrop-blur: blur(${value}); backdrop-filter: blur(${value}); -webkit-backdrop-filter: blur(${value}); }`
38
+ });
39
+ });
40
+
41
+ // Brightness
42
+ const brightnessValues = [0, 50, 75, 90, 95, 100, 105, 110, 125, 150, 200];
43
+ brightnessValues.forEach(b => {
44
+ const value = b / 100;
45
+ classes.push({ name: `brightness-${b}`, css: `.brightness-${b} { --j-brightness: brightness(${value}); filter: brightness(${value}); }` });
46
+ classes.push({ name: `backdrop-brightness-${b}`, css: `.backdrop-brightness-${b} { --j-backdrop-brightness: brightness(${value}); backdrop-filter: brightness(${value}); -webkit-backdrop-filter: brightness(${value}); }` });
47
+ });
48
+
49
+ // Contrast
50
+ const contrastValues = [0, 50, 75, 100, 125, 150, 200];
51
+ contrastValues.forEach(c => {
52
+ const value = c / 100;
53
+ classes.push({ name: `contrast-${c}`, css: `.contrast-${c} { --j-contrast: contrast(${value}); filter: contrast(${value}); }` });
54
+ classes.push({ name: `backdrop-contrast-${c}`, css: `.backdrop-contrast-${c} { --j-backdrop-contrast: contrast(${value}); backdrop-filter: contrast(${value}); -webkit-backdrop-filter: contrast(${value}); }` });
55
+ });
56
+
57
+ // Grayscale
58
+ classes.push({ name: 'grayscale-0', css: '.grayscale-0 { --j-grayscale: grayscale(0); filter: grayscale(0); }' });
59
+ classes.push({ name: 'grayscale', css: '.grayscale { --j-grayscale: grayscale(100%); filter: grayscale(100%); }' });
60
+ classes.push({ name: 'backdrop-grayscale-0', css: '.backdrop-grayscale-0 { --j-backdrop-grayscale: grayscale(0); backdrop-filter: grayscale(0); -webkit-backdrop-filter: grayscale(0); }' });
61
+ classes.push({ name: 'backdrop-grayscale', css: '.backdrop-grayscale { --j-backdrop-grayscale: grayscale(100%); backdrop-filter: grayscale(100%); -webkit-backdrop-filter: grayscale(100%); }' });
62
+
63
+ // Hue Rotate
64
+ const hueRotations = [0, 15, 30, 60, 90, 180];
65
+ hueRotations.forEach(h => {
66
+ classes.push({ name: `hue-rotate-${h}`, css: `.hue-rotate-${h} { --j-hue-rotate: hue-rotate(${h}deg); filter: hue-rotate(${h}deg); }` });
67
+ classes.push({ name: `-hue-rotate-${h}`, css: `.-hue-rotate-${h} { --j-hue-rotate: hue-rotate(-${h}deg); filter: hue-rotate(-${h}deg); }` });
68
+ classes.push({ name: `backdrop-hue-rotate-${h}`, css: `.backdrop-hue-rotate-${h} { --j-backdrop-hue-rotate: hue-rotate(${h}deg); backdrop-filter: hue-rotate(${h}deg); -webkit-backdrop-filter: hue-rotate(${h}deg); }` });
69
+ });
70
+
71
+ // Invert
72
+ classes.push({ name: 'invert-0', css: '.invert-0 { --j-invert: invert(0); filter: invert(0); }' });
73
+ classes.push({ name: 'invert', css: '.invert { --j-invert: invert(100%); filter: invert(100%); }' });
74
+ classes.push({ name: 'backdrop-invert-0', css: '.backdrop-invert-0 { --j-backdrop-invert: invert(0); backdrop-filter: invert(0); -webkit-backdrop-filter: invert(0); }' });
75
+ classes.push({ name: 'backdrop-invert', css: '.backdrop-invert { --j-backdrop-invert: invert(100%); backdrop-filter: invert(100%); -webkit-backdrop-filter: invert(100%); }' });
76
+
77
+ // Saturate
78
+ const saturateValues = [0, 50, 100, 150, 200];
79
+ saturateValues.forEach(s => {
80
+ const value = s / 100;
81
+ classes.push({ name: `saturate-${s}`, css: `.saturate-${s} { --j-saturate: saturate(${value}); filter: saturate(${value}); }` });
82
+ classes.push({ name: `backdrop-saturate-${s}`, css: `.backdrop-saturate-${s} { --j-backdrop-saturate: saturate(${value}); backdrop-filter: saturate(${value}); -webkit-backdrop-filter: saturate(${value}); }` });
83
+ });
84
+
85
+ // Sepia
86
+ classes.push({ name: 'sepia-0', css: '.sepia-0 { --j-sepia: sepia(0); filter: sepia(0); }' });
87
+ classes.push({ name: 'sepia', css: '.sepia { --j-sepia: sepia(100%); filter: sepia(100%); }' });
88
+ classes.push({ name: 'backdrop-sepia-0', css: '.backdrop-sepia-0 { --j-backdrop-sepia: sepia(0); backdrop-filter: sepia(0); -webkit-backdrop-filter: sepia(0); }' });
89
+ classes.push({ name: 'backdrop-sepia', css: '.backdrop-sepia { --j-backdrop-sepia: sepia(100%); backdrop-filter: sepia(100%); -webkit-backdrop-filter: sepia(100%); }' });
90
+
91
+ // Drop Shadow
92
+ const dropShadows = {
93
+ 'sm': 'drop-shadow(0 1px 1px rgb(0 0 0 / 0.05))',
94
+ 'DEFAULT': 'drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06))',
95
+ 'md': 'drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06))',
96
+ 'lg': 'drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1))',
97
+ 'xl': 'drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08))',
98
+ '2xl': 'drop-shadow(0 25px 25px rgb(0 0 0 / 0.15))',
99
+ 'none': 'drop-shadow(0 0 #0000)'
100
+ };
101
+
102
+ Object.entries(dropShadows).forEach(([name, value]) => {
103
+ const className = name === 'DEFAULT' ? 'drop-shadow' : `drop-shadow-${name}`;
104
+ classes.push({ name: className, css: `.${className} { --j-drop-shadow: ${value}; filter: ${value}; }` });
105
+ });
106
+
107
+ // Glow filter (futuristic)
108
+ classes.push({
109
+ name: 'drop-shadow-glow',
110
+ css: `.drop-shadow-glow { filter: drop-shadow(0 0 10px var(--j-primary)) drop-shadow(0 0 20px var(--j-primary)); }`
111
+ });
112
+ classes.push({
113
+ name: 'drop-shadow-glow-sm',
114
+ css: `.drop-shadow-glow-sm { filter: drop-shadow(0 0 5px var(--j-primary)); }`
115
+ });
116
+ classes.push({
117
+ name: 'drop-shadow-glow-lg',
118
+ css: `.drop-shadow-glow-lg { filter: drop-shadow(0 0 20px var(--j-primary)) drop-shadow(0 0 40px var(--j-primary)); }`
119
+ });
120
+
121
+ // Backdrop Opacity
122
+ const opacities = [0, 5, 10, 20, 25, 30, 40, 50, 60, 70, 75, 80, 90, 95, 100];
123
+ opacities.forEach(o => {
124
+ const value = o / 100;
125
+ classes.push({
126
+ name: `backdrop-opacity-${o}`,
127
+ css: `.backdrop-opacity-${o} { --j-backdrop-opacity: opacity(${value}); backdrop-filter: opacity(${value}); -webkit-backdrop-filter: opacity(${value}); }`
128
+ });
129
+ });
130
+
131
+ return {
132
+ css: classes.map(c => c.css).join('\n'),
133
+ classes
134
+ };
135
+ }