An improved gogs dark theme

jerryliao 0deb8d6643 fix file name typo 1 년 전
.drone.yml 0deb8d6643 fix file name typo 1 년 전
LICENSE 6f0929f8f9 Initial commit 1 년 전
README.md 0deb8d6643 fix file name typo 1 년 전
codemirror-material.css 78cdda0f03 switch to a more comfortable codemirror theme 1 년 전
dark-theme.css b4f8940ce2 tweak follower style 1 년 전
gogs-hero-light.png 99dadf7a19 Add gogs-hero-light.png 1 년 전
simplemde-dark.css 2bcc380eea unify markdown editor style 1 년 전

README.md

gogs-dark-theme

Build Status

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/css/themes folder
  • 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-dark.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