Skip to content

Commit

Permalink
Move --container-prose to --max-width-prose (#15439)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
thecrypticace and adamwathan authored Dec 19, 2024
1 parent c9dfe17 commit 7bf11f9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Nothing yet!
### Changed

- 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))

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = `
--container-5xl: 64rem;
--container-6xl: 72rem;
--container-7xl: 80rem;
--container-prose: 65ch;
--text-xs: .75rem;
--text-xs--line-height: calc(1 / .75);
--text-sm: .875rem;
Expand Down
1 change: 0 additions & 1 deletion packages/tailwindcss/src/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ exports[`compiling CSS > \`@tailwind utilities\` is replaced by utilities using
--container-5xl: 64rem;
--container-6xl: 72rem;
--container-7xl: 80rem;
--container-prose: 65ch;
--text-xs: .75rem;
--text-xs--line-height: calc(1 / .75);
--text-sm: .875rem;
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwindcss/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@
--container-5xl: 64rem;
--container-6xl: 72rem;
--container-7xl: 80rem;
--container-prose: 65ch;

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

0 comments on commit 7bf11f9

Please sign in to comment.