An improved gogs dark theme

jerryliao e065d3a29a tweak editor styles 1 vuosi sitten
LICENSE 6f0929f8f9 Initial commit 1 vuosi sitten
README.md 2b66b56753 add markdown editor dark theme 1 vuosi sitten
codemirror-material-darker.css 7fe2227314 update styles and readme 1 vuosi sitten
dark-theme.css e065d3a29a tweak editor styles 1 vuosi sitten
gogs-hero-light.png 99dadf7a19 Add gogs-hero-light.png 1 vuosi sitten
simplemde-dark.css e065d3a29a tweak editor styles 1 vuosi sitten

README.md

gogs-dark-theme

An improved gogs dark theme, original from Stylish, CodeMirror theme from here, SimpleMDE theme from here

Instructions

  • Put dark-theme.css, simplemde-dark.css and codemirror-material-darker.css under /your/gogs/path/custom/public/themes foler
  • Add following HTML code in /your/gogs/path/custom/templates/inject/head.tmpl

    <link rel="stylesheet" href="/css/themes/dark-theme.css" />
    <link rel="stylesheet" href="/css/themes/simplemde-darker.css" />
    <link rel="stylesheet" href="/css/themes/codemirror-material-darker.css" />
    
  • If you're using Nginx to proxy Gogs, upload gogs-hero-light.png to the site folder and add the following lines in your site config

    location =/img/gogs-hero.png {
        alias /var/www/yoursite/gogs-hero-light.png;
    }
    
  • Restart Nginx and Gogs

Todo

  • CodeMirror themes
  • CodeMirror Markdown theme