@valiify/dashboard-ui 0.1.2 → 0.2.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/CHANGELOG.md +411 -4
  2. package/CLAUDE.md +809 -768
  3. package/COMPONENTS.md +520 -520
  4. package/GETTING_STARTED.md +14 -14
  5. package/QUICK_REFERENCE.md +22 -22
  6. package/README.md +28 -6
  7. package/TROUBLESHOOTING.md +6 -6
  8. package/class-manifest.json +664 -0
  9. package/design-methodology/dashboard.md +496 -0
  10. package/dist/dashboard-ui.css +4897 -0
  11. package/dist/index.css +502 -502
  12. package/examples/basic/index.html +8 -8
  13. package/examples/daisyui-starter/README.md +35 -0
  14. package/examples/daisyui-starter/check-no-bleed.mjs +81 -0
  15. package/examples/daisyui-starter/index.html +45 -0
  16. package/examples/daisyui-starter/package-lock.json +2221 -0
  17. package/examples/daisyui-starter/package.json +22 -0
  18. package/examples/daisyui-starter/postcss.config.js +1 -0
  19. package/examples/daisyui-starter/src/styles.css +20 -0
  20. package/examples/daisyui-starter/tailwind.config.js +12 -0
  21. package/examples/postcss-starter/index.html +8 -8
  22. package/examples/postcss-starter/package.json +1 -1
  23. package/examples/vite-starter/README.md +4 -4
  24. package/examples/vite-starter/package.json +1 -1
  25. package/examples/vite-starter/src/main.js +41 -41
  26. package/package.json +19 -4
  27. package/src/build/components.css +29 -0
  28. package/src/build/utilities.css +42 -0
  29. package/src/components/ICON-SYSTEM.md +39 -39
  30. package/src/components/alert.css +26 -26
  31. package/src/components/avatar.css +9 -9
  32. package/src/components/breadcrumbs.css +15 -15
  33. package/src/components/button.css +21 -21
  34. package/src/components/card.css +10 -10
  35. package/src/components/checkbox.css +21 -21
  36. package/src/components/chip.css +43 -43
  37. package/src/components/data-row.css +19 -19
  38. package/src/components/divider.css +23 -23
  39. package/src/components/dropdown-field.css +34 -34
  40. package/src/components/dropdown-menu.css +12 -12
  41. package/src/components/field-verification.css +25 -25
  42. package/src/components/filter-segment.css +20 -20
  43. package/src/components/icon-button.css +11 -11
  44. package/src/components/icon.css +18 -18
  45. package/src/components/input.css +29 -29
  46. package/src/components/link.css +28 -28
  47. package/src/components/loading-indicator.css +20 -20
  48. package/src/components/loading-inline.css +8 -8
  49. package/src/components/menu-item.css +28 -28
  50. package/src/components/modal.css +36 -36
  51. package/src/components/navigation-rail.css +95 -95
  52. package/src/components/pagination-item.css +22 -22
  53. package/src/components/pagination.css +24 -24
  54. package/src/components/pill.css +14 -14
  55. package/src/components/progress-bar.css +28 -28
  56. package/src/components/radio-select.css +13 -13
  57. package/src/components/section-marker.css +12 -12
  58. package/src/components/segment-selector.css +9 -9
  59. package/src/components/sensitive-data.css +8 -8
  60. package/src/components/skeleton.css +29 -29
  61. package/src/components/step.css +14 -14
  62. package/src/components/stepper.css +15 -15
  63. package/src/components/switch.css +12 -12
  64. package/src/components/tabs.css +40 -40
  65. package/src/components/tag.css +20 -20
  66. package/src/components/text-button.css +24 -24
  67. package/src/components/textarea.css +23 -23
  68. package/src/components/toast.css +29 -29
  69. package/src/components/tooltip.css +11 -11
  70. package/src/icons/README.md +16 -10
  71. package/src/icons/sprite.svg +1 -1
  72. package/src/themes/valiify-tokens.css +285 -0
  73. package/src/themes/valiify-type-prefixed.css +37 -0
  74. package/src/utilities/index.css +1 -1
  75. package/src/utility-surface.css +321 -0
  76. package/types/components.d.ts +235 -236
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "valiify-ui-daisyui-starter",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "vite build",
9
+ "check": "node check-no-bleed.mjs"
10
+ },
11
+ "devDependencies": {
12
+ "daisyui": "^4.12.14",
13
+ "playwright": "^1.62.1",
14
+ "tailwindcss": "^3.4.17",
15
+ "postcss": "^8.5.26",
16
+ "autoprefixer": "^10.4.20",
17
+ "vite": "^5.4.11"
18
+ },
19
+ "dependencies": {
20
+ "@valiify/dashboard-ui": "^0.2.0"
21
+ }
22
+ }
@@ -0,0 +1 @@
1
+ export default { plugins: { tailwindcss: {}, autoprefixer: {} } };
@@ -0,0 +1,20 @@
1
+ /*
2
+ * The @import MUST come first.
3
+ *
4
+ * CSS requires every @import to precede all other rules, so putting it after the
5
+ * @tailwind directives — which expand into rules — gets it silently DISCARDED. That
6
+ * is the same trap CLAUDE.md documents for the font import, and it cost a debugging
7
+ * pass here: daisyUI rendered correctly while every vd- class fell back to unstyled,
8
+ * which reads exactly like a namespace failure and is not one.
9
+ *
10
+ * Loading ours first does NOT make this a soft test. daisyUI 4 is unlayered and our
11
+ * component rules live in @layer components, and an unlayered rule beats a layered one
12
+ * before specificity or order is consulted. On any name the two libraries shared,
13
+ * daisyUI would win no matter which file came first. Order cannot rescue us here; only
14
+ * the vd- namespace can.
15
+ */
16
+ @import "@valiify/dashboard-ui/styles.css";
17
+
18
+ @tailwind base;
19
+ @tailwind components;
20
+ @tailwind utilities;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Tailwind 3 + daisyUI 4 — the host app's stack, not ours.
3
+ *
4
+ * This example exists to prove the two can share a document. The library ships
5
+ * dist/dashboard-ui.css, which is compiled by Tailwind 4 and imported as a plain
6
+ * stylesheet; this config never sees it. That is the point: a consumer's Tailwind
7
+ * major is irrelevant to a prebuilt bundle.
8
+ */
9
+ export default {
10
+ content: ["./index.html", "./src/**/*.{js,ts}"],
11
+ plugins: [require("daisyui")],
12
+ };
@@ -20,18 +20,18 @@
20
20
  </h1>
