Giter Club home page Giter Club logo

Comments (9)

Lissy93 avatar Lissy93 commented on August 12, 2024 2

Awesome, thanks very much for doing that :)

from listed.

daianaszwimer avatar daianaszwimer commented on August 12, 2024 1

Hi @Lissy93 !

Ohhh yes! You're right, I searched for # in the code and forgot about the places that use $, thank you for the heads up! I'll fix that ASAP 😄 🤩

from listed.

JaspalSuri avatar JaspalSuri commented on August 12, 2024

Hi @Lissy93! Thanks for taking the time to report this. I'll forward this to one of our devs who is currently working on Listed. 🙂

from listed.

Lissy93 avatar Lissy93 commented on August 12, 2024

Thank you :)
I'd be happy to help out with a PR if you'd like

from listed.

daianaszwimer avatar daianaszwimer commented on August 12, 2024

Hi @Lissy93 ! How are you?

I just created a PR so you don't have to worry about that 😄
Thank you for reporting this!

Have a nice day 😌

from listed.

Lissy93 avatar Lissy93 commented on August 12, 2024

That was quick- thank you very much 😄
It might be good in the future to have all components using CSS variables, so that users can easily theme their blogs?

from listed.

daianaszwimer avatar daianaszwimer commented on August 12, 2024

Hi @Lissy93 !

From what I can see, almost every component that has color uses CSS variables (I think there are only two places that use hardcoded colors, I will change that ASAP).

You can theme your blog with custom CSS and you can change the blog layout on Settings -> Appearance 😎

Let me know if there's anything else I can help you with! 😃

from listed.

Lissy93 avatar Lissy93 commented on August 12, 2024

From what I can see, almost every component that has color uses CSS variables (I think there are only two places that use hardcoded colors, I will change that ASAP).

Hi @daianaszwimer thanks for you're reply 😃 I might be missing something, sorry if I'm just being dumb here, but when making a theme for my blog, a lot of the colors have to be overridden by selector (rather than variable). For example:

This is because, in these instances the app is using SASS/ SCSS variables ($color) for colors (as opposed to CSS var(--color)), and SCSS is compiled at build time, which means the variables cannot be modified by the user in the production application. e.g. take a look at the gradient background for .button--primary in application.scss - it has two colors: the second is a CSS variable (and it is easily modifiable by the user), but the first value is a SASS variable (so appears as a hex code in the built app)

So for the user to apply custom colors, they must target elements individually by their selectors, and override the existing styles. Not the end of the world at all, but it makes things a little harder for the user, and may mean that any changes in the markup or class names could break the users theme.

from listed.

daianaszwimer avatar daianaszwimer commented on August 12, 2024

Hi @Lissy93 !

Here's the PR with almost all of the missing variables. It will soon be deployed to production! 😄
#164

Thank you!

from listed.

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.