@quinnjr/ngx-tailwindcss 1.0.1 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quinnjr/ngx-tailwindcss",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "A highly customizable Angular component library for Tailwind CSS 4+. Build beautiful, accessible UI components with full theming support, intelligent class merging, and zero bundled CSS. Features 30+ components including buttons, cards, modals, forms, tables, and more.",
5
5
  "license": "MIT",
6
6
  "exports": {
@@ -84,15 +84,16 @@
84
84
  "stepper"
85
85
  ],
86
86
  "peerDependencies": {
87
- "@angular/common": "^19.0.0 || ^20.0.0 || ^21.0.0",
88
- "@angular/core": "^19.0.0 || ^20.0.0 || ^21.0.0",
89
- "@angular/cdk": "^19.0.0 || ^20.0.0 || ^21.0.0",
90
- "@angular/forms": "^19.0.0 || ^20.0.0 || ^21.0.0",
91
- "@angular/animations": "^19.0.0 || ^20.0.0 || ^21.0.0",
87
+ "@angular/common": "^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
88
+ "@angular/core": "^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
89
+ "@angular/cdk": "^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
90
+ "@angular/forms": "^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
91
+ "@angular/animations": "^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
92
92
  "@tauri-apps/api": "^2.0.0",
93
93
  "@tauri-apps/plugin-dialog": "^2.0.0",
94
94
  "@tauri-apps/plugin-notification": "^2.0.0",
95
95
  "@tauri-apps/plugin-process": "^2.0.0",
96
+ "@tauri-apps/plugin-store": "^2.0.0",
96
97
  "@tauri-apps/plugin-updater": "^2.0.0",
97
98
  "electron": "^28.0.0 || ^29.0.0 || ^30.0.0 || ^31.0.0 || ^32.0.0 || ^33.0.0 || ^34.0.0 || ^35.0.0 || ^36.0.0 || ^37.0.0 || ^38.0.0 || ^39.0.0"
98
99
  },
@@ -109,6 +110,9 @@
109
110
  "@tauri-apps/plugin-process": {
110
111
  "optional": true
111
112
  },
113
+ "@tauri-apps/plugin-store": {
114
+ "optional": true
115
+ },
112
116
  "@tauri-apps/plugin-updater": {
113
117
  "optional": true
114
118
  },
@@ -1,15 +1,29 @@
1
1
  /**
2
2
  * ngx-tailwindcss Theme System
3
3
  *
4
- * This file provides CSS custom properties (variables) for theming the component library.
5
- * The library uses Tailwind CSS classes by default, but you can override colors using
6
- * these CSS variables.
4
+ * This file provides CSS custom properties (variables) for theming.
5
+ * The shipped components style themselves with plain Tailwind CSS utility
6
+ * classes and do NOT read these variables directly. The variables exist for
7
+ * two distinct purposes:
8
+ *
9
+ * 1. Semantic tokens (--tw-color-*): consumed by the OPTIONAL theme-aware
10
+ * path — the THEME_CSS_CLASSES constants (e.g.
11
+ * 'bg-[var(--tw-color-primary)]') and the TwThemeService runtime theming
12
+ * API. If you opt into that path, overriding these variables re-colors
13
+ * everything that uses it.
14
+ *
15
+ * 2. Per-component tokens (--tw-button-*, --tw-card-*, --tw-switch-*, ...):
16
+ * provided as a stable naming convention for YOUR OWN CSS when you
17
+ * restyle the components (e.g. via classOverride, ::part-like wrapper
18
+ * selectors, or global stylesheets). The shipped components do not read
19
+ * them; they are hooks for consumer stylesheets and default to the
20
+ * semantic tokens above so they follow your theme automatically.
7
21
  *
8
22
  * USAGE:
9
23
  * ======
10
24
  * 1. Import this file in your application's global styles:
11
25
  *
12
- * @import '@pegasus-heavy/ngx-tailwindcss/styles/theme.css';
26
+ * @import '@quinnjr/ngx-tailwindcss/styles/theme.css';
13
27
  *
14
28
  * 2. Override any variables in your own CSS to customize colors:
15
29
  *
@@ -33,12 +47,14 @@
33
47
  *
34
48
  * Or use the provided service:
35
49
  *
36
- * import { TwThemeService } from '@pegasus-heavy/ngx-tailwindcss';
50
+ * import { TwThemeService } from '@quinnjr/ngx-tailwindcss';
37
51
  * themeService.setColorMode('dark');
38
52
  *
39
53
  * CUSTOMIZATION LEVELS:
40
54
  * =====================
41
- * 1. CSS Variables (this file) - Override semantic colors
55
+ * 1. CSS Variables (this file) - Override semantic colors for the optional
56
+ * THEME_CSS_CLASSES / TwThemeService path, or use the per-component
57
+ * tokens in your own stylesheets
42
58
  * 2. Tailwind Config - Extend/override Tailwind's color palette
43
59
  * 3. Component Props - Use classOverride/classReplace on individual components
44
60
  * 4. TwThemeService - Programmatically set theme at runtime
@@ -115,6 +131,7 @@
115
131
  ===================================================== */
116
132
 
117
133
  --tw-color-text: #0f172a;
134
+ --tw-color-text-primary: #0f172a;
118
135
  --tw-color-text-secondary: #475569;
119
136
  --tw-color-text-muted: #94a3b8;
120
137
  --tw-color-text-disabled: #cbd5e1;
@@ -321,6 +338,7 @@
321
338
 
322
339
  /* Text colors */
323
340
  --tw-color-text: #f8fafc;
341
+ --tw-color-text-primary: #f8fafc;
324
342
  --tw-color-text-secondary: #94a3b8;
325
343
  --tw-color-text-muted: #64748b;
326
344
  --tw-color-text-disabled: #475569;