Skip to content

Instantly share code, notes, and snippets.

@kevboh
Last active April 18, 2024 13:59
Show Gist options
  • Save kevboh/3a3e52ed115497befbbad5084cc5424c to your computer and use it in GitHub Desktop.
Save kevboh/3a3e52ed115497befbbad5084cc5424c to your computer and use it in GitHub Desktop.
CSS snippet for Obsidian to make my Longform projects look like a place I'd write in
.longform {
--background-primary: white;
--background-primary-alt: white;
--background-secondary: transparent;
--background-secondary-alt: white;
--text-selection: #aaa;
--text-normal: black;
--default-font: Baskerville;
}
.longform .CodeMirror {
max-width: 600px !important;
}
.longform .markdown-source-view {
font-size: 1.2rem;
text-indent: 2rem;
}
.longform .suggestion-item.is-selected {
background-color: var(--text-accent);
}
.longform-leaf {
--background-primary: white;
--background-primary-alt: white;
--background-secondary: white;
--background-secondary-alt: white;
--text-selection: #aaa;
--text-normal: black;
--default-font: Baskerville;
font-family: Baskerville;
color: black;
}
.longform-leaf .CodeMirror {
max-width: 600px !important;
}
.longform-leaf .markdown-source-view {
font-size: 1.2rem;
text-indent: 2rem;
}
.longform-leaf .suggestion-item.is-selected {
background-color: var(--text-accent);
}
.longform-leaf .view-header {
background-color: white;
}
@Azmoinal
Copy link

Azmoinal commented Apr 2, 2024

I would export the compiled document using the same css/theme, how I could do? If I try to export the manuscript document in Obsidian it will use my current theme without indent, etc…

Than you in advance for your help.

@kevboh
Copy link
Author

kevboh commented Apr 18, 2024

What do you mean by export—as a pdf? That's a purely Obsidian question that I do not know the answer for off the top of my head.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment