Skip to content

Commit 7bf11f9

Browse files
Move --container-prose to --max-width-prose (tailwindlabs#15439)
We don’t want utilities like `basis-prose`, `w-prose`, etc existing nor a `@prose:*` variant. So we’re moving the theme key to `--max-width-*` to align with the definition as it was in v3. cc @adamwathan --------- Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
1 parent c9dfe17 commit 7bf11f9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
- Nothing yet!
10+
### Changed
11+
12+
- Removed `--container-prose` in favor of a deprecated `--max-width-prose` theme variable so that `*-prose` is only available for max-width utilities and only for backward compatibility ([#15439](https://github.com/tailwindlabs/tailwindcss/pull/15439))
1113

1214
## [4.0.0-beta.8] - 2024-12-17
1315

packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = `
269269
--container-5xl: 64rem;
270270
--container-6xl: 72rem;
271271
--container-7xl: 80rem;
272-
--container-prose: 65ch;
273272
--text-xs: .75rem;
274273
--text-xs--line-height: calc(1 / .75);
275274
--text-sm: .875rem;

packages/tailwindcss/src/__snapshots__/index.test.ts.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ exports[`compiling CSS > \`@tailwind utilities\` is replaced by utilities using
268268
--container-5xl: 64rem;
269269
--container-6xl: 72rem;
270270
--container-7xl: 80rem;
271-
--container-prose: 65ch;
272271
--text-xs: .75rem;
273272
--text-xs--line-height: calc(1 / .75);
274273
--text-sm: .875rem;

packages/tailwindcss/theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@
293293
--container-5xl: 64rem;
294294
--container-6xl: 72rem;
295295
--container-7xl: 80rem;
296-
--container-prose: 65ch;
297296

298297
--text-xs: 0.75rem;
299298
--text-xs--line-height: calc(1 / 0.75);
@@ -448,4 +447,5 @@
448447
--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
449448
--drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06);
450449
--radius: 0.25rem;
450+
--max-width-prose: 65ch;
451451
}

0 commit comments

Comments
 (0)