Skip to content

Color picker

A brand hex, a badge tint, a mood — type=color with Orbit chrome.

from almasix.orbit.forms import Form, ColorPicker
form = Form.make("demo").schema([
ColorPicker.make("brand").label("Brand color").default("#f1511b")
])
from almasix.orbit import Resource
from almasix.orbit.forms import Form, ColorPicker
class PostResource(Resource):
@classmethod
def form(cls, form: Form) -> Form:
return form.schema([
ColorPicker.make("accent").helper_text("Used in the panel shell"),
ColorPicker.make("badge_color"),
])
  • Sets input_typetocolor``
  • .default("#f1511b")
  • .label(...) / .helper_text(...)
  • .disabled(...) / .visible(...)

Closures work on .label(), .helper_text(), .placeholder(), .visible(), .disabled(), and .required() — see Form closures.

Orbit form example (light)

Orbit form example (dark)