Skip to content

ttscoff/MarkedCustomStyles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

96402b1 · Aug 21, 2024
Apr 20, 2019
Apr 20, 2019
Oct 14, 2023
Mar 23, 2021
Oct 14, 2023
May 13, 2020
Feb 27, 2020
Feb 28, 2020
Dec 26, 2016
Oct 19, 2014
Oct 14, 2023
May 13, 2020
Mar 23, 2021
Jan 27, 2018
Mar 12, 2020
Mar 13, 2020
Feb 25, 2020
Mar 14, 2020
Mar 23, 2021
Apr 20, 2019
Feb 27, 2020
Feb 25, 2020
Feb 27, 2020
Feb 27, 2020
Mar 17, 2020
Mar 12, 2020
Dec 23, 2013
Feb 27, 2020
Feb 27, 2020
Feb 25, 2020
Feb 25, 2020
Feb 27, 2020
May 10, 2019
Mar 14, 2020
Feb 27, 2020
Jan 18, 2014
Mar 12, 2020
Feb 27, 2020
Feb 27, 2020
Mar 21, 2019
May 13, 2020
May 13, 2020
May 13, 2020
Oct 14, 2023
May 13, 2020
Feb 25, 2020
Mar 4, 2022
Aug 21, 2024
Aug 21, 2024
Mar 12, 2020

Repository files navigation

Custom Styles for Marked 2

Want a quick look at some of the current styles in this repository? Browse the gallery.

Please feel free to fork and submit new styles! If you're not a Github user and you'd like to contribute, just drop me a line.

Please customize and include the contents of Header.css in any submitted styles. The portion between the --- borders should be in YAML format.

/*
This document has been created with Marked.app <http://marked2app.com>
Content is property of the document author
Please leave this notice in place, along with any additional credits below.
---------------------------------------------------------------
Title: Your style title
Author: Your Name
URL: <your url>
Description: Description of theme
Fonts: (optional) [Rockwell, Rokkit, etc.]
Note: (optional) Additional notes, where to get custom fonts, etc.
---
*/

Using a Style

When viewed through the gallery, every style has an "Install" button that will automatically save and load the Custom Style in Marked for you.

To install manually:

  1. Save the CSS file to your disk. You can open any Style in the list and then hit the "Raw" button to get a file ready for "Save to...". I suggest saving to ~/Library/Application Support/Marked 2/Custom CSS, as (at some point) in the future Marked will read from that folder automatically.

  2. Then, open up the Style Preferences in Marked and click the "+" button under the Custom Styles list. Locate the file and select it. Now it will appear in your Styles dropdown selection and you can optionally make it the default window style.

Custom Styles are added to the keyboard menu under Command-Opt-#, where # is 1-9 in the order they're added.

Creating a Style

I've been creating my styles with Compass and Sass, with a document containing a full range of markup elements for testing. I just turn on compass watch and point Marked's Style to the output CSS file. Turn on "Track CSS Changes" under the Style list in Marked, and every time Compass compiles, Marked will update without refreshing the page (LiveReload-style injection). You can use whatever you like, including directly editing plain CSS.

The document markup hasn't changed between v1 and v2 of Marked, so the original style guide still applies. There are just a few things to worry about for full compatibility. Inverted styles, poetry mode and print settings. However, submissions that lack any of these are still accepted, as people can add their own if they need to.

The one thing your Style does need (aside from looking great in Marked), is the Header.css information, customized to your Style. Just stick it at the top.

Thanks, and I hope you'll consider sharing the custom styles you create, even if they're revisions and evolutions of existing styles!