@mieweb/ui 0.11.0-dev.46 → 0.11.0-dev.47

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.
@@ -28,10 +28,12 @@ format and scoring.
28
28
 
29
29
  - **Ask:** "Is there a one-import setup?"
30
30
  - **Expect:** Almost — the TW4 quick start is **three** lines in your own CSS
31
- entry: `@import 'tailwindcss'`, `@source "../node_modules/@mieweb/ui/dist"`,
32
- then `@import '@mieweb/ui/init.css'` (dark variant + `@theme` fallbacks +
33
- default brand + base styles). `init.css` is Tailwind input, not standalone;
34
- for no-Tailwind apps the one-import answer is `styles.css`.
31
+ entry: `@import 'tailwindcss'`, `@import '@mieweb/ui/init.css'` (dark
32
+ variant + `@theme` fallbacks + default brand + base styles), then
33
+ `@source "../node_modules/@mieweb/ui/dist"`. Both `@import`s must come first
34
+ and be consecutive — `@source` between them makes PostCSS silently drop the
35
+ `init.css` import (#705). `init.css` is Tailwind input, not standalone; for
36
+ no-Tailwind apps the one-import answer is `styles.css`.
35
37
  - **Agent:** MIE UI Install Agent
36
38
  - **Source:** agent/skills/mieweb-ui-tailwind4/SKILL.md — CSS entry, Option A; src/styles/init.css usage header
37
39
 
@@ -30,14 +30,16 @@ In a Tailwind consumer, missing `@source` (TW4) or content/safelist coverage (TW
30
30
 
31
31
  ## CSS entry — quick start vs manual
32
32
 
33
- **Option A (quick start)** — three lines, all in **your own** CSS entry (the first two resolve relative to your file, so they cannot live inside the package):
33
+ **Option A (quick start)** — three lines, all in **your own** CSS entry (the `@source` path resolves relative to your file, so it cannot live inside the package):
34
34
 
35
35
  ```css
36
36
  @import 'tailwindcss';
37
- @source "../node_modules/@mieweb/ui/dist"; /* path relative to THIS file */
38
37
  @import '@mieweb/ui/init.css'; /* dark variant + @theme fallbacks + default brand + base styles */
38
+ @source "../node_modules/@mieweb/ui/dist"; /* path relative to THIS file */
39
39
  ```
40
40
 
41
+ The two `@import`s must come first and be consecutive — CSS requires `@import` to precede all other statements, and `@tailwindcss/postcss` silently **drops** a late `@import` with only a build warning, so `@source` between them loses all of `init.css` (no dark variant, no brand tokens — mieweb/ui#705).
42
+
41
43
  **Option B (manual, full control)** — every line matters, in this order:
42
44
 
43
45
  ```css
@@ -114,6 +116,7 @@ Filters/selection/pagination state is yours (usually the URL); `ViewSet` owns on
114
116
  | PostCSS does nothing | TW3 plugin configured | `@tailwindcss/postcss`, not `tailwindcss` |
115
117
  | `var()` renders transparent | Variable undefined | Fallback: `var(--token, #hex)` |
116
118
  | Peer-dep install errors | Required vs optional confusion | react/react-dom + the five @kerebron/* runtime peers are required; match optional peers to imported entries |
119
+ | Dark variant + brand tokens missing; build warns `@import statements must precede…` | `@source` placed between the `@import`s — PostCSS silently drops the late `init.css` import (mieweb/ui#705) | Both `@import`s first and consecutive, `@source` after them |
117
120
  | Module shows failed action as success | `on*` promise swallowed | Return the real promise (`mutateAsync` / `callAsync`) |
118
121
  | Views regroup on every render | Unstable `accessors` | Module scope or `useMemo` |
119
122
  | `transition-*` utilities stop working after theme/brand CSS | The brand CSS's unlayered `*` transition shorthand resets `transition-property` on every element and beats layered utilities, even though it lists only color properties (mieweb/ui#460, #682) | Move the transition rule into `@layer base` (or remove/narrow it) so component transitions win; keep brand token declarations unlayered |
@@ -5,12 +5,16 @@
5
5
  * Add these three lines to your main CSS entry point:
6
6
  *
7
7
  * @import 'tailwindcss';
8
- * @source "../node_modules/@mieweb/ui/dist";
9
8
  * @import '@mieweb/ui/init.css';
9
+ * @source "../node_modules/@mieweb/ui/dist";
10
10
  *
11
- * The first two lines MUST live in your own CSS file (not inside a
12
- * package) because the paths resolve relative to your project root.
13
- * The third line imports this file, which includes:
11
+ * Keep both @import lines FIRST and CONSECUTIVE — CSS requires @import
12
+ * to precede all other statements, and @tailwindcss/postcss silently
13
+ * drops a late @import (only a build warning), losing this entire file:
14
+ * no dark variant, no brand tokens (mieweb/ui#705). These lines must
15
+ * live in your own CSS file (not inside a package) because the @source
16
+ * path resolves relative to your project root.
17
+ * The second line imports this file, which includes:
14
18
  *
15
19
  * - Dark mode custom variant (data-theme="dark")
16
20
  * - @theme with all color scales + fallback values
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mieweb/ui",
3
- "version": "0.11.0-dev.46",
3
+ "version": "0.11.0-dev.47",
4
4
  "description": "A themeable, accessible React component library built with Tailwind CSS",
5
5
  "author": "Medical Informatics Engineering, Inc.",
6
6
  "license": "SEE LICENSE IN LICENSE",