Skip to content

Commit

Permalink
instruct all-property plugin to preserve initial values
Browse files Browse the repository at this point in the history
not preserving adds additional properties to classes. e.g. it extracts color values from variables.
  • Loading branch information
Johannes Weber committed Dec 12, 2023
1 parent ca9b19d commit 0f47084
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/build/tasks/postcss/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ export const postCSSAfterAll = (input: string, filename: string) => {
}),
postcssPresetEnv({
features: {
// Reset only inherited properties, such as color or font-size. Do not reset own properties,
// like display or padding, so we could set them ourselves
'all-property': true,
'all-property': { preserve: true },
},
}),
postCSSIncreaseSpecificity(),
Expand Down

0 comments on commit 0f47084

Please sign in to comment.