Skip to content

Commit

Permalink
Document --breakpoint- usage with rem units (#2108)
Browse files Browse the repository at this point in the history
Follow up to #2107.

Please note there are still instances in of `px` usage in the v4-alpha
and v4 blog posts, wasn't sure whether those should be changed too, or
preserved for prosperity.
  • Loading branch information
wongjn authored Feb 24, 2025
1 parent ab207ce commit 47723e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/docs/adding-custom-styles.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you want to change things like your color palette, spacing scale, typography
@theme {
--font-display: "Satoshi", "sans-serif";

--breakpoint-3xl: 1920px;
--breakpoint-3xl: 120rem;

--color-avocado-100: oklch(0.99 0 0);
--color-avocado-200: oklch(0.98 0.04 113.22);
Expand Down
2 changes: 1 addition & 1 deletion src/docs/functions-and-directives.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Use the `@theme` directive to define your project's custom design tokens, like f
@theme {
--font-display: "Satoshi", "sans-serif";

--breakpoint-3xl: 1920px;
--breakpoint-3xl: 120rem;

--color-avocado-100: oklch(0.99 0 0);
--color-avocado-200: oklch(0.98 0.04 113.22);
Expand Down
4 changes: 2 additions & 2 deletions src/docs/upgrade-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ When using a prefix, you should still configure your theme variables as if you a
@theme {
--font-display: "Satoshi", "sans-serif";

--breakpoint-3xl: 1920px;
--breakpoint-3xl: 120rem;

--color-avocado-100: oklch(0.99 0 0);
--color-avocado-200: oklch(0.98 0.04 113.22);
Expand All @@ -583,7 +583,7 @@ The generated CSS variables _will_ include a prefix to avoid conflicts with any
:root {
--tw-font-display: "Satoshi", "sans-serif";

--tw-breakpoint-3xl: 1920px;
--tw-breakpoint-3xl: 120rem;

--tw-color-avocado-100: oklch(0.99 0 0);
--tw-color-avocado-200: oklch(0.98 0.04 113.22);
Expand Down

0 comments on commit 47723e3

Please sign in to comment.