@nextsparkjs/theme-crm 0.1.0-beta.91 → 0.1.0-beta.94

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 (2) hide show
  1. package/package.json +1 -1
  2. package/styles/globals.css +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextsparkjs/theme-crm",
3
- "version": "0.1.0-beta.91",
3
+ "version": "0.1.0-beta.94",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./config/theme.config.ts",
@@ -14,6 +14,20 @@
14
14
  IMPORTS
15
15
  ============================================= */
16
16
  @import "tailwindcss";
17
+
18
+ /* =============================================
19
+ TAILWIND v4 DARK MODE CONFIGURATION
20
+
21
+ Por defecto Tailwind v4 usa @media (prefers-color-scheme: dark)
22
+ para las variantes dark:. Esto causa problemas porque:
23
+ - next-themes usa la clase .dark en el HTML
24
+ - El sistema operativo puede tener dark mode aunque la app use light
25
+
26
+ Esta configuración hace que Tailwind use el selector de clase .dark
27
+ en lugar de la media query, sincronizándose con next-themes.
28
+ ============================================= */
29
+ @custom-variant dark (&:where(.dark, .dark *));
30
+
17
31
  @plugin "@tailwindcss/container-queries";
18
32
  @import "@nextsparkjs/core/styles/ui.css";
19
33
  @import "@nextsparkjs/core/styles/utilities.css";