@opencloud-eu/extension-sdk 4.1.0-alpha.1 → 4.1.0-alpha.2
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 +8 -0
- package/package.json +1 -1
- package/tailwind.css +14 -0
package/README.md
CHANGED
|
@@ -37,3 +37,11 @@ export default defineConfig({
|
|
|
37
37
|
}
|
|
38
38
|
})
|
|
39
39
|
```
|
|
40
|
+
|
|
41
|
+
### Tailwind CSS
|
|
42
|
+
|
|
43
|
+
The extension-sdk comes with a preconfigured Tailwind CSS setup for extension development. To use it, simply import the provided CSS file in your main application file. Note that Tailwind classes need to be prefixed via `ext:` in extensions to avoid style conflicts.
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
import '@opencloud-eu/extension-sdk/tailwind.css'
|
|
47
|
+
```
|
package/package.json
CHANGED
package/tailwind.css
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@layer theme, base, components, utilities;
|
|
2
|
+
@import 'tailwindcss/theme.css' layer(theme) prefix(ext);
|
|
3
|
+
@import 'tailwindcss/utilities.css' layer(utilities) prefix(ext);
|
|
4
|
+
|
|
5
|
+
@theme {
|
|
6
|
+
--font-sans: var(--oc-font-family);
|
|
7
|
+
|
|
8
|
+
--spacing: 4px;
|
|
9
|
+
--breakpoint-xs: 580px;
|
|
10
|
+
--breakpoint-sm: 640px;
|
|
11
|
+
--breakpoint-md: 960px;
|
|
12
|
+
--breakpoint-lg: 1200px;
|
|
13
|
+
--breakpoint-xl: 1600px;
|
|
14
|
+
}
|