tailwind-preset-mantine 2.0.3 → 2.0.5

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 CHANGED
@@ -11,7 +11,7 @@ A [Tailwind CSS (v4)](https://tailwindcss.com/) preset for seamless integration
11
11
  | v4 | v7 | v2 (current) |
12
12
  | v3 | v7 | ([v1](https://github.com/songkeys/tailwind-preset-mantine/tree/v1))* |
13
13
 
14
- *Note: you can still use v1 for Tailwind CSS via [`@config`](https://tailwindcss.com/docs/upgrade-guide#using-a-javascript-config-file) directive.
14
+ *Note: you can still use v1 for Tailwind CSS V4 via [`@config`](https://tailwindcss.com/docs/upgrade-guide#using-a-javascript-config-file) directive.
15
15
 
16
16
  ## Installation
17
17
 
@@ -19,13 +19,15 @@ A [Tailwind CSS (v4)](https://tailwindcss.com/) preset for seamless integration
19
19
  npm install tailwind-preset-mantine
20
20
  ```
21
21
 
22
+ Refer to [Tailwind Installation](https://tailwindcss.com/docs/installation/) for the rest of requirements to install tailwind depends on your project setup or framework.
23
+
22
24
  ## Usage
23
25
 
24
26
  ### Default mantine theme
25
27
 
26
28
  1. All-in-one import (recommended)
27
29
 
28
- To use the preset in your Tailwind CSS configuration, add it to the css file:
30
+ When importing the styles, instead of importing the tailwind css file, importing this preset in the css file:
29
31
 
30
32
  ```css
31
33
  @import "tailwind-preset-mantine";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwind-preset-mantine",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "Integrate Mantine with Tailwind CSS",
5
5
  "keywords": [
6
6
  "mantine",
package/src/generate.js CHANGED
@@ -5,8 +5,7 @@
5
5
  import { DEFAULT_THEME } from "@mantine/core";
6
6
 
7
7
  export function generateDefaultImports() {
8
- return `
9
- /** This file is autogenerated by the script. Do not edit it manually. */
8
+ return `/** This file is autogenerated by the script. Do not edit it manually. */
10
9
  @layer theme, base, mantine, components, utilities;
11
10
  @import "tailwindcss/theme.css" layer(theme);
12
11
  @import "tailwindcss/preflight.css" layer(base);
@@ -23,8 +22,7 @@ export function generateTheme(theme = DEFAULT_THEME) {
23
22
  // check if the object is deeply equal to DEFAULT_THEME
24
23
  const isDefault = JSON.stringify(theme) === JSON.stringify(DEFAULT_THEME);
25
24
 
26
- return `
27
- /** This file is autogenerated by the script. Do not edit it manually. */
25
+ return `/** This file is autogenerated by the script. Do not edit it manually. */
28
26
  ${isDefault ? '@custom-variant dark (&:where([data-mantine-color-scheme="dark"], [data-mantine-color-scheme="dark"] *));' : ""}
29
27
 
30
28
  @theme {
@@ -73,7 +71,6 @@ ${isDefault ? '@custom-variant dark (&:where([data-mantine-color-scheme="dark"],
73
71
  --spacing-md: var(--mantine-spacing-md);
74
72
  --spacing-lg: var(--mantine-spacing-lg);
75
73
  --spacing-xl: var(--mantine-spacing-xl);
76
- --spacing: var(--mantine-spacing-md);
77
74
 
78
75
  /* container */
79
76
  /* TODO: */
@@ -177,6 +174,7 @@ ${isDefault ? '@custom-variant dark (&:where([data-mantine-color-scheme="dark"],
177
174
  .join("\n")}
178
175
 
179
176
  /* breakpoints */
177
+ ${theme.breakpoints ? "--breakpoint-*: initial;" : ""}
180
178
  ${Object.entries(theme.breakpoints ?? {})
181
179
  .map(([key, value]) =>
182
180
  `
package/src/index.css CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  /** This file is autogenerated by the script. Do not edit it manually. */
3
2
  @layer theme, base, mantine, components, utilities;
4
3
  @import "tailwindcss/theme.css" layer(theme);
@@ -6,7 +5,6 @@
6
5
  @import "tailwindcss/utilities.css" layer(utilities);
7
6
 
8
7
  @import "@mantine/core/styles.layer.css";
9
-
10
8
  /** This file is autogenerated by the script. Do not edit it manually. */
11
9
  @custom-variant dark (&:where([data-mantine-color-scheme="dark"], [data-mantine-color-scheme="dark"] *));
12
10
 
@@ -54,7 +52,6 @@
54
52
  --spacing-md: var(--mantine-spacing-md);
55
53
  --spacing-lg: var(--mantine-spacing-lg);
56
54
  --spacing-xl: var(--mantine-spacing-xl);
57
- --spacing: var(--mantine-spacing-md);
58
55
 
59
56
  /* container */
60
57
  /* TODO: */
@@ -405,6 +402,7 @@
405
402
  --color-orange-outline-hover: var(--mantine-color-orange-outline-hover);
406
403
 
407
404
  /* breakpoints */
405
+ --breakpoint-*: initial;
408
406
 
409
407
  --breakpoint-xs: 36em;
410
408
 
package/src/theme.css CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  /** This file is autogenerated by the script. Do not edit it manually. */
3
2
  @custom-variant dark (&:where([data-mantine-color-scheme="dark"], [data-mantine-color-scheme="dark"] *));
4
3
 
@@ -46,7 +45,6 @@
46
45
  --spacing-md: var(--mantine-spacing-md);
47
46
  --spacing-lg: var(--mantine-spacing-lg);
48
47
  --spacing-xl: var(--mantine-spacing-xl);
49
- --spacing: var(--mantine-spacing-md);
50
48
 
51
49
  /* container */
52
50
  /* TODO: */
@@ -397,6 +395,7 @@
397
395
  --color-orange-outline-hover: var(--mantine-color-orange-outline-hover);
398
396
 
399
397
  /* breakpoints */
398
+ --breakpoint-*: initial;
400
399
 
401
400
  --breakpoint-xs: 36em;
402
401