From 0f4708489f595ba1d0e367442d0c2591f6b8f537 Mon Sep 17 00:00:00 2001 From: Johannes Weber Date: Tue, 12 Dec 2023 14:45:09 +0100 Subject: [PATCH] instruct all-property plugin to preserve initial values not preserving adds additional properties to classes. e.g. it extracts color values from variables. --- src/build/tasks/postcss/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/build/tasks/postcss/index.ts b/src/build/tasks/postcss/index.ts index d947824..0ce9ba6 100644 --- a/src/build/tasks/postcss/index.ts +++ b/src/build/tasks/postcss/index.ts @@ -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(),