tailwind-preset-mantine 2.0.1 → 2.0.4

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/tailwind-preset-mantine.svg)](https://www.npmjs.com/package/tailwind-preset-mantine)
4
4
 
5
- A Tailwind CSS (v4) preset for seamless integration with Mantine UI (v7) components.
5
+ A [Tailwind CSS (v4)](https://tailwindcss.com/) preset for seamless integration with [Mantine UI (v7)](https://mantine.dev/).
6
6
 
7
7
  ## Compatibility
8
8
 
@@ -62,7 +62,7 @@ Note that you don't have to import tailwind or mantine styles, this preset will
62
62
 
63
63
  > What's `@layer`?
64
64
  >
65
- > Note that here we setup tailwind slightly different from [the official docs](https://arc.net/l/quote/eifghbsm). We use the [CSS `@layer` directive](https://developer.mozilla.org/en-US/docs/Web/CSS/@layer) to control the order of the css. This is because we want to make sure that the mantine styles doesn't get overridden by tailwind reset (tw_base). In this case, the order is `tw_base -> mantine -> tw_components -> tw_utilities`
65
+ > Note that here we setup tailwind slightly different from [the official docs](https://arc.net/l/quote/vtfxbocq). We use the [CSS `@layer` directive](https://developer.mozilla.org/en-US/docs/Web/CSS/@layer) to control the order of the css. This is because we want to make sure that the mantine styles doesn't get overridden by tailwind reset (base). In this case, the order is `theme -> base -> mantine -> components -> utilities`.
66
66
 
67
67
  ### Custom mantine theme
68
68
 
@@ -123,7 +123,7 @@ Options:
123
123
 
124
124
  Here's a minimal template that you can use to get started:
125
125
 
126
- <https://github.com/songkeys/next-app-mantine-tailwind-template/tree/tw4>
126
+ <https://github.com/songkeys/next-app-mantine-tailwind-template>
127
127
 
128
128
  ## License
129
129
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwind-preset-mantine",
3
- "version": "2.0.1",
3
+ "version": "2.0.4",
4
4
  "description": "Integrate Mantine with Tailwind CSS",
5
5
  "keywords": [
6
6
  "mantine",
package/src/cli.js CHANGED
@@ -2,6 +2,7 @@
2
2
  import "tsx";
3
3
  import { writeFile } from "node:fs/promises";
4
4
  import { resolve } from "node:path";
5
+ import { pathToFileURL } from "node:url";
5
6
  import { parseArgs } from "node:util";
6
7
  import { generateTheme } from "./generate.js";
7
8
 
@@ -32,8 +33,11 @@ try {
32
33
  // Read the input theme file
33
34
  const themePath = resolve(pwd, inputFile);
34
35
 
36
+ // Convert file path to URL for ESM import compatibility
37
+ const themeURL = pathToFileURL(themePath);
38
+
35
39
  // Execute the theme file content to get the theme object
36
- const themeModule = await import(themePath);
40
+ const themeModule = await import(themeURL);
37
41
  const theme =
38
42
  themeModule.default?.default ??
39
43
  themeModule.default ??
package/src/generate.js CHANGED
@@ -73,7 +73,6 @@ ${isDefault ? '@custom-variant dark (&:where([data-mantine-color-scheme="dark"],
73
73
  --spacing-md: var(--mantine-spacing-md);
74
74
  --spacing-lg: var(--mantine-spacing-lg);
75
75
  --spacing-xl: var(--mantine-spacing-xl);
76
- --spacing: var(--mantine-spacing-md);
77
76
 
78
77
  /* container */
79
78
  /* TODO: */
package/src/index.css CHANGED
@@ -54,7 +54,6 @@
54
54
  --spacing-md: var(--mantine-spacing-md);
55
55
  --spacing-lg: var(--mantine-spacing-lg);
56
56
  --spacing-xl: var(--mantine-spacing-xl);
57
- --spacing: var(--mantine-spacing-md);
58
57
 
59
58
  /* container */
60
59
  /* TODO: */
package/src/theme.css CHANGED
@@ -46,7 +46,6 @@
46
46
  --spacing-md: var(--mantine-spacing-md);
47
47
  --spacing-lg: var(--mantine-spacing-lg);
48
48
  --spacing-xl: var(--mantine-spacing-xl);
49
- --spacing: var(--mantine-spacing-md);
50
49
 
51
50
  /* container */
52
51
  /* TODO: */