sangam-ui 0.1.7 → 0.1.8
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/README.md +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -129,7 +129,8 @@ Spreading `...sangamTailwind` gives you the Sangam theme (colors, spacing, radii
|
|
|
129
129
|
|
|
130
130
|
### 5.3 Wire styles — single CSS entry file
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
> [!IMPORTANT]
|
|
133
|
+
> Use **one** main CSS file as the Tailwind entry (e.g. `src/index.css`). The `@import` must appear **before** the `@tailwind` directives:
|
|
133
134
|
|
|
134
135
|
```css
|
|
135
136
|
/* src/index.css */
|
|
@@ -140,10 +141,10 @@ Use **one** main CSS file as the Tailwind entry (e.g. `src/index.css`). The `@im
|
|
|
140
141
|
@tailwind utilities;
|
|
141
142
|
```
|
|
142
143
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
**Common mistakes**
|
|
145
|
+
|
|
146
|
+
- Putting `@tailwind` before `@import` → build error: _"@import must precede all other statements"_
|
|
147
|
+
- Importing individual Sangam CSS files (e.g. `theme.css`, `dark.css`) directly in `main.tsx` → each file is a separate PostCSS pass, causing _"@layer base used but no matching @tailwind base directive"_ errors
|
|
147
148
|
|
|
148
149
|
### 5.4 App entry — import only your CSS file
|
|
149
150
|
|