Add experimental extendedFontSizeScale
This commit is contained in:
parent
cfb9996edf
commit
aa810673f4
4 changed files with 97 additions and 1 deletions
|
|
@ -7967,6 +7967,21 @@ video {
|
|||
line-height: 1;
|
||||
}
|
||||
|
||||
.text-7xl {
|
||||
font-size: 5rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.text-8xl {
|
||||
font-size: 6rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.text-9xl {
|
||||
font-size: 8rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.leading-3 {
|
||||
line-height: .75rem;
|
||||
}
|
||||
|
|
@ -33029,6 +33044,21 @@ video {
|
|||
line-height: 1;
|
||||
}
|
||||
|
||||
.sm\:text-7xl {
|
||||
font-size: 5rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.sm\:text-8xl {
|
||||
font-size: 6rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.sm\:text-9xl {
|
||||
font-size: 8rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.sm\:leading-3 {
|
||||
line-height: .75rem;
|
||||
}
|
||||
|
|
@ -58061,6 +58091,21 @@ video {
|
|||
line-height: 1;
|
||||
}
|
||||
|
||||
.md\:text-7xl {
|
||||
font-size: 5rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.md\:text-8xl {
|
||||
font-size: 6rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.md\:text-9xl {
|
||||
font-size: 8rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.md\:leading-3 {
|
||||
line-height: .75rem;
|
||||
}
|
||||
|
|
@ -83093,6 +83138,21 @@ video {
|
|||
line-height: 1;
|
||||
}
|
||||
|
||||
.lg\:text-7xl {
|
||||
font-size: 5rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.lg\:text-8xl {
|
||||
font-size: 6rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.lg\:text-9xl {
|
||||
font-size: 8rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.lg\:leading-3 {
|
||||
line-height: .75rem;
|
||||
}
|
||||
|
|
@ -108125,6 +108185,21 @@ video {
|
|||
line-height: 1;
|
||||
}
|
||||
|
||||
.xl\:text-7xl {
|
||||
font-size: 5rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.xl\:text-8xl {
|
||||
font-size: 6rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.xl\:text-9xl {
|
||||
font-size: 8rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.xl\:leading-3 {
|
||||
line-height: .75rem;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,12 @@ import chalk from 'chalk'
|
|||
|
||||
const featureFlags = {
|
||||
future: ['removeDeprecatedGapUtilities'],
|
||||
experimental: ['uniformColorPalette', 'extendedSpacingScale', 'defaultLineHeights'],
|
||||
experimental: [
|
||||
'uniformColorPalette',
|
||||
'extendedSpacingScale',
|
||||
'defaultLineHeights',
|
||||
'extendedFontSizeScale',
|
||||
],
|
||||
}
|
||||
|
||||
export function flagEnabled(config, flag) {
|
||||
|
|
|
|||
11
src/flagged/extendedFontSizeScale.js
Normal file
11
src/flagged/extendedFontSizeScale.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
export default {
|
||||
theme: {
|
||||
extend: {
|
||||
fontSize: {
|
||||
'7xl': ['5rem', { lineHeight: '1' }],
|
||||
'8xl': ['6rem', { lineHeight: '1' }],
|
||||
'9xl': ['8rem', { lineHeight: '1' }],
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -16,6 +16,7 @@ import { flagEnabled } from './featureFlags'
|
|||
import uniformColorPalette from './flagged/uniformColorPalette.js'
|
||||
import extendedSpacingScale from './flagged/extendedSpacingScale.js'
|
||||
import defaultLineHeights from './flagged/defaultLineHeights.js'
|
||||
import extendedFontSizeScale from './flagged/extendedFontSizeScale.js'
|
||||
|
||||
function getDefaultConfigs(config) {
|
||||
const configs = [defaultConfig]
|
||||
|
|
@ -32,6 +33,10 @@ function getDefaultConfigs(config) {
|
|||
configs.unshift(defaultLineHeights)
|
||||
}
|
||||
|
||||
if (flagEnabled(config, 'extendedFontSizeScale')) {
|
||||
configs.unshift(extendedFontSizeScale)
|
||||
}
|
||||
|
||||
return configs
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue