funkhaus-format-login
v2.0.0
Published
Quickly generate WP login CSS files for Funkhaus projects.
Readme
Quickly generate WP login CSS files for Funkhaus projects.
How
sudo npm install funkhaus-format-login -g- Open Terminal and move to the desired directory
funkhaus-format-loginand follow instructions
That's it!
Options
-t filename.txtor--template example.txt- File to use as a template (default
template.txt)
- File to use as a template (default
-e encodingor--encoding encoding- Encoding of the template (default utf8)
-o example.txtor--output example.txt- Name of output file (default
output.txt)
- Name of output file (default
Changing the Template
Everything that happens in the script is based on the template file. funkhaus-format-login scans the template (default templates/template.css) for Mustache-style placeholders, then prompts the user for values to fill those placeholders.
For example, if template.css just contained this:
html {
color: {{ background-color }};
}then running funkhaus-format-login would ask you for the background-color:
prompt: background-color (required): [your hex value here]and would result in this CSS file:
html {
color: [your hex value here];
}You can also specify a default value for a placeholder:
html {
color: {{ background }};
}
body {
color: {{ body-background default:background }};
}Name the placeholder as usual, then indicate a default value to look for with default:[default-value-name]. This falls back on the default value if the user doesn't specify the value in the prompt.
Version 2.0
http://funkhaus.us
