Skip to content
This repository was archived by the owner on Dec 25, 2023. It is now read-only.
This repository was archived by the owner on Dec 25, 2023. It is now read-only.

Css is too complex to permit anyone to create new theme #268

Description

@inkhey

Detailed description of the problem

Hello, i wanted to use lychee for a drawing gallery. I wanted a light theme. I checked LycheeOrg/Lychee#2086 but don't see any good solution.

My idea was simple, just changing the color used, nothing else.
Working on css directly is very hard, we get a 4000 line css which is hard to understand.
Working on scss look a bit simpler, but for my simple change, it's still really hard to do:

  • There are a big number of color: > 44, which look to me probably unnecessary.
  • There are color using different color syntax making harder to replace them.

So i try something, reading this article : https://codepen.io/jakealbaugh/post/css4-variables-and-sass .
I just put most of the color in one place, there are still some rgba and named color missing because i was a bit tired at the end, there probably some kind of script to do this automatically.

I create a PR to show this idea:

Edit: Please note i'm not very competent at css (this is the first time i see scss), i'm more a backend guy.
Edit 2: Also, apart from this technical debt issue there in CSS, lychee >4 is awesome 👍 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions