-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpostcss.config.js
More file actions
34 lines (33 loc) · 1.05 KB
/
postcss.config.js
File metadata and controls
34 lines (33 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/** @type {import('postcss-load-config').Config} */
export default {
plugins: {
'postcss-flexbugs-fixes': {},
// This plugin adds the fluid function to CSS, which can be used to generate fluid
// sizes for type and spacing in a more readable way. A fluid size will adapt itself
// to the current viewport without the need for a media query.
//
// You can find more on this approach here:
// https://utopia.fyi/blog/designing-with-fluid-type-scales
'@lehoczky/postcss-fluid': {
min: 360,
max: 1600,
},
// This is used to make the custom media queries available in all
// CSS files, so postcss-custom-media can use them.
// TODO: Research if there is a better way to handle this
'@csstools/postcss-global-data': {
files: ['./src/app/_styles/breakpoints.css'],
},
'postcss-preset-env': {
preserve: false,
autoprefixer: {
flexbox: 'no-2009',
},
stage: 3,
features: {
'custom-properties': false,
'custom-media-queries': true,
},
},
},
};