GCS Studios

NWD Color Picker (HEX/RGB/HSL) v1.15.0

NWD Color Picker (HEX/RGB/HSL) was built to give Bubble the color input it never had. Built as a native-like input, it brings a full color panel, transparency, presets, an eyedropper and typed colors together in one polished component, and it can publish a truly empty value when no color is chosen. Fully customizable through 30+ properties, giving you complete control over every visual and behavioral detail.

No data collected

Why use this?

Built for what Bubble does not cover.

Bubble has no native color input. The usual workaround is a text field for a hex code, which takes any typo as a valid value, shows no preview of the color, has no transparency, and never lets anyone pick by eye, which is how people choose a color in the first place.

Key features 6

Full Color Panel

Pick a color in a saturation area with hue and transparency sliders, or type any CSS color straight into the input.

Fast Picking

Grab any color on screen with the eyedropper, or offer a row of preset colors for the picks people make most.

Complete Styling Control

Three input layouts and a swatch you can shape, with every part of the picker open to styling.

Truly Optional Value

Publishes an empty value when no color is chosen, so an optional color field in your database can really stay empty.

Accessible Experience

Fully operable from the keyboard and announced to screen readers, with motion preferences respected.

Workflow Ready

Everything the input knows is available to your workflows, and every change is an event you can react to.

In detail

Complete Color Control

  • Saturation and brightness area, hue slider, and transparency slider
  • HEX, RGB, or HSL output, with HEX, RGBA, HSLA and OKLCH always exposed as states
  • Type any CSS color directly in the input: named colors, hex with 3, 4, 6 or 8 digits, rgb, hsl and hwb
  • Modern CSS formats too: lab, lch, oklab, oklch, color() in any color space, and color-mix()
  • The chosen output format does not restrict what can be typed, and a value that is not a color is ignored instead of clearing the color
  • Eyedropper to pick any color from anywhere on the screen, on Chromium browsers
  • Preset colors for quick picks, with an optional title above them
  • Publishes an empty value, so an optional color field can really stay empty

Fully Customizable

  • 30+ properties for complete visual and behavioral control
  • Three input layouts: a compact swatch filling the whole input, the swatch with the color code, or both with the opacity field
  • Swatch border radius and relief, from a square chip to a circle
  • Floating panel with animation types, smart positioning and modern glass effects
  • Fully customizable input states: disabled, required, invalid and focused
  • Seamless integration with native Bubble styles while preserving a consistent appearance across browsers and matching your app design

Smooth User Experience

  • Custom tooltip showing the color code, with a configurable delay
  • Smooth animation types with smart directional positioning that adapts beautifully to any screen
  • Works with mouse, touch, and pen
  • Keyboard ready with Tab, Enter, Space, Escape, and the arrow keys on the color area and sliders
  • Screen reader ready with an accessible label and description, and reduced motion support
  • Handles disabled, required, and invalid states with customizable styling that integrates with Bubble styles
  • Consistent experience across browsers and devices

Workflow Friendly

  • The color in five formats at once: the chosen one, HEX, RGBA, HSLA and OKLCH
  • Red, green, blue, hue, saturation, lightness and alpha exposed as separate numbers, ready for math and generated palettes
  • A contrast color and an is dark state, so text over the chosen color stays readable without writing a single condition
  • All relevant states exposed, including is clickable, is required, is valid, and is focused
  • Default value available to your workflows even while the element is hidden
  • Reset action with flexible behavior that integrates with native Bubble actions (Reset a group/popup) or custom workflows
  • Focus action that can be triggered from anywhere for total control over workflow and accessibility
  • Set value action that can be triggered from anywhere, with control over how it behaves when the input is disabled
  • Value changed event for seamless Bubble integration

Reliable & Production-Ready

  • Built with lightweight CSS and JavaScript for fast, reliable performance
  • Designed around practical use cases and real Bubble development needs
  • Tested in real-world applications before being released publicly
  • Created to extend Bubble with functionality and customization beyond what native Bubble elements typically offer

How to use 3

  1. 01
    Insert the element on the page

    Place the plugin element wherever you need it.

  2. 02
    Configure the properties

    Adjust the settings to match your use case, including the layout, the output format, the transparency, the preset colors, and the default value.

  3. 03
    Connect to your workflows

    Use the value changed event to capture the confirmed color, and read the exposed states to use them anywhere in your app.

INPUT 8

For basic styling of the input, use Bubble's native properties such as font, background, border, border radius, padding and box shadow. The properties in this section cover what is specific to the color picker.

General

Input placeholder

text

Text displayed in the input while it has no value.

Input placeholder color

color

Color of the placeholder text.

Color format

dropdown

Format of the value and of the text shown in the input.

  • hexreturns the color as a hex code. With transparency enabled it has 8 digits, which Bubble's own color fields do not read.
  • rgbreturns the color as rgb() or rgba().
  • hslreturns the color as hsl() or hsla().

Input layout

dropdown

Which parts the input shows: compact is the color swatch alone, standard adds the color code next to it, and full adds the opacity field as well. Enabling transparency inside the panel is a separate setting.

  • compactthe color swatch alone, filling the whole input.
  • standardthe swatch next to the color code.
  • fullthe swatch, the color code and the opacity field.

Swatch border radius

number

Border radius of the input swatch, in pixels. Use 0 for a square swatch, and a value equal to or greater than half its size for a circle. It is independent of the element's native roundness, and applies in both layouts. The preset swatches and the swatch inside the panel are not affected.

Swatch relief

dropdown

Outline drawn over the swatch, always on all four sides so it stays visible against any background. Line is a thin outline, shadow is a drop shadow under the swatch, and veil is an inner relief shaded from top to bottom. The tone of line and veil follows the chosen color: dark over light colors, light over dark ones.

  • linea thin outline around the swatch.
  • shadowa drop shadow under the swatch.
  • veilan inner relief, shaded from top to bottom.

Display color tooltip?

yes/no

Shows the color code on hover, over the input swatch and over each preset.

Tooltip show delay (ms)

number

Time (in milliseconds) before the tooltip appears after hover.

DEFAULT DATA 1

Default value

text

Color applied on load and on reset (hex, rgb or hsl).

FLOATING PANEL 13

General

Enable transparency?

yes/no

Adds the opacity slider.

Display format switcher?

yes/no

Shows the selected color inside the panel, in a field that switches between hex, rgb and hsl with each click, next to a button that copies it. The format chosen here changes only what the panel shows, never the value the input publishes.

Display eyedropper?

yes/no

Turns the color preview inside the panel into an eyedropper, to pick a color from anywhere on the screen. Only Chrome and Edge support it; elsewhere the preview stays a preview.

Panel position

dropdown

Preferred or forced opening direction of the floating panel relative to the input.

  • auto-topopens above the input, and flips below when there is not enough room.
  • auto-bottomopens below the input, and flips above when there is not enough room.
  • topalways opens above the input.
  • bottomalways opens below the input.

Animation type

dropdown

Opening animation of the floating panel.

  • nonethe panel simply appears.
  • dropfalls into place from above.
  • elasticovershoots slightly and settles.
  • expandgrows from the edge of the input.
  • fadefades in.
  • popscales up quickly from the centre.
  • slideslides in from the resolved direction.
  • zoomzooms in from a smaller size.

Appearance

Panel bg color

color

Background color of the floating panel.

Panel border color

color

Sets the border color of the floating panel.

Glass effect

dropdown

Intensity of the glassmorphism effect on the floating panel.

  • nonesolid panel background.
  • subtlebarely visible blur behind the panel.
  • lightlight blur.
  • mediumbalanced blur, the most common choice.
  • strongheavy blur.
  • intensemaximum blur, for panels over busy backgrounds.

Presets

Divider line color

color

Color of the divider line above the presets. Leave it empty to follow the panel background.

Display presets?

yes/no

Shows the preset swatches inside the panel. Turning it off hides them even when the list is filled.

Presets label

text

Title shown above the preset colors. Leave it empty to show the presets without a title.

Presets label font color

color

Color of the title above the preset colors. Leave it empty to follow the element's font color.

Preset colors (press Enter between each color)

text

Colors shown as quick picks in the panel. One color per line, and it accepts a dynamic list, so the palette can come from your data.

INPUT BEHAVIOR 9

Disabled state

This input is disabled?

yes/no

Disables the component, preventing any interaction.

Input bg color (disabled)

color

Input background color when disabled.

Input border color (disabled)

color

Input border color when disabled.

Input font color (disabled)

color

Input font color when disabled.

Required state

This input is required?

yes/no

Marks the field as required and enables input validation.

Input bg color (invalid)

color

Input background color when invalid.

Input border color (invalid)

color

Input border color when invalid.

Focused state

Input bg color (focused)

color

Input background color when focused.

Input border color (focused)

color

Input border color when focused.

