Skip to content

Commit cf70939

Browse files
Update blacklist in DEFAULT_OPTIONS to include additional CSS properties in index.js and README.md for improved compatibility and flexibility.
1 parent c46b9d4 commit cf70939

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,18 @@ module.exports = {
3737
require('postcss-size-clamp')({
3838
range: [420, 1620], // default viewport/container range
3939
unit: 'cqw', // default unit (vw, cqw, cqi, cqb, %)
40-
blacklist: ['container-name'] // properties to ignore
40+
blacklist: [ // properties to ignore
41+
'container-name',
42+
'grid-template-areas',
43+
'grid-template',
44+
'grid-area',
45+
'content',
46+
'list-style',
47+
'transition',
48+
'animation',
49+
'transform',
50+
'display'
51+
]
4152
}),
4253
require('postcss-preset-env'),
4354
],

index.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
const DEFAULT_OPTIONS = {
2-
range: [420, 1620],
3-
unit: 'cqw',
4-
blacklist: ['container-name']
2+
range: [420, 1620],
3+
unit: 'cqw',
4+
blacklist: [
5+
'container-name',
6+
'grid-template-areas',
7+
'grid-template',
8+
'grid-area',
9+
'content',
10+
'list-style',
11+
'transition',
12+
'animation',
13+
'transform',
14+
'display'
15+
]
516
};
617

718
const VALID_UNITS = ['vw', 'cqw', 'cqi', 'cqb', '%', '--*'];

0 commit comments

Comments
 (0)