Giter Site home page Giter Site logo

Comments (4)

braver avatar braver commented on May 20, 2024

isotope-ui relies on the syntax-variables to set the @syntax-background-color. This creates a problem if the syntax-variables file contains variable names that are also used in the ui theme. Because my theme started as a copy of the One theme, that tends to happen :). In this case I'm also using a @theme-color variable and that creates a recursion.

So, I can (and will in a moment) fix it on my end.

However, we may need a rule that syntax-variables and ui-variables files stick to the required values, to make them safe for importing. These files being the "API" to pass style across packages might require some strictness here. Anything else should perhaps be moved to a different file.

from one-dark-syntax.

simurai avatar simurai commented on May 20, 2024

@braver I think you can keep it as is and it should be fixed in One. Isotope works for all other themes I tested. It's just that I set it up like this:

// colors.less
@syntax-contrast: ...;
@syntax-base-color: ...;


// syntax-variables.less
@import "colors";
@syntax-background-color: darken(@syntax-base-color, @syntax-contrast);

Now when Isotope UI tries to use the syntax-variables.less there is an error because the variables from colors.less are missing.

So as a convention we could say that syntax-variables.less shouldn't rely on other files. That way other themes/packages can import it without breaking.

from one-dark-syntax.

braver avatar braver commented on May 20, 2024

I renamed @theme-color and Isotope now also works with One-syntax, so that made the problem go away for my theme. I still think that introducing undocumented variables in syntax-variables (or ui-variables for that matter) might cause problems for packages as well.

from one-dark-syntax.

simurai avatar simurai commented on May 20, 2024

You're right.. the conflict was @theme-color. I thought that it would just get overridden if you import it.

Ok, closing this for now. But yeah.. we'll have to look into it once the theme settings get added.

from one-dark-syntax.

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.