bookish-press 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/components/Auth.svelte +27 -24
- package/components/Auth.svelte.d.ts +4 -4
- package/components/Authentication.d.ts +2 -2
- package/components/BookPreview.svelte +75 -59
- package/components/BookPreview.svelte.d.ts +5 -5
- package/components/External.svelte +1 -1
- package/components/External.svelte.d.ts +3 -3
- package/components/Link.svelte +49 -3
- package/components/Link.svelte.d.ts +3 -4
- package/components/app/BookList.svelte +19 -0
- package/components/app/BookList.svelte.d.ts +18 -0
- package/components/app/Button.svelte +49 -0
- package/components/app/Button.svelte.d.ts +22 -0
- package/components/app/Feedback.svelte +47 -0
- package/components/app/Feedback.svelte.d.ts +18 -0
- package/components/app/Head.svelte +15 -0
- package/components/app/Head.svelte.d.ts +18 -0
- package/components/app/Large.svelte +8 -0
- package/components/app/Large.svelte.d.ts +27 -0
- package/components/app/Lead.svelte +12 -0
- package/components/app/Lead.svelte.d.ts +27 -0
- package/components/app/Link.svelte +24 -0
- package/components/app/Link.svelte.d.ts +20 -0
- package/components/app/Options.svelte +24 -0
- package/components/app/Options.svelte.d.ts +19 -0
- package/components/app/Paragraph.svelte +20 -0
- package/components/app/Paragraph.svelte.d.ts +18 -0
- package/components/app/Section.svelte +12 -0
- package/components/app/Section.svelte.d.ts +27 -0
- package/components/app/Table.svelte +32 -0
- package/components/app/Table.svelte.d.ts +27 -0
- package/components/app/TextInput.svelte +38 -0
- package/components/app/TextInput.svelte.d.ts +22 -0
- package/components/chapter/Atom.svelte +20 -6
- package/components/chapter/Atom.svelte.d.ts +3 -3
- package/components/chapter/Block.svelte +26 -21
- package/components/chapter/Block.svelte.d.ts +4 -4
- package/components/chapter/Callout.svelte +38 -7
- package/components/chapter/Callout.svelte.d.ts +4 -4
- package/components/chapter/CaptionedCode.svelte +67 -24
- package/components/chapter/CaptionedCode.svelte.d.ts +4 -4
- package/components/chapter/ChapterBody.svelte +62 -9
- package/components/chapter/ChapterBody.svelte.d.ts +5 -4
- package/components/chapter/Citations.svelte +86 -20
- package/components/chapter/Citations.svelte.d.ts +4 -4
- package/components/chapter/Code.svelte +152 -21
- package/components/chapter/Code.svelte.d.ts +3 -3
- package/components/chapter/Comment.svelte +39 -17
- package/components/chapter/Comment.svelte.d.ts +3 -3
- package/components/chapter/Definition.svelte +52 -18
- package/components/chapter/Definition.svelte.d.ts +5 -8
- package/components/chapter/Embed.svelte +155 -67
- package/components/chapter/Embed.svelte.d.ts +6 -4
- package/components/chapter/ErrorMessage.svelte +7 -2
- package/components/chapter/ErrorMessage.svelte.d.ts +4 -4
- package/components/chapter/ExtendedPrism.d.ts +2 -0
- package/components/chapter/ExtendedPrism.js +69 -0
- package/components/chapter/Figure.svelte +90 -0
- package/components/chapter/Figure.svelte.d.ts +24 -0
- package/components/chapter/Footnote.svelte +75 -12
- package/components/chapter/Footnote.svelte.d.ts +4 -4
- package/components/chapter/Format.svelte +63 -38
- package/components/chapter/Format.svelte.d.ts +5 -4
- package/components/chapter/InlineCode.svelte +16 -6
- package/components/chapter/InlineCode.svelte.d.ts +4 -4
- package/components/chapter/Label.svelte +38 -9
- package/components/chapter/Label.svelte.d.ts +4 -4
- package/components/chapter/Link.svelte +24 -19
- package/components/chapter/Link.svelte.d.ts +4 -4
- package/components/chapter/List.svelte +75 -8
- package/components/chapter/List.svelte.d.ts +4 -4
- package/components/chapter/Marginal.svelte +169 -27
- package/components/chapter/Marginal.svelte.d.ts +6 -3
- package/components/chapter/Paragraph.svelte +79 -6
- package/components/chapter/Paragraph.svelte.d.ts +4 -4
- package/components/chapter/Positioned.svelte +33 -0
- package/components/chapter/Positioned.svelte.d.ts +19 -0
- package/components/chapter/Problem.svelte +15 -0
- package/components/chapter/Problem.svelte.d.ts +27 -0
- package/components/chapter/Python.svelte +68 -21
- package/components/chapter/Python.svelte.d.ts +4 -4
- package/components/chapter/Quote.svelte +64 -11
- package/components/chapter/Quote.svelte.d.ts +4 -4
- package/components/chapter/Rule.svelte +12 -1
- package/components/chapter/Rule.svelte.d.ts +4 -4
- package/components/chapter/Table.svelte +36 -25
- package/components/chapter/Table.svelte.d.ts +4 -4
- package/components/chapter/Text.svelte +61 -36
- package/components/chapter/Text.svelte.d.ts +5 -4
- package/components/editor/BookishEditor.svelte +373 -244
- package/components/editor/BookishEditor.svelte.d.ts +9 -6
- package/components/editor/CalloutEditor.svelte +5 -5
- package/components/editor/CalloutEditor.svelte.d.ts +4 -4
- package/components/editor/CaptionedCodeEditor.svelte +16 -12
- package/components/editor/CaptionedCodeEditor.svelte.d.ts +4 -4
- package/components/editor/CaretContext.d.ts +48 -16
- package/components/editor/CaretState.d.ts +16 -44
- package/components/editor/CaretUtilities.d.ts +2 -2
- package/components/editor/CaretView.svelte +82 -0
- package/components/editor/CaretView.svelte.d.ts +25 -0
- package/components/editor/CitationsEditor.svelte +36 -25
- package/components/editor/CitationsEditor.svelte.d.ts +4 -4
- package/components/editor/Clipboard.d.ts +2 -2
- package/components/editor/Command.d.ts +13 -12
- package/components/editor/Commands.d.ts +1 -1
- package/components/editor/Commands.js +1114 -571
- package/components/editor/ConfirmButton.svelte +18 -12
- package/components/editor/ConfirmButton.svelte.d.ts +5 -4
- package/components/editor/DefinitionEditor.svelte +29 -21
- package/components/editor/DefinitionEditor.svelte.d.ts +4 -4
- package/components/editor/EmbedEditor.svelte +93 -43
- package/components/editor/EmbedEditor.svelte.d.ts +3 -3
- package/components/editor/Icon.svelte +17 -0
- package/components/editor/Icon.svelte.d.ts +16 -0
- package/components/editor/ImageChooser.svelte +53 -34
- package/components/editor/ImageChooser.svelte.d.ts +3 -3
- package/components/editor/InlineCodeEditor.svelte +7 -4
- package/components/editor/InlineCodeEditor.svelte.d.ts +4 -4
- package/components/editor/LabelEditor.svelte +20 -11
- package/components/editor/LabelEditor.svelte.d.ts +4 -4
- package/components/editor/LanguageEditor.svelte +10 -7
- package/components/editor/LanguageEditor.svelte.d.ts +3 -3
- package/components/editor/LinkEditor.svelte +64 -39
- package/components/editor/LinkEditor.svelte.d.ts +4 -4
- package/components/editor/Note.svelte +4 -3
- package/components/editor/Note.svelte.d.ts +6 -2
- package/components/editor/Permissions.svelte +95 -0
- package/components/editor/Permissions.svelte.d.ts +20 -0
- package/components/editor/PositionEditor.svelte +9 -6
- package/components/editor/PositionEditor.svelte.d.ts +4 -4
- package/components/editor/QuoteEditor.svelte +7 -2
- package/components/editor/QuoteEditor.svelte.d.ts +4 -4
- package/components/editor/Switch.svelte +55 -28
- package/components/editor/Switch.svelte.d.ts +4 -4
- package/components/editor/TableEditor.svelte +10 -0
- package/components/editor/TableEditor.svelte.d.ts +17 -0
- package/components/editor/TextEditor.svelte +83 -45
- package/components/editor/TextEditor.svelte.d.ts +5 -4
- package/components/editor/Toggle.svelte +11 -8
- package/components/editor/Toggle.svelte.d.ts +4 -4
- package/components/editor/Toolbar.svelte +191 -144
- package/components/editor/Toolbar.svelte.d.ts +5 -8
- package/components/editor/ToolbarGroup.svelte +17 -23
- package/components/editor/ToolbarGroup.svelte.d.ts +3 -4
- package/components/editor/ToolbarSpacer.svelte +8 -1
- package/components/editor/ToolbarSpacer.svelte.d.ts +6 -2
- package/components/editor/URLEditor.svelte +6 -8
- package/components/editor/URLEditor.svelte.d.ts +3 -3
- package/components/editor/UndoState.d.ts +3 -3
- package/components/editor/icons/annotate.svg +1 -0
- package/components/editor/icons/block.svg +1 -0
- package/components/editor/icons/bold.svg +1 -0
- package/components/editor/icons/bullets.svg +1 -0
- package/components/editor/icons/callout.svg +1 -0
- package/components/editor/icons/citation.svg +8 -0
- package/components/editor/icons/clear.svg +1 -0
- package/components/editor/icons/clipboard.svg +1 -0
- package/components/editor/icons/code.svg +1 -0
- package/components/editor/icons/columnafter.svg +1 -0
- package/components/editor/icons/columnbefore.svg +1 -0
- package/components/editor/icons/comment.svg +1 -0
- package/components/editor/icons/copy.svg +1 -0
- package/components/editor/icons/cut.svg +1 -0
- package/components/editor/icons/define.svg +7 -0
- package/components/editor/icons/deletecolumn.svg +1 -0
- package/components/editor/icons/deleterow.svg +1 -0
- package/components/editor/icons/footnote.svg +8 -0
- package/components/editor/icons/header1.svg +7 -0
- package/components/editor/icons/header2.svg +7 -0
- package/components/editor/icons/header3.svg +7 -0
- package/components/editor/icons/home.svg +1 -0
- package/components/editor/icons/indent.svg +1 -0
- package/components/editor/icons/italic.svg +1 -0
- package/components/editor/icons/label.svg +1 -0
- package/components/editor/icons/left.svg +1 -0
- package/components/editor/icons/level.svg +1 -0
- package/components/editor/icons/link.svg +1 -0
- package/components/editor/icons/list.svg +1 -0
- package/components/editor/icons/media.svg +1 -0
- package/components/editor/icons/middle.svg +1 -0
- package/components/editor/icons/numbers.svg +10 -0
- package/components/editor/icons/paragraph.svg +1 -0
- package/components/editor/icons/paste.svg +10 -0
- package/components/editor/icons/quote.svg +1 -0
- package/components/editor/icons/redo.svg +1 -0
- package/components/editor/icons/right.svg +1 -0
- package/components/editor/icons/rowabove.svg +1 -0
- package/components/editor/icons/rowbelow.svg +1 -0
- package/components/editor/icons/rule.svg +1 -0
- package/components/editor/icons/sub.svg +1 -0
- package/components/editor/icons/super.svg +1 -0
- package/components/editor/icons/table.svg +1 -0
- package/components/editor/icons/text.svg +1 -0
- package/components/editor/icons/time.svg +1 -0
- package/components/editor/icons/undo.svg +1 -0
- package/components/editor/icons/unindent.svg +1 -0
- package/components/editor/icons/unlink.svg +1 -0
- package/components/page/Acknowledgements.svelte +35 -24
- package/components/page/Acknowledgements.svelte.d.ts +4 -4
- package/components/page/Authors.svelte +34 -17
- package/components/page/Authors.svelte.d.ts +7 -6
- package/components/page/BookLoader.svelte +59 -0
- package/components/page/BookLoader.svelte.d.ts +16 -0
- package/components/page/BulkReferenceEditor.svelte +54 -23
- package/components/page/BulkReferenceEditor.svelte.d.ts +4 -4
- package/components/page/Chapter.svelte +234 -143
- package/components/page/Chapter.svelte.d.ts +3 -3
- package/components/page/ChapterContext.d.ts +4 -4
- package/components/page/ChapterNumber.svelte +9 -0
- package/components/page/ChapterNumber.svelte.d.ts +27 -0
- package/components/page/ChapterTitle.svelte +16 -0
- package/components/page/ChapterTitle.svelte.d.ts +18 -0
- package/components/page/Contexts.d.ts +42 -22
- package/components/page/Contexts.js +129 -17
- package/components/page/DefinitionView.svelte +129 -90
- package/components/page/DefinitionView.svelte.d.ts +3 -3
- package/components/page/Description.svelte +31 -19
- package/components/page/Description.svelte.d.ts +4 -4
- package/components/page/Edition.svelte +135 -81
- package/components/page/Edition.svelte.d.ts +5 -6
- package/components/page/EditionLoader.svelte +99 -0
- package/components/page/EditionLoader.svelte.d.ts +18 -0
- package/components/page/Editions.svelte +106 -0
- package/components/page/Editions.svelte.d.ts +14 -0
- package/components/page/Glossary.svelte +65 -49
- package/components/page/Glossary.svelte.d.ts +4 -4
- package/components/page/Header.svelte +143 -56
- package/components/page/Header.svelte.d.ts +8 -6
- package/components/page/Index.svelte +116 -80
- package/components/page/Index.svelte.d.ts +4 -4
- package/components/page/Instructions.svelte +18 -17
- package/components/page/Instructions.svelte.d.ts +6 -4
- package/components/page/License.svelte +39 -23
- package/components/page/License.svelte.d.ts +4 -4
- package/components/page/Loading.svelte +102 -12
- package/components/page/Loading.svelte.d.ts +6 -2
- package/components/page/Media.svelte +81 -53
- package/components/page/Media.svelte.d.ts +4 -4
- package/components/page/MediaPreview.svelte +26 -8
- package/components/page/MediaPreview.svelte.d.ts +3 -3
- package/components/page/Muted.svelte +10 -0
- package/components/page/Muted.svelte.d.ts +27 -0
- package/components/page/Outline.svelte +279 -59
- package/components/page/Outline.svelte.d.ts +3 -3
- package/components/page/Page.svelte +40 -9
- package/components/page/Page.svelte.d.ts +3 -3
- package/components/page/PageHeader.svelte +14 -0
- package/components/page/PageHeader.svelte.d.ts +18 -0
- package/components/page/PageParagraph.svelte +18 -0
- package/components/page/PageParagraph.svelte.d.ts +27 -0
- package/components/page/PossibleChapter.svelte +7 -7
- package/components/page/PossibleChapter.svelte.d.ts +4 -4
- package/components/page/PossibleReference.svelte +6 -11
- package/components/page/PossibleReference.svelte.d.ts +6 -7
- package/components/page/Print.svelte +27 -3
- package/components/page/Print.svelte.d.ts +4 -4
- package/components/page/Publish.svelte +134 -0
- package/components/page/Publish.svelte.d.ts +14 -0
- package/components/page/Reference.svelte +259 -117
- package/components/page/Reference.svelte.d.ts +5 -5
- package/components/page/References.svelte +45 -48
- package/components/page/References.svelte.d.ts +4 -4
- package/components/page/Rows.svelte +54 -0
- package/components/page/Rows.svelte.d.ts +27 -0
- package/components/page/Search.svelte +88 -63
- package/components/page/Search.svelte.d.ts +4 -4
- package/components/page/Status.svelte +46 -39
- package/components/page/Status.svelte.d.ts +4 -9
- package/components/page/SubdomainEditor.svelte +41 -27
- package/components/page/SubdomainEditor.svelte.d.ts +4 -4
- package/components/page/TableOfContents.svelte +264 -191
- package/components/page/TableOfContents.svelte.d.ts +4 -4
- package/components/page/TableOfContentsImage.svelte +8 -8
- package/components/page/TableOfContentsImage.svelte.d.ts +3 -3
- package/components/page/TableOfContentsRow.svelte +97 -34
- package/components/page/TableOfContentsRow.svelte.d.ts +4 -4
- package/components/page/ThemeEditor.svelte +177 -39
- package/components/page/ThemeEditor.svelte.d.ts +4 -4
- package/components/page/ThemeEditorPreview.svelte +35 -23
- package/components/page/ThemeEditorPreview.svelte.d.ts +5 -5
- package/components/page/ThemeSetEditor.svelte +15 -13
- package/components/page/ThemeSetEditor.svelte.d.ts +4 -4
- package/components/page/ThemeVariableEditor.svelte +24 -15
- package/components/page/ThemeVariableEditor.svelte.d.ts +3 -3
- package/components/page/Title.svelte +12 -0
- package/components/page/Title.svelte.d.ts +27 -0
- package/components/page/Unknown.svelte +28 -21
- package/components/page/Unknown.svelte.d.ts +4 -4
- package/components/page/margins.js +50 -33
- package/index.d.ts +13 -0
- package/index.js +14 -0
- package/models/CRUD.d.ts +27 -0
- package/models/CRUD.js +262 -0
- package/models/Firebase.d.ts +1 -0
- package/models/Firebase.js +26 -16
- package/models/book/Book.d.ts +40 -39
- package/models/book/Book.js +121 -121
- package/models/book/BookMedia.d.ts +3 -3
- package/models/book/BookMedia.js +22 -16
- package/models/book/BookSaveStatus.d.ts +7 -0
- package/models/book/BookSaveStatus.js +8 -0
- package/models/book/Chapter.d.ts +50 -39
- package/models/book/Chapter.js +189 -198
- package/models/book/ChapterID.js +7 -7
- package/models/book/Definition.d.ts +1 -1
- package/models/book/Edition.d.ts +87 -61
- package/models/book/Edition.js +460 -309
- package/models/book/Reference.d.ts +24 -0
- package/models/book/Reference.js +78 -0
- package/models/book/Schema.d.ts +168 -0
- package/models/book/Schema.js +115 -0
- package/models/book/Theme.d.ts +44 -37
- package/models/book/Theme.js +452 -52
- package/models/book/ThemeColors.d.ts +1 -1
- package/models/book/Words.d.ts +2 -0
- package/models/book/Words.js +110 -0
- package/models/chapter/AtomNode.d.ts +4 -4
- package/models/chapter/AtomNode.js +20 -13
- package/models/chapter/BlockNode.d.ts +9 -10
- package/models/chapter/BlockNode.js +32 -13
- package/models/chapter/BlocksNode.d.ts +10 -10
- package/models/chapter/BlocksNode.js +315 -120
- package/models/chapter/BlocksNode.test.js +494 -228
- package/models/chapter/Bookkeeping.d.ts +1 -1
- package/models/chapter/CalloutNode.d.ts +3 -3
- package/models/chapter/CalloutNode.js +34 -12
- package/models/chapter/Caret.d.ts +9 -7
- package/models/chapter/Caret.js +11 -6
- package/models/chapter/ChapterNode.d.ts +11 -11
- package/models/chapter/ChapterNode.js +70 -33
- package/models/chapter/CitationsNode.d.ts +3 -3
- package/models/chapter/CitationsNode.js +31 -12
- package/models/chapter/CodeNode.d.ts +11 -6
- package/models/chapter/CodeNode.js +143 -34
- package/models/chapter/CommentNode.d.ts +5 -5
- package/models/chapter/CommentNode.js +29 -13
- package/models/chapter/DefinitionNode.d.ts +2 -2
- package/models/chapter/DefinitionNode.js +15 -7
- package/models/chapter/Edit.d.ts +3 -3
- package/models/chapter/EmbedNode.d.ts +9 -5
- package/models/chapter/EmbedNode.js +108 -35
- package/models/chapter/ErrorNode.d.ts +2 -2
- package/models/chapter/ErrorNode.js +34 -12
- package/models/chapter/FootnoteNode.d.ts +5 -5
- package/models/chapter/FootnoteNode.js +34 -16
- package/models/chapter/FormatNode.d.ts +10 -10
- package/models/chapter/FormatNode.js +237 -106
- package/models/chapter/FormatNode.test.js +87 -45
- package/models/chapter/InlineCodeNode.d.ts +2 -2
- package/models/chapter/InlineCodeNode.js +22 -9
- package/models/chapter/LabelNode.d.ts +4 -4
- package/models/chapter/LabelNode.js +31 -13
- package/models/chapter/LinkNode.d.ts +2 -2
- package/models/chapter/LinkNode.js +21 -9
- package/models/chapter/ListNode.d.ts +8 -8
- package/models/chapter/ListNode.js +99 -38
- package/models/chapter/ListNode.test.js +29 -24
- package/models/chapter/MetadataNode.d.ts +3 -3
- package/models/chapter/MetadataNode.js +13 -5
- package/models/chapter/Node.d.ts +5 -3
- package/models/chapter/Node.js +76 -29
- package/models/chapter/Node.test.js +20 -18
- package/models/chapter/ParagraphNode.d.ts +6 -6
- package/models/chapter/ParagraphNode.js +84 -29
- package/models/chapter/ParagraphNode.test.js +22 -13
- package/models/chapter/Parser.d.ts +27 -27
- package/models/chapter/Parser.js +220 -206
- package/models/chapter/Parser.test.js +16 -16
- package/models/chapter/Position.d.ts +1 -1
- package/models/chapter/QuoteNode.d.ts +6 -6
- package/models/chapter/QuoteNode.js +61 -23
- package/models/chapter/RootNode.d.ts +4 -4
- package/models/chapter/RuleNode.d.ts +2 -2
- package/models/chapter/RuleNode.js +31 -11
- package/models/chapter/TableNode.d.ts +8 -6
- package/models/chapter/TableNode.js +89 -34
- package/models/chapter/TableNode.test.js +22 -24
- package/models/chapter/TextNode.d.ts +6 -6
- package/models/chapter/TextNode.js +72 -32
- package/models/chapter/TextNode.test.js +4 -4
- package/package.json +108 -26
- package/util/getSubdomain.js +8 -6
- package/util/isMobile.js +1 -1
- package/util/mineReference.d.ts +3 -2
- package/util/mineReference.js +67 -29
- package/util/scrollToEyeLevel.js +6 -1
- package/components/chapter/renderPosition.d.ts +0 -3
- package/components/chapter/renderPosition.js +0 -4
- package/components/editor/ToolbarIcon.svelte +0 -22
- package/components/editor/ToolbarIcon.svelte.d.ts +0 -16
- package/components/page/Alert.svelte +0 -11
- package/components/page/Alert.svelte.d.ts +0 -23
- package/components/page/Revisions.svelte +0 -124
- package/components/page/Revisions.svelte.d.ts +0 -14
- package/models/BookLoader.d.ts +0 -2
- package/models/BookLoader.js +0 -67
- package/models/Firestore.d.ts +0 -22
- package/models/Firestore.js +0 -194
- package/models/chapter/ReferenceNode.d.ts +0 -29
- package/models/chapter/ReferenceNode.js +0 -48
- package/models/loadEdition.d.ts +0 -5
- package/models/loadEdition.js +0 -16
package/models/book/Theme.js
CHANGED
|
@@ -1,76 +1,476 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const BookishTheme = {
|
|
2
|
+
imports: [
|
|
3
|
+
'https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Outfit:wght@300;700&display=swap',
|
|
4
|
+
],
|
|
2
5
|
// Background colors
|
|
3
6
|
light: {
|
|
4
7
|
// Background colors;
|
|
5
|
-
backgroundColor:
|
|
6
|
-
blockBackgroundColor:
|
|
7
|
-
errorBackgroundColor:
|
|
8
|
+
backgroundColor: '#FFFFFF',
|
|
9
|
+
blockBackgroundColor: '#FCFAFA',
|
|
10
|
+
errorBackgroundColor: '#F8D7DA',
|
|
8
11
|
// Border colors
|
|
9
|
-
borderColorLight:
|
|
10
|
-
borderColorBold:
|
|
12
|
+
borderColorLight: '#E0E0E0',
|
|
13
|
+
borderColorBold: '#000000',
|
|
11
14
|
// Foreground colors
|
|
12
|
-
paragraphColor:
|
|
13
|
-
mutedColor:
|
|
14
|
-
highlightColor:
|
|
15
|
-
commentColor:
|
|
16
|
-
errorColor:
|
|
17
|
-
linkColor:
|
|
18
|
-
bulletColor:
|
|
15
|
+
paragraphColor: '#000000',
|
|
16
|
+
mutedColor: '#9AA1A7',
|
|
17
|
+
highlightColor: '#E8AF22',
|
|
18
|
+
commentColor: '#257F31',
|
|
19
|
+
errorColor: '#721C24',
|
|
20
|
+
linkColor: '#1B499C',
|
|
21
|
+
bulletColor: '#EB2C27',
|
|
19
22
|
},
|
|
20
23
|
dark: {
|
|
21
24
|
// Background colors;
|
|
22
|
-
backgroundColor:
|
|
23
|
-
blockBackgroundColor:
|
|
24
|
-
errorBackgroundColor:
|
|
25
|
+
backgroundColor: '#1C1C1C',
|
|
26
|
+
blockBackgroundColor: '#333333',
|
|
27
|
+
errorBackgroundColor: '#721C24',
|
|
25
28
|
// Border colors
|
|
26
|
-
borderColorLight:
|
|
27
|
-
borderColorBold:
|
|
29
|
+
borderColorLight: '#444444',
|
|
30
|
+
borderColorBold: '#DADADA',
|
|
28
31
|
// Foreground colors
|
|
29
|
-
paragraphColor:
|
|
30
|
-
mutedColor:
|
|
31
|
-
highlightColor:
|
|
32
|
-
commentColor:
|
|
33
|
-
errorColor:
|
|
34
|
-
linkColor:
|
|
35
|
-
bulletColor:
|
|
32
|
+
paragraphColor: '#DADADA',
|
|
33
|
+
mutedColor: '#666666',
|
|
34
|
+
highlightColor: '#c5a248',
|
|
35
|
+
commentColor: '#1c4722',
|
|
36
|
+
errorColor: '#F8D7DA',
|
|
37
|
+
linkColor: '#73a3fa',
|
|
38
|
+
bulletColor: '#721C24',
|
|
36
39
|
},
|
|
37
40
|
// Fonts
|
|
38
41
|
fonts: {
|
|
39
|
-
paragraphFontFamily: '"
|
|
40
|
-
headerFontFamily: '"
|
|
42
|
+
paragraphFontFamily: '"Noto Serif", serif',
|
|
43
|
+
headerFontFamily: '"Outfit", serif',
|
|
41
44
|
codeFontFamily: '"Courier New", monospace',
|
|
42
|
-
bulletFontFamily: '"
|
|
45
|
+
bulletFontFamily: '"Outfit", serif',
|
|
43
46
|
},
|
|
44
47
|
// Font sizes
|
|
45
48
|
sizes: {
|
|
46
|
-
paragraphFontSize:
|
|
47
|
-
blockFontSize:
|
|
48
|
-
smallFontSize:
|
|
49
|
-
titleFontSize:
|
|
50
|
-
header1FontSize:
|
|
51
|
-
header2FontSize:
|
|
52
|
-
header3FontSize:
|
|
53
|
-
codeFontSize:
|
|
49
|
+
paragraphFontSize: '14pt',
|
|
50
|
+
blockFontSize: '11pt',
|
|
51
|
+
smallFontSize: '9pt',
|
|
52
|
+
titleFontSize: '30pt',
|
|
53
|
+
header1FontSize: '24pt',
|
|
54
|
+
header2FontSize: '20pt',
|
|
55
|
+
header3FontSize: '14pt',
|
|
56
|
+
codeFontSize: '12pt',
|
|
54
57
|
},
|
|
55
58
|
// Font weights
|
|
56
59
|
weights: {
|
|
57
|
-
headerFontWeight:
|
|
58
|
-
paragraphFontWeight:
|
|
59
|
-
boldFontWeight:
|
|
60
|
-
linkFontWeight:
|
|
61
|
-
codeFontWeight:
|
|
62
|
-
bulletFontWeight:
|
|
60
|
+
headerFontWeight: '700',
|
|
61
|
+
paragraphFontWeight: '400',
|
|
62
|
+
boldFontWeight: '700',
|
|
63
|
+
linkFontWeight: '400',
|
|
64
|
+
codeFontWeight: '400',
|
|
65
|
+
bulletFontWeight: '500',
|
|
63
66
|
},
|
|
64
67
|
// Spacing
|
|
65
68
|
spacing: {
|
|
66
|
-
paragraphLineHeight:
|
|
67
|
-
paragraphLineHeightTight:
|
|
68
|
-
headerLineHeight:
|
|
69
|
-
paragraphSpacing:
|
|
70
|
-
headerSpacing:
|
|
71
|
-
indent:
|
|
72
|
-
inlinePadding:
|
|
73
|
-
blockPadding:
|
|
74
|
-
roundedness:
|
|
75
|
-
}
|
|
69
|
+
paragraphLineHeight: '1.8em',
|
|
70
|
+
paragraphLineHeightTight: '1.4em',
|
|
71
|
+
headerLineHeight: '1.4em',
|
|
72
|
+
paragraphSpacing: '1.8rem',
|
|
73
|
+
headerSpacing: '2rem',
|
|
74
|
+
indent: '10%',
|
|
75
|
+
inlinePadding: '0.25rem',
|
|
76
|
+
blockPadding: '1rem',
|
|
77
|
+
roundedness: '5px',
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
export const SeriousTheme = {
|
|
81
|
+
imports: [
|
|
82
|
+
'https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:ital,wght@0,300;0,500;1,300&display=swap',
|
|
83
|
+
],
|
|
84
|
+
// Background colors
|
|
85
|
+
light: {
|
|
86
|
+
// Background colors;
|
|
87
|
+
backgroundColor: '#FFFFFF',
|
|
88
|
+
blockBackgroundColor: '#FCFAFA',
|
|
89
|
+
errorBackgroundColor: '#F8D7DA',
|
|
90
|
+
// Border colors
|
|
91
|
+
borderColorLight: '#E0E0E0',
|
|
92
|
+
borderColorBold: '#000000',
|
|
93
|
+
// Foreground colors
|
|
94
|
+
paragraphColor: '#000000',
|
|
95
|
+
mutedColor: '#9AA1A7',
|
|
96
|
+
highlightColor: '#bb4242',
|
|
97
|
+
commentColor: '#257F31',
|
|
98
|
+
errorColor: '#721C24',
|
|
99
|
+
linkColor: '#bb4242',
|
|
100
|
+
bulletColor: '#bb4242',
|
|
101
|
+
},
|
|
102
|
+
dark: {
|
|
103
|
+
// Background colors;
|
|
104
|
+
backgroundColor: '#010101',
|
|
105
|
+
blockBackgroundColor: '#333333',
|
|
106
|
+
errorBackgroundColor: '#721C24',
|
|
107
|
+
// Border colors
|
|
108
|
+
borderColorLight: '#444444',
|
|
109
|
+
borderColorBold: '#DADADA',
|
|
110
|
+
// Foreground colors
|
|
111
|
+
paragraphColor: '#DADADA',
|
|
112
|
+
mutedColor: '#666666',
|
|
113
|
+
highlightColor: '#b36363',
|
|
114
|
+
commentColor: '#1c4722',
|
|
115
|
+
errorColor: '#F8D7DA',
|
|
116
|
+
linkColor: '#b36363',
|
|
117
|
+
bulletColor: '#b36363',
|
|
118
|
+
},
|
|
119
|
+
// Fonts
|
|
120
|
+
fonts: {
|
|
121
|
+
paragraphFontFamily: '"Roboto", serif',
|
|
122
|
+
headerFontFamily: '"Bebas Neue", serif',
|
|
123
|
+
codeFontFamily: '"Courier New", monospace',
|
|
124
|
+
bulletFontFamily: '"Roboto"',
|
|
125
|
+
},
|
|
126
|
+
// Font sizes
|
|
127
|
+
sizes: {
|
|
128
|
+
paragraphFontSize: '14pt',
|
|
129
|
+
blockFontSize: '11pt',
|
|
130
|
+
smallFontSize: '9pt',
|
|
131
|
+
titleFontSize: '30pt',
|
|
132
|
+
header1FontSize: '24pt',
|
|
133
|
+
header2FontSize: '20pt',
|
|
134
|
+
header3FontSize: '14pt',
|
|
135
|
+
codeFontSize: '12pt',
|
|
136
|
+
},
|
|
137
|
+
// Font weights
|
|
138
|
+
weights: {
|
|
139
|
+
headerFontWeight: '700',
|
|
140
|
+
paragraphFontWeight: '300',
|
|
141
|
+
boldFontWeight: '500',
|
|
142
|
+
linkFontWeight: '300',
|
|
143
|
+
codeFontWeight: '400',
|
|
144
|
+
bulletFontWeight: '500',
|
|
145
|
+
},
|
|
146
|
+
// Spacing
|
|
147
|
+
spacing: {
|
|
148
|
+
paragraphLineHeight: '2rem',
|
|
149
|
+
paragraphLineHeightTight: '1.4em',
|
|
150
|
+
headerLineHeight: '1.3em',
|
|
151
|
+
paragraphSpacing: '1.8rem',
|
|
152
|
+
headerSpacing: '2rem',
|
|
153
|
+
indent: '10%',
|
|
154
|
+
inlinePadding: '0.25rem',
|
|
155
|
+
blockPadding: '1rem',
|
|
156
|
+
roundedness: '5px',
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
export const TechTheme = {
|
|
160
|
+
imports: [
|
|
161
|
+
'https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,500;1,300&family=Russo+One&display=swap',
|
|
162
|
+
],
|
|
163
|
+
// Background colors
|
|
164
|
+
light: {
|
|
165
|
+
// Background colors;
|
|
166
|
+
backgroundColor: '#FFFFFF',
|
|
167
|
+
blockBackgroundColor: '#FCFAFA',
|
|
168
|
+
errorBackgroundColor: '#F8D7DA',
|
|
169
|
+
// Border colors
|
|
170
|
+
borderColorLight: '#E0E0E0',
|
|
171
|
+
borderColorBold: '#000000',
|
|
172
|
+
// Foreground colors
|
|
173
|
+
paragraphColor: '#000000',
|
|
174
|
+
mutedColor: '#9AA1A7',
|
|
175
|
+
highlightColor: '#6480ff',
|
|
176
|
+
commentColor: '#257F31',
|
|
177
|
+
errorColor: '#721C24',
|
|
178
|
+
linkColor: '#6480ff',
|
|
179
|
+
bulletColor: '#6480ff',
|
|
180
|
+
},
|
|
181
|
+
dark: {
|
|
182
|
+
// Background colors;
|
|
183
|
+
backgroundColor: '#000000',
|
|
184
|
+
blockBackgroundColor: '#333333',
|
|
185
|
+
errorBackgroundColor: '#721C24',
|
|
186
|
+
// Border colors
|
|
187
|
+
borderColorLight: '#444444',
|
|
188
|
+
borderColorBold: '#DADADA',
|
|
189
|
+
// Foreground colors
|
|
190
|
+
paragraphColor: '#DADADA',
|
|
191
|
+
mutedColor: '#959595',
|
|
192
|
+
highlightColor: '#7589e6',
|
|
193
|
+
commentColor: '#2bb33e',
|
|
194
|
+
errorColor: '#F8D7DA',
|
|
195
|
+
linkColor: '#7589e6',
|
|
196
|
+
bulletColor: '#7589e6',
|
|
197
|
+
},
|
|
198
|
+
// Fonts
|
|
199
|
+
fonts: {
|
|
200
|
+
paragraphFontFamily: '"Roboto", serif',
|
|
201
|
+
headerFontFamily: '"Russo One", serif',
|
|
202
|
+
bulletFontFamily: '"Roboto"',
|
|
203
|
+
},
|
|
204
|
+
// Font sizes
|
|
205
|
+
sizes: {
|
|
206
|
+
paragraphFontSize: '14pt',
|
|
207
|
+
blockFontSize: '11pt',
|
|
208
|
+
smallFontSize: '9pt',
|
|
209
|
+
titleFontSize: '30pt',
|
|
210
|
+
header1FontSize: '24pt',
|
|
211
|
+
header2FontSize: '20pt',
|
|
212
|
+
header3FontSize: '14pt',
|
|
213
|
+
codeFontSize: '12pt',
|
|
214
|
+
},
|
|
215
|
+
// Font weights
|
|
216
|
+
weights: {
|
|
217
|
+
headerFontWeight: '300',
|
|
218
|
+
paragraphFontWeight: '300',
|
|
219
|
+
boldFontWeight: '500',
|
|
220
|
+
linkFontWeight: '400',
|
|
221
|
+
codeFontWeight: '400',
|
|
222
|
+
bulletFontWeight: '500',
|
|
223
|
+
},
|
|
224
|
+
// Spacing
|
|
225
|
+
spacing: {
|
|
226
|
+
paragraphLineHeight: '2rem',
|
|
227
|
+
paragraphLineHeightTight: '1.4em',
|
|
228
|
+
headerLineHeight: '3em',
|
|
229
|
+
paragraphSpacing: '1.8rem',
|
|
230
|
+
headerSpacing: '2rem',
|
|
231
|
+
indent: '10%',
|
|
232
|
+
inlinePadding: '0.25rem',
|
|
233
|
+
blockPadding: '1rem',
|
|
234
|
+
roundedness: '5px',
|
|
235
|
+
},
|
|
236
|
+
};
|
|
237
|
+
export const HumanTheme = {
|
|
238
|
+
imports: [
|
|
239
|
+
'https://fonts.googleapis.com/css2?family=Caveat&family=Piazzolla:ital,wght@0,300;0,700;1,300&display=swap',
|
|
240
|
+
],
|
|
241
|
+
// Background colors
|
|
242
|
+
light: {
|
|
243
|
+
// Background colors;
|
|
244
|
+
backgroundColor: '#FFFFFF',
|
|
245
|
+
blockBackgroundColor: '#FCFAFA',
|
|
246
|
+
errorBackgroundColor: '#F8D7DA',
|
|
247
|
+
// Border colors
|
|
248
|
+
borderColorLight: '#E0E0E0',
|
|
249
|
+
borderColorBold: '#000000',
|
|
250
|
+
// Foreground colors
|
|
251
|
+
paragraphColor: '#000000',
|
|
252
|
+
mutedColor: '#9AA1A7',
|
|
253
|
+
highlightColor: '#3b92e4',
|
|
254
|
+
commentColor: '#257F31',
|
|
255
|
+
errorColor: '#721C24',
|
|
256
|
+
linkColor: '#3b92e4',
|
|
257
|
+
bulletColor: '#3b92e4',
|
|
258
|
+
},
|
|
259
|
+
dark: {
|
|
260
|
+
// Background colors;
|
|
261
|
+
backgroundColor: '#141421',
|
|
262
|
+
blockBackgroundColor: '#333333',
|
|
263
|
+
errorBackgroundColor: '#721C24',
|
|
264
|
+
// Border colors
|
|
265
|
+
borderColorLight: '#444444',
|
|
266
|
+
borderColorBold: '#DADADA',
|
|
267
|
+
// Foreground colors
|
|
268
|
+
paragraphColor: '#DADADA',
|
|
269
|
+
mutedColor: '#666666',
|
|
270
|
+
highlightColor: '#2b8ae3',
|
|
271
|
+
commentColor: '#1c4722',
|
|
272
|
+
errorColor: '#F8D7DA',
|
|
273
|
+
linkColor: '#2b8ae3',
|
|
274
|
+
bulletColor: '#2b8ae3',
|
|
275
|
+
},
|
|
276
|
+
// Fonts
|
|
277
|
+
fonts: {
|
|
278
|
+
paragraphFontFamily: '"Piazzolla", serif',
|
|
279
|
+
headerFontFamily: '"Caveat", serif',
|
|
280
|
+
codeFontFamily: '"Courier New", monospace',
|
|
281
|
+
bulletFontFamily: '"Caveat", serif',
|
|
282
|
+
},
|
|
283
|
+
// Font sizes
|
|
284
|
+
sizes: {
|
|
285
|
+
paragraphFontSize: '14pt',
|
|
286
|
+
blockFontSize: '11pt',
|
|
287
|
+
smallFontSize: '10pt',
|
|
288
|
+
titleFontSize: '36pt',
|
|
289
|
+
header1FontSize: '30pt',
|
|
290
|
+
header2FontSize: '24pt',
|
|
291
|
+
header3FontSize: '20pt',
|
|
292
|
+
codeFontSize: '11pt',
|
|
293
|
+
},
|
|
294
|
+
// Font weights
|
|
295
|
+
weights: {
|
|
296
|
+
headerFontWeight: '700',
|
|
297
|
+
paragraphFontWeight: '300',
|
|
298
|
+
boldFontWeight: '700',
|
|
299
|
+
linkFontWeight: '700',
|
|
300
|
+
codeFontWeight: '400',
|
|
301
|
+
bulletFontWeight: '300',
|
|
302
|
+
},
|
|
303
|
+
// Spacing
|
|
304
|
+
spacing: {
|
|
305
|
+
paragraphLineHeight: '2.2rem',
|
|
306
|
+
paragraphLineHeightTight: '1.1em',
|
|
307
|
+
headerLineHeight: '1.4em',
|
|
308
|
+
paragraphSpacing: '1.8rem',
|
|
309
|
+
headerSpacing: '2rem',
|
|
310
|
+
indent: '10%',
|
|
311
|
+
inlinePadding: '0.25rem',
|
|
312
|
+
blockPadding: '1rem',
|
|
313
|
+
roundedness: '5px',
|
|
314
|
+
},
|
|
315
|
+
};
|
|
316
|
+
export const SketchyTheme = {
|
|
317
|
+
imports: [
|
|
318
|
+
'https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,300;0,500;1,300&family=Cabin+Sketch&display=swap',
|
|
319
|
+
],
|
|
320
|
+
// Background colors
|
|
321
|
+
light: {
|
|
322
|
+
// Background colors;
|
|
323
|
+
backgroundColor: '#FFFFFF',
|
|
324
|
+
blockBackgroundColor: '#FCFAFA',
|
|
325
|
+
errorBackgroundColor: '#F8D7DA',
|
|
326
|
+
// Border colors
|
|
327
|
+
borderColorLight: '#E0E0E0',
|
|
328
|
+
borderColorBold: '#000000',
|
|
329
|
+
// Foreground colors
|
|
330
|
+
paragraphColor: '#000000',
|
|
331
|
+
mutedColor: '#9AA1A7',
|
|
332
|
+
highlightColor: '#dbb13e',
|
|
333
|
+
commentColor: '#257F31',
|
|
334
|
+
errorColor: '#721C24',
|
|
335
|
+
linkColor: '#dbb13e',
|
|
336
|
+
bulletColor: '#dbb13e',
|
|
337
|
+
},
|
|
338
|
+
dark: {
|
|
339
|
+
// Background colors;
|
|
340
|
+
backgroundColor: '#1C1C1C',
|
|
341
|
+
blockBackgroundColor: '#333333',
|
|
342
|
+
errorBackgroundColor: '#721C24',
|
|
343
|
+
// Border colors
|
|
344
|
+
borderColorLight: '#444444',
|
|
345
|
+
borderColorBold: '#DADADA',
|
|
346
|
+
// Foreground colors
|
|
347
|
+
paragraphColor: '#DADADA',
|
|
348
|
+
mutedColor: '#666666',
|
|
349
|
+
highlightColor: '#9c7e2c',
|
|
350
|
+
commentColor: '#1c4722',
|
|
351
|
+
errorColor: '#F8D7DA',
|
|
352
|
+
linkColor: '#9c7e2c',
|
|
353
|
+
bulletColor: '#9c7e2c',
|
|
354
|
+
},
|
|
355
|
+
// Fonts
|
|
356
|
+
fonts: {
|
|
357
|
+
paragraphFontFamily: '"Bitter", serif',
|
|
358
|
+
headerFontFamily: '"Cabin Sketch", serif',
|
|
359
|
+
codeFontFamily: '"Courier New", monospace',
|
|
360
|
+
bulletFontFamily: '"Verdana"',
|
|
361
|
+
},
|
|
362
|
+
// Font sizes
|
|
363
|
+
sizes: {
|
|
364
|
+
paragraphFontSize: '14pt',
|
|
365
|
+
blockFontSize: '11pt',
|
|
366
|
+
smallFontSize: '9pt',
|
|
367
|
+
titleFontSize: '32pt',
|
|
368
|
+
header1FontSize: '26pt',
|
|
369
|
+
header2FontSize: '22pt',
|
|
370
|
+
header3FontSize: '16pt',
|
|
371
|
+
codeFontSize: '12pt',
|
|
372
|
+
},
|
|
373
|
+
// Font weights
|
|
374
|
+
weights: {
|
|
375
|
+
headerFontWeight: '500',
|
|
376
|
+
paragraphFontWeight: '300',
|
|
377
|
+
boldFontWeight: '500',
|
|
378
|
+
linkFontWeight: '400',
|
|
379
|
+
codeFontWeight: '400',
|
|
380
|
+
bulletFontWeight: '500',
|
|
381
|
+
},
|
|
382
|
+
// Spacing
|
|
383
|
+
spacing: {
|
|
384
|
+
paragraphLineHeight: '2.4em',
|
|
385
|
+
paragraphLineHeightTight: '1.4em',
|
|
386
|
+
headerLineHeight: '1.3em',
|
|
387
|
+
paragraphSpacing: '1.8rem',
|
|
388
|
+
headerSpacing: '2rem',
|
|
389
|
+
indent: '10%',
|
|
390
|
+
inlinePadding: '0.25rem',
|
|
391
|
+
blockPadding: '1rem',
|
|
392
|
+
roundedness: '5px',
|
|
393
|
+
},
|
|
394
|
+
};
|
|
395
|
+
export const CriticalTheme = {
|
|
396
|
+
imports: [
|
|
397
|
+
'https://fonts.googleapis.com/css2?family=Arvo:ital,wght@0,400;0,700;1,400;1,700&display=block',
|
|
398
|
+
'https://fonts.googleapis.com/css2?family=DM+Mono&display=block',
|
|
399
|
+
'https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500&display=block',
|
|
400
|
+
'https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,700;1,400;1,700&display=swap',
|
|
401
|
+
],
|
|
402
|
+
// Background colors
|
|
403
|
+
light: {
|
|
404
|
+
// Background colors;
|
|
405
|
+
backgroundColor: '#FFFFFF',
|
|
406
|
+
blockBackgroundColor: '#FCFAFA',
|
|
407
|
+
errorBackgroundColor: '#F8D7DA',
|
|
408
|
+
// Border colors
|
|
409
|
+
borderColorLight: '#E0E0E0',
|
|
410
|
+
borderColorBold: '#000000',
|
|
411
|
+
// Foreground colors
|
|
412
|
+
paragraphColor: '#000000',
|
|
413
|
+
mutedColor: '#9AA1A7',
|
|
414
|
+
highlightColor: '#E8AF22',
|
|
415
|
+
commentColor: '#257F31',
|
|
416
|
+
errorColor: '#721C24',
|
|
417
|
+
linkColor: '#1B499C',
|
|
418
|
+
bulletColor: '#EB2C27',
|
|
419
|
+
},
|
|
420
|
+
dark: {
|
|
421
|
+
// Background colors;
|
|
422
|
+
backgroundColor: '#1C1C1C',
|
|
423
|
+
blockBackgroundColor: '#333333',
|
|
424
|
+
errorBackgroundColor: '#721C24',
|
|
425
|
+
// Border colors
|
|
426
|
+
borderColorLight: '#444444',
|
|
427
|
+
borderColorBold: '#DADADA',
|
|
428
|
+
// Foreground colors
|
|
429
|
+
paragraphColor: '#DADADA',
|
|
430
|
+
mutedColor: '#CCCCCC',
|
|
431
|
+
highlightColor: '#5c4d28',
|
|
432
|
+
commentColor: '#1c4722',
|
|
433
|
+
errorColor: '#F8D7DA',
|
|
434
|
+
linkColor: '#73a3fa',
|
|
435
|
+
bulletColor: '#721C24',
|
|
436
|
+
},
|
|
437
|
+
// Fonts
|
|
438
|
+
fonts: {
|
|
439
|
+
paragraphFontFamily: '"Bitter", serif',
|
|
440
|
+
headerFontFamily: '"Arvo", serif',
|
|
441
|
+
codeFontFamily: '"DM Mono", monospace',
|
|
442
|
+
bulletFontFamily: '"M Plus Rounded 1c", serif',
|
|
443
|
+
},
|
|
444
|
+
// Font sizes
|
|
445
|
+
sizes: {
|
|
446
|
+
paragraphFontSize: '14pt',
|
|
447
|
+
blockFontSize: '11pt',
|
|
448
|
+
smallFontSize: '9pt',
|
|
449
|
+
titleFontSize: '30pt',
|
|
450
|
+
header1FontSize: '24pt',
|
|
451
|
+
header2FontSize: '20pt',
|
|
452
|
+
header3FontSize: '14pt',
|
|
453
|
+
codeFontSize: '12pt',
|
|
454
|
+
},
|
|
455
|
+
// Font weights
|
|
456
|
+
weights: {
|
|
457
|
+
headerFontWeight: '700',
|
|
458
|
+
paragraphFontWeight: '400',
|
|
459
|
+
boldFontWeight: '700',
|
|
460
|
+
linkFontWeight: '400',
|
|
461
|
+
codeFontWeight: '400',
|
|
462
|
+
bulletFontWeight: '400',
|
|
463
|
+
},
|
|
464
|
+
// Spacing
|
|
465
|
+
spacing: {
|
|
466
|
+
paragraphLineHeight: '2.2em',
|
|
467
|
+
paragraphLineHeightTight: '1.5em',
|
|
468
|
+
headerLineHeight: '1.4em',
|
|
469
|
+
paragraphSpacing: '1.8rem',
|
|
470
|
+
headerSpacing: '2rem',
|
|
471
|
+
indent: '10%',
|
|
472
|
+
inlinePadding: '0.25rem',
|
|
473
|
+
blockPadding: '0.75em',
|
|
474
|
+
roundedness: '5px',
|
|
475
|
+
},
|
|
76
476
|
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
const CommonWords = [
|
|
2
|
+
'a',
|
|
3
|
+
'about',
|
|
4
|
+
'all',
|
|
5
|
+
'also',
|
|
6
|
+
'and',
|
|
7
|
+
'are',
|
|
8
|
+
'as',
|
|
9
|
+
'at',
|
|
10
|
+
'be',
|
|
11
|
+
'because',
|
|
12
|
+
'but',
|
|
13
|
+
'by',
|
|
14
|
+
'can',
|
|
15
|
+
'come',
|
|
16
|
+
'could',
|
|
17
|
+
'day',
|
|
18
|
+
'do',
|
|
19
|
+
'does',
|
|
20
|
+
'even',
|
|
21
|
+
'find',
|
|
22
|
+
'first',
|
|
23
|
+
'for',
|
|
24
|
+
'from',
|
|
25
|
+
'get',
|
|
26
|
+
'give',
|
|
27
|
+
'go',
|
|
28
|
+
'has',
|
|
29
|
+
'have',
|
|
30
|
+
'he',
|
|
31
|
+
'her',
|
|
32
|
+
'here',
|
|
33
|
+
'him',
|
|
34
|
+
'his',
|
|
35
|
+
'how',
|
|
36
|
+
'I',
|
|
37
|
+
'if',
|
|
38
|
+
'in',
|
|
39
|
+
'into',
|
|
40
|
+
'is',
|
|
41
|
+
'it',
|
|
42
|
+
'its',
|
|
43
|
+
'just',
|
|
44
|
+
'know',
|
|
45
|
+
'like',
|
|
46
|
+
'look',
|
|
47
|
+
'make',
|
|
48
|
+
'man',
|
|
49
|
+
'many',
|
|
50
|
+
'me',
|
|
51
|
+
'more',
|
|
52
|
+
'my',
|
|
53
|
+
'new',
|
|
54
|
+
'no',
|
|
55
|
+
'not',
|
|
56
|
+
'now',
|
|
57
|
+
'of',
|
|
58
|
+
'on',
|
|
59
|
+
'one',
|
|
60
|
+
'only',
|
|
61
|
+
'or',
|
|
62
|
+
'other',
|
|
63
|
+
'our',
|
|
64
|
+
'out',
|
|
65
|
+
'people',
|
|
66
|
+
'say',
|
|
67
|
+
'see',
|
|
68
|
+
'she',
|
|
69
|
+
'so',
|
|
70
|
+
'some',
|
|
71
|
+
'take',
|
|
72
|
+
'tell',
|
|
73
|
+
'than',
|
|
74
|
+
'that',
|
|
75
|
+
'the',
|
|
76
|
+
'their',
|
|
77
|
+
'them',
|
|
78
|
+
'then',
|
|
79
|
+
'there',
|
|
80
|
+
'these',
|
|
81
|
+
'they',
|
|
82
|
+
'thing',
|
|
83
|
+
'think',
|
|
84
|
+
'this',
|
|
85
|
+
'those',
|
|
86
|
+
'time',
|
|
87
|
+
'to',
|
|
88
|
+
'two',
|
|
89
|
+
'up',
|
|
90
|
+
'use',
|
|
91
|
+
'very',
|
|
92
|
+
'want',
|
|
93
|
+
'was',
|
|
94
|
+
'way',
|
|
95
|
+
'we',
|
|
96
|
+
'well',
|
|
97
|
+
'went',
|
|
98
|
+
'what',
|
|
99
|
+
'when',
|
|
100
|
+
'which',
|
|
101
|
+
'who',
|
|
102
|
+
'will',
|
|
103
|
+
'with',
|
|
104
|
+
'would',
|
|
105
|
+
'year',
|
|
106
|
+
'yes',
|
|
107
|
+
'you',
|
|
108
|
+
'your',
|
|
109
|
+
];
|
|
110
|
+
export default CommonWords;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type Caret from
|
|
2
|
-
import FormatNode from
|
|
3
|
-
import Node from
|
|
4
|
-
import type RootNode from
|
|
1
|
+
import type Caret from './Caret';
|
|
2
|
+
import FormatNode from './FormatNode';
|
|
3
|
+
import Node from './Node';
|
|
4
|
+
import type RootNode from './RootNode';
|
|
5
5
|
export default abstract class AtomNode<MetadataType> extends Node {
|
|
6
6
|
#private;
|
|
7
7
|
constructor(meta: MetadataType);
|