Code Monkey home page Code Monkey logo

Comments (9)

FichteFoll avatar FichteFoll commented on May 22, 2024

I've never actually looked into how themes are structured, but it seems you are right. CSS really seems to be a good intermediate format for themes as well.

Unfortunately this will probably have a very low priority for me.

(There's only 1 thing that can be a problem: keys that refer to objects.)

I'm unsure what you mean by this. The layerN.* stuff?

from csscheme.

pradyunsg avatar pradyunsg commented on May 22, 2024

No. Some keys can have object values.

See the icon_folder_loading and minimap_control in Soda as an example.

Any tips if I try to take this on?

from csscheme.

FichteFoll avatar FichteFoll commented on May 22, 2024

I see, that's an issue. Best solution I can come up with right now is something like layer0.texure.keyframes. Which would also work for viewport.opacity but is kind of inconsistent with the layerN.* keys. Otoh, in our format it would be consistent but in the converted format it's not, which is not our fault.
Thus, I would, by default, split all stuff with dots in its name into an object (or mapping, for that matter) but add an exception for the layer stuff, i.e. the first level after it since texture can still be an object.

For other tips I can only suggest to take a look at my source code, I suppose. The tinycss modifications are kind of deeply nested into how the package works by itself, but I suggest approaching the conversion similarly to me.

from csscheme.

pradyunsg avatar pradyunsg commented on May 22, 2024

Sounds good.

from csscheme.

pradyunsg avatar pradyunsg commented on May 22, 2024

Bump. I didn't get around doing this because I'm a student and I got exams. 😞

Just wanted to drop by to say I still want to either see this happen or even do this. I just haven't gotten around to do this.

from csscheme.

FichteFoll avatar FichteFoll commented on May 22, 2024

Exactly the same for me. 😄

from csscheme.

pradyunsg avatar pradyunsg commented on May 22, 2024

Hey! I've switched my editor and now, I'm likely not gonna work on this. 🙈

from csscheme.

pradyunsg avatar pradyunsg commented on May 22, 2024

Closing this out.

from csscheme.

FichteFoll avatar FichteFoll commented on May 22, 2024

That's okay. I don't think I'll ever add theme support or even continue maintaining this, seeing how the new updated theme and scheme format supports variables and color modification functions out of the box. These where the biggest advantages of CSScheme and not having to compile (into a repo so that PC can download it) is a huge plus.

Being able to split into multiple files was neat but we can also get this or something similar with extends now.

from csscheme.

Related Issues (17)

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.