Skip to content

Instantly share code, notes, and snippets.

@hannesbe
Last active November 18, 2020 12:53
Show Gist options
  • Save hannesbe/52c8fa6fcdd80187d787a0759d00611a to your computer and use it in GitHub Desktop.
Save hannesbe/52c8fa6fcdd80187d787a0759d00611a to your computer and use it in GitHub Desktop.
Typora user config (goes in %USERPROFILE%\Roaming\Typora\conf\conf.user.json) & base theme css (goes in %USERPROFILE%\Roaming\Typora\themes)
/**
Typora user config
C:\Users\hava\AppData\Roaming\Typora\conf\conf.user.json */
{
"width" : null, // Integer - Window's width in pixels. Default is null (last window width)
"height" : null, // Integer - Window's height in pixels. Default is null (last window height)
"directWrite": true, // Boolean - Enables DirectWrite font rendering system on Windows. Default is true.
"defaultFontFamily": {
"standard": null, //String - Defaults to "Times New Roman".
"serif": null, // String - Defaults to "Times New Roman".
"sansSerif": 'Roboto Sans', // String - Defaults to "Arial".
"monospace": 'Droid Sans Mono' // String - Defaults to "Courier New".
},
"autoHideMenuBar": true, //Boolean - Auto hide the menu bar unless the `Alt` key is pressed. Default is false.
// Array - Search Service user can access from context menu after a range of text is selected. Each item is formatted as [caption, url]
"searchService": [
["Search with Google", "https://google.be/search?q=%s"],
["Search with Kay", "https://www.kaybodywear.com/catalogsearch/result/?q=%s"]
],
// Custom key binding, which will override the default ones.
"keyBinding": {
"Always On Top": "Ctrl+Shift+P",
"Insert Local Images": "Ctrl+Shift+I",
"Code Fences": "Ctrl+Shift+K",
"Code": "Ctrl+K",
"Hyperlink": "Ctrl+L",
"Highlight": "Ctrl+H"
},
"autoSaveTimer" : 2 // default 5 minutes
}
@import url('https://fonts.googleapis.com/css?family=Droid+Sans+Mono|Roboto+Mono');
@import url('https://fonts.googleapis.com/css?family=Roboto');
.md-fences,
code,
tt {
font-family: 'Droid Sans Mono', Consolas, "Liberation Mono", Courier, monospace;
/*
font-family: 'Roboto Mono', monospace;
*/
font-size: 0.9em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment