Git Product home page Git Product logo

Comments (4)

johannesjo avatar johannesjo commented on August 22, 2024

Hi! This should be possible, but might be limited by the quirks and inconsistencies of angular material. This library is not a replacement of angular material, but rather placed on top of it to make it work as well as possible with css variables. You can find a list of all accessible variables here: https://github.com/johannesjo/angular-material-css-vars/blob/master/projects/material-css-vars/src/lib/_variables.scss

Would be interesting to read how for you get with this approach. Maybe that's even something for an article on dev.to if you're into those kind of things? :)

Please let me know if I you have any further questions. That's also something I'd like to implement on another project, so it would be wonderful if you'd share your findings.

from angular-material-css-vars.

johannesjo avatar johannesjo commented on August 22, 2024

Btw. I just had a look at Knowte. Pretty slick UI. I am impressed! :)

from angular-material-css-vars.

digimezzo avatar digimezzo commented on August 22, 2024

Thanks for replying! Unfortunately, I could not get it to work. One of the colors that I need to set is MaterialCssVariables.BackgroundBackground. I've used the setVariable() function, but no luck. I've tried like this:

setVariable(MaterialCssVariables.BackgroundBackground, '10, 10, 10')

and

setVariable(MaterialCssVariables.BackgroundBackground, '1a1a1a')

But no luck. the background color remains unchanged. So I reverted to the regular Angular material way of doing theming and implemented my own color changing system using css variables. I'll try to write a blog post about it.

Thanks for liking Knowte! :)

from angular-material-css-vars.

johannesjo avatar johannesjo commented on August 22, 2024

I'll try to write a blog post about it.

Cool, please keep me posted! :)

from angular-material-css-vars.

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.