=== AddonLogic Color Picker Field ===
Contributors: snehalpancholi
Tags: color picker, meta field, custom field, shortcode, inline css
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Register named color meta fields on any post type and output them as hex values, swatches, or inline CSS via shortcode.

== Description ==

Color Picker Field lets you register named color meta fields (e.g. brand_color, accent_color) that appear as WP color pickers in the post editor sidebar. The `[color_field]` shortcode outputs the saved value as a hex string, a visual swatch, an inline CSS property, or a full `<style>` block.

**Core Features:**

* Unlimited named color fields defined in settings
* WordPress native color picker UI in the post editor
* Four output modes: value, swatch, css, inline
* Configurable default color per field
* Works on any public post type
* Zero external dependencies

== Installation ==

1. Upload `color-picker-field` to `/wp-content/plugins/`.
2. Activate via **Plugins > Installed Plugins**.
3. Go to **Settings > Color Picker Field**.
4. Add color fields (key, label, default color).
5. Select which post types show the picker.
6. Edit a post — color pickers appear in the sidebar.
7. Use `[color_field key="brand_color"]` in content.

== Frequently Asked Questions ==

= Can I use the color for a CSS background? =
Yes: `[color_field key="brand_color" output="css" property="background-color" selector=".hero"]`

= Can I use it in a style attribute? =
Yes: `<div style="[color_field key='brand_color' output='inline' property='border-color']">...</div>`

= What if no color is set? =
The shortcode returns an empty string, unless you supply a default= attribute.

== Changelog ==

= 1.0.0 =
* Initial release.

== Screenshots ==

1. Settings page showing color field registration.
2. Color picker in the post editor sidebar.
3. Swatch output mode on the frontend.
