@scottjgilbert/lexical-blog-editor 0.1.4 → 1.0.0-beta.2

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.
Files changed (313) hide show
  1. package/README.md +73 -67
  2. package/build/Editor.d.ts +8 -3
  3. package/build/Editor.d.ts.map +1 -1
  4. package/build/Editor.js +13 -8
  5. package/build/EditorExport.d.ts +4 -0
  6. package/build/EditorExport.d.ts.map +1 -0
  7. package/build/EditorExport.js +13 -0
  8. package/build/appSettings.d.ts +1 -1
  9. package/build/appSettings.js +1 -1
  10. package/build/buildHTMLConfig.d.ts +1 -1
  11. package/build/buildHTMLConfig.d.ts.map +1 -1
  12. package/build/buildHTMLConfig.js +35 -11
  13. package/build/context/FlashMessageContext.d.ts +2 -2
  14. package/build/context/FlashMessageContext.d.ts.map +1 -1
  15. package/build/context/FlashMessageContext.js +4 -3
  16. package/build/context/SharedHistoryContext.d.ts +3 -3
  17. package/build/context/SharedHistoryContext.d.ts.map +1 -1
  18. package/build/context/SharedHistoryContext.js +3 -2
  19. package/build/context/ToolbarContext.d.ts +1 -0
  20. package/build/context/ToolbarContext.d.ts.map +1 -1
  21. package/build/context/ToolbarContext.js +2 -0
  22. package/build/hooks/useModal.d.ts.map +1 -1
  23. package/build/hooks/useModal.js +1 -0
  24. package/build/hooks/useReport.d.ts +0 -7
  25. package/build/hooks/useReport.d.ts.map +1 -1
  26. package/build/hooks/useReport.js +1 -0
  27. package/build/index.css +283 -246
  28. package/build/index.d.ts +3 -3
  29. package/build/index.d.ts.map +1 -1
  30. package/build/index.js +2 -2
  31. package/build/nodes/CodeNode/CodeHighlightNode.d.ts +35 -0
  32. package/build/nodes/CodeNode/CodeHighlightNode.d.ts.map +1 -0
  33. package/build/nodes/CodeNode/CodeHighlightNode.js +88 -0
  34. package/build/nodes/CodeNode/CodeHighlighterShiki.d.ts +22 -0
  35. package/build/nodes/CodeNode/CodeHighlighterShiki.d.ts.map +1 -0
  36. package/build/nodes/CodeNode/CodeHighlighterShiki.js +644 -0
  37. package/build/nodes/CodeNode/CodeNode.d.ts +48 -0
  38. package/build/nodes/CodeNode/CodeNode.d.ts.map +1 -0
  39. package/build/nodes/CodeNode/CodeNode.js +367 -0
  40. package/build/nodes/CodeNode/FacadeShiki.d.ts +18 -0
  41. package/build/nodes/CodeNode/FacadeShiki.d.ts.map +1 -0
  42. package/build/nodes/CodeNode/FacadeShiki.js +159 -0
  43. package/build/nodes/CodeNode/FlatStructureUtils.d.ts +21 -0
  44. package/build/nodes/CodeNode/FlatStructureUtils.d.ts.map +1 -0
  45. package/build/nodes/CodeNode/FlatStructureUtils.js +85 -0
  46. package/build/nodes/CodeNode/invariant.d.ts +2 -0
  47. package/build/nodes/CodeNode/invariant.d.ts.map +1 -0
  48. package/build/nodes/CodeNode/invariant.js +6 -0
  49. package/build/nodes/DateTimeNode/DateTimeComponent.d.ts.map +1 -1
  50. package/build/nodes/DateTimeNode/DateTimeComponent.js +1 -0
  51. package/build/nodes/DateTimeNode/DateTimeNode.css +21 -0
  52. package/build/nodes/FigmaNode/FigmaNode.d.ts.map +1 -0
  53. package/build/nodes/FigmaNode/ServerFigmaNode.d.ts +21 -0
  54. package/build/nodes/FigmaNode/ServerFigmaNode.d.ts.map +1 -0
  55. package/build/nodes/FigmaNode/ServerFigmaNode.js +48 -0
  56. package/build/nodes/ImageComponent.d.ts.map +1 -1
  57. package/build/nodes/ImageComponent.js +1 -2
  58. package/build/nodes/ImageNode.d.ts +7 -7
  59. package/build/nodes/ImageNode.d.ts.map +1 -1
  60. package/build/nodes/ImageNode.js +30 -30
  61. package/build/nodes/LayoutContainerNode.d.ts +2 -2
  62. package/build/nodes/LayoutContainerNode.d.ts.map +1 -1
  63. package/build/nodes/LayoutContainerNode.js +10 -10
  64. package/build/nodes/PlaygroundNodes/PlaygroundNodes.d.ts.map +1 -0
  65. package/build/nodes/{PlaygroundNodes.js → PlaygroundNodes/PlaygroundNodes.js} +19 -21
  66. package/build/nodes/PlaygroundNodes/ServerPlaygroundNodes.d.ts +11 -0
  67. package/build/nodes/PlaygroundNodes/ServerPlaygroundNodes.d.ts.map +1 -0
  68. package/build/nodes/PlaygroundNodes/ServerPlaygroundNodes.js +65 -0
  69. package/build/nodes/TweetNode/ServerTweetNode.d.ts +20 -0
  70. package/build/nodes/TweetNode/ServerTweetNode.d.ts.map +1 -0
  71. package/build/nodes/TweetNode/ServerTweetNode.js +59 -0
  72. package/build/nodes/TweetNode/TweetNode.d.ts.map +1 -0
  73. package/build/nodes/YouTubeNode/ServerYouTubeNode.d.ts +21 -0
  74. package/build/nodes/YouTubeNode/ServerYouTubeNode.d.ts.map +1 -0
  75. package/build/nodes/YouTubeNode/ServerYouTubeNode.js +67 -0
  76. package/build/nodes/YouTubeNode/YouTubeNode.d.ts.map +1 -0
  77. package/build/plugins/ActionsPlugin/index.d.ts +0 -7
  78. package/build/plugins/ActionsPlugin/index.d.ts.map +1 -1
  79. package/build/plugins/ActionsPlugin/index.js +2 -1
  80. package/build/plugins/AutoEmbedPlugin/index.d.ts +2 -9
  81. package/build/plugins/AutoEmbedPlugin/index.d.ts.map +1 -1
  82. package/build/plugins/AutoEmbedPlugin/index.js +30 -29
  83. package/build/plugins/AutoLinkPlugin/index.d.ts +1 -1
  84. package/build/plugins/AutoLinkPlugin/index.d.ts.map +1 -1
  85. package/build/plugins/AutoLinkPlugin/index.js +3 -2
  86. package/build/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts +1 -1
  87. package/build/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts.map +1 -1
  88. package/build/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +7 -6
  89. package/build/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +2 -2
  90. package/build/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts.map +1 -1
  91. package/build/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js +25 -24
  92. package/build/plugins/CodeActionMenuPlugin/index.d.ts +2 -9
  93. package/build/plugins/CodeActionMenuPlugin/index.d.ts.map +1 -1
  94. package/build/plugins/CodeActionMenuPlugin/index.js +22 -20
  95. package/build/plugins/CodeActionMenuPlugin/utils.d.ts.map +1 -1
  96. package/build/plugins/CodeActionMenuPlugin/utils.js +3 -2
  97. package/build/plugins/CodeHighlightPrismPlugin/index.d.ts +1 -1
  98. package/build/plugins/CodeHighlightPrismPlugin/index.d.ts.map +1 -1
  99. package/build/plugins/CodeHighlightPrismPlugin/index.js +4 -10
  100. package/build/plugins/CodeHighlightShikiPlugin/index.d.ts +1 -1
  101. package/build/plugins/CodeHighlightShikiPlugin/index.d.ts.map +1 -1
  102. package/build/plugins/CodeHighlightShikiPlugin/index.js +3 -3
  103. package/build/plugins/CollapsiblePlugin/Collapsible.css +17 -1
  104. package/build/plugins/CollapsiblePlugin/index.d.ts +1 -1
  105. package/build/plugins/CollapsiblePlugin/index.d.ts.map +1 -1
  106. package/build/plugins/CollapsiblePlugin/index.js +11 -10
  107. package/build/plugins/ComponentPickerPlugin/index.d.ts.map +1 -1
  108. package/build/plugins/ComponentPickerPlugin/index.js +3 -8
  109. package/build/plugins/ContextMenuPlugin/index.d.ts +1 -1
  110. package/build/plugins/ContextMenuPlugin/index.d.ts.map +1 -1
  111. package/build/plugins/ContextMenuPlugin/index.js +15 -14
  112. package/build/plugins/DateTimePlugin/index.d.ts +2 -2
  113. package/build/plugins/DateTimePlugin/index.d.ts.map +1 -1
  114. package/build/plugins/DateTimePlugin/index.js +8 -14
  115. package/build/plugins/DragDropPastePlugin/index.d.ts +0 -7
  116. package/build/plugins/DragDropPastePlugin/index.d.ts.map +1 -1
  117. package/build/plugins/DragDropPastePlugin/index.js +12 -11
  118. package/build/plugins/DraggableBlockPlugin/index.css +6 -0
  119. package/build/plugins/DraggableBlockPlugin/index.d.ts +2 -2
  120. package/build/plugins/DraggableBlockPlugin/index.d.ts.map +1 -1
  121. package/build/plugins/DraggableBlockPlugin/index.js +23 -22
  122. package/build/plugins/EmojiPickerPlugin/index.d.ts +0 -7
  123. package/build/plugins/EmojiPickerPlugin/index.d.ts.map +1 -1
  124. package/build/plugins/EmojiPickerPlugin/index.js +1 -0
  125. package/build/plugins/EmojisPlugin/index.d.ts +1 -8
  126. package/build/plugins/EmojisPlugin/index.d.ts.map +1 -1
  127. package/build/plugins/EmojisPlugin/index.js +10 -16
  128. package/build/plugins/EquationsPlugin/index.d.ts +3 -3
  129. package/build/plugins/EquationsPlugin/index.d.ts.map +1 -1
  130. package/build/plugins/EquationsPlugin/index.js +14 -10
  131. package/build/plugins/FigmaPlugin/index.d.ts +2 -2
  132. package/build/plugins/FigmaPlugin/index.d.ts.map +1 -1
  133. package/build/plugins/FigmaPlugin/index.js +8 -14
  134. package/build/plugins/FloatingLinkEditorPlugin/index.css +11 -0
  135. package/build/plugins/FloatingLinkEditorPlugin/index.d.ts +3 -3
  136. package/build/plugins/FloatingLinkEditorPlugin/index.d.ts.map +1 -1
  137. package/build/plugins/FloatingLinkEditorPlugin/index.js +28 -27
  138. package/build/plugins/FloatingTextFormatToolbarPlugin/index.css +15 -0
  139. package/build/plugins/FloatingTextFormatToolbarPlugin/index.d.ts.map +1 -1
  140. package/build/plugins/FloatingTextFormatToolbarPlugin/index.js +2 -1
  141. package/build/plugins/ImagesPlugin/index.d.ts +3 -3
  142. package/build/plugins/ImagesPlugin/index.d.ts.map +1 -1
  143. package/build/plugins/ImagesPlugin/index.js +38 -37
  144. package/build/plugins/KeywordsPlugin/index.d.ts +1 -8
  145. package/build/plugins/KeywordsPlugin/index.d.ts.map +1 -1
  146. package/build/plugins/KeywordsPlugin/index.js +6 -12
  147. package/build/plugins/LayoutPlugin/InsertLayoutDialog.d.ts +2 -2
  148. package/build/plugins/LayoutPlugin/InsertLayoutDialog.d.ts.map +1 -1
  149. package/build/plugins/LayoutPlugin/InsertLayoutDialog.js +10 -9
  150. package/build/plugins/LayoutPlugin/LayoutPlugin.d.ts +1 -1
  151. package/build/plugins/LayoutPlugin/LayoutPlugin.d.ts.map +1 -1
  152. package/build/plugins/LayoutPlugin/LayoutPlugin.js +8 -14
  153. package/build/plugins/LinkPlugin/index.d.ts.map +1 -1
  154. package/build/plugins/LinkPlugin/index.js +1 -0
  155. package/build/plugins/MarkdownShortcutPlugin/index.d.ts.map +1 -1
  156. package/build/plugins/MarkdownShortcutPlugin/index.js +1 -0
  157. package/build/plugins/MarkdownTransformers/index.d.ts +1 -1
  158. package/build/plugins/MarkdownTransformers/index.d.ts.map +1 -1
  159. package/build/plugins/MarkdownTransformers/index.js +25 -25
  160. package/build/plugins/PasteLogPlugin/index.d.ts.map +1 -1
  161. package/build/plugins/PasteLogPlugin/index.js +1 -0
  162. package/build/plugins/ShortcutsPlugin/index.d.ts +0 -7
  163. package/build/plugins/ShortcutsPlugin/index.d.ts.map +1 -1
  164. package/build/plugins/ShortcutsPlugin/index.js +1 -0
  165. package/build/plugins/SpeechToTextPlugin/index.d.ts +2 -2
  166. package/build/plugins/SpeechToTextPlugin/index.d.ts.map +1 -1
  167. package/build/plugins/SpeechToTextPlugin/index.js +7 -11
  168. package/build/plugins/TabFocusPlugin/index.d.ts +0 -7
  169. package/build/plugins/TabFocusPlugin/index.d.ts.map +1 -1
  170. package/build/plugins/TabFocusPlugin/index.js +6 -5
  171. package/build/plugins/TableActionMenuPlugin/index.d.ts +1 -8
  172. package/build/plugins/TableActionMenuPlugin/index.d.ts.map +1 -1
  173. package/build/plugins/TableActionMenuPlugin/index.js +41 -40
  174. package/build/plugins/TableCellResizer/index.d.ts +2 -2
  175. package/build/plugins/TableCellResizer/index.d.ts.map +1 -1
  176. package/build/plugins/TableCellResizer/index.js +43 -42
  177. package/build/plugins/TableHoverActionsPlugin/index.d.ts +1 -8
  178. package/build/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -1
  179. package/build/plugins/TableHoverActionsPlugin/index.js +19 -18
  180. package/build/plugins/TableHoverActionsV2Plugin/index.d.ts.map +1 -1
  181. package/build/plugins/TableHoverActionsV2Plugin/index.js +1 -0
  182. package/build/plugins/TablePlugin.d.ts +2 -2
  183. package/build/plugins/TablePlugin.d.ts.map +1 -1
  184. package/build/plugins/TablePlugin.js +11 -10
  185. package/build/plugins/TableScrollShadowPlugin/index.d.ts +0 -7
  186. package/build/plugins/TableScrollShadowPlugin/index.d.ts.map +1 -1
  187. package/build/plugins/TableScrollShadowPlugin/index.js +9 -8
  188. package/build/plugins/TestRecorderPlugin/index.d.ts +1 -8
  189. package/build/plugins/TestRecorderPlugin/index.d.ts.map +1 -1
  190. package/build/plugins/TestRecorderPlugin/index.js +45 -44
  191. package/build/plugins/ToolbarPlugin/fontSize.d.ts +2 -2
  192. package/build/plugins/ToolbarPlugin/fontSize.d.ts.map +1 -1
  193. package/build/plugins/ToolbarPlugin/fontSize.js +19 -18
  194. package/build/plugins/ToolbarPlugin/index.d.ts.map +1 -1
  195. package/build/plugins/ToolbarPlugin/index.js +68 -60
  196. package/build/plugins/ToolbarPlugin/languages.d.ts +14 -0
  197. package/build/plugins/ToolbarPlugin/languages.d.ts.map +1 -0
  198. package/build/plugins/ToolbarPlugin/languages.js +185 -0
  199. package/build/plugins/ToolbarPlugin/utils.d.ts +2 -2
  200. package/build/plugins/ToolbarPlugin/utils.js +21 -21
  201. package/build/plugins/TwitterPlugin/index.d.ts +2 -2
  202. package/build/plugins/TwitterPlugin/index.d.ts.map +1 -1
  203. package/build/plugins/TwitterPlugin/index.js +8 -14
  204. package/build/plugins/YouTubePlugin/index.d.ts +2 -2
  205. package/build/plugins/YouTubePlugin/index.d.ts.map +1 -1
  206. package/build/plugins/YouTubePlugin/index.js +8 -14
  207. package/build/themes/PlaygroundEditorTheme.css +301 -33
  208. package/build/themes/ViewerTheme.css +899 -0
  209. package/build/{plugins/MentionsPlugin/index.d.ts → themes/ViewerTheme.d.ts} +5 -3
  210. package/build/themes/ViewerTheme.d.ts.map +1 -0
  211. package/build/themes/ViewerTheme.js +124 -0
  212. package/build/themes/ViewerThemeComplete.css +1043 -0
  213. package/build/ui/ColorPicker.d.ts +2 -2
  214. package/build/ui/ColorPicker.d.ts.map +1 -1
  215. package/build/ui/ColorPicker.js +47 -46
  216. package/build/ui/DropDown.d.ts.map +1 -1
  217. package/build/ui/DropDown.js +1 -0
  218. package/build/ui/FlashMessage.d.ts +3 -3
  219. package/build/ui/FlashMessage.d.ts.map +1 -1
  220. package/build/ui/FlashMessage.js +3 -2
  221. package/build/ui/ImageResizer.d.ts +3 -3
  222. package/build/ui/ImageResizer.d.ts.map +1 -1
  223. package/build/ui/ImageResizer.js +20 -19
  224. package/build/ui/KatexEquationAlterer.css +3 -1
  225. package/build/ui/KatexEquationAlterer.d.ts.map +1 -1
  226. package/build/ui/KatexEquationAlterer.js +1 -0
  227. package/build/ui/KatexRenderer.d.ts.map +1 -1
  228. package/build/ui/KatexRenderer.js +1 -0
  229. package/build/ui/Modal.d.ts.map +1 -1
  230. package/build/ui/Modal.js +1 -0
  231. package/build/ui/Switch.d.ts +2 -2
  232. package/build/ui/Switch.d.ts.map +1 -1
  233. package/build/ui/Switch.js +3 -2
  234. package/build/ui/TextInput.d.ts.map +1 -1
  235. package/build/ui/TextInput.js +1 -0
  236. package/build/utils/ServerBlockWithAlignableContents.d.ts +22 -0
  237. package/build/utils/ServerBlockWithAlignableContents.d.ts.map +1 -0
  238. package/build/utils/ServerBlockWithAlignableContents.js +6 -0
  239. package/build/utils/focusUtils.d.ts.map +1 -1
  240. package/build/utils/focusUtils.js +4 -3
  241. package/build/utils/getDOMRangeRect.d.ts.map +1 -1
  242. package/build/utils/getDOMRangeRect.js +1 -0
  243. package/build/utils/setFloatingElemPosition.d.ts.map +1 -1
  244. package/build/utils/setFloatingElemPosition.js +5 -4
  245. package/build/utils/swipe.d.ts +0 -7
  246. package/build/utils/swipe.d.ts.map +1 -1
  247. package/build/utils/swipe.js +5 -11
  248. package/build/viewer/Viewer.d.ts +18 -0
  249. package/build/viewer/Viewer.d.ts.map +1 -0
  250. package/build/viewer/Viewer.js +105 -0
  251. package/build/viewer/client.d.ts +18 -0
  252. package/build/viewer/client.d.ts.map +1 -0
  253. package/build/viewer/client.js +97 -0
  254. package/build/viewer/index.d.ts +4 -0
  255. package/build/viewer/index.d.ts.map +1 -0
  256. package/build/viewer/index.js +2 -0
  257. package/package.json +58 -36
  258. package/build/collaboration.d.ts +0 -12
  259. package/build/collaboration.d.ts.map +0 -1
  260. package/build/collaboration.js +0 -32
  261. package/build/nodes/FigmaNode.d.ts.map +0 -1
  262. package/build/nodes/PageBreakNode/index.css +0 -64
  263. package/build/nodes/PageBreakNode/index.d.ts +0 -25
  264. package/build/nodes/PageBreakNode/index.d.ts.map +0 -1
  265. package/build/nodes/PageBreakNode/index.js +0 -83
  266. package/build/nodes/PlaygroundNodes.d.ts.map +0 -1
  267. package/build/nodes/PollComponent.d.ts +0 -17
  268. package/build/nodes/PollComponent.d.ts.map +0 -1
  269. package/build/nodes/PollComponent.js +0 -85
  270. package/build/nodes/PollNode.css +0 -165
  271. package/build/nodes/PollNode.d.ts +0 -51
  272. package/build/nodes/PollNode.d.ts.map +0 -1
  273. package/build/nodes/PollNode.js +0 -153
  274. package/build/nodes/StickyComponent.d.ts +0 -18
  275. package/build/nodes/StickyComponent.d.ts.map +0 -1
  276. package/build/nodes/StickyComponent.js +0 -155
  277. package/build/nodes/StickyNode.css +0 -37
  278. package/build/nodes/StickyNode.d.ts +0 -39
  279. package/build/nodes/StickyNode.d.ts.map +0 -1
  280. package/build/nodes/StickyNode.js +0 -66
  281. package/build/nodes/TweetNode.d.ts.map +0 -1
  282. package/build/nodes/YouTubeNode.d.ts.map +0 -1
  283. package/build/plugins/DocsPlugin/index.d.ts +0 -10
  284. package/build/plugins/DocsPlugin/index.d.ts.map +0 -1
  285. package/build/plugins/DocsPlugin/index.js +0 -4
  286. package/build/plugins/MaxLengthPlugin/index.d.ts +0 -11
  287. package/build/plugins/MaxLengthPlugin/index.d.ts.map +0 -1
  288. package/build/plugins/MaxLengthPlugin/index.js +0 -44
  289. package/build/plugins/MentionsPlugin/index.d.ts.map +0 -1
  290. package/build/plugins/MentionsPlugin/index.js +0 -562
  291. package/build/plugins/PageBreakPlugin/index.d.ts +0 -12
  292. package/build/plugins/PageBreakPlugin/index.d.ts.map +0 -1
  293. package/build/plugins/PageBreakPlugin/index.js +0 -34
  294. package/build/plugins/StickyPlugin/index.d.ts +0 -10
  295. package/build/plugins/StickyPlugin/index.d.ts.map +0 -1
  296. package/build/plugins/StickyPlugin/index.js +0 -19
  297. package/build/plugins/TreeViewPlugin/index.d.ts +0 -10
  298. package/build/plugins/TreeViewPlugin/index.d.ts.map +0 -1
  299. package/build/plugins/TreeViewPlugin/index.js +0 -7
  300. package/build/plugins/TypingPerfPlugin/index.d.ts +0 -10
  301. package/build/plugins/TypingPerfPlugin/index.d.ts.map +0 -1
  302. package/build/plugins/TypingPerfPlugin/index.js +0 -100
  303. package/build/plugins/VersionsPlugin/index.css +0 -57
  304. package/build/plugins/VersionsPlugin/index.d.ts +0 -14
  305. package/build/plugins/VersionsPlugin/index.d.ts.map +0 -1
  306. package/build/plugins/VersionsPlugin/index.js +0 -147
  307. /package/build/nodes/{FigmaNode.d.ts → FigmaNode/FigmaNode.d.ts} +0 -0
  308. /package/build/nodes/{FigmaNode.js → FigmaNode/FigmaNode.js} +0 -0
  309. /package/build/nodes/{PlaygroundNodes.d.ts → PlaygroundNodes/PlaygroundNodes.d.ts} +0 -0
  310. /package/build/nodes/{TweetNode.d.ts → TweetNode/TweetNode.d.ts} +0 -0
  311. /package/build/nodes/{TweetNode.js → TweetNode/TweetNode.js} +0 -0
  312. /package/build/nodes/{YouTubeNode.d.ts → YouTubeNode/YouTubeNode.d.ts} +0 -0
  313. /package/build/nodes/{YouTubeNode.js → YouTubeNode/YouTubeNode.js} +0 -0
