-
-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Color scheme customization (#305)
* Added color scheme customization * Improved theming API * Improved theming and added user-definable DOM element classes * Separated light/dark themes and added system theme detection * Added `BlockNoteView` prop for styling components with CSS * Added util function to merge CSS classes * Fixed placeholder color * Cleaned up auto theme switching and editor is no longer re-created on theme switch * Cleaned up `BlockNoteTheme.ts` * Minor fixes * Cleaned up theme highlight colors * Custom component styles now get deep merged with defaults * Fixed highlight colors * Added theming & styling docs * Cleaned up theme types and component styles * Added user-defined classes to remaining nodes * Updated theme selection in docs * Removed type field from default themes * Reverted `App.tsx` * Implemented PR feedback * Fixed side menu button colors * Added dark theme tests * Fixed test * Added screenshots
- Loading branch information
1 parent
7b505b4
commit 6309de0
Showing
64 changed files
with
1,269 additions
and
503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
import { Node } from "@tiptap/core"; | ||
import { BlockContainer } from "./nodes/BlockContainer"; | ||
import { BlockGroup } from "./nodes/BlockGroup"; | ||
|
||
export const blocks: any[] = [ | ||
BlockContainer, | ||
BlockGroup, | ||
Node.create({ | ||
name: "doc", | ||
topNode: true, | ||
content: "blockGroup", | ||
}), | ||
]; | ||
export { BlockContainer } from "./nodes/BlockContainer"; | ||
export { BlockGroup } from "./nodes/BlockGroup"; | ||
export const Doc = Node.create({ | ||
name: "doc", | ||
topNode: true, | ||
content: "blockGroup", | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
6309de0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
blocknote-website – ./packages/website/
blocknote-website-typecell.vercel.app
blocknote-website-git-main-typecell.vercel.app
blocknotejs.com
block-note-website.vercel.app
www.blocknotejs.org
blocknotejs.org
www.blocknotejs.com