fulldev-ui 0.4.12 → 0.4.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fulldev-ui",
3
- "version": "0.4.12",
3
+ "version": "0.4.14",
4
4
  "description": "A component library built for Astro",
5
5
  "homepage": "https://ui.full.dev",
6
6
  "bugs": "https://github.com/fulldotdev/ui/issues",
@@ -85,8 +85,6 @@ const render =
85
85
  @import '../css/size.css';
86
86
  @import '../css/space.css';
87
87
 
88
- @layer base, fulldev;
89
-
90
88
  @layer fulldev {
91
89
  .root {
92
90
  z-index: 1;
@@ -38,12 +38,34 @@ In your `tailwind.config.ts` add the following:
38
38
  // tailwind.config.ts
39
39
  import fulldevUI from 'fulldev-ui/tailwind'
40
40
 
41
- export default defineConfig({
41
+ export default {
42
42
  plugins: [fulldevUI],
43
+ }
44
+ ```
45
+
46
+ In your `astro.config.ts` add the following:
47
+
48
+ ```ts
49
+ // astro.config.ts
50
+ import tailwind from '@astrojs/tailwind'
51
+
52
+ export default defineConfig({
53
+ integrations: [
54
+ tailwind({
55
+ // Disable injecting styles, import manually instead
56
+ applyBaseStyles: false,
57
+ }),
58
+ ],
43
59
  })
44
60
  ```
45
61
 
46
- Import layers by hand and leave base for what it is, as it will conflict with the layer provided by Fulldev UI.
62
+ Import the css file file below anywhere in your project.
63
+
64
+ ```css
65
+ @tailwind base layer(base);
66
+ @tailwind components;
67
+ @tailwind utilities;
68
+ ```
47
69
 
48
70
  ### UnoCSS
49
71
 
@@ -54,11 +76,12 @@ In your `uno.config.ts` add the following:
54
76
  import fulldevUI from 'fulldev-ui/unocss'
55
77
 
56
78
  export default defineConfig({
79
+ injectReset: false,
57
80
  presets: [fulldevUI],
58
81
  })
59
82
  ```
60
83
 
61
- Do not use `injectReset` when using the UnoCSS preset, as it will conflict with the reset provided by Fulldev UI.
84
+ Do not use `injectReset` when using the UnoCSS preset, as it will conflict with the reset provided by Fulldev UI. If you do want a style reset, be sure to import it in the `base` layer, similar to the TailwindCSS example above.
62
85
 
63
86
  ## Utility classes
64
87