Git Product home page Git Product logo

Comments (5)

simonbaird avatar simonbaird commented on June 9, 2024 1

There's support in Bootstrap now IIUC, so perhaps it's fairly easy to enable.

https://getbootstrap.com/docs/5.3/customize/color-modes/

from tiddlyhost.

Telumire avatar Telumire commented on June 9, 2024

Thanks a lot for adding a dark mode ! I prefer to have more contrast so I made my own (using the stylus browser addon):

    :root {
        --bs-light-rgb: var(--dark-background);
        --bs-secondary-color: var(--dark-foreground);
        --bs-body-color: var(--dark-foreground);

        /* $:/palettes/CupertinoDark */
        --dark-background: 40, 40, 40;
        --dark-foreground: white;
        --dark-link-foreground: #32D74B;
        --dark-link-foreground-visited: #BF5AF2;
        --dark-header-background: #111;
        --dark-table-header: #0a84ff;
        --dark-important-color: #FF9F0A;
        --dark-tag-foreground: black;
    }

    a:is(.btn,[class*="nav"]){
        background: transparent!important;
        color: var(--dark-foreground)!important;
    }

    a svg {
        --bs-body-color:var(--dark-foreground);
    }


    .bg-light *:not([class*="tag"] *) {
        background: var(--dark-background)!important;
        color: var(--dark-foreground)!important;
    }

    [class*="tag"] * {
        font-size: .7em!important;
        color: var(--dark-tag-foreground)!important;
    }


    .hub .site .name a,
    .sites-grid .site .name a {
        color: var(--dark-link-foreground)!important;
    }

    :is(.hub .site .name a, .sites-grid .site .name a):visited {
        color: var(--dark-link-foreground-visited)!important;
    }

    .navbar {
        background: var(--dark-header-background)!important;
    }

    .table.admin th,
    .table.sites th {
        --dark-foreground: var(--dark-table-header);
    }

    .create-buttons .bg-gradient:hover,
    .sites-menu-container .bg-gradient:hover {
        background: transparent!important;
    }

    table.sites td .sitelink a:hover {
        --dark-foreground: var(--dark-important-color);
    }

    /*     Other tweaks */
    table.sites td .sitelink a {
        text-decoration: none;
        font-weight: bold;
        font-size: medium;
    }

image
image

It could be a cool feature to allow user to set their own theme / pick a theme from a community list of theme, but I don't know how hard it would be to do ..

from tiddlyhost.

simonbaird avatar simonbaird commented on June 9, 2024

Nice, thanks for sharing. Yeah, a theme selector would be fun.

from tiddlyhost.

simonbaird avatar simonbaird commented on June 9, 2024

I might rework the tag colors, I think yours look better.

from tiddlyhost.

simonbaird avatar simonbaird commented on June 9, 2024

f0519d0 & 94e2dc8 mainly.

from tiddlyhost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.