diff --git a/.changeset/empty-tips-perform.md b/.changeset/empty-tips-perform.md new file mode 100644 index 0000000000..2fe53879a8 --- /dev/null +++ b/.changeset/empty-tips-perform.md @@ -0,0 +1,5 @@ +--- +"@marigold/theme-core": patch +--- + +refa: remove css scoping diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e5ade07d97..50e77b7fe8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -686,9 +686,6 @@ importers: tailwindcss: specifier: 3.4.1 version: 3.4.1 - tailwindcss-scoped-preflight: - specifier: 2.1.0 - version: 2.1.0(postcss@8.4.35)(tailwindcss@3.4.1) tsup: specifier: 8.0.2 version: 8.0.2(@swc/core@1.4.11(@swc/helpers@0.5.8))(postcss@8.4.35)(typescript@5.3.3) @@ -8454,12 +8451,6 @@ packages: peerDependencies: tailwindcss: '>=3.0.0 || insiders' - tailwindcss-scoped-preflight@2.1.0: - resolution: {integrity: sha512-f+3RZ3nnBh/FhFSoZ8mOC25/N+7bp7AW3odFPq/I2h8lOyBHRuj2z81ZjCZn7uiDsyXcjPX1dXOPOShI9qmSbQ==} - peerDependencies: - postcss: ^8 - tailwindcss: ^3 - tailwindcss@3.4.1: resolution: {integrity: sha512-qAYmXRfk3ENzuPBakNK0SRrUDipP8NQnEY6772uDhflcQz5EhRdD7JNZxyrFHVQNCwULPBn6FNPp9brpO7ctcA==} engines: {node: '>=14.0.0'} @@ -19304,11 +19295,6 @@ snapshots: dependencies: tailwindcss: 3.4.1 - tailwindcss-scoped-preflight@2.1.0(postcss@8.4.35)(tailwindcss@3.4.1): - dependencies: - postcss: 8.4.35 - tailwindcss: 3.4.1 - tailwindcss@3.4.1: dependencies: '@alloc/quick-lru': 5.2.0 diff --git a/themes/theme-core/package.json b/themes/theme-core/package.json index a7bc767dd4..015f685090 100644 --- a/themes/theme-core/package.json +++ b/themes/theme-core/package.json @@ -47,7 +47,6 @@ "cssnano": "6.1.2", "postcss": "8.4.35", "tailwindcss": "3.4.1", - "tailwindcss-scoped-preflight": "2.1.0", "tsup": "8.0.2" }, "dependencies": { diff --git a/themes/theme-core/tailwind.config.ts b/themes/theme-core/tailwind.config.ts index cc65c121e2..488c94a5d1 100644 --- a/themes/theme-core/tailwind.config.ts +++ b/themes/theme-core/tailwind.config.ts @@ -1,11 +1,13 @@ import type { Config } from 'tailwindcss'; -import { scopedPreflightStyles } from 'tailwindcss-scoped-preflight'; import { preset } from './src/preset'; // Figma File: https://www.figma.com/file/RiWJBV4Z8L8ycVvUuMYXbm/%F0%9F%93%93-CR---Components-2022?node-id=1452-1785&t=YaLGVHzniD5mOtbJ-0 export default { important: '[data-theme="core"]', + corePlugins: { + preflight: false, + }, content: [ 'src/root.ts', 'src/colors.ts', @@ -14,12 +16,5 @@ export default { '!../../packages/{components,system}/**/*.{stories,test}.{tsx,ts}', ], presets: [preset], - plugins: [ - scopedPreflightStyles({ - // data-app is defined in core - cssSelector: '[data-app]', - mode: 'matched only', - }), - ], safelist: [{ pattern: /(bg|text|border|shadow)-./ }], } satisfies Config;