https://github.com/pimatic/jqmthemer
jqmthemer
https://github.com/pimatic/jqmthemer
Last synced: about 1 year ago
JSON representation
jqmthemer
- Host: GitHub
- URL: https://github.com/pimatic/jqmthemer
- Owner: pimatic
- License: gpl-3.0
- Created: 2014-12-19T07:21:55.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-10T19:53:38.000Z (over 11 years ago)
- Last Synced: 2025-06-24T19:23:05.068Z (about 1 year ago)
- Language: CoffeeScript
- Size: 156 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
jqmthemer
===========
Theme a jQuery Mobile theme css file, by replacing css values by its variable names.
Usage
-----
Create a theme file:
```coffee
theme = {
'name': 'classic'
'css': [
"app/css/themes/default/jquery.mobile.inline-svg-1.4.2.css",
"app/css/themes/default/jquery.mobile.structure-1.4.2.css"
],
'extraCss': [
'themes/jqm/classic.css'
]
}
theme.variables = {
'a-bar-background-color': '#e9e9e9'
}
module.exports = theme
```
and apply it:
```coffee
jqmthemer = require 'jqmthemer'
theme = require(themeFile)
css = fs.readFileSync(cssfile)
themedCss = jqmthemer.themeCss(theme, css)
```
You can find some example theme files [here](https://github.com/pimatic/pimatic-mobile-frontend/tree/master/themes).