Skip to content

Commit 47723e3

Browse files
authored
Document --breakpoint- usage with rem units (#2108)
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.
1 parent ab207ce commit 47723e3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/docs/adding-custom-styles.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ If you want to change things like your color palette, spacing scale, typography
1616
@theme {
1717
--font-display: "Satoshi", "sans-serif";
1818

19-
--breakpoint-3xl: 1920px;
19+
--breakpoint-3xl: 120rem;
2020

2121
--color-avocado-100: oklch(0.99 0 0);
2222
--color-avocado-200: oklch(0.98 0.04 113.22);

src/docs/functions-and-directives.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Use the `@theme` directive to define your project's custom design tokens, like f
2525
@theme {
2626
--font-display: "Satoshi", "sans-serif";
2727

28-
--breakpoint-3xl: 1920px;
28+
--breakpoint-3xl: 120rem;
2929

3030
--color-avocado-100: oklch(0.99 0 0);
3131
--color-avocado-200: oklch(0.98 0.04 113.22);

src/docs/upgrade-guide.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ When using a prefix, you should still configure your theme variables as if you a
567567
@theme {
568568
--font-display: "Satoshi", "sans-serif";
569569

570-
--breakpoint-3xl: 1920px;
570+
--breakpoint-3xl: 120rem;
571571

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

586-
--tw-breakpoint-3xl: 1920px;
586+
--tw-breakpoint-3xl: 120rem;
587587

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

0 commit comments

Comments
 (0)