Skip to content

Commit 16fac7e

Browse files
authored
Adjust font size scale: move 64px to 60px, 80px to 72px (#2619)
* Move 64px to 60px, 80px to 72px * Update changelog
1 parent fd8bacd commit 16fac7e

6 files changed

+51
-50
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2828
- Upgrade to PostCSS 8.0
2929
- Use logical properties for `space` and `divide` utilities ([#1883](https://github.com/tailwindlabs/tailwindcss/pull/1883))
3030
- Support defining theme keys as arrays wherever it makes sense, and make accessing using `theme` retrieve the expected resolved value ([e13f083c4](https://github.com/tailwindlabs/tailwindcss/commit/e13f083c4bc48bf9870d27c966136a9584943127))
31+
- Adjust default font-size scale to include 60px and 72px instead of 64px and 80px ([#2619](https://github.com/tailwindlabs/tailwindcss/pull/2619))
3132

3233
## [1.9.5]
3334

__tests__/fixtures/tailwind-output-flagged.css

+12-12
Original file line numberDiff line numberDiff line change
@@ -15682,12 +15682,12 @@ video {
1568215682
}
1568315683

1568415684
.text-6xl {
15685-
font-size: 4rem;
15685+
font-size: 3.75rem;
1568615686
line-height: 1;
1568715687
}
1568815688

1568915689
.text-7xl {
15690-
font-size: 5rem;
15690+
font-size: 4.5rem;
1569115691
line-height: 1;
1569215692
}
1569315693

@@ -54999,12 +54999,12 @@ video {
5499954999
}
5500055000

5500155001
.sm\:text-6xl {
55002-
font-size: 4rem;
55002+
font-size: 3.75rem;
5500355003
line-height: 1;
5500455004
}
5500555005

5500655006
.sm\:text-7xl {
55007-
font-size: 5rem;
55007+
font-size: 4.5rem;
5500855008
line-height: 1;
5500955009
}
5501055010

@@ -94286,12 +94286,12 @@ video {
9428694286
}
9428794287

9428894288
.md\:text-6xl {
94289-
font-size: 4rem;
94289+
font-size: 3.75rem;
9429094290
line-height: 1;
9429194291
}
9429294292

9429394293
.md\:text-7xl {
94294-
font-size: 5rem;
94294+
font-size: 4.5rem;
9429594295
line-height: 1;
9429694296
}
9429794297

@@ -133573,12 +133573,12 @@ video {
133573133573
}
133574133574

133575133575
.lg\:text-6xl {
133576-
font-size: 4rem;
133576+
font-size: 3.75rem;
133577133577
line-height: 1;
133578133578
}
133579133579

133580133580
.lg\:text-7xl {
133581-
font-size: 5rem;
133581+
font-size: 4.5rem;
133582133582
line-height: 1;
133583133583
}
133584133584

@@ -172860,12 +172860,12 @@ video {
172860172860
}
172861172861

172862172862
.xl\:text-6xl {
172863-
font-size: 4rem;
172863+
font-size: 3.75rem;
172864172864
line-height: 1;
172865172865
}
172866172866

172867172867
.xl\:text-7xl {
172868-
font-size: 5rem;
172868+
font-size: 4.5rem;
172869172869
line-height: 1;
172870172870
}
172871172871

@@ -212147,12 +212147,12 @@ video {
212147212147
}
212148212148

212149212149
.\32xl\:text-6xl {
212150-
font-size: 4rem;
212150+
font-size: 3.75rem;
212151212151
line-height: 1;
212152212152
}
212153212153

212154212154
.\32xl\:text-7xl {
212155-
font-size: 5rem;
212155+
font-size: 4.5rem;
212156212156
line-height: 1;
212157212157
}
212158212158

__tests__/fixtures/tailwind-output-important.css

+12-12
Original file line numberDiff line numberDiff line change
@@ -15682,12 +15682,12 @@ video {
1568215682
}
1568315683

1568415684
.text-6xl {
15685-
font-size: 4rem !important;
15685+
font-size: 3.75rem !important;
1568615686
line-height: 1 !important;
1568715687
}
1568815688

1568915689
.text-7xl {
15690-
font-size: 5rem !important;
15690+
font-size: 4.5rem !important;
1569115691
line-height: 1 !important;
1569215692
}
1569315693

@@ -54999,12 +54999,12 @@ video {
5499954999
}
5500055000

5500155001
.sm\:text-6xl {
55002-
font-size: 4rem !important;
55002+
font-size: 3.75rem !important;
5500355003
line-height: 1 !important;
5500455004
}
5500555005

5500655006
.sm\:text-7xl {
55007-
font-size: 5rem !important;
55007+
font-size: 4.5rem !important;
5500855008
line-height: 1 !important;
5500955009
}
5501055010

@@ -94286,12 +94286,12 @@ video {
9428694286
}
9428794287

9428894288
.md\:text-6xl {
94289-
font-size: 4rem !important;
94289+
font-size: 3.75rem !important;
9429094290
line-height: 1 !important;
9429194291
}
9429294292

9429394293
.md\:text-7xl {
94294-
font-size: 5rem !important;
94294+
font-size: 4.5rem !important;
9429594295
line-height: 1 !important;
9429694296
}
9429794297

@@ -133573,12 +133573,12 @@ video {
133573133573
}
133574133574

133575133575
.lg\:text-6xl {
133576-
font-size: 4rem !important;
133576+
font-size: 3.75rem !important;
133577133577
line-height: 1 !important;
133578133578
}
133579133579

133580133580
.lg\:text-7xl {
133581-
font-size: 5rem !important;
133581+
font-size: 4.5rem !important;
133582133582
line-height: 1 !important;
133583133583
}
133584133584

@@ -172860,12 +172860,12 @@ video {
172860172860
}
172861172861

172862172862
.xl\:text-6xl {
172863-
font-size: 4rem !important;
172863+
font-size: 3.75rem !important;
172864172864
line-height: 1 !important;
172865172865
}
172866172866

172867172867
.xl\:text-7xl {
172868-
font-size: 5rem !important;
172868+
font-size: 4.5rem !important;
172869172869
line-height: 1 !important;
172870172870
}
172871172871

@@ -212147,12 +212147,12 @@ video {
212147212147
}
212148212148

212149212149
.\32xl\:text-6xl {
212150-
font-size: 4rem !important;
212150+
font-size: 3.75rem !important;
212151212151
line-height: 1 !important;
212152212152
}
212153212153

212154212154
.\32xl\:text-7xl {
212155-
font-size: 5rem !important;
212155+
font-size: 4.5rem !important;
212156212156
line-height: 1 !important;
212157212157
}
212158212158

__tests__/fixtures/tailwind-output-no-color-opacity.css

+12-12
Original file line numberDiff line numberDiff line change
@@ -14534,12 +14534,12 @@ video {
1453414534
}
1453514535

1453614536
.text-6xl {
14537-
font-size: 4rem;
14537+
font-size: 3.75rem;
1453814538
line-height: 1;
1453914539
}
1454014540

1454114541
.text-7xl {
14542-
font-size: 5rem;
14542+
font-size: 4.5rem;
1454314543
line-height: 1;
1454414544
}
1454514545

@@ -51883,12 +51883,12 @@ video {
5188351883
}
5188451884

5188551885
.sm\:text-6xl {
51886-
font-size: 4rem;
51886+
font-size: 3.75rem;
5188751887
line-height: 1;
5188851888
}
5188951889

5189051890
.sm\:text-7xl {
51891-
font-size: 5rem;
51891+
font-size: 4.5rem;
5189251892
line-height: 1;
5189351893
}
5189451894

@@ -89202,12 +89202,12 @@ video {
8920289202
}
8920389203

8920489204
.md\:text-6xl {
89205-
font-size: 4rem;
89205+
font-size: 3.75rem;
8920689206
line-height: 1;
8920789207
}
8920889208

8920989209
.md\:text-7xl {
89210-
font-size: 5rem;
89210+
font-size: 4.5rem;
8921189211
line-height: 1;
8921289212
}
8921389213

@@ -126521,12 +126521,12 @@ video {
126521126521
}
126522126522

126523126523
.lg\:text-6xl {
126524-
font-size: 4rem;
126524+
font-size: 3.75rem;
126525126525
line-height: 1;
126526126526
}
126527126527

126528126528
.lg\:text-7xl {
126529-
font-size: 5rem;
126529+
font-size: 4.5rem;
126530126530
line-height: 1;
126531126531
}
126532126532

@@ -163840,12 +163840,12 @@ video {
163840163840
}
163841163841

163842163842
.xl\:text-6xl {
163843-
font-size: 4rem;
163843+
font-size: 3.75rem;
163844163844
line-height: 1;
163845163845
}
163846163846

163847163847
.xl\:text-7xl {
163848-
font-size: 5rem;
163848+
font-size: 4.5rem;
163849163849
line-height: 1;
163850163850
}
163851163851

@@ -201159,12 +201159,12 @@ video {
201159201159
}
201160201160

201161201161
.\32xl\:text-6xl {
201162-
font-size: 4rem;
201162+
font-size: 3.75rem;
201163201163
line-height: 1;
201164201164
}
201165201165

201166201166
.\32xl\:text-7xl {
201167-
font-size: 5rem;
201167+
font-size: 4.5rem;
201168201168
line-height: 1;
201169201169
}
201170201170

__tests__/fixtures/tailwind-output.css

+12-12
Original file line numberDiff line numberDiff line change
@@ -15682,12 +15682,12 @@ video {
1568215682
}
1568315683

1568415684
.text-6xl {
15685-
font-size: 4rem;
15685+
font-size: 3.75rem;
1568615686
line-height: 1;
1568715687
}
1568815688

1568915689
.text-7xl {
15690-
font-size: 5rem;
15690+
font-size: 4.5rem;
1569115691
line-height: 1;
1569215692
}
1569315693

@@ -54999,12 +54999,12 @@ video {
5499954999
}
5500055000

5500155001
.sm\:text-6xl {
55002-
font-size: 4rem;
55002+
font-size: 3.75rem;
5500355003
line-height: 1;
5500455004
}
5500555005

5500655006
.sm\:text-7xl {
55007-
font-size: 5rem;
55007+
font-size: 4.5rem;
5500855008
line-height: 1;
5500955009
}
5501055010

@@ -94286,12 +94286,12 @@ video {
9428694286
}
9428794287

9428894288
.md\:text-6xl {
94289-
font-size: 4rem;
94289+
font-size: 3.75rem;
9429094290
line-height: 1;
9429194291
}
9429294292

9429394293
.md\:text-7xl {
94294-
font-size: 5rem;
94294+
font-size: 4.5rem;
9429594295
line-height: 1;
9429694296
}
9429794297

@@ -133573,12 +133573,12 @@ video {
133573133573
}
133574133574

133575133575
.lg\:text-6xl {
133576-
font-size: 4rem;
133576+
font-size: 3.75rem;
133577133577
line-height: 1;
133578133578
}
133579133579

133580133580
.lg\:text-7xl {
133581-
font-size: 5rem;
133581+
font-size: 4.5rem;
133582133582
line-height: 1;
133583133583
}
133584133584

@@ -172860,12 +172860,12 @@ video {
172860172860
}
172861172861

172862172862
.xl\:text-6xl {
172863-
font-size: 4rem;
172863+
font-size: 3.75rem;
172864172864
line-height: 1;
172865172865
}
172866172866

172867172867
.xl\:text-7xl {
172868-
font-size: 5rem;
172868+
font-size: 4.5rem;
172869172869
line-height: 1;
172870172870
}
172871172871

@@ -212147,12 +212147,12 @@ video {
212147212147
}
212148212148

212149212149
.\32xl\:text-6xl {
212150-
font-size: 4rem;
212150+
font-size: 3.75rem;
212151212151
line-height: 1;
212152212152
}
212153212153

212154212154
.\32xl\:text-7xl {
212155-
font-size: 5rem;
212155+
font-size: 4.5rem;
212156212156
line-height: 1;
212157212157
}
212158212158

stubs/defaultConfig.stub.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ module.exports = {
241241
'3xl': ['1.875rem', { lineHeight: '2.25rem' }],
242242
'4xl': ['2.25rem', { lineHeight: '2.5rem' }],
243243
'5xl': ['3rem', { lineHeight: '1' }],
244-
'6xl': ['4rem', { lineHeight: '1' }],
245-
'7xl': ['5rem', { lineHeight: '1' }],
244+
'6xl': ['3.75rem', { lineHeight: '1' }],
245+
'7xl': ['4.5rem', { lineHeight: '1' }],
246246
'8xl': ['6rem', { lineHeight: '1' }],
247247
'9xl': ['8rem', { lineHeight: '1' }],
248248
},

0 commit comments

Comments
 (0)