-
Notifications
You must be signed in to change notification settings - Fork 0
/
.postcssrc.cjs
45 lines (43 loc) · 1.4 KB
/
.postcssrc.cjs
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
35
36
37
38
39
40
41
42
43
44
45
const postcssPresetEnv = require('postcss-preset-env')
const postcssCustomMedia = require('postcss-custom-media');
const postcssGlobalData = require('@csstools/postcss-global-data');
const tailwindcss = require('tailwindcss');
const tailwindcssNesting = require('tailwindcss/nesting');
const postcssUtopia = require('postcss-utopia');
const { min, max } = require('./src/design-tokens/viewports.json');
module.exports = {
plugins: [
postcssPresetEnv({
autoprefixer: false,
stage: 2,
features: {
'logical-properties-and-values': false,
'prefers-color-scheme-query': false,
'gap-properties': false,
'custom-properties': false,
'is-pseudo-class': false,
'focus-within-pseudo-class': false,
'focus-visible-pseudo-class': false,
'color-functional-notation': false,
'cascade-layers': false,
'double-position-gradients': false,
'has-pseudo-class': false,
'place-properties': false,
'media-query-ranges': false,
'custom-media-queries': true,
}
}),
postcssGlobalData({
files: [
'src/css/global/custom-media.css'
]
}),
postcssCustomMedia(),
tailwindcssNesting(),
tailwindcss(),
postcssUtopia({
minWidth: min, // Default minimum viewport based on design tokens
maxWidth: max, // Default maximum viewport based on design tokens
})
]
};