You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the ones I've made have been for equations, theorems, figures or other mathematical content, but you can create any type of callout you need. I even made some "warning" ones:
If you're using a dark theme and want each callout to sit on a consistent dark base while still showing its colour clearly, you can use an **overlay effect** like this (add it into the same CSS file):
139
+
140
+
```css
141
+
/* Base background for all callouts */
142
+
.callout {
143
+
background-color: #282A37!important; /* Base background */
144
+
position: relative;
145
+
overflow: hidden;
146
+
}
147
+
148
+
/* Overlay using callout color with opacity */
149
+
.callout::before {
150
+
content: "";
151
+
position: absolute;
152
+
inset: 0;
153
+
background-color: rgb(var(--callout-color), 0.3); /* Top color overlay */
154
+
pointer-events: none;
155
+
z-index: 0;
156
+
border-radius: var(--radius-s);
157
+
}
158
+
159
+
/* Ensure content stays above the overlay */
160
+
.callout>* {
161
+
position: relative;
162
+
z-index: 1;
163
+
}
164
+
```
165
+
166
+
This ensures each callout has a consistent dark base, while the `--callout-color` overlays with controlled transparency. Here the base background colour is the default colour of my Obsidian theme, but you can change it to whatever suits your theme.
167
+
168
+
This is especially helpful when **nesting** callouts (see below), as it prevents the background of one from bleeding into another.
169
+
170
+
---
171
+
172
+
## Nesting Callouts
173
+
174
+
Yes, you **can nest callouts**, and theyβll render beautifully, especially if you use the background layering technique above.
175
+
176
+
```markdown
177
+
> [!question] Can callouts be nested?
178
+
> > [!todo] Yes, they can.
179
+
> > > [!example] You can even use multiple layers of nesting.
180
+
```
181
+
182
+
This will render as:
183
+
184
+

185
+
186
+
Each level keeps its own style, icon, and background overlay, making complex structures more readable.
0 commit comments