Comments (9)
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.
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.
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.
Sounds good.
from csscheme.
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.
Exactly the same for me.
from csscheme.
Hey! I've switched my editor and now, I'm likely not gonna work on this.
from csscheme.
Closing this out.
from csscheme.
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)
- Strange Error ("'FunctionToken' object has no attribute 'value'") HOT 5
- SCSS can not convert numeric scope fragments HOT 5
- Traceback caused by: edit.py HOT 5
- Make every scope a class. HOT 6
- There should be support for "normal" fontStyle HOT 1
- Support phantomCss and popupCss
- Run as command line tool HOT 1
- question(stylus): split styluscheme file multiple modules HOT 1
- Be less restrictive about property values HOT 4
- Please add Stylus support HOT 19
- Support empty fontStyle HOT 8
- Negative selectors HOT 2
- There are more color settings HOT 3
- Negative selectors (again) HOT 5
- Conversion from tmTheme to CSS? HOT 1
- Allow generation of hidden-tmTheme HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csscheme.