ACCESSIBILITY 2

Accessible label

text

Name read by screen readers. When empty, uses the placeholder or the visible label.

Accessible description

text

Hint read by screen readers after the name. Empty for none.

States 18

Values the element exposes for the rest of the page to read.

The color is published in five formats at the same time, plus every channel as a separate number. Use value (rgba) for Bubble's own color fields, and contrast color when text has to stay readable on top of the chosen color.

value

text

Selected color in the chosen format. Empty when no color is selected.

value (hex)

text

Selected color as hex (#RRGGBB or #RRGGBBAA).

value (rgba)

text

Selected color as rgba().

value (hsla)

text

Selected color as hsla(), always with the alpha channel.

value (oklch)

text

Selected color as oklch(), for custom CSS. Bubble's own color fields do not read this format; use value (rgba) for those.

red

number

Red channel of the selected color, from 0 to 255.

green

number

Green channel of the selected color, from 0 to 255.

blue

number

Blue channel of the selected color, from 0 to 255.

hue

number

Hue of the selected color, from 0 to 360.

saturation

number

Saturation of the selected color, from 0 to 100.

lightness

number

Lightness of the selected color, from 0 to 100.

alpha

number

Opacity from 0 to 1.

contrast color

text

Black or white, whichever reads better on top of the selected color. Transparency is ignored, because what shows through is the background behind the element.

is dark

yes/no

Yes when the selected color is dark enough to need light text on top of it. Empty color reads as not dark.

is clickable

yes/no

True when the component is not disabled.

is required

yes/no

True when the input is marked as required.

is valid

yes/no

True when the value is accepted. False when it is required and empty. It updates on every change, so a workflow can rely on it; the invalid style only shows after the person leaves the field or closes the panel, or when a workflow sets the value.

is focused

yes/no

True while the input has focus.

Events 1

Where a workflow can start.

value changed

event

Triggered when a different color is confirmed: closing the panel, picking a preset or resetting.

Actions 3

What a workflow can tell the element to do.

The actions can be triggered from any workflow event. The plugin also responds to Bubble's native reset actions (Reset a group/popup).

Reset no params

Restores the default color, or clears it.

Focus no params

Focuses the input and opens the color panel.

Set value 2 params

Sets the color from a workflow, in any CSS format the input accepts. An empty value clears the color and a value that is not a color is ignored.

Apply even when disabled?

yes/no

Yes applies the value even while the element is disabled. No makes the action do nothing in that state.

Value

text

New color. Accepts any CSS color the input accepts when typed, in any format. An empty value clears the color, and an unrecognized value is ignored.

FAQ 6

Is any specific or advanced knowledge required to use the plugin?

No. Place the element on the page, configure the properties in the editor, and read the exposed states in your workflows. Nothing needs to be installed and no external service is involved.

Which color formats can be typed into the input?

Anything the browser understands as a CSS color: named colors such as tomato, hex with 3, 4, 6 or 8 digits, rgb, hsl and hwb, and the modern formats lab, lch, oklab, oklch, color() in any color space and color-mix(). The output format chosen in the properties does not restrict what can be typed; it only decides how the value comes back.

Can the field stay empty?

Yes, and that is unusual: the element publishes an empty value when no color is chosen, so an optional color field in your database can really stay empty instead of defaulting to black or white. The Set value action clears the color when it receives an empty value.

Which state should be used to fill a Bubble color field?

Use value (rgba). With transparency enabled, the hex output has 8 digits, and Bubble's own color fields do not read that format. The value (rgba) state always works, with or without transparency.

The color is not appearing in the editor canvas, what should I check?

The editor preview only shows values typed as literals. If the default value comes from a dynamic expression, the canvas shows the empty pattern while the app shows the color normally. This is a limitation of the Bubble editor, not of the element.

Can I predefine styles and reuse them across multiple inputs?

Yes. The visual properties support Bubble's predefined styles, so a look can be saved once and applied to every input in the app. A few sizing fields are deliberately not dynamic, and that is what lets them travel inside the style instead of being set one input at a time.

NWD UI - Input

This plugin is maintained by GCS Studios and is part of the NWD UI - Input family, form controls built from scratch for Bubble, inspired by a personal component library originally built for React. Each one is carefully designed and tested in real applications before release, for the level of control, polish and reliability that native Bubble inputs often do not provide. See more plugins on the GCS Studios contributor page.

Each control here is drawn by the plugin instead of being restyled from a native one, so they match each other across the library and keep the same shape in every browser.