@plannotator/ui 0.22.0
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 +60 -0
- package/assets/diff-options.png +0 -0
- package/assets/icon-codex.png +0 -0
- package/assets/look-flat.png +0 -0
- package/assets/look-grid.png +0 -0
- package/assets/review-sections.png +0 -0
- package/assets/review-tree.png +0 -0
- package/assets/workspaces.webp +0 -0
- package/components/AISettingsTab.tsx +145 -0
- package/components/ActionMenu.tsx +101 -0
- package/components/AgentControls.tsx +216 -0
- package/components/AgentsTab.tsx +1294 -0
- package/components/AnnotationPanel.tsx +731 -0
- package/components/AnnotationSidebar.tsx +86 -0
- package/components/AnnotationToolbar.tsx +323 -0
- package/components/AnnotationToolstrip.tsx +355 -0
- package/components/ApproveDropdown.tsx +170 -0
- package/components/AttachmentsButton.tsx +410 -0
- package/components/BlockRenderer.tsx +163 -0
- package/components/BorderTrail.tsx +38 -0
- package/components/CodeFilePicker.tsx +64 -0
- package/components/CodeFilePopout.tsx +602 -0
- package/components/CodePathValidationContext.tsx +14 -0
- package/components/CommentPopover.tsx +512 -0
- package/components/CompletionOverlay.tsx +99 -0
- package/components/ConfirmDialog.tsx +128 -0
- package/components/DocBadges.tsx +231 -0
- package/components/EditorAnnotationCard.tsx +65 -0
- package/components/ExportModal.tsx +565 -0
- package/components/FloatingQuickLabelPicker.tsx +144 -0
- package/components/GitHubIcon.tsx +16 -0
- package/components/GitLabIcon.tsx +30 -0
- package/components/GraphvizBlock.tsx +511 -0
- package/components/ImageAnnotator/Canvas.tsx +118 -0
- package/components/ImageAnnotator/Toolbar.tsx +218 -0
- package/components/ImageAnnotator/index.tsx +272 -0
- package/components/ImageAnnotator/types.ts +39 -0
- package/components/ImageAnnotator/utils.ts +147 -0
- package/components/ImageThumbnail.tsx +126 -0
- package/components/ImportModal.tsx +146 -0
- package/components/InlineMarkdown.tsx +1094 -0
- package/components/KeyboardShortcuts.tsx +208 -0
- package/components/Landing.tsx +496 -0
- package/components/ListItemBody.tsx +62 -0
- package/components/ListMarker.tsx +73 -0
- package/components/LookAndFeelAnnouncementDialog.tsx +230 -0
- package/components/MarkdownEditor.tsx +44 -0
- package/components/MenuVersionSection.tsx +91 -0
- package/components/MermaidBlock.tsx +579 -0
- package/components/ModeToggle.tsx +68 -0
- package/components/OpenInAppButton.tsx +299 -0
- package/components/OverlayScrollArea.tsx +82 -0
- package/components/PermissionModeSetup.tsx +92 -0
- package/components/PinpointOverlay.tsx +99 -0
- package/components/PlanAIAnnouncementDialog.tsx +187 -0
- package/components/PlanHeaderMenu.tsx +299 -0
- package/components/PopoutDialog.tsx +91 -0
- package/components/Popover.tsx +27 -0
- package/components/ProviderIcons.tsx +51 -0
- package/components/PullRequestIcon.tsx +12 -0
- package/components/QuickLabelDropdown.tsx +63 -0
- package/components/RenderedMarkdown.tsx +54 -0
- package/components/RepoIcon.tsx +12 -0
- package/components/ResizeHandle.tsx +86 -0
- package/components/ReviewAgentsIcon.tsx +18 -0
- package/components/SearchableSelect.tsx +157 -0
- package/components/Settings.tsx +2220 -0
- package/components/SparklesIcon.tsx +45 -0
- package/components/StickyHeaderLane.tsx +260 -0
- package/components/TableOfContents.tsx +157 -0
- package/components/TaterSpritePullup.tsx +34 -0
- package/components/TaterSpriteRunning.tsx +54 -0
- package/components/TaterSpriteSitting.tsx +37 -0
- package/components/TextShimmer.tsx +57 -0
- package/components/ThemeProvider.tsx +162 -0
- package/components/ThemeTab.tsx +139 -0
- package/components/ToolbarButtons.tsx +116 -0
- package/components/Tooltip.tsx +45 -0
- package/components/Viewer.tsx +977 -0
- package/components/ai/AIProviderBar.tsx +95 -0
- package/components/ai/DocumentAIChatPanel.tsx +313 -0
- package/components/blocks/AlertBlock.tsx +58 -0
- package/components/blocks/Callout.tsx +60 -0
- package/components/blocks/CodeBlock.tsx +75 -0
- package/components/blocks/HtmlBlock.tsx +122 -0
- package/components/blocks/MathBlock.tsx +36 -0
- package/components/blocks/TableBlock.tsx +146 -0
- package/components/blocks/TablePopout.tsx +279 -0
- package/components/blocks/TableToolbar.tsx +153 -0
- package/components/blocks/proseBody.tsx +102 -0
- package/components/core/button.tsx +44 -0
- package/components/core/textarea.tsx +26 -0
- package/components/diagramLanguages.ts +14 -0
- package/components/goal-setup/GoalSetupSurface.tsx +1354 -0
- package/components/html-viewer/HtmlViewer.tsx +386 -0
- package/components/html-viewer/bridge-script.ts +505 -0
- package/components/html-viewer/index.ts +1 -0
- package/components/html-viewer/useHtmlAnnotation.ts +400 -0
- package/components/icons/AgentIcons.tsx +66 -0
- package/components/icons/AppIcon.tsx +56 -0
- package/components/icons/MessagesIcon.tsx +11 -0
- package/components/icons/ObsidianIcons.tsx +208 -0
- package/components/icons/app/android-studio.svg +369 -0
- package/components/icons/app/antigravity.svg +97 -0
- package/components/icons/app/cursor.svg +16 -0
- package/components/icons/app/file-explorer.svg +20 -0
- package/components/icons/app/finder.png +0 -0
- package/components/icons/app/ghostty.svg +13 -0
- package/components/icons/app/iterm2.svg +13 -0
- package/components/icons/app/powershell.svg +14 -0
- package/components/icons/app/sublime-text.svg +17 -0
- package/components/icons/app/terminal.png +0 -0
- package/components/icons/app/textmate.png +0 -0
- package/components/icons/app/vscode.svg +39 -0
- package/components/icons/app/warp.png +0 -0
- package/components/icons/app/xcode.png +0 -0
- package/components/icons/app/zed-dark.svg +15 -0
- package/components/icons/app/zed.svg +15 -0
- package/components/icons/themeIcons.tsx +47 -0
- package/components/mermaidSvg.ts +33 -0
- package/components/plan-diff/PlanCleanDiffView.tsx +884 -0
- package/components/plan-diff/PlanDiffBadge.tsx +48 -0
- package/components/plan-diff/PlanDiffModeSwitcher.tsx +103 -0
- package/components/plan-diff/PlanDiffViewer.tsx +214 -0
- package/components/plan-diff/PlanRawDiffView.tsx +102 -0
- package/components/plan-diff/VSCodeIcon.tsx +132 -0
- package/components/settings/HooksTab.tsx +208 -0
- package/components/sidebar/ArchiveBrowser.tsx +98 -0
- package/components/sidebar/CountBadge.tsx +12 -0
- package/components/sidebar/FileBrowser.tsx +498 -0
- package/components/sidebar/MessagesBrowser.tsx +109 -0
- package/components/sidebar/SidebarContainer.tsx +353 -0
- package/components/sidebar/SidebarTabs.tsx +155 -0
- package/components/sidebar/VersionBrowser.tsx +141 -0
- package/components/types.d.ts +7 -0
- package/components/ui/badge.tsx +44 -0
- package/components/ui/button.tsx +83 -0
- package/components/ui/card.tsx +58 -0
- package/components/ui/dialog.tsx +106 -0
- package/components/ui/dropdown-menu.tsx +240 -0
- package/components/ui/state-pill.tsx +45 -0
- package/components/ui/tabs.tsx +46 -0
- package/components/ui/textarea.tsx +25 -0
- package/config/configStore.ts +214 -0
- package/config/index.ts +4 -0
- package/config/reviewView.ts +42 -0
- package/config/settings.ts +310 -0
- package/config/useConfig.ts +20 -0
- package/configure.ts +69 -0
- package/globals.d.ts +14 -0
- package/hooks/pfm/useCodeFilePopout.ts +111 -0
- package/hooks/useAIChat.ts +532 -0
- package/hooks/useAIProviderConfig.ts +115 -0
- package/hooks/useActiveSection.ts +78 -0
- package/hooks/useAgentJobs.ts +306 -0
- package/hooks/useAgentSettings.ts +579 -0
- package/hooks/useAgents.ts +90 -0
- package/hooks/useAnnotationDraft.ts +523 -0
- package/hooks/useAnnotationHighlighter.ts +1170 -0
- package/hooks/useArchive.ts +171 -0
- package/hooks/useAutoClose.ts +104 -0
- package/hooks/useCodeAnnotationDraft.ts +194 -0
- package/hooks/useCodeFilePopout.ts +1 -0
- package/hooks/useDismissOnOutsideAndEscape.ts +50 -0
- package/hooks/useDraggable.ts +108 -0
- package/hooks/useEditorAnnotations.ts +64 -0
- package/hooks/useExternalAnnotationHighlights.ts +105 -0
- package/hooks/useExternalAnnotations.ts +268 -0
- package/hooks/useFileBrowser.ts +402 -0
- package/hooks/useInputMethodSwitch.ts +89 -0
- package/hooks/useIsMobile.ts +17 -0
- package/hooks/useLinkedDoc.ts +494 -0
- package/hooks/useOverlayViewport.ts +36 -0
- package/hooks/usePinpoint.ts +182 -0
- package/hooks/usePlanDiff.ts +176 -0
- package/hooks/usePrintMode.ts +27 -0
- package/hooks/useResizablePanel.ts +173 -0
- package/hooks/useScrollViewport.ts +38 -0
- package/hooks/useSharing.ts +441 -0
- package/hooks/useSidebar.ts +55 -0
- package/hooks/useUpdateCheck.ts +132 -0
- package/hooks/useValidatedCodePaths.ts +94 -0
- package/icons/GitUser.tsx +17 -0
- package/lib/utils.ts +11 -0
- package/package.json +117 -0
- package/plannotator.webp +0 -0
- package/print.css +427 -0
- package/shortcuts/code-review/ai.shortcuts.ts +25 -0
- package/shortcuts/code-review/allFilesDiff.shortcuts.ts +46 -0
- package/shortcuts/code-review/annotationToolbar.shortcuts.ts +30 -0
- package/shortcuts/code-review/fileTree.shortcuts.ts +35 -0
- package/shortcuts/code-review/prComments.shortcuts.ts +18 -0
- package/shortcuts/code-review/suggestionModal.shortcuts.ts +25 -0
- package/shortcuts/code-review/tourDialog.shortcuts.ts +18 -0
- package/shortcuts/core.ts +399 -0
- package/shortcuts/index.ts +21 -0
- package/shortcuts/plan-review/annotationPanel.shortcuts.ts +25 -0
- package/shortcuts/plan-review/annotationToolbar.shortcuts.ts +39 -0
- package/shortcuts/plan-review/commentPopover.shortcuts.ts +21 -0
- package/shortcuts/plan-review/goalSetup.shortcuts.ts +10 -0
- package/shortcuts/plan-review/imageAnnotator.shortcuts.ts +42 -0
- package/shortcuts/plan-review/inputMethod.shortcuts.ts +30 -0
- package/shortcuts/plan-review/sidebar.shortcuts.ts +34 -0
- package/shortcuts/plan-review/viewer.shortcuts.ts +24 -0
- package/shortcuts/runtime.ts +259 -0
- package/sprite_package_additional/index.html +34 -0
- package/sprite_package_additional/sprite.png +0 -0
- package/sprite_package_new/index.html +34 -0
- package/sprite_package_new/sprite.png +0 -0
- package/sprite_package_pulluphang/index.html +34 -0
- package/sprite_package_pulluphang/sprite.png +0 -0
- package/styles.css +1 -0
- package/theme.css +893 -0
- package/themes/adwaita.css +62 -0
- package/themes/andromeeda.css +66 -0
- package/themes/aurora-x.css +66 -0
- package/themes/ayu-dark.css +66 -0
- package/themes/caffeine.css +113 -0
- package/themes/catppuccin.css +62 -0
- package/themes/claude-plus.css +60 -0
- package/themes/cursor-hc.css +34 -0
- package/themes/cursor-midnight.css +34 -0
- package/themes/cursor.css +62 -0
- package/themes/dark-plus.css +66 -0
- package/themes/doom-64.css +109 -0
- package/themes/dracula.css +33 -0
- package/themes/everforest-hard.css +62 -0
- package/themes/everforest-soft.css +62 -0
- package/themes/everforest.css +62 -0
- package/themes/github.css +66 -0
- package/themes/gruvbox.css +62 -0
- package/themes/houston.css +66 -0
- package/themes/kanagawa-dragon.css +34 -0
- package/themes/kanagawa-lotus.css +34 -0
- package/themes/kanagawa-wave.css +34 -0
- package/themes/laserwave.css +66 -0
- package/themes/material.css +62 -0
- package/themes/min.css +66 -0
- package/themes/monokai-pro.css +34 -0
- package/themes/neutral.css +59 -0
- package/themes/night-owl.css +66 -0
- package/themes/nord.css +66 -0
- package/themes/one-dark-pro.css +66 -0
- package/themes/one-light.css +66 -0
- package/themes/paulmillr.css +34 -0
- package/themes/plannotator.css +60 -0
- package/themes/plastic.css +66 -0
- package/themes/poimandres.css +66 -0
- package/themes/quantum-rose.css +109 -0
- package/themes/red.css +66 -0
- package/themes/rose-pine.css +62 -0
- package/themes/simple.css +124 -0
- package/themes/slack.css +66 -0
- package/themes/snazzy-light.css +66 -0
- package/themes/soft-pop.css +60 -0
- package/themes/solar-dusk.css +109 -0
- package/themes/solarized.css +66 -0
- package/themes/synthwave-84.css +34 -0
- package/themes/terminal.css +62 -0
- package/themes/tinacious.css +57 -0
- package/themes/tokyo-night.css +62 -0
- package/themes/vesper.css +62 -0
- package/themes/vitesse-black.css +66 -0
- package/themes/vitesse.css +62 -0
- package/types.ts +264 -0
- package/utils/agentSwitch.ts +71 -0
- package/utils/aiChatFormat.ts +33 -0
- package/utils/aiPrompt.ts +29 -0
- package/utils/aiProvider.ts +217 -0
- package/utils/anchors.ts +11 -0
- package/utils/annotateAgentTerminal.ts +29 -0
- package/utils/annotationHelpers.ts +101 -0
- package/utils/bear.ts +59 -0
- package/utils/blockTargeting.ts +240 -0
- package/utils/callback.ts +99 -0
- package/utils/commentContent.ts +8 -0
- package/utils/defaultNotesApp.ts +20 -0
- package/utils/diffFonts.ts +33 -0
- package/utils/editorMode.ts +31 -0
- package/utils/fileBrowser.ts +40 -0
- package/utils/generateId.ts +7 -0
- package/utils/generateIdentity.ts +29 -0
- package/utils/identity.ts +112 -0
- package/utils/inlineTransforms.ts +41 -0
- package/utils/inputMethod.ts +17 -0
- package/utils/lookAndFeelAnnouncement.ts +18 -0
- package/utils/obsidian.ts +201 -0
- package/utils/octarine.ts +53 -0
- package/utils/parser.ts +991 -0
- package/utils/permissionMode.ts +77 -0
- package/utils/planAIAnnouncement.ts +17 -0
- package/utils/planAgentInstructions.ts +137 -0
- package/utils/planDiffEngine.ts +590 -0
- package/utils/planSave.ts +49 -0
- package/utils/platform.ts +11 -0
- package/utils/quickLabels.ts +77 -0
- package/utils/reviewAgentInstructions.ts +182 -0
- package/utils/sanitizeHtml.ts +45 -0
- package/utils/sharing.ts +350 -0
- package/utils/slugify.ts +37 -0
- package/utils/storage.ts +141 -0
- package/utils/themeRegistry.ts +567 -0
- package/utils/uiPreferences.ts +34 -0
- package/utils/upload.ts +56 -0
- package/utils/wideMode.ts +48 -0
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
export interface ThemeColors {
|
|
2
|
+
primary: string;
|
|
3
|
+
secondary: string;
|
|
4
|
+
accent: string;
|
|
5
|
+
background: string;
|
|
6
|
+
foreground: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface ThemeInfo {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
builtIn: boolean;
|
|
13
|
+
modeSupport: 'both' | 'dark-only' | 'light-only';
|
|
14
|
+
syntaxHighlighting?: boolean;
|
|
15
|
+
colors: {
|
|
16
|
+
dark: ThemeColors;
|
|
17
|
+
light: ThemeColors;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const BUILT_IN_THEMES: ThemeInfo[] = [
|
|
22
|
+
{
|
|
23
|
+
id: 'plannotator',
|
|
24
|
+
name: 'Plannotator',
|
|
25
|
+
builtIn: true,
|
|
26
|
+
modeSupport: 'both',
|
|
27
|
+
colors: {
|
|
28
|
+
dark: { primary: 'oklch(0.75 0.18 280)', secondary: 'oklch(0.65 0.15 180)', accent: 'oklch(0.70 0.20 60)', background: 'oklch(0.15 0.02 260)', foreground: 'oklch(0.90 0.01 260)' },
|
|
29
|
+
light: { primary: 'oklch(0.50 0.25 280)', secondary: 'oklch(0.50 0.18 180)', accent: 'oklch(0.60 0.22 50)', background: 'oklch(0.97 0.005 260)', foreground: 'oklch(0.18 0.02 260)' },
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 'simple',
|
|
34
|
+
name: 'Simple',
|
|
35
|
+
builtIn: true,
|
|
36
|
+
modeSupport: 'both',
|
|
37
|
+
colors: {
|
|
38
|
+
dark: { primary: 'oklch(0.985 0 0)', secondary: 'oklch(0.274 0.006 286.033)', accent: 'oklch(0.274 0.006 286.033)', background: 'oklch(0.141 0.005 285.823)', foreground: 'oklch(0.985 0 0)' },
|
|
39
|
+
light: { primary: 'oklch(0.21 0.006 285.885)', secondary: 'oklch(0.967 0.001 286.375)', accent: 'oklch(0.967 0.001 286.375)', background: 'oklch(1 0 0)', foreground: 'oklch(0.141 0.005 285.823)' },
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: 'claude-plus',
|
|
44
|
+
name: 'Absolutely',
|
|
45
|
+
builtIn: true,
|
|
46
|
+
modeSupport: 'both',
|
|
47
|
+
colors: {
|
|
48
|
+
dark: { primary: 'oklch(0.6724 0.1308 38.7559)', secondary: 'oklch(0.9818 0.0054 95.0986)', accent: 'oklch(0.6724 0.1308 38.7559)', background: 'oklch(0.2679 0.0036 106.6427)', foreground: 'oklch(0.9576 0.0027 106.4494)' },
|
|
49
|
+
light: { primary: 'oklch(0.6171 0.1375 39.0427)', secondary: 'oklch(0.9245 0.0138 92.9892)', accent: 'oklch(0.6171 0.1375 39.0427)', background: 'oklch(0.9818 0.0054 95.0986)', foreground: 'oklch(0.3438 0.0269 95.7226)' },
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: 'adwaita',
|
|
54
|
+
name: 'Adwaita',
|
|
55
|
+
builtIn: true,
|
|
56
|
+
modeSupport: 'both',
|
|
57
|
+
colors: {
|
|
58
|
+
dark: { primary: '#3584E4', secondary: '#3a3a3a', accent: '#26a269', background: '#1d1d1d', foreground: '#cccccc' },
|
|
59
|
+
light: { primary: '#3584E4', secondary: '#e6e6e6', accent: '#26a269', background: '#fafafa', foreground: '#323232' },
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: 'andromeeda',
|
|
64
|
+
name: 'Andromeeda',
|
|
65
|
+
builtIn: true,
|
|
66
|
+
modeSupport: 'dark-only',
|
|
67
|
+
syntaxHighlighting: true,
|
|
68
|
+
colors: {
|
|
69
|
+
dark: { primary: '#00e8c6', secondary: '#373941', accent: '#c74ded', background: '#23262e', foreground: '#d5ced9' },
|
|
70
|
+
light: { primary: '#00e8c6', secondary: '#373941', accent: '#c74ded', background: '#23262e', foreground: '#d5ced9' },
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: 'aurora-x',
|
|
75
|
+
name: 'Aurora X',
|
|
76
|
+
builtIn: true,
|
|
77
|
+
modeSupport: 'dark-only',
|
|
78
|
+
syntaxHighlighting: true,
|
|
79
|
+
colors: {
|
|
80
|
+
dark: { primary: '#86a5ff', secondary: '#262e47', accent: '#c792ea', background: '#07090f', foreground: '#a8beff' },
|
|
81
|
+
light: { primary: '#86a5ff', secondary: '#262e47', accent: '#c792ea', background: '#07090f', foreground: '#a8beff' },
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: 'ayu-dark',
|
|
86
|
+
name: 'Ayu Dark',
|
|
87
|
+
builtIn: true,
|
|
88
|
+
modeSupport: 'dark-only',
|
|
89
|
+
syntaxHighlighting: true,
|
|
90
|
+
colors: {
|
|
91
|
+
dark: { primary: '#e6b450', secondary: '#0b0e14', accent: '#73b8ff', background: '#10141c', foreground: '#bfbdb6' },
|
|
92
|
+
light: { primary: '#e6b450', secondary: '#0b0e14', accent: '#73b8ff', background: '#10141c', foreground: '#bfbdb6' },
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
id: 'caffeine',
|
|
97
|
+
name: 'Caffeine',
|
|
98
|
+
builtIn: true,
|
|
99
|
+
modeSupport: 'both',
|
|
100
|
+
colors: {
|
|
101
|
+
dark: { primary: 'rgb(193, 154, 107)', secondary: 'rgb(62, 47, 36)', accent: 'rgb(139, 90, 43)', background: 'rgb(30, 22, 16)', foreground: 'rgb(230, 220, 205)' },
|
|
102
|
+
light: { primary: 'rgb(139, 90, 43)', secondary: 'rgb(232, 222, 210)', accent: 'rgb(193, 154, 107)', background: 'rgb(250, 245, 238)', foreground: 'rgb(40, 30, 20)' },
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
id: 'catppuccin',
|
|
107
|
+
name: 'Catppuccin',
|
|
108
|
+
builtIn: true,
|
|
109
|
+
modeSupport: 'both',
|
|
110
|
+
syntaxHighlighting: true,
|
|
111
|
+
colors: {
|
|
112
|
+
dark: { primary: '#89b4fa', secondary: '#45475a', accent: '#f5c2e7', background: '#1e1e2e', foreground: '#cdd6f4' },
|
|
113
|
+
light: { primary: '#1e66f5', secondary: '#ccd0da', accent: '#ea76cb', background: '#eff1f5', foreground: '#4c4f69' },
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: 'cursor-hc',
|
|
118
|
+
name: 'Clean Contrast',
|
|
119
|
+
builtIn: true,
|
|
120
|
+
modeSupport: 'dark-only',
|
|
121
|
+
colors: {
|
|
122
|
+
dark: { primary: '#88C0D0', secondary: '#434C5E', accent: '#EBCB8B', background: '#0A0A0A', foreground: '#D8DEE9' },
|
|
123
|
+
light: { primary: '#88C0D0', secondary: '#434C5E', accent: '#EBCB8B', background: '#0A0A0A', foreground: '#D8DEE9' },
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
id: 'cursor',
|
|
128
|
+
name: 'Code Fork',
|
|
129
|
+
builtIn: true,
|
|
130
|
+
modeSupport: 'both',
|
|
131
|
+
colors: {
|
|
132
|
+
dark: { primary: '#81A1C1', secondary: '#2a2a2a', accent: '#88C0D0', background: '#181818', foreground: '#E4E4E4' },
|
|
133
|
+
light: { primary: '#3C7CAB', secondary: '#E8E8E8', accent: '#4C7F8C', background: '#FCFCFC', foreground: '#141414' },
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
id: 'dark-plus',
|
|
138
|
+
name: 'Dark+',
|
|
139
|
+
builtIn: true,
|
|
140
|
+
modeSupport: 'both',
|
|
141
|
+
syntaxHighlighting: true,
|
|
142
|
+
colors: {
|
|
143
|
+
dark: { primary: '#007acc', secondary: '#383b3d', accent: '#4ec9b0', background: '#1e1e1e', foreground: '#d4d4d4' },
|
|
144
|
+
light: { primary: '#007acc', secondary: '#e8e8e8', accent: '#267f99', background: '#ffffff', foreground: '#000000' },
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
id: 'doom-64',
|
|
149
|
+
name: 'Doom 64',
|
|
150
|
+
builtIn: true,
|
|
151
|
+
modeSupport: 'both',
|
|
152
|
+
colors: {
|
|
153
|
+
dark: { primary: 'rgb(200, 30, 30)', secondary: 'rgb(40, 35, 30)', accent: 'rgb(255, 160, 0)', background: 'rgb(15, 12, 10)', foreground: 'rgb(220, 210, 190)' },
|
|
154
|
+
light: { primary: 'rgb(180, 20, 20)', secondary: 'rgb(230, 225, 215)', accent: 'rgb(200, 120, 0)', background: 'rgb(248, 244, 238)', foreground: 'rgb(25, 20, 15)' },
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: 'dracula',
|
|
159
|
+
name: 'Dracula',
|
|
160
|
+
builtIn: true,
|
|
161
|
+
modeSupport: 'dark-only',
|
|
162
|
+
syntaxHighlighting: true,
|
|
163
|
+
colors: {
|
|
164
|
+
dark: { primary: 'rgb(189, 147, 249)', secondary: 'rgb(68, 71, 90)', accent: 'rgb(139, 233, 253)', background: 'rgb(40, 42, 54)', foreground: 'rgb(248, 248, 242)' },
|
|
165
|
+
light: { primary: 'rgb(189, 147, 249)', secondary: 'rgb(68, 71, 90)', accent: 'rgb(139, 233, 253)', background: 'rgb(40, 42, 54)', foreground: 'rgb(248, 248, 242)' },
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
id: 'everforest',
|
|
170
|
+
name: 'Everforest',
|
|
171
|
+
builtIn: true,
|
|
172
|
+
modeSupport: 'both',
|
|
173
|
+
syntaxHighlighting: true,
|
|
174
|
+
colors: {
|
|
175
|
+
dark: { primary: '#A7C080', secondary: '#475258', accent: '#83C092', background: '#2D353B', foreground: '#D3C6AA' },
|
|
176
|
+
light: { primary: '#8DA101', secondary: '#E6E2CC', accent: '#35A77C', background: '#FDF6E3', foreground: '#5C6A72' },
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
id: 'everforest-hard',
|
|
181
|
+
name: 'Everforest Hard',
|
|
182
|
+
builtIn: true,
|
|
183
|
+
modeSupport: 'both',
|
|
184
|
+
syntaxHighlighting: true,
|
|
185
|
+
colors: {
|
|
186
|
+
dark: { primary: '#A7C080', secondary: '#414B50', accent: '#83C092', background: '#272E33', foreground: '#D3C6AA' },
|
|
187
|
+
light: { primary: '#8DA101', secondary: '#EDEADA', accent: '#35A77C', background: '#FFFBEF', foreground: '#5C6A72' },
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
id: 'everforest-soft',
|
|
192
|
+
name: 'Everforest Soft',
|
|
193
|
+
builtIn: true,
|
|
194
|
+
modeSupport: 'both',
|
|
195
|
+
syntaxHighlighting: true,
|
|
196
|
+
colors: {
|
|
197
|
+
dark: { primary: '#A7C080', secondary: '#4D5960', accent: '#83C092', background: '#333C43', foreground: '#D3C6AA' },
|
|
198
|
+
light: { primary: '#8DA101', secondary: '#DDD8BE', accent: '#35A77C', background: '#F3EAD3', foreground: '#5C6A72' },
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
id: 'github',
|
|
203
|
+
name: 'GitHub',
|
|
204
|
+
builtIn: true,
|
|
205
|
+
modeSupport: 'both',
|
|
206
|
+
syntaxHighlighting: true,
|
|
207
|
+
colors: {
|
|
208
|
+
dark: { primary: '#58a6ff', secondary: '#2f363d', accent: '#79b8ff', background: '#24292e', foreground: '#e1e4e8' },
|
|
209
|
+
light: { primary: '#0366d6', secondary: '#f6f8fa', accent: '#0366d6', background: '#ffffff', foreground: '#24292e' },
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
id: 'gruvbox',
|
|
214
|
+
name: 'Gruvbox',
|
|
215
|
+
builtIn: true,
|
|
216
|
+
modeSupport: 'both',
|
|
217
|
+
syntaxHighlighting: true,
|
|
218
|
+
colors: {
|
|
219
|
+
dark: { primary: '#458588', secondary: '#504945', accent: '#b8bb26', background: '#282828', foreground: '#ebdbb2' },
|
|
220
|
+
light: { primary: '#076678', secondary: '#d5c4a1', accent: '#79740e', background: '#fbf1c7', foreground: '#3c3836' },
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
id: 'houston',
|
|
225
|
+
name: 'Houston',
|
|
226
|
+
builtIn: true,
|
|
227
|
+
modeSupport: 'dark-only',
|
|
228
|
+
syntaxHighlighting: true,
|
|
229
|
+
colors: {
|
|
230
|
+
dark: { primary: '#4bf3c8', secondary: '#343841', accent: '#54b9ff', background: '#17191e', foreground: '#eef0f9' },
|
|
231
|
+
light: { primary: '#4bf3c8', secondary: '#343841', accent: '#54b9ff', background: '#17191e', foreground: '#eef0f9' },
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
id: 'kanagawa-dragon',
|
|
236
|
+
name: 'Kanagawa Dragon',
|
|
237
|
+
builtIn: true,
|
|
238
|
+
modeSupport: 'dark-only',
|
|
239
|
+
syntaxHighlighting: true,
|
|
240
|
+
colors: {
|
|
241
|
+
dark: { primary: '#7fb4ca', secondary: '#2a2625', accent: '#7aa89f', background: '#181616', foreground: '#c8c093' },
|
|
242
|
+
light: { primary: '#7fb4ca', secondary: '#2a2625', accent: '#7aa89f', background: '#181616', foreground: '#c8c093' },
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
id: 'kanagawa-lotus',
|
|
247
|
+
name: 'Kanagawa Lotus',
|
|
248
|
+
builtIn: true,
|
|
249
|
+
modeSupport: 'light-only',
|
|
250
|
+
syntaxHighlighting: true,
|
|
251
|
+
colors: {
|
|
252
|
+
dark: { primary: '#4d699b', secondary: '#dcd5ac', accent: '#624c83', background: '#f2ecbc', foreground: '#545464' },
|
|
253
|
+
light: { primary: '#4d699b', secondary: '#dcd5ac', accent: '#624c83', background: '#f2ecbc', foreground: '#545464' },
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
id: 'kanagawa-wave',
|
|
258
|
+
name: 'Kanagawa Wave',
|
|
259
|
+
builtIn: true,
|
|
260
|
+
modeSupport: 'dark-only',
|
|
261
|
+
syntaxHighlighting: true,
|
|
262
|
+
colors: {
|
|
263
|
+
dark: { primary: '#7e9cd8', secondary: '#363646', accent: '#957fb8', background: '#1f1f28', foreground: '#dcd7ba' },
|
|
264
|
+
light: { primary: '#7e9cd8', secondary: '#363646', accent: '#957fb8', background: '#1f1f28', foreground: '#dcd7ba' },
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
id: 'laserwave',
|
|
269
|
+
name: 'Laserwave',
|
|
270
|
+
builtIn: true,
|
|
271
|
+
modeSupport: 'dark-only',
|
|
272
|
+
syntaxHighlighting: true,
|
|
273
|
+
colors: {
|
|
274
|
+
dark: { primary: '#eb64b9', secondary: '#3e3549', accent: '#40b4c4', background: '#27212e', foreground: '#ffffff' },
|
|
275
|
+
light: { primary: '#eb64b9', secondary: '#3e3549', accent: '#40b4c4', background: '#27212e', foreground: '#ffffff' },
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
id: 'material',
|
|
280
|
+
name: 'Material',
|
|
281
|
+
builtIn: true,
|
|
282
|
+
modeSupport: 'both',
|
|
283
|
+
syntaxHighlighting: true,
|
|
284
|
+
colors: {
|
|
285
|
+
dark: { primary: '#80CBC4', secondary: '#1e272c', accent: '#C3E88D', background: '#263238', foreground: '#EEFFFF' },
|
|
286
|
+
light: { primary: '#80CBC4', secondary: '#FAFAFA', accent: '#39ADB5', background: '#FAFAFA', foreground: '#90A4AE' },
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
id: 'cursor-midnight',
|
|
291
|
+
name: 'Midnight',
|
|
292
|
+
builtIn: true,
|
|
293
|
+
modeSupport: 'dark-only',
|
|
294
|
+
colors: {
|
|
295
|
+
dark: { primary: '#88C0D0', secondary: '#434C5E', accent: '#8FBCBB', background: '#1e2127', foreground: '#D8DEE9' },
|
|
296
|
+
light: { primary: '#88C0D0', secondary: '#434C5E', accent: '#8FBCBB', background: '#1e2127', foreground: '#D8DEE9' },
|
|
297
|
+
},
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
id: 'min',
|
|
301
|
+
name: 'Min',
|
|
302
|
+
builtIn: true,
|
|
303
|
+
modeSupport: 'both',
|
|
304
|
+
syntaxHighlighting: true,
|
|
305
|
+
colors: {
|
|
306
|
+
dark: { primary: '#b392f0', secondary: '#2a2a2a', accent: '#79b8ff', background: '#1f1f1f', foreground: '#b392f0' },
|
|
307
|
+
light: { primary: '#6f42c1', secondary: '#eeeeee', accent: '#1976d2', background: '#ffffff', foreground: '#24292e' },
|
|
308
|
+
},
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
id: 'monokai-pro',
|
|
312
|
+
name: 'Monokai Pro',
|
|
313
|
+
builtIn: true,
|
|
314
|
+
modeSupport: 'dark-only',
|
|
315
|
+
syntaxHighlighting: true,
|
|
316
|
+
colors: {
|
|
317
|
+
dark: { primary: '#ffd866', secondary: '#5b595c', accent: '#78dce8', background: '#2d2a2e', foreground: '#fcfcfa' },
|
|
318
|
+
light: { primary: '#ffd866', secondary: '#5b595c', accent: '#78dce8', background: '#2d2a2e', foreground: '#fcfcfa' },
|
|
319
|
+
},
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
id: 'night-owl',
|
|
323
|
+
name: 'Night Owl',
|
|
324
|
+
builtIn: true,
|
|
325
|
+
modeSupport: 'dark-only',
|
|
326
|
+
syntaxHighlighting: true,
|
|
327
|
+
colors: {
|
|
328
|
+
dark: { primary: '#7e57c2', secondary: '#0b253a', accent: '#82aaff', background: '#011627', foreground: '#d6deeb' },
|
|
329
|
+
light: { primary: '#7e57c2', secondary: '#0b253a', accent: '#82aaff', background: '#011627', foreground: '#d6deeb' },
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
id: 'nord',
|
|
334
|
+
name: 'Nord',
|
|
335
|
+
builtIn: true,
|
|
336
|
+
modeSupport: 'dark-only',
|
|
337
|
+
syntaxHighlighting: true,
|
|
338
|
+
colors: {
|
|
339
|
+
dark: { primary: '#88c0d0', secondary: '#434c5e', accent: '#81a1c1', background: '#2e3440', foreground: '#d8dee9' },
|
|
340
|
+
light: { primary: '#88c0d0', secondary: '#434c5e', accent: '#81a1c1', background: '#2e3440', foreground: '#d8dee9' },
|
|
341
|
+
},
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
id: 'one-dark-pro',
|
|
345
|
+
name: 'One Dark Pro',
|
|
346
|
+
builtIn: true,
|
|
347
|
+
modeSupport: 'dark-only',
|
|
348
|
+
syntaxHighlighting: true,
|
|
349
|
+
colors: {
|
|
350
|
+
dark: { primary: '#61afef', secondary: '#21252b', accent: '#c678dd', background: '#282c34', foreground: '#abb2bf' },
|
|
351
|
+
light: { primary: '#61afef', secondary: '#21252b', accent: '#c678dd', background: '#282c34', foreground: '#abb2bf' },
|
|
352
|
+
},
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
id: 'one-light',
|
|
356
|
+
name: 'One Light',
|
|
357
|
+
builtIn: true,
|
|
358
|
+
modeSupport: 'light-only',
|
|
359
|
+
syntaxHighlighting: true,
|
|
360
|
+
colors: {
|
|
361
|
+
dark: { primary: '#526fff', secondary: '#e5e5e6', accent: '#4078f2', background: '#fafafa', foreground: '#383a42' },
|
|
362
|
+
light: { primary: '#526fff', secondary: '#e5e5e6', accent: '#4078f2', background: '#fafafa', foreground: '#383a42' },
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
id: 'paulmillr',
|
|
367
|
+
name: 'PaulMillr',
|
|
368
|
+
builtIn: true,
|
|
369
|
+
modeSupport: 'dark-only',
|
|
370
|
+
colors: {
|
|
371
|
+
dark: { primary: '#396bd7', secondary: '#414141', accent: '#66ccff', background: '#000000', foreground: '#f2f2f2' },
|
|
372
|
+
light: { primary: '#396bd7', secondary: '#414141', accent: '#66ccff', background: '#000000', foreground: '#f2f2f2' },
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
id: 'plastic',
|
|
377
|
+
name: 'Plastic',
|
|
378
|
+
builtIn: true,
|
|
379
|
+
modeSupport: 'dark-only',
|
|
380
|
+
syntaxHighlighting: true,
|
|
381
|
+
colors: {
|
|
382
|
+
dark: { primary: '#1085ff', secondary: '#0d1117', accent: '#61afef', background: '#21252b', foreground: '#a9b2c3' },
|
|
383
|
+
light: { primary: '#1085ff', secondary: '#0d1117', accent: '#61afef', background: '#21252b', foreground: '#a9b2c3' },
|
|
384
|
+
},
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
id: 'poimandres',
|
|
388
|
+
name: 'Poimandres',
|
|
389
|
+
builtIn: true,
|
|
390
|
+
modeSupport: 'dark-only',
|
|
391
|
+
syntaxHighlighting: true,
|
|
392
|
+
colors: {
|
|
393
|
+
dark: { primary: '#add7ff', secondary: '#252934', accent: '#5de4c7', background: '#1b1e28', foreground: '#a6accd' },
|
|
394
|
+
light: { primary: '#add7ff', secondary: '#252934', accent: '#5de4c7', background: '#1b1e28', foreground: '#a6accd' },
|
|
395
|
+
},
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
id: 'quantum-rose',
|
|
399
|
+
name: 'Quantum Rose',
|
|
400
|
+
builtIn: true,
|
|
401
|
+
modeSupport: 'both',
|
|
402
|
+
colors: {
|
|
403
|
+
dark: { primary: 'rgb(255, 100, 130)', secondary: 'rgb(40, 30, 35)', accent: '#c06ec4', background: 'rgb(18, 12, 15)', foreground: 'rgb(240, 230, 235)' },
|
|
404
|
+
light: { primary: 'rgb(200, 50, 80)', secondary: 'rgb(240, 230, 235)', accent: '#ffc1e3', background: 'rgb(252, 248, 250)', foreground: 'rgb(25, 15, 20)' },
|
|
405
|
+
},
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
id: 'red',
|
|
409
|
+
name: 'Red',
|
|
410
|
+
builtIn: true,
|
|
411
|
+
modeSupport: 'dark-only',
|
|
412
|
+
syntaxHighlighting: true,
|
|
413
|
+
colors: {
|
|
414
|
+
dark: { primary: '#cc3333', secondary: '#580000', accent: '#ffd0aa', background: '#390000', foreground: '#f8f8f8' },
|
|
415
|
+
light: { primary: '#cc3333', secondary: '#580000', accent: '#ffd0aa', background: '#390000', foreground: '#f8f8f8' },
|
|
416
|
+
},
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
id: 'rose-pine',
|
|
420
|
+
name: 'Rosé Pine',
|
|
421
|
+
builtIn: true,
|
|
422
|
+
modeSupport: 'both',
|
|
423
|
+
syntaxHighlighting: true,
|
|
424
|
+
colors: {
|
|
425
|
+
dark: { primary: '#c4a7e7', secondary: '#403d52', accent: '#f6c177', background: '#191724', foreground: '#e0def4' },
|
|
426
|
+
light: { primary: '#907aa9', secondary: '#dfdad9', accent: '#ea9d34', background: '#faf4ed', foreground: '#575279' },
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
id: 'slack',
|
|
431
|
+
name: 'Slack',
|
|
432
|
+
builtIn: true,
|
|
433
|
+
modeSupport: 'both',
|
|
434
|
+
syntaxHighlighting: true,
|
|
435
|
+
colors: {
|
|
436
|
+
dark: { primary: '#0077b5', secondary: '#141414', accent: '#1d978d', background: '#222222', foreground: '#e6e6e6' },
|
|
437
|
+
light: { primary: '#5899c5', secondary: '#eeeeee', accent: '#5899c5', background: '#ffffff', foreground: '#000000' },
|
|
438
|
+
},
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
id: 'snazzy-light',
|
|
442
|
+
name: 'Snazzy Light',
|
|
443
|
+
builtIn: true,
|
|
444
|
+
modeSupport: 'light-only',
|
|
445
|
+
syntaxHighlighting: true,
|
|
446
|
+
colors: {
|
|
447
|
+
dark: { primary: '#09a1ed', secondary: '#e9eaeb', accent: '#2dae58', background: '#fafbfc', foreground: '#565869' },
|
|
448
|
+
light: { primary: '#09a1ed', secondary: '#e9eaeb', accent: '#2dae58', background: '#fafbfc', foreground: '#565869' },
|
|
449
|
+
},
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
id: 'soft-pop',
|
|
453
|
+
name: 'Soft Pop',
|
|
454
|
+
builtIn: true,
|
|
455
|
+
modeSupport: 'both',
|
|
456
|
+
colors: {
|
|
457
|
+
dark: { primary: 'oklch(0.6801 0.1583 276.9349)', secondary: 'oklch(0.7845 0.1325 181.9120)', accent: 'oklch(0.8790 0.1534 91.6054)', background: 'oklch(0 0 0)', foreground: 'oklch(1.0000 0 0)' },
|
|
458
|
+
light: { primary: 'oklch(0.5106 0.2301 276.9656)', secondary: 'oklch(0.7038 0.1230 182.5025)', accent: 'oklch(0.7686 0.1647 70.0804)', background: 'oklch(0.9789 0.0082 121.6272)', foreground: 'oklch(0 0 0)' },
|
|
459
|
+
},
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
id: 'solar-dusk',
|
|
463
|
+
name: 'Solar Dusk',
|
|
464
|
+
builtIn: true,
|
|
465
|
+
modeSupport: 'both',
|
|
466
|
+
colors: {
|
|
467
|
+
dark: { primary: 'oklch(0.7049 0.1867 47.6044)', secondary: 'oklch(0.3127 0.039 49.5996)', accent: 'oklch(0.6 0.12 229.3202)', background: 'oklch(0.2183 0.0268 49.7085)', foreground: 'oklch(0.8994 0.0347 70.7236)' },
|
|
468
|
+
light: { primary: 'oklch(0.5553 0.1455 48.9975)', secondary: 'oklch(0.9139 0.0359 77.3089)', accent: 'oklch(0.55 0.12 229)', background: 'oklch(0.9685 0.0187 84.078)', foreground: 'oklch(0.366 0.0251 49.6085)' },
|
|
469
|
+
},
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
id: 'solarized',
|
|
473
|
+
name: 'Solarized',
|
|
474
|
+
builtIn: true,
|
|
475
|
+
modeSupport: 'both',
|
|
476
|
+
syntaxHighlighting: true,
|
|
477
|
+
colors: {
|
|
478
|
+
dark: { primary: '#268bd2', secondary: '#073642', accent: '#2aa198', background: '#002b36', foreground: '#839496' },
|
|
479
|
+
light: { primary: '#268bd2', secondary: '#eee8d5', accent: '#2aa198', background: '#fdf6e3', foreground: '#657b83' },
|
|
480
|
+
},
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
id: 'synthwave-84',
|
|
484
|
+
name: "Synthwave '84",
|
|
485
|
+
builtIn: true,
|
|
486
|
+
modeSupport: 'dark-only',
|
|
487
|
+
syntaxHighlighting: true,
|
|
488
|
+
colors: {
|
|
489
|
+
dark: { primary: '#ff7edb', secondary: '#34294f', accent: '#72f1b8', background: '#262335', foreground: '#ffffff' },
|
|
490
|
+
light: { primary: '#ff7edb', secondary: '#34294f', accent: '#72f1b8', background: '#262335', foreground: '#ffffff' },
|
|
491
|
+
},
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
id: 'terminal',
|
|
495
|
+
name: 'Terminal',
|
|
496
|
+
builtIn: true,
|
|
497
|
+
modeSupport: 'dark-only',
|
|
498
|
+
colors: {
|
|
499
|
+
dark: { primary: 'rgb(0, 255, 0)', secondary: 'rgb(20, 20, 20)', accent: 'rgb(0, 200, 200)', background: 'rgb(0, 0, 0)', foreground: 'rgb(0, 255, 0)' },
|
|
500
|
+
light: { primary: 'rgb(0, 255, 0)', secondary: 'rgb(20, 20, 20)', accent: 'rgb(0, 200, 200)', background: 'rgb(0, 0, 0)', foreground: 'rgb(0, 255, 0)' },
|
|
501
|
+
},
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
id: 'tinacious',
|
|
505
|
+
name: 'Tinacious',
|
|
506
|
+
builtIn: true,
|
|
507
|
+
modeSupport: 'light-only',
|
|
508
|
+
colors: {
|
|
509
|
+
dark: { primary: 'rgb(214, 95, 149)', secondary: 'rgb(50, 50, 60)', accent: 'rgb(119, 220, 194)', background: 'rgb(28, 28, 36)', foreground: 'rgb(230, 230, 240)' },
|
|
510
|
+
light: { primary: 'rgb(214, 95, 149)', secondary: 'rgb(232, 232, 237)', accent: 'rgb(119, 220, 194)', background: 'rgb(247, 247, 250)', foreground: 'rgb(28, 28, 36)' },
|
|
511
|
+
},
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
id: 'tokyo-night',
|
|
515
|
+
name: 'Tokyo Night',
|
|
516
|
+
builtIn: true,
|
|
517
|
+
modeSupport: 'both',
|
|
518
|
+
syntaxHighlighting: true,
|
|
519
|
+
colors: {
|
|
520
|
+
dark: { primary: '#7aa2f7', secondary: '#414868', accent: '#7dcfff', background: '#24283b', foreground: '#c0caf5' },
|
|
521
|
+
light: { primary: '#2e7de9', secondary: '#a1a6c5', accent: '#007197', background: '#e1e2e7', foreground: '#3760bf' },
|
|
522
|
+
},
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
id: 'vesper',
|
|
526
|
+
name: 'Vesper',
|
|
527
|
+
builtIn: true,
|
|
528
|
+
modeSupport: 'dark-only',
|
|
529
|
+
syntaxHighlighting: true,
|
|
530
|
+
colors: {
|
|
531
|
+
dark: { primary: '#FFC799', secondary: '#1C1C1C', accent: '#99FFE4', background: '#101010', foreground: '#FFFFFF' },
|
|
532
|
+
light: { primary: '#FFC799', secondary: '#1C1C1C', accent: '#99FFE4', background: '#101010', foreground: '#FFFFFF' },
|
|
533
|
+
},
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
id: 'vitesse',
|
|
537
|
+
name: 'Vitesse',
|
|
538
|
+
builtIn: true,
|
|
539
|
+
modeSupport: 'both',
|
|
540
|
+
syntaxHighlighting: true,
|
|
541
|
+
colors: {
|
|
542
|
+
dark: { primary: '#4d9375', secondary: '#181818', accent: '#e6cc77', background: '#121212', foreground: '#dbd7ca' },
|
|
543
|
+
light: { primary: '#1c6b48', secondary: '#f1f1f1', accent: '#bda437', background: '#ffffff', foreground: '#393a34' },
|
|
544
|
+
},
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
id: 'vitesse-black',
|
|
548
|
+
name: 'Vitesse Black',
|
|
549
|
+
builtIn: true,
|
|
550
|
+
modeSupport: 'dark-only',
|
|
551
|
+
syntaxHighlighting: true,
|
|
552
|
+
colors: {
|
|
553
|
+
dark: { primary: '#4d9375', secondary: '#191919', accent: '#6394bf', background: '#000000', foreground: '#dbd7ca' },
|
|
554
|
+
light: { primary: '#4d9375', secondary: '#191919', accent: '#6394bf', background: '#000000', foreground: '#dbd7ca' },
|
|
555
|
+
},
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
id: 'neutral',
|
|
559
|
+
name: 'Neutral',
|
|
560
|
+
builtIn: true,
|
|
561
|
+
modeSupport: 'both',
|
|
562
|
+
colors: {
|
|
563
|
+
dark: { primary: 'oklch(0.985 0 0)', secondary: 'oklch(0.274 0.006 286.033)', accent: 'oklch(0.274 0.006 286.033)', background: 'oklch(0.141 0.005 285.823)', foreground: 'oklch(0.985 0 0)' },
|
|
564
|
+
light: { primary: 'oklch(0.21 0.006 285.885)', secondary: 'oklch(0.967 0.001 286.375)', accent: 'oklch(0.967 0.001 286.375)', background: 'oklch(1 0 0)', foreground: 'oklch(0.141 0.005 285.823)' },
|
|
565
|
+
},
|
|
566
|
+
},
|
|
567
|
+
];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { storage } from './storage';
|
|
2
|
+
|
|
3
|
+
const STORAGE_KEY_TOC = 'plannotator-toc-enabled';
|
|
4
|
+
const STORAGE_KEY_STICKY_ACTIONS = 'plannotator-sticky-actions-enabled';
|
|
5
|
+
const STORAGE_KEY_PLAN_WIDTH = 'plannotator-plan-width';
|
|
6
|
+
|
|
7
|
+
export type PlanWidth = 'compact' | 'default' | 'wide';
|
|
8
|
+
|
|
9
|
+
export const PLAN_WIDTH_OPTIONS: { id: PlanWidth; label: string; px: number; hint: string }[] = [
|
|
10
|
+
{ id: 'compact', label: 'Compact', px: 832, hint: 'Best for reading. Ideal line length for laptops and focused review.' },
|
|
11
|
+
{ id: 'default', label: 'Default', px: 1040, hint: 'Balanced. More room for code blocks without sacrificing readability.' },
|
|
12
|
+
{ id: 'wide', label: 'Wide', px: 1280, hint: 'For large monitors. Best with diagrams and wide code.' },
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
export interface UIPreferences {
|
|
16
|
+
tocEnabled: boolean;
|
|
17
|
+
stickyActionsEnabled: boolean;
|
|
18
|
+
planWidth: PlanWidth;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function getUIPreferences(): UIPreferences {
|
|
22
|
+
const width = storage.getItem(STORAGE_KEY_PLAN_WIDTH);
|
|
23
|
+
return {
|
|
24
|
+
tocEnabled: storage.getItem(STORAGE_KEY_TOC) !== 'false',
|
|
25
|
+
stickyActionsEnabled: storage.getItem(STORAGE_KEY_STICKY_ACTIONS) !== 'false',
|
|
26
|
+
planWidth: (width === 'compact' || width === 'default' || width === 'wide') ? width : 'compact',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function saveUIPreferences(prefs: UIPreferences): void {
|
|
31
|
+
storage.setItem(STORAGE_KEY_TOC, String(prefs.tocEnabled));
|
|
32
|
+
storage.setItem(STORAGE_KEY_STICKY_ACTIONS, String(prefs.stickyActionsEnabled));
|
|
33
|
+
storage.setItem(STORAGE_KEY_PLAN_WIDTH, prefs.planWidth);
|
|
34
|
+
}
|
package/utils/upload.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host-overridable image upload transport.
|
|
3
|
+
*
|
|
4
|
+
* Default = today's literal Plannotator behavior (POST /api/upload with the
|
|
5
|
+
* file as multipart form-data, response `{ path, originalName }`). A host
|
|
6
|
+
* (e.g. Workspaces) calls `setUploadTransport` once at startup to send the
|
|
7
|
+
* bytes to its own asset backend instead. Mirrors the swappable transports in
|
|
8
|
+
* ./storage.ts and ../hooks/useAnnotationDraft.ts.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export interface UploadResult {
|
|
12
|
+
/**
|
|
13
|
+
* Stored reference the UI round-trips and feeds to the image-src resolver.
|
|
14
|
+
* Plannotator returns the server file path. A host may return its own opaque
|
|
15
|
+
* ref or a fully-resolved URL (the default image-src resolver passes http(s)
|
|
16
|
+
* URLs through unchanged, so a returned URL renders directly).
|
|
17
|
+
*/
|
|
18
|
+
path: string;
|
|
19
|
+
/** Original file name, when the backend echoes it. */
|
|
20
|
+
originalName?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface UploadTransport {
|
|
24
|
+
/** Upload one image file and resolve to its stored reference. */
|
|
25
|
+
upload(file: File): Promise<UploadResult>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** Default transport — Plannotator's `/api/upload` multipart POST, verbatim. */
|
|
29
|
+
const defaultUploadTransport: UploadTransport = {
|
|
30
|
+
async upload(file) {
|
|
31
|
+
const formData = new FormData();
|
|
32
|
+
formData.append('file', file);
|
|
33
|
+
const res = await fetch('/api/upload', { method: 'POST', body: formData });
|
|
34
|
+
const data = await res.json();
|
|
35
|
+
return { path: data.path, originalName: data.originalName };
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// Module-level transport, stable identity. Defaults to Plannotator's behavior so
|
|
40
|
+
// callers are unchanged. A host overrides it once at startup.
|
|
41
|
+
let uploadTransport: UploadTransport = defaultUploadTransport;
|
|
42
|
+
|
|
43
|
+
/** Override how image attachments are uploaded. Call once at app startup. */
|
|
44
|
+
export function setUploadTransport(t: UploadTransport): void {
|
|
45
|
+
uploadTransport = t;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** Reset to the default (Plannotator `/api/upload`) transport. Mainly for tests. */
|
|
49
|
+
export function resetUploadTransport(): void {
|
|
50
|
+
uploadTransport = defaultUploadTransport;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** Read the active upload transport at call time (so a late override is honored). */
|
|
54
|
+
export function getUploadTransport(): UploadTransport {
|
|
55
|
+
return uploadTransport;
|
|
56
|
+
}
|