Skip to content

Commit

Permalink
chore(tailwind): set disablePreflight to false by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev committed Dec 19, 2023
1 parent 1b1444c commit 0b7f380
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0b7f380

Please sign in to comment.