An improved gogs dark theme

Jerry Liao 5eec745f85 switch to a more comfortable codemirror theme vor 2 Jahren
LICENSE 909ba15978 Initial commit vor 2 Jahren
README.md 5eec745f85 switch to a more comfortable codemirror theme vor 2 Jahren
codemirror-material.css 5eec745f85 switch to a more comfortable codemirror theme vor 2 Jahren
dark-theme.css 79649e1bcf tweak follower style vor 2 Jahren
gogs-hero-light.png f3a26f2b22 Add gogs-hero-light.png vor 2 Jahren
simplemde-dark.css 118e0c1e69 unify markdown editor style vor 2 Jahren

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.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.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