fichtefoll / csscheme Goto Github PK
View Code? Open in Web Editor NEWCreate Sublime Text or Text Mate color schemes in CSS, SCSS or stylus
License: MIT License
Create Sublime Text or Text Mate color schemes in CSS, SCSS or stylus
License: MIT License
When I convert from tmTheme file to csscheme,
<key>fontStyle</key>
<string>normal</string>
is converted to
fontStyle: normal;
But when converting from csscheme to tmTheme, I get an error:
invalid value 'normal' for style property fontStyle in "keyword.operator"
I want to be able to use bracketsOptions: foreground stippled_underline;
but right now "foreground" can't be used as part of a property value.
To clear existing font styles you can use:
<dict>
<key>fontStyle</key>
<string></string>
</div>
This is currently not possible in the CSScheme syntax.
P.S. I hope more people come out of the woodwork with their obscure tmTheme know-how :)
Well, this is a wonderful package! CSS (w/ preprocessors) is indeed very convenient for this purpose.
To me, it seems like CSS will also be a convenient language for specifying UI Themes. Let's extend this to .sublime-theme! π
(There's only 1 thing that can be a problem: keys that refer to objects.)
as mentioned at [Solved] issue using βeditβ objects recursively
ST Version: Stable Channel, Build 3103
OS: Windows 10 Pro (64-bit), Build 10586
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 568, in run_
return self.run(edit, **args)
TypeError: run() missing 1 required positional argument: 'name'
try:
from .Edit import Edit as Edit
except:
from Edit import Edit as Edit
...
...
edit = Edit(view)
edit.replace(region, text)
the above code works with my modified version of edit.py
Hello! Would it be possible to use CSScheme as command line tool so it would be useful not only inside of Sublime?
Possibly with a @hidden: true
key in the "global/top-level" along with name?
Given this:
@name "Test";
$hotpink: #fe57a1;
* {
selection: transparentize($hotpink, .85);
selectionBorder: transparentize($hotpink, .76);
}
I get this:
Traceback (most recent call last):
File "my_sublime_lib in C:\Alex\Dropbox\Apps\Sublime Text 3\Data\Installed Packages\CSScheme.sublime-package", line 62, in run_
File "C:\Alex\Dropbox\Apps\Sublime Text 3\sublime_plugin.py", line 526, in run_
return self.run()
File "csscheme in C:\Alex\Dropbox\Apps\Sublime Text 3\Data\Installed Packages\CSScheme.sublime-package", line 182, in run
File "tinycsscheme.dumper in C:\Alex\Dropbox\Apps\Sublime Text 3\Data\Installed Packages\CSScheme.sublime-package", line 65, in dump_stylesheet_file
File "tinycsscheme.dumper in C:\Alex\Dropbox\Apps\Sublime Text 3\Data\Installed Packages\CSScheme.sublime-package", line 114, in datafy_stylesheet
File "tinycsscheme.dumper in C:\Alex\Dropbox\Apps\Sublime Text 3\Data\Installed Packages\CSScheme.sublime-package", line 147, in datafy_ruleset
File "tinycsscheme.dumper in C:\Alex\Dropbox\Apps\Sublime Text 3\Data\Installed Packages\CSScheme.sublime-package", line 147, in <genexpr>
AttributeError: 'FunctionToken' object has no attribute 'value'
It's line 7 (selectionBorder) that causes the issue, but I don't understand why. It will work if I change the line to:
selectionBorder: $hotpink;
Edit: This is in 3061 on Win XP.
http://www.sublimetext.com/forum/viewtopic.php?f=2&t=17042#p64031
"highlight", "highlightForeground", "findHighlight", "findHighlightForeground"
Is it possible to split styluscheme
file to multiple files?
At the time tmTheme
file of my package have 3124 lines and 111 Kb size.
I have long wanted to split this file. Is it possible via CSScheme?
In stylusfiles
folder I create 2 files:
html.styluscheme
β theme for HTMLpython.styluscheme
β theme for PythonIn root directory of my package I create SashaSublime.styluscheme
file with these lines:
@import "stylusfiles/html.styluscheme"
@import "stylusfiles/python.styluscheme"
After build command content of html.styluscheme
and python.styluscheme
will include to SashaSublime.tmTheme
.
Thanks.
Just like the title says. Please add support for Stylus.
Any chance this will be implemented? I'd love to use this, but without a way to convert my current .tmTheme
files to CSS, I'm kind of stuck...
The Heading Scopes for Markdown Extended are not working i keep getting errors in each of the languages so HELP PLEASE!!
P.S Awesome Plugin keep doing what you do.
Much like Atom syntaxes, it would be nice if the first scope would (optionally, because backwards compatibility) be a class-name instead of a tag name. This would require some changes here and there, but I feel it might be worth it because then it would be possible to support both Atom and Sublime Text with the exact same LESS code. Yay!
Anyone thinks this might be a good idea.
Sidenote:
Why is this package not used more!? Please advice/advertise. π
Sublime supports negative selectors. Here's an example from the default Monokai theme:
constant.numeric.line-number.find-in-files - match
They're less useful than they appear, as it's almost always better to tweak the syntax than to monkey around the color scheme, but there have you it.
On Ubuntu 14.04 with Sass 3.4.9 the syntax for negative selector is invalid.
This is the error when attempting to compile the example scsscheme:
Error: Invalid CSS after "&.name ": expected selector, was "'-' &.name.tag"
in Example SCSScheme.scsscheme on line 100
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.