Skip to content

Commit a4ab511

Browse files
committed
Try to fix tailwind hijacking issues
1 parent d8ef015 commit a4ab511

File tree

2 files changed

+65
-62
lines changed

2 files changed

+65
-62
lines changed

src/index.css

Lines changed: 63 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -2,80 +2,82 @@
22
@tailwind components;
33
@tailwind utilities;
44

5-
:root {
6-
font-synthesis: none;
7-
text-rendering: optimizeLegibility;
8-
-webkit-font-smoothing: antialiased;
9-
-moz-osx-font-smoothing: grayscale;
10-
}
11-
12-
@layer base {
5+
.sui-layout {
136
:root {
14-
--rfs-background: 0 0% 100%;
15-
--rfs-foreground: 0 0% 3.9%;
16-
--rfs-card: 0 0% 100%;
17-
--rfs-card-foreground: 0 0% 3.9%;
18-
--rfs-popover: 0 0% 100%;
19-
--rfs-popover-foreground: 0 0% 3.9%;
20-
--rfs-primary: 215 100% 50%;
21-
--rfs-primary-foreground: 0 0% 98%;
22-
--rfs-secondary: 0 0% 96.1%;
23-
--rfs-secondary-foreground: 0 0% 9%;
24-
--rfs-muted: 0 0% 96.1%;
25-
--rfs-muted-foreground: 0 0% 45.1%;
26-
--rfs-accent: 0 0% 96.1%;
27-
--rfs-accent-foreground: 0 0% 9%;
28-
--rfs-destructive: 0 84.2% 60.2%;
29-
--rfs-destructive-foreground: 0 0% 98%;
30-
--rfs-border: 0 0% 89.8%;
31-
--rfs-input: 0 0% 89.8%;
32-
--rfs-ring: 0 0% 3.9%;
33-
--rfs-chart-1: 12 76% 61%;
34-
--rfs-chart-2: 173 58% 39%;
35-
--rfs-chart-3: 197 37% 24%;
36-
--rfs-chart-4: 43 74% 66%;
37-
--rfs-chart-5: 27 87% 67%;
38-
--rfs-radius: 0.5rem;
7+
font-synthesis: none;
8+
text-rendering: optimizeLegibility;
9+
-webkit-font-smoothing: antialiased;
10+
-moz-osx-font-smoothing: grayscale;
3911
}
4012

41-
.dark {
42-
--rfs-background: 0 0% 3.9%;
43-
--rfs-foreground: 0 0% 98%;
44-
--rfs-card: 0 0% 3.9%;
45-
--rfs-card-foreground: 0 0% 98%;
46-
--rfs-popover: 0 0% 3.9%;
47-
--rfs-popover-foreground: 0 0% 98%;
48-
--rfs-primary: 215 100% 40%;
49-
--rfs-primary-foreground: 0 0% 98%;
50-
--rfs-secondary: 0 0% 14.9%;
51-
--rfs-secondary-foreground: 0 0% 98%;
52-
--rfs-muted: 0 0% 14.9%;
53-
--rfs-muted-foreground: 0 0% 63.9%;
54-
--rfs-accent: 0 0% 14.9%;
55-
--rfs-accent-foreground: 0 0% 98%;
56-
--rfs-destructive: 0 62.8% 30.6%;
57-
--rfs-destructive-foreground: 0 0% 98%;
58-
--rfs-border: 0 0% 14.9%;
59-
--rfs-input: 0 0% 14.9%;
60-
--rfs-ring: 0 0% 83.1%;
61-
--rfs-chart-1: 220 70% 50%;
62-
--rfs-chart-2: 160 60% 45%;
63-
--rfs-chart-3: 30 80% 55%;
64-
--rfs-chart-4: 280 65% 60%;
65-
--rfs-chart-5: 340 75% 55%;
13+
@layer base {
14+
:root {
15+
--rfs-background: 0 0% 100%;
16+
--rfs-foreground: 0 0% 3.9%;
17+
--rfs-card: 0 0% 100%;
18+
--rfs-card-foreground: 0 0% 3.9%;
19+
--rfs-popover: 0 0% 100%;
20+
--rfs-popover-foreground: 0 0% 3.9%;
21+
--rfs-primary: 215 100% 50%;
22+
--rfs-primary-foreground: 0 0% 98%;
23+
--rfs-secondary: 0 0% 96.1%;
24+
--rfs-secondary-foreground: 0 0% 9%;
25+
--rfs-muted: 0 0% 96.1%;
26+
--rfs-muted-foreground: 0 0% 45.1%;
27+
--rfs-accent: 0 0% 96.1%;
28+
--rfs-accent-foreground: 0 0% 9%;
29+
--rfs-destructive: 0 84.2% 60.2%;
30+
--rfs-destructive-foreground: 0 0% 98%;
31+
--rfs-border: 0 0% 89.8%;
32+
--rfs-input: 0 0% 89.8%;
33+
--rfs-ring: 0 0% 3.9%;
34+
--rfs-chart-1: 12 76% 61%;
35+
--rfs-chart-2: 173 58% 39%;
36+
--rfs-chart-3: 197 37% 24%;
37+
--rfs-chart-4: 43 74% 66%;
38+
--rfs-chart-5: 27 87% 67%;
39+
--rfs-radius: 0.5rem;
40+
}
41+
42+
.dark {
43+
--rfs-background: 0 0% 3.9%;
44+
--rfs-foreground: 0 0% 98%;
45+
--rfs-card: 0 0% 3.9%;
46+
--rfs-card-foreground: 0 0% 98%;
47+
--rfs-popover: 0 0% 3.9%;
48+
--rfs-popover-foreground: 0 0% 98%;
49+
--rfs-primary: 215 100% 40%;
50+
--rfs-primary-foreground: 0 0% 98%;
51+
--rfs-secondary: 0 0% 14.9%;
52+
--rfs-secondary-foreground: 0 0% 98%;
53+
--rfs-muted: 0 0% 14.9%;
54+
--rfs-muted-foreground: 0 0% 63.9%;
55+
--rfs-accent: 0 0% 14.9%;
56+
--rfs-accent-foreground: 0 0% 98%;
57+
--rfs-destructive: 0 62.8% 30.6%;
58+
--rfs-destructive-foreground: 0 0% 98%;
59+
--rfs-border: 0 0% 14.9%;
60+
--rfs-input: 0 0% 14.9%;
61+
--rfs-ring: 0 0% 83.1%;
62+
--rfs-chart-1: 220 70% 50%;
63+
--rfs-chart-2: 160 60% 45%;
64+
--rfs-chart-3: 30 80% 55%;
65+
--rfs-chart-4: 280 65% 60%;
66+
--rfs-chart-5: 340 75% 55%;
67+
}
6668
}
6769
}
6870

6971
@layer base {
70-
* {
72+
.sui-layout * {
7173
@apply rfs-border-border;
7274
}
7375

74-
body {
76+
.sui-layout {
7577
@apply rfs-bg-background rfs-text-foreground;
7678
}
7779

78-
ul, ol {
80+
.sui-layout ul, .sui-layout ol {
7981
list-style: revert;
8082
margin: revert;
8183
padding: revert;

tailwind.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/** @type {import('tailwindcss').Config} */
22

33
import animatePlugin from "tailwindcss-animate"
4+
import nestingPlugin from "tailwindcss/nesting"
45

56
export default {
67
darkMode: ["class", `[class="dark"]`],
@@ -70,5 +71,5 @@ export default {
7071
}
7172
}
7273
},
73-
plugins: [animatePlugin]
74+
plugins: [animatePlugin, nestingPlugin]
7475
}

0 commit comments

Comments
 (0)