config('mobile_facets.settings'); $form['color'] = [ '#type' => 'color', '#title' => $this->t('Custom Color'), '#default_value' => $config->get('color') ?? '#000000', // Default to black if not set. '#description' => $this->t('Enter a hex color code for your module (e.g., #FF0000 for red).'), ]; return parent::buildForm($form, $form_state); } }