@onesaz/tailwind-config 0.2.9 → 0.3.1

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/dist/v4.css +9 -0
  2. package/package.json +1 -1
package/dist/v4.css CHANGED
@@ -4,6 +4,9 @@
4
4
  * @import "@onesaz/tailwind-config/v4.css";
5
5
  */
6
6
 
7
+ /* Use data-theme/class-based dark mode instead of prefers-color-scheme */
8
+ /* @custom-variant dark (&:where(.dark, [data-theme="dark"], .dark *, [data-theme="dark"] *)); */
9
+
7
10
  @theme {
8
11
  /* ========================================
9
12
  * ACCENT COLORS - Purple
@@ -368,6 +371,12 @@
368
371
  * IMPORTANT: Must be in @layer base for Tailwind v4 cascade to work!
369
372
  * ======================================== */
370
373
  @layer base {
374
+ /* Restore Tailwind v3 behaviour: default border-color to the theme token
375
+ instead of Tailwind v4's currentColor fallback */
376
+ *, ::before, ::after {
377
+ border-color: var(--border);
378
+ }
379
+
371
380
  /* Apply theme colors to body by default */
372
381
  body {
373
382
  background-color: var(--background);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesaz/tailwind-config",
3
- "version": "0.2.9",
3
+ "version": "0.3.1",
4
4
  "description": "Tailwind CSS preset for Onesaz UI - shared configuration with design tokens (supports v3 and v4)",
5
5
  "type": "module",
6
6
  "license": "MIT",