Add Blocknote editor, Add theme switching

This commit is contained in:
2026-01-23 09:33:19 +00:00
parent 56a3105913
commit 946a2c5dbb
8 changed files with 3256 additions and 43 deletions

View File

@@ -1,12 +1,13 @@
@import "tailwindcss";
@import "tw-animate-css";
@custom-variant dark (&:is(.dark *));
@source "../node_modules/@blocknote/shadcn";
body {
font-family: "Fira Sans", sans-serif, monospace !important;
}
@custom-variant dark (&:is(.dark *));
@theme inline {
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
@@ -115,6 +116,14 @@ body {
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.556 0 0);
/* Blocknote tweaks */
--bn-colors-editor-background: #0a0a0a !important;
--bn-colors-block-background: #0a0a0a !important;
.bn-add-file-button {
background-color: var(--primary-foreground) !important;
}
}
@layer base {