Skip to content

Config Options

Lokus stores global configuration in config.json inside the app data directory. On macOS this is ~/Library/Application Support/Lokus/config.json. Workspace-specific settings are stored in .lokus/ within the workspace folder.

Open Preferences with Cmd+, / Ctrl+,. Available sections:

SectionDescription
AppearanceTheme selection, token customization, style presets
EditorTypography, spacing, code blocks, colors, behavior
Daily NotesDate format, folder, template, open-on-startup
MarkdownSyntax feature toggles, heading markers
ShortcutsKeyboard shortcut customization
ConnectionsGmail, Calendar (iCal, CalDAV) integrations
AccountAuthentication, user account management
SyncIroh P2P sync or Git sync configuration
UpdatesApp version, beta channel opt-in

Stored under the editorSettings key in config.json. All values apply in real time.

SettingKeyDefaultRange/Type
Font FamilyfontFamilyui-sans-serifCSS font family
Font SizefontSize16px
Line HeightlineHeight1.7Multiplier
Letter SpacingletterSpacing0.003em
Font WeightfontWeight400100-900
Bold WeightboldWeight700100-900
H1 Sizeh1Size2.0em (relative)
H2 Sizeh2Size1.6em
H3 Sizeh3Size1.3em
H1 Weighth1Weight700100-900
H2 Weighth2Weight600100-900
H3 Weighth3Weight600100-900
SettingKeyDefaultUnit
Paragraph SpacingparagraphSpacing1rem
List SpacinglistSpacing0.25rem
Indent SizeindentSize2rem
Heading Margin TopheadingMarginTop1.5rem
Heading Margin BottomheadingMarginBottom0.5rem
Block MarginblockMargin1.5rem
List IndentlistIndent2rem
SettingKeyDefault
Text ColortextColor#inherit
Heading ColorheadingColor#inherit
Link ColorlinkColor#inherit
Link Hover ColorlinkHoverColor#inherit
Code ColorcodeColor#inherit
Code BackgroundcodeBackground#f5f5f5
Blockquote ColorblockquoteColor#inherit
Blockquote BorderblockquoteBorder#e5e5e5
Bold ColorboldColor#inherit
Italic ColoritalicColor#inherit
Highlight ColorhighlightColor#fff3cd
Highlight Text ColorhighlightTextColor#inherit

#inherit means the value falls through to the active theme.

SettingKeyDefault
BackgroundcodeBlockBg#f8f9fa
Border ColorcodeBlockBorder#e9ecef
Border WidthcodeBlockBorderWidth1 px
Border RadiuscodeBlockBorderRadius8 px
PaddingcodeBlockPadding16 px
FontcodeBlockFontui-monospace
Font SizecodeBlockFontSize14 px
Line HeightcodeBlockLineHeight1.5
SettingKeyDefault
Underline ModelinkUnderlinehover
Underline ThicknesslinkUnderlineThickness1 px
Underline OffsetlinkUnderlineOffset2 px
SettingKeyDefault
Border ColortableBorder#dee2e6
Border WidthtableBorderWidth1 px
Header BackgroundtableHeaderBgnull (theme default)
Cell PaddingtableCellPadding12 px
SettingKeyDefault
Strikethrough ColorstrikethroughColor#6c757d
Strikethrough ThicknessstrikethroughThickness2 px
Underline ColorunderlineColor#inherit
Underline ThicknessunderlineThickness1 px
SettingKeyDefault
Border WidthblockquoteBorderWidth4 px
PaddingblockquotePadding16 px
Border StyleblockquoteStylesolid
SettingKeyDefault
Selection ColorselectionColorrgba(99, 102, 241, 0.2)

Apply a preset to reset multiple editor settings at once. Available in Preferences > Editor.

PresetFont SizeLine HeightH1 SizeWeight
Minimal16px1.81.8em400
Comfortable17px1.72.0em400
Compact14px1.51.6em400
Spacious18px2.02.4em300

Stored under the dailyNotes key.

SettingKeyDefaultDescription
Date Formatformatyyyy-MM-ddFile name date format
FolderfolderDaily NotesFolder for daily notes
Templatetemplate""Template name to use
Open on StartupopenOnStartupfalseAuto-open today’s note

Per-workspace settings stored in .lokus/markdown-syntax.json.

SettingKey PathDefault
Heading Markerheading.marker#
Alt Heading Markerheading.altMarker^
Alt Heading Enabledheading.altEnabledfalse
Bold Markerbold.marker**
Italic Markeritalic.marker*
Bullet List DefaultbulletList.defaultMarker-
Task List EnabledtaskList.enabledtrue
WikiLinks Enabledlink.wikiLink.enabledtrue
Auto-link URLslink.autoLink.enabledtrue
Table Enabledtable.enabledtrue
Inline Mathmath.inline.enabledtrue
Block Mathmath.block.enabledtrue
Auto-close Bracketsbehavior.autoCloseBracketstrue
Smart Quotesbehavior.smartQuotesfalse
Auto Indentbehavior.autoIndenttrue

Stored under the sync key.

SettingKeyDescription
Providersync.provideriroh (P2P) or git
Remote URLsync.remoteUrlGit remote URL
Branchsync.branchGit branch (default: main)
Usernamesync.usernameGit username
Tokensync.tokenGit access token
Iroh Document IDsync.iroh.documentIdIroh document identifier
Iroh Ticketsync.iroh.ticketIroh connection ticket
Iroh Auto-Syncsync.iroh.autoSyncEnabledEnable automatic sync

Stored under the customSymbols key. Maps trigger strings to symbol characters.

{
"customSymbols": {
"alpha": "α",
"beta": "β",
"arrow": ""
}
}

Trigger names must be at least 2 characters. Manage in Preferences > Editor.

PlatformPath
macOS~/Library/Application Support/Lokus/config.json
Windows%APPDATA%/Lokus/config.json
Linux~/.config/Lokus/config.json

The file is created on first settings change. An empty or missing file uses all defaults.