Skip to content

Commit 367d7db

Browse files
committed
add a prefix to every class build-time
1 parent f164bd2 commit 367d7db

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

bun.lockb

429 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"zustand": "5.0.0"
5252
},
5353
"devDependencies": {
54+
"postcss-prefix-selector": "^2.1.0",
5455
"@types/node": "^22.8.4",
5556
"@types/react": "^18.3.12",
5657
"@types/react-dom": "^18.3.1",

postcss.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ module.exports = {
22
plugins: {
33
tailwindcss: {},
44
autoprefixer: {},
5+
"postcss-prefix-selector": {
6+
prefix: ".ups-db",
7+
},
58
},
69
}

src/components/databrowser/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export const RedisBrowser = ({ token, url }: RedisCredentials) => {
2525
<PanelGroup
2626
autoSaveId="persistence"
2727
direction="horizontal"
28-
className="h-full w-full gap-0.5 text-sm antialiased"
28+
// ups-db is the custom class used to prefix every style in the css bundle
29+
className="ups-db h-full w-full gap-0.5 text-sm antialiased"
2930
>
3031
<Panel defaultSize={30} minSize={30}>
3132
<Sidebar />

0 commit comments

Comments
 (0)