feat: add callout support (#655)

* feat: toggle .dark class on theme change

* feat: add callouts with rehype-callouts plugin

* docs: update blog posts with callouts
This commit is contained in:
Sat Naing
2026-06-06 09:09:08 +07:00
committed by GitHub
parent 98f15ee3bc
commit e0506cb41e
10 changed files with 106 additions and 25 deletions
+1
View File
@@ -1,6 +1,7 @@
@import "tailwindcss";
@import "./theme.css";
@import "./typography.css";
@import "rehype-callouts/theme/obsidian";
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
+1 -1
View File
@@ -82,7 +82,7 @@
@apply border-s-accent/80 wrap-break-word opacity-80;
}
details {
details:not(.callout) {
@apply text-foreground inline-block cursor-pointer select-none [&_p]:hidden [&_ul]:my-0!;
}