Workflows/Customize Tine's look
Customize Tine's look
- Change colors, fonts, widths, bullets, and embed shading without a plugin: write a few lines of CSS in your graph's
logseq/custom.css. This page shows where the file is, which names Tine promises to keep stable (the--tine-*tokens), ten copy-paste recipes, and how to find out what styles any element.
1. Start from a color scheme
- 1. Open Settings (t s) → Appearance and look at Color scheme. Default, Nord, Solarized, Gruvbox, and Soft are built in. Soft is a medium-brightness palette: warm gray in light mode and lifted slate gray in dark mode, with warm highlights and quiet active tabs. Its page, sidebars, menus, and code surfaces move together while text stays readable.
- 2. Pick one. It applies at once and is remembered on this device.
- 3. Precedence, lowest to highest: Tine's stock palette, then the color scheme you picked, then the Fine-tuning choices below, then device-wide
global.css, then your graph'slogseq/custom.css. Your CSS always has the last word, and an installed theme package never edits it. A Style preset such as editorial reading type keeps its own look, but the font and size tokens below still override its fonts and text size. A theme package's Use typography choice (fonts and line height) sets the same font tokens at the theme layer, so your own tokens below still win over it, and it wins over a Style preset's fonts. - 4. Open Advanced in Appearance for Fine-tuning, a few visual details that are not worth a theme of their own. Embedded blocks shows embeds as a shaded box (the default) or with only the accent line and dot. Links to the web or a file is a solid underline (the default), a dotted one, or none; links to pages never have one, so the two kinds read differently. Links to pages that do not exist yet is the dimmed link color (the default), a stronger one, or the same color as other links. Every choice starts at Tine's default look, takes effect at once, and has its own Reset. Settings search also finds these controls and opens Advanced.
- Arrows and dashes (
->,<-,=>,--,---) show exactly as you typed them, as in Logseq. To see them as glyphs (→, ⇒, –, —), set Settings → Appearance → Typographic replacements to On (while reading), which changes only what you see and leaves your Markdown as typed, or On (while typing), which rewrites the text itself as you type. It is Off by default; a device that used the earlier default, where arrows were drawn as glyphs, needs to pick On (while reading) once. - Fine-tuning choices are saved on this device (under
style.knobs.v1in Tine's device settings), never in your graph, so they do not follow the graph to another computer. Disable custom CSS switches them off for the session along with your stylesheet, and yourcustom.cssoutranks them. - Block embed breadcrumbs is off by default. Turn it on to show a muted source page and parent trail above block embeds.
- What you should see: the whole window recolors together. Anything you then set in
custom.cssoverrides only what you set. A Fine-tuning choice changes its one detail at once and Reset puts it back.
2. Open your custom.css
- Style one tag with
a.tag[data-ref="ai-note"] { color: #b45ee8; }. Tags and page links carrydata-refwith the lowercased page name, as in Logseq. Keep the full namespace (parent/elias); an alias label uses the link's target name, not the displayed label. For a page link, use.page-ref[data-ref="parent/elias"](or.ref[data-ref="parent/elias"]in a static export). - 1. Settings → Appearance → Advanced → Custom CSS → Edit custom.css opens
logseq/custom.cssin Tine's text editor, including on mobile. Or press Ctrl+K (Cmd+K on macOS), typecssorcustom.css, and choose Edit custom.css. A missing file starts empty and is created only when you save. 2. Press Save to apply changes immediately, or Save & close to return to your notes. Cancel closes without saving (it asks first if you have unsaved edits), and clicking outside the editor closes it only when nothing is unsaved. If another editor or a sync tool changed the file, Tine refuses to overwrite it and keeps your text open. Copy your edits before choosing Reload, then combine them with the latest file and save again.
- Switching apps or backgrounding Tine starts saving CSS alongside your pages. If a conflict refuses the save, reopening the same CSS file restores the recoverable draft with its original revision; copy it before reloading from disk.
- 3. Edit global CSS opens
global.cssin Tine's per-user config directory, outside every graph. It applies to every graph on this device and loads before each graph'scustom.css, so the graph can override it. The quick switcher also finds Edit global CSS (global.css). Saving applies it across open graph windows. This device file does not travel with a synced graph. - On desktop, Open in default app beside either Edit button opens that CSS file in the app your operating system associates with
.css, creating it if missing. The command palette also offers Open custom.css in default app and Open global CSS (global.css) in default app. Saves from your external editor apply live to Tine, including global CSS across open graph windows. The in-app Edit buttons remain available on every platform. - What you should see: a rule such as
:root { --tine-bullet-color: orange; }recolors every bullet as soon as you save. - Something went wrong? Settings → Appearance → Advanced → Custom CSS → Disable custom CSS ignores both CSS files and Fine-tuning for this session only. It is never saved, so restarting Tine always brings custom CSS back; fix the file, then switch it back on. If the stylesheet hides Settings itself, open the command palette (Mod+Shift+P) and run Toggle custom CSS (safe mode, this session).
3. The supported names:
--tine-*tokens- A token is a named setting. Each starts unset, which means "use the theme's default", so nothing changes until you set one. Set tokens on
:rootorhtml, like the recipes below; any selector you write wins over Tine's own, because Tine declares them with no specificity. These sixteen names are the ones Tine promises to keep: if one is ever removed or renamed, the changelog says so. Token Controls Default --tine-danger-colorError and destructive-action text and error borders (also the asset trash button's hover fill) A contrast-checked red for the theme's light or dark mode --tine-embed-bgBackground of an embedded block or page The theme's secondary background --tine-embed-accentThe accent line and bullet of an embedded block 35% accent mixed into the bullet color --tine-bullet-colorColor of the block bullet dot The theme's bullet color --tine-bullet-sizeDiameter of the block bullet dot 6px --tine-tag-colorColor of #tagsand tag chipsThe theme's tag color --tine-highlight-bgBackground of ^^highlighted^^textThe theme's highlight color --tine-missing-page-colorColor of a link to a page that does not exist yet A dimmed tint of the link color --tine-external-link-underlineThe line under a link to a web address or file 1px solid(usenoneto remove it)--tine-content-widthMaximum width of the page column 810px --tine-content-width-wideMaximum width of the column in Wide mode 100% --tine-page-title-sizeFont size of a page title 28px --tine-font-sizeBase font size of page text 16px --tine-content-fontFont family of the interface and page text Inter, then your system fonts --tine-mono-fontFont family of code and other monospace text MonoLisa, then your system mono fonts --tine-editable-fontFont family of text while you edit it Inter, then the emoji font, then your system fonts - The code and formula editors always edit in the monospace face, so
--tine-editable-fontdoes not reach them;--tine-mono-fontdoes. - Colors beyond these still use Logseq's
--ls-*variables (for example--ls-primary-background-color), exactly as in Logseq, so a Logseq snippet you already have keeps working. - The page widths you set in Settings → Appearance → Advanced (Standard page width, Wide page width) outrank
--tine-content-widthand--tine-content-width-wide. Reset those two fields if a token seems to have no effect.
4. Ten copy-paste recipes
- Paste any of these into
logseq/custom.cssand save. Combine as many as you like. - Remove the shade behind embedded blocks:
:root { --tine-embed-bg: transparent; }- Give embedded blocks a warm accent instead of the theme's:
:root { --tine-embed-accent: #d97706; }- Change the bullet color, and make bullets a little bigger:
:root { --tine-bullet-color: #d97706; --tine-bullet-size: 8px; }- A wider page column, in normal and in Wide mode:
:root { --tine-content-width: 1100px; --tine-content-width-wide: 1500px; }- A different reading font, for display and for editing (it also overrides the editorial reading style). Keep
var(--tine-editable-emoji-font)in the editing list; it protects emoji from crashing some Linux systems: :root { --tine-content-font: Georgia, "Times New Roman", serif; --tine-editable-font: Georgia, var(--tine-editable-emoji-font), serif; }- Larger text everywhere the base size applies:
:root { --tine-font-size: 18px; }- A different code font:
:root { --tine-mono-font: "Fira Code", Consolas, monospace; }- A different tag color and highlight color:
:root { --tine-tag-color: #0d9488; --tine-highlight-bg: #fde68a; }- Smaller page titles:
:root { --tine-page-title-size: 22px; }- A different value only in dark mode (Tine marks the window
lightordark): html[data-theme="dark"] { --tine-bullet-color: #fbbf24; }- Recolor the page itself with a Logseq variable, light mode only:
html[data-theme="light"] { --ls-primary-background-color: #fdf6e3; }
5. Find out what styles an element
- 1. Settings → Appearance → Advanced → Custom CSS → Developer tools (desktop), or press Ctrl+Shift+J (Cmd+Shift+J on macOS), opens the inspector. It is part of every desktop build, release builds included. Use its element picker, then read the Styles pane.
- 2. Look for a
var(--tine-…)orvar(--ls-…)in the rule that draws what you want to change. Setting that variable incustom.cssis the stable way to change it. - 3. When no variable exists, a class selector such as
.embed-blockworks today, but class names and the structure of the page can change between releases, so a rule written that way may need a touch-up after an update. Prefer a token. - 4. One class is a promise to theme authors, because a stylesheet cannot work it out from the page:
just-toggled. When you press a task's checkbox or its marker word (also the checkbox of a task shown inside a block reference), Tine addsjust-toggledto that task's.block-task-checkboxand.block-markerfor about 0.7 seconds, then removes it. It is never there when a page loads, when a row scrolls back into view, or when a sync or another editor changes the task. So.block-task-checkbox.just-toggled { animation: pop 300ms; }(with your own@keyframes pop) plays on your own toggle and nowhere else, which a bareanimationon.block-task-checkboxcannot do. Put motion inside@media (prefers-reduced-motion: no-preference). - What you should see: the inspector opens and highlights the element you point at, with its rules listed in the Styles pane.
6. If it does not look right
- A token seems to do nothing: check that you set it on
:rootorhtml(orhtml[data-theme="dark"]) and that the page-width Settings fields are reset for the two width tokens. - The whole window became unreadable: Disable custom CSS in Settings, or restart Tine with the file edited.
- If a custom.css could not be read message appears, fix the file's permissions or size with an external text editor, then try Edit custom.css again.
Where next
- Workflows/Extend Tine covers theme packages and plugins.
- Reference/Files, external edits, and backups explains what else lives in your graph's
logseq/folder.