tailwind-preset-mantine 3.0.3 → 4.0.0-alpha.0

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,15 +2,15 @@
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)](https://tailwindcss.com/) preset for seamless integration with [Mantine UI (v7 or v8)](https://mantine.dev/).
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
 
9
9
  | Tailwind CSS Version | Mantine Version | Preset Version |
10
- |---------------------|-----------------|----------------|
11
- | v4 | v7 or v8 | v3 (current) |
12
- | v4 | v7 or v8 | v2 |
13
- | v3 | v7 or v8 | ([v1](https://github.com/songkeys/tailwind-preset-mantine/tree/v1))* |
10
+ |----------------------|-----------------|----------------|
11
+ | v4 | v7 or v8 or v9 | v3 (current) |
12
+ | v4 | v7 or v8 | v2 |
13
+ | v3 | v7 or v8 | [v1]* |
14
14
 
15
15
  *Note: you can still use v1 for Tailwind CSS V4 via [`@config`](https://tailwindcss.com/docs/upgrade-guide#using-a-javascript-config-file) directive.
16
16
 
@@ -131,3 +131,5 @@ Here's a minimal template that you can use to get started:
131
131
  ## License
132
132
 
133
133
  MIT
134
+
135
+ [v1]: https://github.com/songkeys/tailwind-preset-mantine/tree/v1
package/package.json CHANGED
@@ -1,51 +1,52 @@
1
1
  {
2
- "name": "tailwind-preset-mantine",
3
- "version": "3.0.3",
4
- "description": "Integrate Mantine with Tailwind CSS",
5
- "keywords": [
6
- "mantine",
7
- "tailwind",
8
- "preset"
9
- ],
10
- "homepage": "https://github.com/songkeys/tailwind-preset-mantine#readme",
11
- "bugs": {
12
- "url": "https://github.com/songkeys/tailwind-preset-mantine/issues"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "git+https://github.com/songkeys/tailwind-preset-mantine.git"
17
- },
18
- "license": "MIT",
19
- "author": "Songkeys",
20
- "type": "module",
21
- "exports": {
22
- ".": "./src/index.css",
23
- "./theme.css": "./src/theme.css"
24
- },
25
- "main": "src/index.css",
26
- "bin": {
27
- "tailwind-preset-mantine": "./src/cli.js"
28
- },
29
- "files": [
30
- "src"
31
- ],
32
- "dependencies": {
33
- "tsx": "^4.20.6"
34
- },
35
- "devDependencies": {
36
- "@biomejs/biome": "^2.3.0",
37
- "@mantine/core": "^8.3.5",
38
- "bumpp": "^10.3.1"
39
- },
40
- "peerDependencies": {
41
- "@mantine/core": "^7 || ^8",
42
- "tailwindcss": "^4"
43
- },
44
- "scripts": {
45
- "generate": "node scripts/generate.js",
46
- "lint": "biome check .",
47
- "lint:fix": "biome check . --write",
48
- "release": "bumpp",
49
- "test": "node --test"
50
- }
51
- }
2
+ "name": "tailwind-preset-mantine",
3
+ "version": "4.0.0-alpha.0",
4
+ "description": "Integrate Mantine with Tailwind CSS",
5
+ "keywords": [
6
+ "mantine",
7
+ "tailwind",
8
+ "preset"
9
+ ],
10
+ "homepage": "https://github.com/songkeys/tailwind-preset-mantine#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/songkeys/tailwind-preset-mantine/issues"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/songkeys/tailwind-preset-mantine.git"
17
+ },
18
+ "license": "MIT",
19
+ "author": "Songkeys",
20
+ "type": "module",
21
+ "exports": {
22
+ ".": "./src/index.css",
23
+ "./theme.css": "./src/theme.css"
24
+ },
25
+ "main": "src/index.css",
26
+ "bin": {
27
+ "tailwind-preset-mantine": "src/cli.js"
28
+ },
29
+ "files": [
30
+ "src"
31
+ ],
32
+ "scripts": {
33
+ "generate": "node scripts/generate.js",
34
+ "lint": "biome check .",
35
+ "lint:fix": "biome check . --write",
36
+ "release": "bumpp",
37
+ "test": "node --test"
38
+ },
39
+ "dependencies": {
40
+ "tsx": "^4.21.0"
41
+ },
42
+ "devDependencies": {
43
+ "@biomejs/biome": "^2.4.10",
44
+ "@mantine/core": "^9",
45
+ "bumpp": "^11.0.1"
46
+ },
47
+ "peerDependencies": {
48
+ "@mantine/core": "^7 || ^7 || ^9",
49
+ "tailwindcss": "^4"
50
+ },
51
+ "packageManager": "pnpm@10.33.0"
52
+ }
package/src/generate.js CHANGED
@@ -3,7 +3,24 @@
3
3
  // https://github.com/mantinedev/mantine/blob/master/packages/%40mantine/core/src/core/MantineProvider/MantineCssVariables/get-css-color-variables.ts
4
4
  // https://tailwindcss.com/docs/theme#default-theme-variable-reference
5
5
 
6
- import { DEFAULT_THEME } from "@mantine/core";
6
+ import { DEFAULT_THEME, mergeMantineTheme } from "@mantine/core";
7
+
8
+ const COLOR_STEPS = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900];
9
+ const DEFAULT_CONTAINER_SIZES = [
10
+ ["3xs", "16rem"],
11
+ ["2xs", "18rem"],
12
+ ["xs", "20rem"],
13
+ ["sm", "24rem"],
14
+ ["md", "28rem"],
15
+ ["lg", "32rem"],
16
+ ["xl", "36rem"],
17
+ ["2xl", "42rem"],
18
+ ["3xl", "48rem"],
19
+ ["4xl", "56rem"],
20
+ ["5xl", "64rem"],
21
+ ["6xl", "72rem"],
22
+ ["7xl", "80rem"],
23
+ ];
7
24
 
8
25
  export function generateDefaultImports() {
9
26
  return `/** This file is autogenerated by the script. Do not edit it manually. */
@@ -20,46 +37,54 @@ export function generateDefaultImports() {
20
37
  * @param {import("@mantine/core").MantineTheme} theme
21
38
  */
22
39
  export function generateTheme(theme = DEFAULT_THEME) {
23
- // check if the object is deeply equal to DEFAULT_THEME
24
40
  const isDefault = JSON.stringify(theme) === JSON.stringify(DEFAULT_THEME);
41
+ const mergedTheme = mergeMantineTheme(DEFAULT_THEME, theme);
42
+
43
+ const colorKeys = Object.keys(mergedTheme.colors ?? {});
44
+ const spacingKeys = Object.keys(mergedTheme.spacing ?? {});
45
+ const fontSizeKeys = Object.keys(mergedTheme.fontSizes ?? {});
46
+ const lineHeightKeys = Object.keys(mergedTheme.lineHeights ?? {});
47
+ const fontWeightKeys = Object.keys(mergedTheme.fontWeights ?? {});
48
+ const radiusKeys = Object.keys(mergedTheme.radius ?? {});
49
+ const shadowKeys = Object.keys(mergedTheme.shadows ?? {});
50
+ const headingKeys = Object.keys(mergedTheme.headings?.sizes ?? {});
51
+ const breakpointEntries = Object.entries(mergedTheme.breakpoints ?? {});
52
+ const primaryColor = mergedTheme.primaryColor;
53
+ const defaultShadowKey = shadowKeys.includes("xs")
54
+ ? "xs"
55
+ : (shadowKeys[0] ?? "xs");
56
+ const darkVariant = isDefault
57
+ ? `@custom-variant dark (&:where(
58
+ [data-mantine-color-scheme="dark"],
59
+ [data-mantine-color-scheme="dark"] *
60
+ ));`
61
+ : "";
25
62
 
26
63
  return `/** This file is autogenerated by the script. Do not edit it manually. */
27
- ${
28
- isDefault
29
- ? '@custom-variant dark (&:where([data-mantine-color-scheme="dark"], [data-mantine-color-scheme="dark"] *));'
30
- : ""
31
- }
64
+ ${darkVariant}
32
65
 
33
- @theme {
34
- ${
35
- isDefault
36
- ? `
66
+ @theme inline {
37
67
  /* font */
38
68
  --font-sans: var(--mantine-font-family);
39
69
  --font-mono: var(--mantine-font-family-monospace);
40
70
  --font-headings: var(--mantine-font-family-headings);
41
71
 
42
72
  /* colors - primary */
43
- --color-primary-50: var(--mantine-primary-color-0);
44
- --color-primary-100: var(--mantine-primary-color-1);
45
- --color-primary-200: var(--mantine-primary-color-2);
46
- --color-primary-300: var(--mantine-primary-color-3);
47
- --color-primary-400: var(--mantine-primary-color-4);
48
- --color-primary-500: var(--mantine-primary-color-5);
49
- --color-primary-600: var(--mantine-primary-color-6);
50
- --color-primary-700: var(--mantine-primary-color-7);
51
- --color-primary-800: var(--mantine-primary-color-8);
52
- --color-primary-900: var(--mantine-primary-color-9);
73
+ ${COLOR_STEPS.map(
74
+ (step, index) =>
75
+ `--color-primary-${step}: var(--mantine-primary-color-${index});`,
76
+ ).join("\n\t")}
53
77
  --color-primary: var(--mantine-primary-color-filled);
54
78
 
55
- /* colors - variant specific primary */
79
+ /* colors - primary variants */
80
+ --color-primary-text: var(--mantine-color-${primaryColor}-text);
56
81
  --color-primary-filled: var(--mantine-primary-color-filled);
57
82
  --color-primary-filled-hover: var(--mantine-primary-color-filled-hover);
58
83
  --color-primary-light: var(--mantine-primary-color-light);
59
84
  --color-primary-light-hover: var(--mantine-primary-color-light-hover);
60
85
  --color-primary-light-color: var(--mantine-primary-color-light-color);
61
- --color-primary-outline: var(--mantine-primary-color-outline);
62
- --color-primary-outline-hover: var(--mantine-primary-color-outline-hover);
86
+ --color-primary-outline: var(--mantine-color-${primaryColor}-outline);
87
+ --color-primary-outline-hover: var(--mantine-color-${primaryColor}-outline-hover);
63
88
  --color-primary-contrast: var(--mantine-primary-color-contrast);
64
89
 
65
90
  /* colors - others */
@@ -80,98 +105,20 @@ ${
80
105
  --color-disabled-color: var(--mantine-color-disabled-color);
81
106
  --color-disabled-border: var(--mantine-color-disabled-border);
82
107
 
83
- /* spacing */
84
- --spacing-xs: var(--mantine-spacing-xs);
85
- --spacing-sm: var(--mantine-spacing-sm);
86
- --spacing-md: var(--mantine-spacing-md);
87
- --spacing-lg: var(--mantine-spacing-lg);
88
- --spacing-xl: var(--mantine-spacing-xl);
89
-
90
- /* font size */
91
- --text-xs: var(--mantine-font-size-xs);
92
- --text-sm: var(--mantine-font-size-sm);
93
- --text-md: var(--mantine-font-size-md);
94
- --text-lg: var(--mantine-font-size-lg);
95
- --text-xl: var(--mantine-font-size-xl);
96
- --text-h1: var(--mantine-h1-font-size);
97
- --text-h2: var(--mantine-h2-font-size);
98
- --text-h3: var(--mantine-h3-font-size);
99
- --text-h4: var(--mantine-h4-font-size);
100
- --text-h5: var(--mantine-h5-font-size);
101
- --text-h6: var(--mantine-h6-font-size);
102
- --text-base: var(--mantine-font-size-md);
103
-
104
- /* line height */
105
- --text-xs--line-height: var(--mantine-line-height-xs);
106
- --text-sm--line-height: var(--mantine-line-height-sm);
107
- --text-md--line-height: var(--mantine-line-height-md);
108
- --text-lg--line-height: var(--mantine-line-height-lg);
109
- --text-xl--line-height: var(--mantine-line-height-xl);
110
- --text-h1--line-height: var(--mantine-h1-line-height);
111
- --text-h2--line-height: var(--mantine-h2-line-height);
112
- --text-h3--line-height: var(--mantine-h3-line-height);
113
- --text-h4--line-height: var(--mantine-h4-line-height);
114
- --text-h5--line-height: var(--mantine-h5-line-height);
115
- --text-h6--line-height: var(--mantine-h6-line-height);
116
- --text-base--line-height: var(--mantine-line-height-md);
117
- --text-heading--line-height: var(--mantine-heading-line-height);
118
- --text-base--line-height: var(--mantine-line-height);
119
-
120
- /* font weight */
121
- --font-weight-h1: var(--mantine-h1-font-weight);
122
- --font-weight-h2: var(--mantine-h2-font-weight);
123
- --font-weight-h3: var(--mantine-h3-font-weight);
124
- --font-weight-h4: var(--mantine-h4-font-weight);
125
- --font-weight-h5: var(--mantine-h5-font-weight);
126
- --font-weight-h6: var(--mantine-h6-font-weight);
127
-
128
- /* border radius */
129
- --radius-xs: var(--mantine-radius-xs);
130
- --radius-sm: var(--mantine-radius-sm);
131
- --radius-md: var(--mantine-radius-md);
132
- --radius-lg: var(--mantine-radius-lg);
133
- --radius-xl: var(--mantine-radius-xl);
134
- --radius: var(--mantine-radius-default);
135
-
136
- /* shadow */
137
- --shadow-xs: var(--mantine-shadow-xs);
138
- --shadow-sm: var(--mantine-shadow-sm);
139
- --shadow-md: var(--mantine-shadow-md);
140
- --shadow-lg: var(--mantine-shadow-lg);
141
- --shadow-xl: var(--mantine-shadow-xl);
142
- --shadow: var(--mantine-shadow-xs);
143
-
144
- /* z-index */
145
- --z-index-app: var(--mantine-z-index-app);
146
- --z-index-modal: var(--mantine-z-index-modal);
147
- --z-index-popover: var(--mantine-z-index-popover);
148
- --z-index-overlay: var(--mantine-z-index-overlay);
149
- --z-index-max: var(--mantine-z-index-max);
150
- `.trimEnd()
151
- : ""
152
- }
153
-
154
108
  /* colors - all */
155
- ${Object.keys(theme.colors ?? {})
109
+ ${colorKeys
156
110
  .map((key) =>
157
111
  `
158
- --color-${key}-50: var(--mantine-color-${key}-0);
159
- --color-${key}-100: var(--mantine-color-${key}-1);
160
- --color-${key}-200: var(--mantine-color-${key}-2);
161
- --color-${key}-300: var(--mantine-color-${key}-3);
162
- --color-${key}-400: var(--mantine-color-${key}-4);
163
- --color-${key}-500: var(--mantine-color-${key}-5);
164
- --color-${key}-600: var(--mantine-color-${key}-6);
165
- --color-${key}-700: var(--mantine-color-${key}-7);
166
- --color-${key}-800: var(--mantine-color-${key}-8);
167
- --color-${key}-900: var(--mantine-color-${key}-9);
168
- --color-${key}: var(--mantine-color-${key}-filled);
169
- `.trimEnd(),
112
+ ${COLOR_STEPS.map(
113
+ (step, index) =>
114
+ `--color-${key}-${step}: var(--mantine-color-${key}-${index});`,
115
+ ).join("\n\t")}
116
+ --color-${key}: var(--mantine-color-${key}-filled);`.trim(),
170
117
  )
171
- .join("\n")}
118
+ .join("\n\t")}
172
119
 
173
- /* colors - variant specific */
174
- ${Object.keys(theme.colors ?? {})
120
+ /* colors - variants */
121
+ ${colorKeys
175
122
  .map((key) =>
176
123
  `
177
124
  --color-${key}-text: var(--mantine-color-${key}-text);
@@ -182,131 +129,90 @@ ${
182
129
  --color-${key}-light-color: var(--mantine-color-${key}-light-color);
183
130
  --color-${key}-outline: var(--mantine-color-${key}-outline);
184
131
  --color-${key}-outline-hover: var(--mantine-color-${key}-outline-hover);
185
- `.trimEnd(),
132
+ --color-${key}-contrast: var(--mantine-color-${key}-contrast);`.trim(),
186
133
  )
187
- .join("\n")}
188
-
189
- /* breakpoints */
190
- ${theme.breakpoints ? "--breakpoint-*: initial;" : ""}
191
- ${Object.entries(theme.breakpoints ?? {})
192
- .map(([key, value]) =>
193
- `--breakpoint-${key}: ${value};
194
- `.trimEnd(),
195
- )
196
- .join("\n")}
134
+ .join("\n\t")}
197
135
 
198
- /* read back tailwind's default containers vars to fix #24 */
199
- --size-3xs: 16rem;
200
- --size-2xs: 18rem;
201
- --size-xs: 20rem;
202
- --size-sm: 24rem;
203
- --size-md: 28rem;
204
- --size-lg: 32rem;
205
- --size-xl: 36rem;
206
- --size-2xl: 42rem;
207
- --size-3xl: 48rem;
208
- --size-4xl: 56rem;
209
- --size-5xl: 64rem;
210
- --size-6xl: 72rem;
211
- --size-7xl: 80rem;
136
+ /* spacing */
137
+ ${spacingKeys
138
+ .map((key) => `--spacing-${key}: var(--mantine-spacing-${key});`)
139
+ .join("\n\t")}
212
140
 
213
- --container-3xs: var(--size-3xs);
214
- --container-2xs: var(--size-2xs);
215
- --container-xs: var(--size-xs);
216
- --container-sm: var(--size-sm);
217
- --container-md: var(--size-md);
218
- --container-lg: var(--size-lg);
219
- --container-xl: var(--size-xl);
220
- --container-2xl: var(--size-2xl);
221
- --container-3xl: var(--size-3xl);
222
- --container-4xl: var(--size-4xl);
223
- --container-5xl: var(--size-5xl);
224
- --container-6xl: var(--size-6xl);
225
- --container-7xl: var(--size-7xl);
141
+ /* font size */
142
+ ${fontSizeKeys
143
+ .map((key) => `--text-${key}: var(--mantine-font-size-${key});`)
144
+ .join("\n\t")}
145
+ ${headingKeys
146
+ .map((key) => `--text-${key}: var(--mantine-${key}-font-size);`)
147
+ .join("\n\t")}
148
+ --text-base: var(--mantine-font-size-md);
226
149
 
227
- --width-3xs: var(--size-3xs);
228
- --width-2xs: var(--size-2xs);
229
- --width-xs: var(--size-xs);
230
- --width-sm: var(--size-sm);
231
- --width-md: var(--size-md);
232
- --width-lg: var(--size-lg);
233
- --width-xl: var(--size-xl);
234
- --width-2xl: var(--size-2xl);
235
- --width-3xl: var(--size-3xl);
236
- --width-4xl: var(--size-4xl);
237
- --width-5xl: var(--size-5xl);
238
- --width-6xl: var(--size-6xl);
239
- --width-7xl: var(--size-7xl);
150
+ /* line height */
151
+ ${lineHeightKeys
152
+ .map(
153
+ (key) => `--text-${key}--line-height: var(--mantine-line-height-${key});`,
154
+ )
155
+ .join("\n\t")}
156
+ ${headingKeys
157
+ .map(
158
+ (key) => `--text-${key}--line-height: var(--mantine-${key}-line-height);`,
159
+ )
160
+ .join("\n\t")}
161
+ --text-base--line-height: var(--mantine-line-height);
240
162
 
241
- --min-width-3xs: var(--size-3xs);
242
- --min-width-2xs: var(--size-2xs);
243
- --min-width-xs: var(--size-xs);
244
- --min-width-sm: var(--size-sm);
245
- --min-width-md: var(--size-md);
246
- --min-width-lg: var(--size-lg);
247
- --min-width-xl: var(--size-xl);
248
- --min-width-2xl: var(--size-2xl);
249
- --min-width-3xl: var(--size-3xl);
250
- --min-width-4xl: var(--size-4xl);
251
- --min-width-5xl: var(--size-5xl);
252
- --min-width-6xl: var(--size-6xl);
253
- --min-width-7xl: var(--size-7xl);
163
+ /* font weight */
164
+ ${fontWeightKeys
165
+ .map((key) => `--font-weight-${key}: var(--mantine-font-weight-${key});`)
166
+ .join("\n\t")}
167
+ ${headingKeys
168
+ .map((key) => `--font-weight-${key}: var(--mantine-${key}-font-weight);`)
169
+ .join("\n\t")}
170
+ --font-weight-heading: var(--mantine-heading-font-weight);
254
171
 
255
- --max-width-3xs: var(--size-3xs);
256
- --max-width-2xs: var(--size-2xs);
257
- --max-width-xs: var(--size-xs);
258
- --max-width-sm: var(--size-sm);
259
- --max-width-md: var(--size-md);
260
- --max-width-lg: var(--size-lg);
261
- --max-width-xl: var(--size-xl);
262
- --max-width-2xl: var(--size-2xl);
263
- --max-width-3xl: var(--size-3xl);
264
- --max-width-4xl: var(--size-4xl);
265
- --max-width-5xl: var(--size-5xl);
266
- --max-width-6xl: var(--size-6xl);
267
- --max-width-7xl: var(--size-7xl);
172
+ /* border radius */
173
+ ${radiusKeys
174
+ .map((key) => `--radius-${key}: var(--mantine-radius-${key});`)
175
+ .join("\n\t")}
176
+ --radius: var(--mantine-radius-default);
268
177
 
269
- --height-3xs: var(--size-3xs);
270
- --height-2xs: var(--size-2xs);
271
- --height-xs: var(--size-xs);
272
- --height-sm: var(--size-sm);
273
- --height-md: var(--size-md);
274
- --height-lg: var(--size-lg);
275
- --height-xl: var(--size-xl);
276
- --height-2xl: var(--size-2xl);
277
- --height-3xl: var(--size-3xl);
278
- --height-4xl: var(--size-4xl);
279
- --height-5xl: var(--size-5xl);
280
- --height-6xl: var(--size-6xl);
281
- --height-7xl: var(--size-7xl);
178
+ /* shadow */
179
+ ${shadowKeys
180
+ .map((key) => `--shadow-${key}: var(--mantine-shadow-${key});`)
181
+ .join("\n\t")}
182
+ --shadow: var(--mantine-shadow-${defaultShadowKey});
282
183
 
283
- --min-height-3xs: var(--size-3xs);
284
- --min-height-2xs: var(--size-2xs);
285
- --min-height-xs: var(--size-xs);
286
- --min-height-sm: var(--size-sm);
287
- --min-height-md: var(--size-md);
288
- --min-height-lg: var(--size-lg);
289
- --min-height-xl: var(--size-xl);
290
- --min-height-2xl: var(--size-2xl);
291
- --min-height-3xl: var(--size-3xl);
292
- --min-height-4xl: var(--size-4xl);
293
- --min-height-5xl: var(--size-5xl);
294
- --min-height-6xl: var(--size-6xl);
295
- --min-height-7xl: var(--size-7xl);
184
+ /* z-index */
185
+ --z-index-app: var(--mantine-z-index-app);
186
+ --z-index-modal: var(--mantine-z-index-modal);
187
+ --z-index-popover: var(--mantine-z-index-popover);
188
+ --z-index-overlay: var(--mantine-z-index-overlay);
189
+ --z-index-max: var(--mantine-z-index-max);
296
190
 
297
- --max-height-3xs: var(--size-3xs);
298
- --max-height-2xs: var(--size-2xs);
299
- --max-height-xs: var(--size-xs);
300
- --max-height-sm: var(--size-sm);
301
- --max-height-md: var(--size-md);
302
- --max-height-lg: var(--size-lg);
303
- --max-height-xl: var(--size-xl);
304
- --max-height-2xl: var(--size-2xl);
305
- --max-height-3xl: var(--size-3xl);
306
- --max-height-4xl: var(--size-4xl);
307
- --max-height-5xl: var(--size-5xl);
308
- --max-height-6xl: var(--size-6xl);
309
- --max-height-7xl: var(--size-7xl);
191
+ /* breakpoints */
192
+ ${breakpointEntries.length > 0 ? "--breakpoint-*: initial;" : ""}
193
+ ${breakpointEntries
194
+ .map(([key, value]) => `--breakpoint-${key}: ${value};`)
195
+ .join("\n\t")}
196
+
197
+ /* restore Tailwind container and sizing defaults */
198
+ ${DEFAULT_CONTAINER_SIZES.map(
199
+ ([key, value]) => `--size-${key}: ${value};`,
200
+ ).join("\n\t")}
201
+ ${DEFAULT_CONTAINER_SIZES.map(
202
+ ([key]) => `--container-${key}: var(--size-${key});`,
203
+ ).join("\n\t")}
204
+ ${DEFAULT_CONTAINER_SIZES.map(
205
+ ([key]) => `--width-${key}: var(--size-${key});`,
206
+ ).join("\n\t")}
207
+ ${DEFAULT_CONTAINER_SIZES.map(
208
+ ([key]) => `--min-width-${key}: var(--size-${key});`,
209
+ ).join("\n\t")}
210
+ ${DEFAULT_CONTAINER_SIZES.map(
211
+ ([key]) => `--max-width-${key}: var(--size-${key});`,
212
+ ).join("\n\t")}
213
+ ${DEFAULT_CONTAINER_SIZES.map(
214
+ ([key]) => `--flex-basis-${key}: var(--size-${key});`,
215
+ ).join("\n\t")}
310
216
  }
311
217
  `;
312
218
  }