Add 2xl breakpoint by default

This commit is contained in:
Adam Wathan 2020-10-18 15:12:54 -04:00
parent 322d366440
commit 3259608813
9 changed files with 127736 additions and 13 deletions

View file

@ -477,6 +477,11 @@ test('you can apply the container component', () => {
max-width: 1280px;
}
}
@media (min-width: 1536px) {
.foo {
max-width: 1536px;
}
}
`
expect.assertions(2)

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -26,6 +26,12 @@
}
}
@media (min-width: 1536px) {
.\32xl\:example {
color: red;
}
}
.john {
content: "wick";
}

File diff suppressed because it is too large Load diff

View file

@ -2,6 +2,7 @@ import prettier from 'prettier'
import diff from 'jest-diff'
function format(input) {
return input
return prettier.format(input, {
parser: 'css',
printWidth: 100,

View file

@ -1,11 +0,0 @@
export default {
theme: {
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1536px',
},
},
}

View file

@ -1,6 +1,5 @@
import defaultConfig from '../../stubs/defaultConfig.stub.js'
import { flagEnabled } from '../featureFlags'
import additionalBreakpoint from '../flagged/additionalBreakpoint'
import { flatMap, get } from 'lodash'
export default function getAllConfigs(config, defaultPresets = [defaultConfig]) {
@ -9,7 +8,7 @@ export default function getAllConfigs(config, defaultPresets = [defaultConfig])
})
const features = {
additionalBreakpoint,
// Add experimental configs here...
}
Object.keys(features).forEach((feature) => {

View file

@ -7,6 +7,7 @@ module.exports = {
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1536px',
},
colors: {
transparent: 'transparent',