Giter Site home page Giter Site logo

Comments (5)

paulitolinhares avatar paulitolinhares commented on May 26, 2024 1

I'm having the same problem. I'm trying to override the variable on a custom stylesheet but nothing seems to change on the panel.

from active_material.

colinambler avatar colinambler commented on May 26, 2024

same here!

in active_admin.scss I have following lines:

@import "active_material";

$am-theme-primary: #000 !important;

#000 is just test color. I can't get it to override the variable as it mentions in the docs. Did anyone break through on this?

from active_material.

nhunzaker avatar nhunzaker commented on May 26, 2024

@colinambler These color values are set as defaults. This means they will respect any existing Sass variables. Any variable assignments added after importing active_material won't be show up.

So instead of:

@import "active_material";

$am-theme-primary: #000 !important;

Try:

$am-theme-primary: #000;

@import "active_material";

I also noticed that I didn't make this super clear in our customization document. I've updated that with more specific information on overriding color variables, and a more comprehensive list of what overrides are available.

from active_material.

nhunzaker avatar nhunzaker commented on May 26, 2024

@paulitolinhares, @itshakeel23 would you be willing to confirm for me that this addresses your issue as well?

from active_material.

colinambler avatar colinambler commented on May 26, 2024

Awesome!! This worked great for me. Nice updates to the docs too. 👍 Thanks @nhunzaker

from active_material.

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.