NOTE: This is out-dated, I suggest using https://github.com/dbankier/ltss instead.
This alloy.jmk
adds support for using CSS-like @import "file.tss";
statements in Alloy TSS styles.
The idea for this came when discussing adding the option of including a CSS-like reset stylesheet in Alloy to make up for platform differences in (background)color, but also some good practices.
I think one of the key issues in this discussion is that there is no such thing as the base style for an app. iOS fans would like to reset to iOS-like styles, Android fans like to reset to theirs, flat UI fanatics would like everything minimalized and Bootstrap adepts will ask for a huge library of styles.
So in the end, if there is going to be such a thing as a reset style, there are going to be more. And then I think Alloy would be better of not to take a stand in the discussion but just offer a easy way to import any community-provided reset-TSS in their apps (app.tss
) using the familiar @import
statement.
- Support importing remote TSS straight from URL (e.g. git or gist)
- Support recursive import