package/build/index.css CHANGED
@@ -1,14 +1,206 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
1
  @import "https://fonts.googleapis.com/css?family=Reenie+Beanie";
10
2
 
11
- .full-blog-editor-wrapper {
3
+ :root {
4
+ /* Light mode colors */
5
+ --color-bg-primary: #eee;
6
+ --color-bg-surface: #fff;
7
+ --color-bg-secondary: #222;
8
+ --color-bg-button: #ddd;
9
+ --color-bg-button-hover: #ccc;
10
+ --color-bg-hover: #eee;
11
+ --color-bg-active: rgba(223, 232, 250, 0.3);
12
+ --color-bg-input: #eee;
13
+ --color-bg-code: #222;
14
+ --color-bg-test-recorder: #222;
15
+ --color-text-primary: #000;
16
+ --color-text-secondary: #777;
17
+ --color-text-tertiary: #999;
18
+ --color-text-heading: #333;
19
+ --color-text-body: #050505;
20
+ --color-text-code: #fff;
21
+ --color-text-button: #222;
22
+ --color-text-muted: #888;
23
+ --color-text-placeholder: #939393;
24
+ --color-border: #e8e8e8;
25
+ --color-border-input: rgba(0, 0, 0, 0.075);
26
+ --color-divider: #eee;
27
+ --color-accent: rgb(60, 132, 244);
28
+ --color-accent-hover: rgb(33, 111, 219);
29
+ --color-accent-bg: rgb(223, 232, 250);
30
+ --color-link: rgb(33, 111, 219);
31
+ --color-error: red;
32
+ --color-success: rgb(233, 35, 35);
33
+ --color-shadow-light: rgba(0, 0, 0, 0.2);
34
+ --color-shadow-medium: rgba(0, 0, 0, 0.3);
35
+ --color-shadow-dark: rgba(0, 0, 0, 0.4);
36
+ --color-overlay: rgba(255, 255, 255, 0.5);
37
+ --color-overlay-bg: rgba(255, 255, 255, 0.9);
38
+ --color-overlay-dark: rgba(0, 0, 0, 0.5);
39
+ --color-switch-bg: rgb(206, 208, 212);
40
+ --color-switch-active: rgb(24, 119, 242);
41
+ --color-dev-button: #444;
42
+ --color-dev-button-hover: #555;
43
+ --color-selection: rgba(150, 150, 150, 0.4);
44
+ --color-accent-shadow: rgb(180, 213, 255);
45
+ --color-keyword: rgb(241, 118, 94);
46
+ }
47
+
48
+ @media (prefers-color-scheme: dark) {
49
+ :root {
50
+ /* Dark mode colors */
51
+ --color-bg-primary: #1e1e1e;
52
+ --color-bg-surface: #2d2d2d;
53
+ --color-bg-secondary: #1a1a1a;
54
+ --color-bg-button: #3a3a3a;
55
+ --color-bg-button-hover: #4a4a4a;
56
+ --color-bg-hover: #3a3a3a;
57
+ --color-bg-active: rgba(60, 132, 244, 0.3);
58
+ --color-bg-input: #3a3a3a;
59
+ --color-bg-code: #1a1a1a;
60
+ --color-bg-test-recorder: #1a1a1a;
61
+ --color-text-primary: #e0e0e0;
62
+ --color-text-secondary: #a0a0a0;
63
+ --color-text-tertiary: #808080;
64
+ --color-text-heading: #d0d0d0;
65
+ --color-text-body: #e0e0e0;
66
+ --color-text-code: #e0e0e0;
67
+ --color-text-button: #e0e0e0;
68
+ --color-text-muted: #888;
69
+ --color-text-placeholder: #707070;
70
+ --color-border: #404040;
71
+ --color-border-input: rgba(255, 255, 255, 0.075);
72
+ --color-divider: #3a3a3a;
73
+ --color-accent: rgb(80, 152, 255);
74
+ --color-accent-hover: rgb(100, 170, 255);
75
+ --color-accent-bg: rgb(40, 70, 120);
76
+ --color-link: rgb(100, 170, 255);
77
+ --color-error: #ff4444;
78
+ --color-success: rgb(255, 80, 80);
79
+ --color-shadow-light: rgba(0, 0, 0, 0.2);
80
+ --color-shadow-medium: rgba(0, 0, 0, 0.3);
81
+ --color-shadow-dark: rgba(0, 0, 0, 0.4);
82
+ --color-overlay: rgba(0, 0, 0, 0.5);
83
+ --color-overlay-bg: rgba(45, 45, 45, 0.9);
84
+ --color-overlay-dark: rgba(0, 0, 0, 0.5);
85
+ --color-switch-bg: rgb(80, 80, 85);
86
+ --color-switch-active: rgb(40, 140, 255);
87
+ --color-dev-button: #3a3a3a;
88
+ --color-dev-button-hover: #4a4a4a;
89
+ --color-selection: rgba(150, 150, 150, 0.4);
90
+ --color-accent-shadow: rgb(40, 80, 140);
91
+ --color-keyword: rgb(255, 150, 120);
92
+ }
93
+
94
+ /* Invert SVG icons in dark mode */
95
+ i[class*="background-image"],
96
+ .icon[class*="background-image"],
97
+ i.palette,
98
+ i.bucket,
99
+ i.bold,
100
+ i.italic,
101
+ i.clear,
102
+ i.code,
103
+ i.underline,
104
+ i.uppercase,
105
+ i.lowercase,
106
+ i.capitalize,
107
+ i.strikethrough,
108
+ i.subscript,
109
+ i.superscript,
110
+ i.highlight,
111
+ i.link,
112
+ i.horizontal-rule,
113
+ .icon.plus,
114
+ .icon.caret-right,
115
+ .icon.dropdown-more,
116
+ .icon.font-color,
117
+ .icon.font-family,
118
+ .icon.bg-color,
119
+ i.image,
120
+ i.table,
121
+ i.close,
122
+ i.figma,
123
+ i.columns,
124
+ i.x,
125
+ i.youtube,
126
+ .icon.left-align,
127
+ i.left-align,
128
+ .icon.center-align,
129
+ i.center-align,
130
+ .icon.right-align,
131
+ i.right-align,
132
+ .icon.justify-align,
133
+ i.justify-align,
134
+ .icon.vertical-top,
135
+ .icon.vertical-middle,
136
+ .icon.vertical-bottom,
137
+ i.indent,
138
+ i.markdown,
139
+ i.outdent,
140
+ i.undo,
141
+ i.redo,
142
+ i.sticky,
143
+ i.mic,
144
+ i.import,
145
+ i.export,
146
+ i.share,
147
+ i.diagram-2,
148
+ i.user,
149
+ i.equation,
150
+ i.calendar,
151
+ i.gif,
152
+ i.copy,
153
+ i.paste,
154
+ i.success,
155
+ i.prettier,
156
+ i.prettier-error,
157
+ i.page-break,
158
+ .icon.page-break,
159
+ .icon.paragraph,
160
+ .icon.h1,
161
+ .icon.h2,
162
+ .icon.h3,
163
+ .icon.h4,
164
+ .icon.h5,
165
+ .icon.h6,
166
+ .icon.bullet-list,
167
+ .icon.bullet,
168
+ .icon.check-list,
169
+ .icon.check,
170
+ .icon.numbered-list,
171
+ .icon.number,
172
+ .icon.quote,
173
+ .icon.code,
174
+ i.chevron-down,
175
+ .toolbar-item i.chevron-down,
176
+ .link-editor div.link-edit,
177
+ .link-editor div.link-trash,
178
+ .link-editor div.link-cancel,
179
+ .link-editor div.link-confirm,
180
+ .actions i.indent,
181
+ .actions i.outdent,
182
+ .actions i.lock,
183
+ .actions i.image,
184
+ .actions i.table,
185
+ .actions i.unlock,
186
+ .actions i.left-align,
187
+ .actions i.center-align,
188
+ .actions i.right-align,
189
+ .actions i.justify-align,
190
+ .actions i.disconnect,
191
+ .actions i.connect,
192
+ .actions i.versions,
193
+ button.toolbar-item i.format,
194
+ .typeahead-popover li .icon {
195
+ filter: invert(1);
196
+ }
197
+ }
198
+
199
+ .editor-shell {
200
+ color: var(--color-text-primary);
201
+ position: relative;
202
+ line-height: 1.7;
203
+ font-weight: 400;
12
204
  margin: 0;
13
205
  font-family:
14
206
  system-ui,
@@ -18,53 +210,14 @@
18
210
  sans-serif;
19
211
  -webkit-font-smoothing: antialiased;
20
212
  -moz-osx-font-smoothing: grayscale;
21
- background: #eee;
213
+ background: var(--color-bg-primary);
22
214
  padding: 0;
23
215
  }
24
216
 
25
- .full-blog-editor-wrapper header {
26
- max-width: 580px;
27
- margin: auto;
28
- position: relative;
29
- display: flex;
30
- justify-content: center;
31
- }
32
-
33
- .full-blog-editor-wrapper header a {
34
- max-width: 220px;
35
- margin: 20px 0 0 0;
36
- display: block;
37
- }
38
-
39
- .full-blog-editor-wrapper header img {
40
- display: block;
41
- height: 100%;
42
- width: 100%;
43
- }
44
-
45
- .full-blog-editor-wrapper h1 {
46
- text-align: left;
47
- color: #333;
48
- display: inline-block;
49
- margin: 20px 0 0 0;
50
- }
51
-
52
- .editor-shell {
53
- margin: 20px auto;
54
- border-radius: 2px;
55
- max-width: 1100px;
56
- color: #000;
57
- position: relative;
58
- line-height: 1.7;
59
- font-weight: 400;
60
- }
61
-
62
217
  .editor-shell .editor-container {
63
- background: #fff;
218
+ background: var(--color-bg-surface);
64
219
  position: relative;
65
220
  display: block;
66
- border-bottom-left-radius: 10px;
67
- border-bottom-right-radius: 10px;
68
221
  }
69
222
 
70
223
  .editor-shell .editor-container.tree-view {
@@ -85,7 +238,7 @@
85
238
  outline: 0;
86
239
  z-index: 0;
87
240
  resize: vertical;
88
- color: #000;
241
+ color: var(--color-text-primary);
89
242
  }
90
243
 
91
244
  .editor {
@@ -103,8 +256,8 @@
103
256
 
104
257
  pre {
105
258
  line-height: 1.1;
106
- background: #222;
107
- color: #fff;
259
+ background: var(--color-bg-code);
260
+ color: var(--color-text-code);
108
261
  margin: 0;
109
262
  padding: 10px;
110
263
  font-size: 12px;
@@ -114,8 +267,8 @@ pre {
114
267
 
115
268
  .tree-view-output {
116
269
  display: block;
117
- background: #222;
118
- color: #fff;
270
+ background: var(--color-bg-secondary);
271
+ color: var(--color-text-code);
119
272
  padding: 0;
120
273
  font-size: 12px;
121
274
  margin: 1px auto 10px auto;
@@ -131,7 +284,7 @@ pre::-webkit-scrollbar {
131
284
  }
132
285
 
133
286
  pre::-webkit-scrollbar-thumb {
134
- background: #999;
287
+ background: var(--color-text-tertiary);
135
288
  }
136
289
 
137
290
  .editor-dev-button {
@@ -144,8 +297,8 @@ pre::-webkit-scrollbar-thumb {
144
297
  border: none;
145
298
  cursor: pointer;
146
299
  outline: none;
147
- box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.3);
148
- background-color: #444;
300
+ box-shadow: 0px 1px 10px var(--color-shadow-medium);
301
+ background-color: var(--color-dev-button);
149
302
  }
150
303
 
151
304
  .editor-dev-button::after {
@@ -161,11 +314,11 @@ pre::-webkit-scrollbar-thumb {
161
314
  }
162
315
 
163
316
  .editor-dev-button:hover {
164
- background-color: #555;
317
+ background-color: var(--color-dev-button-hover);
165
318
  }
166
319
 
167
320
  .editor-dev-button.active {
168
- background-color: rgb(233, 35, 35);
321
+ background-color: var(--color-success);
169
322
  }
170
323
 
171
324
  .test-recorder-toolbar {
@@ -183,13 +336,13 @@ pre::-webkit-scrollbar-thumb {
183
336
  border: none;
184
337
  cursor: pointer;
185
338
  outline: none;
186
- box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.4);
187
- background-color: #222;
339
+ box-shadow: 1px 2px 2px var(--color-shadow-dark);
340
+ background-color: var(--color-bg-test-recorder);
188
341
  transition: box-shadow 50ms ease-out;
189
342
  }
190
343
 
191
344
  .test-recorder-button:active {
192
- box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
345
+ box-shadow: 1px 2px 4px var(--color-shadow-dark);
193
346
  }
194
347
 
195
348
  .test-recorder-button + .test-recorder-button {
@@ -265,8 +418,8 @@ pre::-webkit-scrollbar-thumb {
265
418
  }
266
419
 
267
420
  .typeahead-popover {
268
- background: #fff;
269
- box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
421
+ background: var(--color-bg-surface);
422
+ box-shadow: 0px 5px 10px var(--color-shadow-medium);
270
423
  border-radius: 8px;
271
424
  position: relative;
272
425
  }
@@ -299,13 +452,13 @@ pre::-webkit-scrollbar-thumb {
299
452
  }
300
453
 
301
454
  .typeahead-popover ul li.selected {
302
- background: #eee;
455
+ background: var(--color-bg-hover);
303
456
  }
304
457
 
305
458
  .typeahead-popover li {
306
459
  margin: 0 8px 0 8px;
307
460
  padding: 8px;
308
- color: #050505;
461
+ color: var(--color-text-body);
309
462
  cursor: pointer;
310
463
  line-height: 16px;
311
464
  font-size: 15px;
@@ -313,7 +466,7 @@ pre::-webkit-scrollbar-thumb {
313
466
  align-content: center;
314
467
  flex-direction: row;
315
468
  flex-shrink: 0;
316
- background-color: #fff;
469
+ background-color: var(--color-bg-surface);
317
470
  border-radius: 8px;
318
471
  border: 0;
319
472
  }
@@ -334,7 +487,7 @@ pre::-webkit-scrollbar-thumb {
334
487
  }
335
488
 
336
489
  .typeahead-popover li:hover {
337
- background-color: #eee;
490
+ background-color: var(--color-bg-hover);
338
491
  }
339
492
 
340
493
  .typeahead-popover li .text {
@@ -486,10 +639,6 @@ i.figma {
486
639
  background-image: url(images/icons/figma.svg);
487
640
  }
488
641
 
489
- i.poll {
490
- background-image: url(images/icons/card-checklist.svg);
491
- }
492
-
493
642
  i.columns {
494
643
  background-image: url(images/icons/3-columns.svg);
495
644
  }
@@ -624,7 +773,7 @@ i.page-break,
624
773
 
625
774
  .link-editor .button.active,
626
775
  .toolbar .button.active {
627
- background-color: rgb(223, 232, 250);
776
+ background-color: var(--color-accent-bg);
628
777
  }
629
778
 
630
779
  .link-editor .link-input {
@@ -634,9 +783,9 @@ i.page-break,
634
783
  margin: 12px 12px;
635
784
  padding: 8px 12px;
636
785
  border-radius: 15px;
637
- background-color: #eee;
786
+ background-color: var(--color-bg-input);
638
787
  font-size: 15px;
639
- color: rgb(5, 5, 5);
788
+ color: var(--color-text-body);
640
789
  border: 0;
641
790
  outline: 0;
642
791
  position: relative;
@@ -650,7 +799,7 @@ i.page-break,
650
799
  padding: 8px 12px;
651
800
  border-radius: 15px;
652
801
  font-size: 15px;
653
- color: rgb(5, 5, 5);
802
+ color: var(--color-text-body);
654
803
  border: 0;
655
804
  outline: 0;
656
805
  position: relative;
@@ -722,7 +871,7 @@ i.page-break,
722
871
  }
723
872
 
724
873
  .link-editor .link-input a {
725
- color: rgb(33, 111, 219);
874
+ color: var(--color-link);
726
875
  text-decoration: underline;
727
876
  white-space: nowrap;
728
877
  overflow: hidden;
@@ -743,17 +892,17 @@ i.page-break,
743
892
  .link-editor select {
744
893
  padding: 6px;
745
894
  border: none;
746
- background-color: rgba(0, 0, 0, 0.075);
895
+ background-color: var(--color-border-input);
747
896
  border-radius: 4px;
748
897
  }
749
898
 
750
899
  .mention:focus {
751
- box-shadow: rgb(180 213 255) 0px 0px 0px 2px;
900
+ box-shadow: var(--color-accent-shadow) 0px 0px 0px 2px;
752
901
  outline: none;
753
902
  }
754
903
 
755
904
  .characters-limit {
756
- color: #888;
905
+ color: var(--color-text-muted);
757
906
  font-size: 12px;
758
907
  text-align: right;
759
908
  display: block;
@@ -763,7 +912,7 @@ i.page-break,
763
912
  }
764
913
 
765
914
  .characters-limit.characters-limit-exceeded {
766
- color: red;
915
+ color: var(--color-error);
767
916
  }
768
917
 
769
918
  .dropdown {
@@ -771,18 +920,18 @@ i.page-break,
771
920
  display: block;
772
921
  position: fixed;
773
922
  box-shadow:
774
- 0 12px 28px 0 rgba(0, 0, 0, 0.2),
923
+ 0 12px 28px 0 var(--color-shadow-light),
775
924
  0 2px 4px 0 rgba(0, 0, 0, 0.1),
776
- inset 0 0 0 1px rgba(255, 255, 255, 0.5);
925
+ inset 0 0 0 1px var(--color-overlay);
777
926
  border-radius: 8px;
778
927
  min-height: 40px;
779
- background-color: #fff;
928
+ background-color: var(--color-bg-surface);
780
929
  }
781
930
 
782
931
  .dropdown .item {
783
932
  margin: 0 8px 0 8px;
784
933
  padding: 8px;
785
- color: #050505;
934
+ color: var(--color-text-body);
786
935
  cursor: pointer;
787
936
  line-height: 16px;
788
937
  font-size: 15px;
@@ -791,7 +940,7 @@ i.page-break,
791
940
  flex-direction: row;
792
941
  flex-shrink: 0;
793
942
  justify-content: space-between;
794
- background-color: #fff;
943
+ background-color: var(--color-bg-surface);
795
944
  border-radius: 8px;
796
945
  border: 0;
797
946
  max-width: 264px;
@@ -812,7 +961,7 @@ i.page-break,
812
961
  }
813
962
 
814
963
  .dropdown .item .shortcut {
815
- color: #939393;
964
+ color: var(--color-text-placeholder);
816
965
  align-self: flex-end;
817
966
  }
818
967
 
@@ -832,7 +981,7 @@ i.page-break,
832
981
  }
833
982
 
834
983
  .dropdown .item:hover {
835
- background-color: #eee;
984
+ background-color: var(--color-bg-hover);
836
985
  }
837
986
 
838
987
  .dropdown .item .text {
@@ -856,7 +1005,7 @@ i.page-break,
856
1005
 
857
1006
  .dropdown .divider {
858
1007
  width: auto;
859
- background-color: #eee;
1008
+ background-color: var(--color-divider);
860
1009
  margin: 4px 8px;
861
1010
  height: 1px;
862
1011
  }
@@ -952,7 +1101,7 @@ i.page-break,
952
1101
 
953
1102
  .switch {
954
1103
  display: block;
955
- color: #444;
1104
+ color: var(--color-dev-button);
956
1105
  margin: 5px 0;
957
1106
  background-color: rgba(238, 238, 238, 0.7);
958
1107
  padding: 5px 10px;
@@ -977,7 +1126,7 @@ i.page-break,
977
1126
  }
978
1127
 
979
1128
  .switch button {
980
- background-color: rgb(206, 208, 212);
1129
+ background-color: var(--color-switch-bg);
981
1130
  height: 24px;
982
1131
  box-sizing: border-box;
983
1132
  border-radius: 12px;
@@ -1008,7 +1157,7 @@ i.page-break,
1008
1157
  }
1009
1158
 
1010
1159
  .switch button[aria-checked="true"] {
1011
- background-color: rgb(24, 119, 242);
1160
+ background-color: var(--color-switch-active);
1012
1161
  }
1013
1162
 
1014
1163
  .switch button[aria-checked="true"] span {
@@ -1029,7 +1178,7 @@ i.page-break,
1029
1178
  }
1030
1179
 
1031
1180
  .editor-shell .editor-image img.focused {
1032
- outline: 2px solid rgb(60, 132, 244);
1181
+ outline: 2px solid var(--color-accent);
1033
1182
  user-select: none;
1034
1183
  }
1035
1184
 
@@ -1054,10 +1203,10 @@ i.page-break,
1054
1203
  right: 0;
1055
1204
  padding: 0;
1056
1205
  margin: 0;
1057
- border-top: 1px solid #fff;
1058
- background-color: rgba(255, 255, 255, 0.9);
1206
+ border-top: 1px solid var(--color-bg-surface);
1207
+ background-color: var(--color-overlay-bg);
1059
1208
  min-width: 100px;
1060
- color: #000;
1209
+ color: var(--color-text-primary);
1061
1210
  overflow: hidden;
1062
1211
  box-sizing: border-box;
1063
1212
  max-width: 100%;
@@ -1075,9 +1224,9 @@ i.page-break,
1075
1224
  margin: 0 auto;
1076
1225
  border: 1px solid rgba(255, 255, 255, 0.3);
1077
1226
  border-radius: 5px;
1078
- background-color: rgba(0, 0, 0, 0.5);
1227
+ background-color: var(--color-overlay-dark);
1079
1228
  min-width: 100px;
1080
- color: #fff;
1229
+ color: var(--color-text-code);
1081
1230
  cursor: pointer;
1082
1231
  user-select: none;
1083
1232
  }
@@ -1087,7 +1236,7 @@ i.page-break,
1087
1236
  }
1088
1237
 
1089
1238
  .editor-shell .editor-image .image-edit-button {
1090
- border: 1px solid rgba(0, 0, 0, 0.3);
1239
+ border: 1px solid var(--color-shadow-medium);
1091
1240
  border-radius: 5px;
1092
1241
  background-image: url(/src/images/icons/pencil-fill.svg);
1093
1242
  background-size: 16px;
@@ -1112,31 +1261,31 @@ i.page-break,
1112
1261
  width: 7px;
1113
1262
  height: 7px;
1114
1263
  position: absolute;
1115
- background-color: rgb(60, 132, 244);
1116
- border: 1px solid #fff;
1264
+ background-color: var(--color-accent);
1265
+ border: 1px solid var(--color-bg-surface);
1117
1266
  }
1118
1267
 
1119
1268
  .editor-shell .editor-image .image-resizer.image-resizer-n {
1120
- top: -6px;
1269
+ top: -2px;
1121
1270
  left: 48%;
1122
1271
  cursor: n-resize;
1123
1272
  }
1124
1273
 
1125
1274
  .editor-shell .editor-image .image-resizer.image-resizer-ne {
1126
- top: -6px;
1127
- right: -6px;
1275
+ top: -2px;
1276
+ right: -2px;
1128
1277
  cursor: ne-resize;
1129
1278
  }
1130
1279
 
1131
1280
  .editor-shell .editor-image .image-resizer.image-resizer-e {
1132
1281
  bottom: 48%;
1133
- right: -6px;
1282
+ right: -2px;
1134
1283
  cursor: e-resize;
1135
1284
  }
1136
1285
 
1137
1286
  .editor-shell .editor-image .image-resizer.image-resizer-se {
1138
1287
  bottom: -2px;
1139
- right: -6px;
1288
+ right: -2px;
1140
1289
  cursor: nwse-resize;
1141
1290
  }
1142
1291
 
@@ -1148,25 +1297,25 @@ i.page-break,
1148
1297
 
1149
1298
  .editor-shell .editor-image .image-resizer.image-resizer-sw {
1150
1299
  bottom: -2px;
1151
- left: -6px;
1300
+ left: -2px;
1152
1301
  cursor: sw-resize;
1153
1302
  }
1154
1303
 
1155
1304
  .editor-shell .editor-image .image-resizer.image-resizer-w {
1156
1305
  bottom: 48%;
1157
- left: -6px;
1306
+ left: -2px;
1158
1307
  cursor: w-resize;
1159
1308
  }
1160
1309
 
1161
1310
  .editor-shell .editor-image .image-resizer.image-resizer-nw {
1162
- top: -6px;
1163
- left: -6px;
1311
+ top: -2px;
1312
+ left: -2px;
1164
1313
  cursor: nw-resize;
1165
1314
  }
1166
1315
 
1167
1316
  .emoji {
1168
1317
  color: transparent;
1169
- caret-color: rgb(5, 5, 5);
1318
+ caret-color: var(--color-text-body);
1170
1319
  background-size: 16px 16px;
1171
1320
  background-position: center;
1172
1321
  background-repeat: no-repeat;
@@ -1205,7 +1354,7 @@ i.page-break,
1205
1354
  }
1206
1355
 
1207
1356
  .keyword {
1208
- color: rgb(241, 118, 94);
1357
+ color: var(--color-keyword);
1209
1358
  font-weight: bold;
1210
1359
  }
1211
1360
 
@@ -1306,7 +1455,7 @@ i.page-break,
1306
1455
  top: 10px;
1307
1456
  right: 10px;
1308
1457
  border-radius: 15px;
1309
- color: #222;
1458
+ color: var(--color-text-button);
1310
1459
  display: inline-block;
1311
1460
  cursor: pointer;
1312
1461
  }
@@ -1321,13 +1470,13 @@ i.chevron-down {
1321
1470
  }
1322
1471
 
1323
1472
  .action-button {
1324
- background-color: #ddd;
1473
+ background-color: var(--color-bg-button);
1325
1474
  border: 0;
1326
1475
  padding: 8px 12px;
1327
1476
  position: relative;
1328
1477
  margin-left: 5px;
1329
1478
  border-radius: 15px;
1330
- color: #222;
1479
+ color: var(--color-text-button);
1331
1480
  display: inline-block;
1332
1481
  cursor: pointer;
1333
1482
  }
@@ -1338,8 +1487,8 @@ i.chevron-down {
1338
1487
  }
1339
1488
 
1340
1489
  .action-button:hover {
1341
- background-color: #ccc;
1342
- color: #000;
1490
+ background-color: var(--color-bg-button-hover);
1491
+ color: var(--color-text-primary);
1343
1492
  }
1344
1493
 
1345
1494
  .action-button-mic.active {
@@ -1383,7 +1532,7 @@ button.action-button:disabled {
1383
1532
  border: 0;
1384
1533
  background: none;
1385
1534
  flex: 1;
1386
- color: #fff;
1535
+ color: var(--color-text-code);
1387
1536
  font-size: 12px;
1388
1537
  }
1389
1538
 
@@ -1399,7 +1548,7 @@ button.action-button:disabled {
1399
1548
  right: 15px;
1400
1549
  position: absolute;
1401
1550
  background: none;
1402
- color: #fff;
1551
+ color: var(--color-text-code);
1403
1552
  }
1404
1553
 
1405
1554
  .debug-timetravel-button:hover {
@@ -1414,7 +1563,7 @@ button.action-button:disabled {
1414
1563
  right: 85px;
1415
1564
  position: absolute;
1416
1565
  background: none;
1417
- color: #fff;
1566
+ color: var(--color-text-code);
1418
1567
  }
1419
1568
 
1420
1569
  .debug-treetype-button:hover {
@@ -1423,7 +1572,7 @@ button.action-button:disabled {
1423
1572
 
1424
1573
  .connecting {
1425
1574
  font-size: 15px;
1426
- color: #999;
1575
+ color: var(--color-text-tertiary);
1427
1576
  overflow: hidden;
1428
1577
  position: absolute;
1429
1578
  text-overflow: ellipsis;
@@ -1438,10 +1587,8 @@ button.action-button:disabled {
1438
1587
  .toolbar {
1439
1588
  display: flex;
1440
1589
  margin-bottom: 1px;
1441
- background: #fff;
1590
+ background: var(--color-bg-surface);
1442
1591
  padding: 4px;
1443
- border-top-left-radius: 10px;
1444
- border-top-right-radius: 10px;
1445
1592
  vertical-align: middle;
1446
1593
  overflow: auto;
1447
1594
  height: 36px;
@@ -1453,7 +1600,7 @@ button.action-button:disabled {
1453
1600
  }
1454
1601
 
1455
1602
  .toolbar .toolbar-item:focus {
1456
- outline: 2px solid rgb(60, 132, 244);
1603
+ outline: 2px solid var(--color-accent);
1457
1604
  }
1458
1605
 
1459
1606
  button.toolbar-item {
@@ -1495,7 +1642,7 @@ button.toolbar-item:disabled .chevron-down {
1495
1642
  }
1496
1643
 
1497
1644
  button.toolbar-item.active {
1498
- background-color: rgba(223, 232, 250, 0.3);
1645
+ background-color: var(--color-bg-active);
1499
1646
  }
1500
1647
 
1501
1648
  button.toolbar-item.active i {
@@ -1503,7 +1650,7 @@ button.toolbar-item.active i {
1503
1650
  }
1504
1651
 
1505
1652
  .toolbar-item:hover:not([disabled]) {
1506
- background-color: #eee;
1653
+ background-color: var(--color-bg-hover);
1507
1654
  }
1508
1655
 
1509
1656
  .toolbar-item.font-family .text {
@@ -1520,7 +1667,7 @@ button.toolbar-item.active i {
1520
1667
  line-height: 20px;
1521
1668
  vertical-align: middle;
1522
1669
  font-size: 14px;
1523
- color: #777;
1670
+ color: var(--color-text-secondary);
1524
1671
  text-overflow: ellipsis;
1525
1672
  overflow: hidden;
1526
1673
  height: 20px;
@@ -1563,124 +1710,10 @@ button.toolbar-item.active i {
1563
1710
 
1564
1711
  .toolbar .divider {
1565
1712
  width: 1px;
1566
- background-color: #eee;
1713
+ background-color: var(--color-divider);
1567
1714
  margin: 0 4px;
1568
1715
  }
1569
1716
 
1570
- .sticky-note-container {
1571
- position: absolute;
1572
- z-index: 9;
1573
- width: 120px;
1574
- display: inline-block;
1575
- }
1576
-
1577
- .sticky-note {
1578
- line-height: 1;
1579
- text-align: left;
1580
- width: 120px;
1581
- margin: 25px;
1582
- padding: 20px 10px;
1583
- position: relative;
1584
- border: 1px solid #e8e8e8;
1585
- font-family: "Reenie Beanie";
1586
- font-size: 24px;
1587
- border-bottom-right-radius: 60px 5px;
1588
- display: block;
1589
- cursor: move;
1590
- }
1591
-
1592
- .sticky-note:after {
1593
- content: "";
1594
- position: absolute;
1595
- z-index: -1;
1596
- right: -0px;
1597
- bottom: 20px;
1598
- width: 120px;
1599
- height: 25px;
1600
- background: rgba(0, 0, 0, 0.2);
1601
- box-shadow: 2px 15px 5px rgba(0, 0, 0, 0.4);
1602
- transform: matrix(-1, -0.1, 0, 1, 0, 0);
1603
- }
1604
-
1605
- .sticky-note.yellow {
1606
- border-top: 1px solid #fdfd86;
1607
- background: linear-gradient(
1608
- 135deg,
1609
- #ffff88 81%,
1610
- #ffff88 82%,
1611
- #ffff88 82%,
1612
- #ffffc6 100%
1613
- );
1614
- }
1615
-
1616
- .sticky-note.pink {
1617
- border-top: 1px solid #e7d1e4;
1618
- background: linear-gradient(
1619
- 135deg,
1620
- #f7cbe8 81%,
1621
- #f7cbe8 82%,
1622
- #f7cbe8 82%,
1623
- #e7bfe1 100%
1624
- );
1625
- }
1626
-
1627
- .sticky-note-container.dragging {
1628
- transition: none !important;
1629
- }
1630
-
1631
- .sticky-note div {
1632
- cursor: text;
1633
- }
1634
-
1635
- .sticky-note .delete {
1636
- border: 0;
1637
- background: none;
1638
- position: absolute;
1639
- top: 8px;
1640
- right: 10px;
1641
- font-size: 10px;
1642
- cursor: pointer;
1643
- opacity: 0.5;
1644
- }
1645
-
1646
- .sticky-note .delete:hover {
1647
- font-weight: bold;
1648
- opacity: 1;
1649
- }
1650
-
1651
- .sticky-note .color {
1652
- border: 0;
1653
- background: none;
1654
- position: absolute;
1655
- top: 8px;
1656
- right: 25px;
1657
- cursor: pointer;
1658
- opacity: 0.5;
1659
- }
1660
-
1661
- .sticky-note .color:hover {
1662
- opacity: 1;
1663
- }
1664
-
1665
- .sticky-note .color i {
1666
- display: block;
1667
- width: 12px;
1668
- height: 12px;
1669
- background-size: contain;
1670
- }
1671
-
1672
- .excalidraw-button {
1673
- border: 0;
1674
- padding: 0;
1675
- margin: 0;
1676
- background-color: transparent;
1677
- }
1678
-
1679
- .excalidraw-button.selected {
1680
- outline: 2px solid rgb(60, 132, 244);
1681
- user-select: none;
1682
- }
1683
-
1684
1717
  .github-corner:hover .octo-arm {
1685
1718
  animation: octocat-wave 560ms ease-in-out;
1686
1719
  }
@@ -1722,7 +1755,7 @@ button.toolbar-item.active i {
1722
1755
  }
1723
1756
 
1724
1757
  .editor-equation.focused {
1725
- outline: 2px solid rgb(60, 132, 244);
1758
+ outline: 2px solid var(--color-accent);
1726
1759
  }
1727
1760
 
1728
1761
  button.item i {
@@ -1730,7 +1763,7 @@ button.item i {
1730
1763
  }
1731
1764
 
1732
1765
  button.item.dropdown-item-active {
1733
- background-color: rgba(223, 232, 250, 0.3);
1766
+ background-color: var(--color-bg-active);
1734
1767
  }
1735
1768
 
1736
1769
  button.item.dropdown-item-active i {
@@ -1772,3 +1805,7 @@ button.item.dropdown-item-active i {
1772
1805
  white-space: nowrap;
1773
1806
  display: inline-block;
1774
1807
  }
1808
+
1809
+ .rdp-dropdown {
1810
+ background-color: var(--color-bg-surface);
1811
+ }