21
21
 
22
22
  <div style="display: flex; gap: 12px; margin-bottom: 24px">
23
- <button class="btn btn-primary">Primary Button</button>
24
- <button class="btn btn-outline">Outline Button</button>
23
+ <button class="vd-btn vd-btn-primary">Primary Button</button>
24
+ <button class="vd-btn vd-btn-outline">Outline Button</button>
25
25
  </div>
26
26
 
27
- <div class="alert alert-success" role="alert">
28
- <div class="alert-body">
29
- <svg class="alert-icon icon icon-size-18" aria-hidden="true">
27
+ <div class="vd-alert vd-alert-success" role="alert">
28
+ <div class="vd-alert-body">
29
+ <svg class="vd-alert-icon vd-icon vd-icon-size-18" aria-hidden="true">
30
30
  <use href="#check-circle" />
31
31
  </svg>
32
- <div class="alert-content">
33
- <p class="alert-title">Setup Complete</p>
34
- <p class="alert-message">
32
+ <div class="vd-alert-content">
33
+ <p class="vd-alert-title">Setup Complete</p>
34
+ <p class="vd-alert-message">
35
35
  If you can see this styled alert, your PostCSS + Tailwind setup
36
36
  is working correctly.
37
37
  </p>
@@ -8,7 +8,7 @@
8
8
  "serve": "npm run build && npx serve ."
9
9
  },
