Skip to content

Commit

Permalink
refa: remove css scoping (#3907)
Browse files Browse the repository at this point in the history
* refa: remove css scoping

this is know done inside the Reservix System (see core/main!21472)

* Create empty-tips-perform.md
  • Loading branch information
sebald committed May 8, 2024
1 parent 0a70a2f commit bdd23ec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 23 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-tips-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marigold/theme-core": patch
---

refa: remove css scoping
14 changes: 0 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion themes/theme-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
11 changes: 3 additions & 8 deletions themes/theme-core/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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;

0 comments on commit bdd23ec

Please sign in to comment.