diff --git a/packages/orbit-tailwind-preset/src/presets/__tests__/configs.test.ts b/packages/orbit-tailwind-preset/src/presets/__tests__/configs.test.ts index 4c00096d43..98caf02b47 100644 --- a/packages/orbit-tailwind-preset/src/presets/__tests__/configs.test.ts +++ b/packages/orbit-tailwind-preset/src/presets/__tests__/configs.test.ts @@ -4,7 +4,7 @@ import orbitPreset from "../.."; describe("orbitPreset", () => { it("should match snapshot", () => { - const cfg = resolveConfig(orbitPreset()); + const cfg = resolveConfig(orbitPreset({ disablePreflight: true })); expect(cfg).toMatchSnapshot(); expect(cfg.corePlugins).not.toContain("preflight"); }); diff --git a/packages/orbit-tailwind-preset/src/presets/components/index.ts b/packages/orbit-tailwind-preset/src/presets/components/index.ts index de3632e286..a9610795c9 100644 --- a/packages/orbit-tailwind-preset/src/presets/components/index.ts +++ b/packages/orbit-tailwind-preset/src/presets/components/index.ts @@ -76,7 +76,7 @@ const getBackgroundColors = (tokens: typeof defaultTokens) => { }; const cfg = (options?: Options): Config => { - const { disablePreflight = true } = options || {}; + const { disablePreflight = false } = options || {}; // make palette colors (foundation colors) defined as css vars and make components tokens inherit it const tokens = getTokens(cssVarsFoundation); const componentTokens = getComponentLevelTokens(tokens);