10
10
  "dependencies": {
11
- "@valiify/dashboard-ui": "^0.1.2"
11
+ "@valiify/dashboard-ui": "^0.2.0"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@tailwindcss/postcss": "^4.0.0",
@@ -77,7 +77,7 @@ See `src/main.js` for a minimal dropdown implementation.
77
77
  import "./styles.css";
78
78
 
79
79
  function App() {
80
- return <button className="btn btn-primary">Click me</button>;
80
+ return <button className="vd-btn vd-btn-primary">Click me</button>;
81
81
  }
82
82
  ```
83
83
 
@@ -88,7 +88,7 @@ import "./styles.css";
88
88
  </script>
89
89
 
90
90
  <template>
91
- <button class="btn btn-primary">Click me</button>
91
+ <button class="vd-btn vd-btn-primary">Click me</button>
92
92
  </template>
93
93
  ```
94
94
 
@@ -98,7 +98,7 @@ import "./styles.css";
98
98
  import "./styles.css";
99
99
  </script>
100
100
 
101
- <button class="btn btn-primary">Click me</button>
101
+ <button class="vd-btn vd-btn-primary">Click me</button>
102
102
  ```
103
103
 
104
104
  ## Troubleshooting
@@ -115,7 +115,7 @@ import "./styles.css";
115
115
 
116
116
  ### Components look broken
117
117
  - Check that you're using the full markup structure (see CLAUDE.md in the repo)
118
- - Many components need wrapper elements (e.g., `.input-container` > `.input-field` > `.input`)
118
+ - Many components need wrapper elements (e.g., `.vd-input-container` > `.vd-input-field` > `.vd-input`)
119
119
  - Verify you're using the correct variant/size classes
120
120
 
121
121
  ## Learn More
@@ -9,7 +9,7 @@
9
9
  "preview": "vite preview"
10
10
  },
11
11
  "dependencies": {
12
- "@valiify/dashboard-ui": "^0.1.2"
12
+ "@valiify/dashboard-ui": "^0.2.0"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@tailwindcss/vite": "^4.0.0",
@@ -29,10 +29,10 @@ app.innerHTML = `
29
29
  Buttons
30
30
  </h2>
31
31
  <div style="display: flex; gap: 12px; flex-wrap: wrap;">
32
- <button class="btn btn-primary">Primary</button>
33
- <button class="btn btn-outline">Outline</button>
34
- <button class="btn btn-empty">Empty</button>
35
- <button class="btn btn-primary" disabled>Disabled</button>
32
+ <button class="vd-btn vd-btn-primary">Primary</button>
33
+ <button class="vd-btn vd-btn-outline">Outline</button>
34
+ <button class="vd-btn vd-btn-empty">Empty</button>
35
+ <button class="vd-btn vd-btn-primary" disabled>Disabled</button>
36
36
  </div>
37
37
  </section>
38
38
 
@@ -41,15 +41,15 @@ app.innerHTML = `
41
41
  <h2 style="font-size: 18px; font-weight: 500; margin-bottom: 12px; color: var(--color-content-primary);">
42
42
  Input
43
43
  </h2>
44
- <div class="input-container" style="max-width: 400px;">
45
- <div class="input-label">
44
+ <div class="vd-input-container" style="max-width: 400px;">
45
+ <div class="vd-input-label">
46
46
  <span>Email Address</span>
47
47
  </div>
48
- <div class="input-field input-lg">
49
- <svg class="input-icon-left icon icon-size-14" aria-hidden="true">
48
+ <div class="vd-input-field vd-input-lg">
49
+ <svg class="vd-input-icon-left vd-icon vd-icon-size-14" aria-hidden="true">
50
50
  <use href="#mail" />
51
51
  </svg>
52
- <input type="email" class="input" placeholder="you@example.com" />
52
+ <input type="email" class="vd-input" placeholder="you@example.com" />
53
53
  </div>
54
54
  </div>
55
55
  </section>
@@ -59,14 +59,14 @@ app.innerHTML = `
59
59
  <h2 style="font-size: 18px; font-weight: 500; margin-bottom: 12px; color: var(--color-content-primary);">
60
60
  Alert
61
61
  </h2>
62
- <div class="alert alert-warning" role="alert">
63
- <div class="alert-body">
64
- <svg class="alert-icon icon icon-size-18" aria-hidden="true">
62
+ <div class="vd-alert vd-alert-warning" role="alert">
63
+ <div class="vd-alert-body">
64
+ <svg class="vd-alert-icon vd-icon vd-icon-size-18" aria-hidden="true">
65
65
  <use href="#info" />
66
66
  </svg>
67
- <div class="alert-content">
68
- <p class="alert-title">Setup Complete</p>
69
- <p class="alert-message">
67
+ <div class="vd-alert-content">
68
+ <p class="vd-alert-title">Setup Complete</p>
69
+ <p class="vd-alert-message">
70
70
  If you can see this alert with proper styling and icons,
71
71
  your installation is working correctly!
72
72
  </p>
@@ -81,16 +81,16 @@ app.innerHTML = `
81
81
  Status Indicators
82
82
  </h2>
83
83
  <div style="display: flex; gap: 12px; flex-wrap: wrap;">
84
- <span class="chip chip-success">
85
- <span class="chip-dot"></span>
84
+ <span class="vd-chip vd-chip-success">
85
+ <span class="vd-chip-dot"></span>
86
86
  <span>Approved</span>
87
87
  </span>
88
- <span class="chip chip-warning">
89
- <span class="chip-dot"></span>
88
+ <span class="vd-chip vd-chip-warning">
89
+ <span class="vd-chip-dot"></span>
90
90
  <span>Pending</span>
91
91
  </span>
92
- <span class="chip chip-critical">
93
- <span class="chip-dot"></span>
92
+ <span class="vd-chip vd-chip-critical">
93
+ <span class="vd-chip-dot"></span>
94
94
  <span>Rejected</span>
95
95
  </span>
96
96
  </div>
@@ -113,37 +113,37 @@ app.innerHTML = `
113
113
  // Example of minimal dropdown behavior
114
114
  const dropdownExample = document.getElementById("dropdown-example");
115
115
  dropdownExample.innerHTML = `
116
- <div class="dropdown-field-container" style="max-width: 300px;">
117
- <div class="dropdown-field-label">
116
+ <div class="vd-dropdown-field-container" style="max-width: 300px;">
117
+ <div class="vd-dropdown-field-label">
118
118
  <span>Select an option</span>
119
119
  </div>
120
- <div class="dropdown">
120
+ <div class="vd-dropdown">
121
121
  <button
122
122
  id="dropdown-trigger"
123
- class="dropdown-field"
123
+ class="vd-dropdown-field"
124
124
  aria-haspopup="listbox"
125
125
  aria-expanded="false"
126
126
  >
127
- <span class="dropdown-field-placeholder">Choose one...</span>
128
- <svg class="dropdown-field-chevron icon icon-size-14" aria-hidden="true">
127
+ <span class="vd-dropdown-field-placeholder">Choose one...</span>
128
+ <svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true">
129
129
  <use href="#chevron-down" />
130
130
  </svg>
131
131
  </button>
132
- <div id="dropdown-panel" class="dropdown-panel" hidden>
133
- <div class="dropdown-menu" role="listbox">
134
- <button class="menu-item" role="option" data-value="weekly">
135
- <span class="menu-item-text">
136
- <span class="menu-item-title">Weekly</span>
132
+ <div id="dropdown-panel" class="vd-dropdown-panel" hidden>
133
+ <div class="vd-dropdown-menu" role="listbox">
134
+ <button class="vd-menu-item" role="option" data-value="weekly">
135
+ <span class="vd-menu-item-text">
136
+ <span class="vd-menu-item-title">Weekly</span>
137
137
  </span>
138
138
  </button>
139
- <button class="menu-item" role="option" data-value="monthly">
140
- <span class="menu-item-text">
141
- <span class="menu-item-title">Monthly</span>
139
+ <button class="vd-menu-item" role="option" data-value="monthly">
140
+ <span class="vd-menu-item-text">
141
+ <span class="vd-menu-item-title">Monthly</span>
142
142
  </span>
143
143
  </button>
144
- <button class="menu-item" role="option" data-value="yearly">
145
- <span class="menu-item-text">
146
- <span class="menu-item-title">Yearly</span>
144
+ <button class="vd-menu-item" role="option" data-value="yearly">
145
+ <span class="vd-menu-item-text">
146
+ <span class="vd-menu-item-title">Yearly</span>
147
147
  </span>
148
148
  </button>
149
149
  </div>
@@ -156,7 +156,7 @@ dropdownExample.innerHTML = `
156
156
  const trigger = document.getElementById("dropdown-trigger");
157
157
  const panel = document.getElementById("dropdown-panel");
158
158
  const options = panel.querySelectorAll('[role="option"]');
159
- const placeholder = trigger.querySelector(".dropdown-field-placeholder");
159
+ const placeholder = trigger.querySelector(".vd-dropdown-field-placeholder");
160
160
 
161
161
  trigger.addEventListener("click", () => {
162
162
  const isOpen = trigger.getAttribute("aria-expanded") === "true";
@@ -167,11 +167,11 @@ trigger.addEventListener("click", () => {
167
167
  options.forEach((option) => {
168
168
  option.addEventListener("click", () => {
169
169
  const value = option.getAttribute("data-value");
170
- const title = option.querySelector(".menu-item-title").textContent;
170
+ const title = option.querySelector(".vd-menu-item-title").textContent;
171
171
 
172
172
  // Update the trigger
173
173
  placeholder.textContent = title;
174
- placeholder.className = "dropdown-field-value";
174
+ placeholder.className = "vd-dropdown-field-value";
175
175
 
176
176
  // Close the dropdown
177
177
  trigger.setAttribute("aria-expanded", "false");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valiify/dashboard-ui",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Tailwind CSS component library for Valiify Dashboard applications",
5
5
  "style": "dist/index.css",
6
6
  "types": "types/index.d.ts",
@@ -10,16 +10,20 @@
10
10
  "exports": {
11
11
  ".": "./dist/index.css",
12
12
  "./index.css": "./dist/index.css",
13
+ "./styles.css": "./dist/dashboard-ui.css",
13
14
  "./fonts": "./src/fonts.css",
14
15
  "./source": "./src/library.css",
15
16
  "./icons/sprite.svg": "./src/icons/sprite.svg",
17
+ "./manifest": "./class-manifest.json",
16
18
  "./types": "./types/index.d.ts"
17
19
  },
18
20
  "files": [
19
21
  "dist",
22
+ "class-manifest.json",
20
23
  "src",
21
24
  "types",
22
25
  "examples",
26
+ "design-methodology",
23
27
  "README.md",
24
28
  "GETTING_STARTED.md",
25
29
  "COMPONENTS.md",
@@ -29,24 +33,34 @@
29
33
  "CLAUDE.md"
30
34
  ],
31
35
  "scripts": {
32
- "build": "npm run build:theme && npm run build:icons && postcss src/index.css -o dist/index.css",
36
+ "build": "npm run build:theme && npm run build:icons && npm run build:utility-surface && postcss src/index.css -o dist/index.css && npm run build:styles && npm run build:manifest",
33
37
  "prepack": "npm run build && npm run fix-examples",
34
38
  "fix-examples": "node scripts/fix-example-deps.mjs",
35
39
  "restore-examples": "node scripts/restore-example-deps.mjs",
36
40
  "build:theme": "node scripts/build-theme.mjs",
37
41
  "build:icons": "node scripts/build-sprite.mjs",
42
+ "build:manifest": "node scripts/build-manifest.mjs",
43
+ "build:styles": "node scripts/build-styles.mjs",
44
+ "build:utility-surface": "node scripts/build-utility-surface.mjs",
45
+ "build:theme:check": "node scripts/build-theme.mjs --check",
38
46
  "dev": "postcss src/index.css -o dist/index.css --watch",
39
47
  "typecheck": "tsc --noEmit",
40
48
  "format": "prettier --write .",
41
49
  "new:component": "node scripts/new-component.mjs",
42
50
  "verify:component": "node scripts/verify-component.mjs",
43
51
  "verify:layers": "node scripts/verify-layers.mjs",
52
+ "verify:vocabulary": "node scripts/verify-vocabulary.mjs",
53
+ "verify:bundle": "node scripts/verify-bundle.mjs",
54
+ "verify:markup": "node scripts/verify-markup.mjs",
55
+ "verify:package": "node scripts/verify-package.mjs",
44
56
  "storybook": "storybook dev -p 6006",
45
57
  "build-storybook": "storybook build",
46
58
  "verify:visual": "node scripts/visual-verify.mjs",
47
59
  "verify:a11y": "node scripts/a11y-scan.mjs",
48
60
  "audit": "node scripts/audit-components.mjs",
49
- "chromatic": "chromatic"
61
+ "chromatic": "chromatic",
62
+ "val:check": "val-init --check",
63
+ "val:init": "val-init"
50
64
  },
51
65
  "keywords": [
52
66
  "tailwind",
@@ -75,7 +89,8 @@
75
89
  "@storybook/addon-themes": "^10.5.10",
76
90
  "@storybook/html-vite": "^10.5.10",
77
91
  "@tailwindcss/postcss": "^4.3.3",
78
- "chromatic": "^18.6.0",
92
+ "@valiify/val-core": "^0.2.0",
93
+ "chromatic": "^18.7.2",
79
94
  "lucide-static": "^1.33.0",
80
95
  "pixelmatch": "^7.2.0",
81
96
  "playwright": "^1.62.1",
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Prebuilt bundle — PASS A: tokens, base and component classes. No preflight.
3
+ *
4
+ * Compiled by scripts/build-styles.mjs and concatenated with pass B into
5
+ * dist/dashboard-ui.css.
6
+ *
7
+ * Deliberately NOT `@import "tailwindcss"`: that entry pulls preflight, and the host
8
+ * app already has a reset. The dashboard app runs Tailwind 3 + daisyUI 4, whose base
9
+ * layer ours would fight — dist/index.css ships the full Preflight plus a bare
10
+ * `html { color; background-color }`, which is exactly what makes it unsafe to drop
11
+ * into a host. theme.css alone gives the default tokens our @apply payloads resolve
12
+ * against; unused ones still tree-shake.
13
+ *
14
+ * ../base/index.css is NOT imported either, and that is the second half of "no
15
+ * preflight". It sets `html { color; background-color: var(--color-surface-frame) }`,
16
+ * which is app chrome: correct for Storybook and for a consumer building from ./source,
17
+ * wrong for a stylesheet dropped into a host that already paints its own page. The
18
+ * bundle therefore contains zero `html` rules, where dist/index.css has one.
19
+ *
20
+ * No utilities.css import either, so this pass emits ZERO utility classes — the
21
+ * prefixed ones come from pass B. theme.css does not declare the layer order, so it
22
+ * is declared here.
23
+ */
24
+ @layer theme, base, components, utilities;
25
+
26
+ @import "tailwindcss/theme.css";
27
+ @import "../themes/valiify.css";
28
+ @import "../components/index.css";
29
+ @import "../utilities/index.css";
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Prebuilt bundle — PASS B: the `vd:`-prefixed utility layer.
3
+ *
4
+ * Why a second pass at all: Tailwind's prefix is global to a compile and renames theme
5
+ * variables too (--color-primary -> --vd-color-primary). Prefixing the whole library
6
+ * would break the public token API and force `vd:` onto every @apply payload in
7
+ * src/components. Compiling utilities separately keeps components and tokens as authored.
8
+ *
9
+ * Why prefix the utilities at all: the host runs Tailwind 3, where `border`, `ring-1`
10
+ * and `space-x-*` mean different things than they do here. `vd:` makes our utilities
11
+ * unable to collide with the host's.
12
+ *
13
+ * Why valiify-tokens.css and valiify-type-prefixed.css rather than valiify.css:
14
+ * that file carries the @theme block AND `@utility type-label-* { @apply text-label-* }`.
15
+ * `@apply` resolves at compile time, so under prefix(vd) the payload is a HARD failure —
16
+ * "Cannot apply unprefixed utility class `text-label-l`". The generated theme is split
17
+ * so the tokens can take the prefix while the type utilities import without it, their
18
+ * payloads already spelled `vd:`. scripts/build-theme.mjs asserts the two spellings
19
+ * are the same utility.
20
+ *
21
+ * ../utilities/index.css imports UNCHANGED. `@utility focus-ring` has no @apply, and
22
+ * its var(--ring-focus-width) resolves against pass A's definitions once the two passes
23
+ * are concatenated — so it needs no prefixed twin. Only @utility blocks whose bodies
24
+ * use @apply do.
25
+ *
26
+ * The utilities land UNLAYERED, and that is deliberate. `tailwindcss/utilities.css` is
27
+ * a bare `@tailwind utilities;` — unlike `tailwindcss/index.css`, which wraps it in
28
+ * `@layer utilities`. Unlayered is the safer shape for a layer shipped INTO a foreign
29
+ * app: unlayered rules beat layered ones before specificity is consulted, so a layered
30
+ * `vd:flex` would silently lose to any unlayered host rule touching the same property
31
+ * (daisyUI 4 is entirely unlayered). Our component classes stay in @layer components,
32
+ * so the host's own utilities still win over them — what a consumer expects.
33
+ */
34
+ @layer theme, base, components, utilities;
35
+
36
+ @import "tailwindcss/theme.css" prefix(vd);
37
+ @import "../themes/valiify-tokens.css" prefix(vd);
38
+ @import "../themes/valiify-type-prefixed.css";
39
+ @import "../utilities/index.css";
40
+ @import "../utility-surface.css";
41
+
42
+ @import "tailwindcss/utilities.css" source(none);