Hex Calc
Developer
3rd Party (Free)
EE Version Support
- ExpressionEngine 2
Compatibility
If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.
- Updater
- Multi Site Manager
- Stand Alone Entry Form
- Low Variables
- Content Elements
- Better Workflow
- Matrix
- Grid
- Webservice
- Publisher
Requirements
- jQuery for the Control Panel
Add-On Type(s)
Plugin
Tags
Accepts a hexadecimal color value and returns a lighter or darker shade.
Hexadecimal color calculation plugin for ExpressionEngine. This was created to enable entry-stored hex colors to generate in-page styles that override call-to-action button colors. The plugin is used to accept the user-entered color code and generate a lighter or darker variant for border colors and hover state colors.
Parameters:
- source_color: specify a hexadecimal color. If you provide the #, the # will be returned with the new value. Default is 000000.
- percent: percentage of lightening or darkening. Default is 50.
- mode: specify either lighten or darken. ‘lighten’ is the default if no parameter is specified. Anything else is assumed darken.
Examples:
This will lighten by 35%, outputting the # as well as new hex value
{exp:hex_calc color="#16A527" percent="35"}
This will darken by 35% and will not include the hash
{exp:hex_calc color="16A527" percent="35" mode="darken"}
Installation:
Create a subfolder within your third_party directory named ‘hex_calc’ and place the pi.hex_calc.php file there. That’s it.
Hex Calc Links
This entry was created March 13, 2013, 1:39 pm.
This entry was last updated March 13, 2013, 4:37 pm.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!
Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.
There are no reviews for this add-on yet.
What are you waiting for? Rate it and review it!