ch-a-os / DocSort

Digitize and access everything, everywhere.
GNU General Public License v3.0
0 stars 1 forks source link

Feature: Multiple themes #10

Open ghost opened 5 years ago

ghost commented 5 years ago

Create at least 2 themes (light/dark) and let the user choose between those.

Mondei1 commented 5 years ago

DARK MODE!!!!! cough cough Yeah, what I mean is... We need dark mode. As default for the best.

Mondei1 commented 5 years ago

Actually we can create theme files, idk maybe here: src/configs/themes/dark.json which has this content:

{
    "meta": {
        "name": "Dark theme",
        "description": "Your eyes will thank you. Modern, simplic and dark.",
        "version": "1.0.0",
        "author": "DocSort team",
        "category": "black"
    },
    "theme": {
        "background": "#1c1c1c",
        "text": "#ffffff",
        "ok_button": "#???????",
        ...
    }
}
ghost commented 5 years ago

The themes would be in the database too, but we can erase the themes from the db at each start and load them from a json-file.

ghost commented 5 years ago

This article, received today, is exactly about this topic^^ Not saying that we must follow it, it's just interesting to read :) https://medium.freecodecamp.org/how-to-create-themes-for-your-angular-7-apps-using-css-variables-69251690e9c5