迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:FokkeZB/IconFont开源软件地址:https://github.com/FokkeZB/IconFont开源编程语言:CSS 61.6%开源软件介绍:IconFontCLI to convert CSS StyleSheets for Icon Fonts like FontAwesome to a CommonJS module or Alloy TSS file that exports all unicodes by name. I use them in native iOS & Android apps build with Titanium. Example
Install the CLI via NPM like this:
CommonJSGenerate itJust point the CLI to the CSS file:
This would create a file named
Use itIn Titanium, I'd use the module like this:
In Alloy you can do: alloy.js
index.tss
Alloy TSSCredits: Jong Eun Lee. Generate itAdd the
Or when using the second output-argument, make sure its extension is
Use itSince you cannot import TSS files at the moment, you'd probably copy-paste the contents of the generated file to your index.xml Use the classes just like in HTML:
index.tss And overwrite any property using additional class names:
Notes
Changelog
IssuesPlease report issues and features requests in the repo's issue tracker. LicenseDistributed under MIT License. ![]() |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论