{% import 'macros/form.html' as form %}

{% set placeholder = placeholder if placeholder else _('Search datasets...') %}
{% set sorting = sorting if sorting else [(_('Name Ascending'), 'name asc'), (_('Name Descending'), 'name desc')] %}
{% set search_class = search_class if search_class else 'search-giant' %}
{% set no_bottom_border = no_bottom_border if no_bottom_border else false %}
{% set form_id = form_id if form_id else false %}

<div class="data-block-header" style="background: {{ secondary_color }}">
  <div class="row">
    <div class="col-md-2">
        {% set font_base_color = 'black' %}
      <h2 class="data-block-heading" style="color: {{ font_base_color }}">{{ _('Data') }} [{{ count }}]</h2>
    </div>
    <div class="col-md-4">
      <form {% if form_id %}id="{{ form_id }}" {% endif %}class="search-form{% if no_bottom_border %} no-bottom-border{% endif %}"
            method="get" data-module="select-switch">
          <input type="text" name="q" value="{{ query }}" autocomplete="off"
                 class="form-control input-search-data" placeholder="{{ placeholder }}"
                 style="border-color: {{ base_color }} ">
      </form>
    </div>
  </div>
</div>

{% if error %}
  <p><strong>{{ _('There was an error while searching.') }}</strong> {{ _('Please try again.') }}</p>
{% endif %}

{% import 'macros/form.html' as form %}

{% set placeholder = placeholder if placeholder else _('Search datasets...') %}
{% set sorting = sorting if sorting else [(_('Name Ascending'), 'name asc'), (_('Name Descending'), 'name desc')] %}
{% set search_class = search_class if search_class else 'search-giant' %}
{% set no_bottom_border = no_bottom_border if no_bottom_border else false %}
{% set form_id = form_id if form_id else false %}

<div class="data-block-header" style="background: {{ secondary_color }}">
  <div class="row">
    <div class="col-md-2">
      <h2 class="data-block-heading" style="color: {{ font_base_color }}">{{ _('Data') }} [{{ count }}]</h2>
    </div>
    <div class="col-md-4">
      <form {% if form_id %}id="{{ form_id }}" {% endif %}class="search-form{% if no_bottom_border %} no-bottom-border{% endif %}"
            method="get" data-module="select-switch">
          <input type="text" name="q" value="{{ query }}" autocomplete="off"
                 class="form-control input-search-data" placeholder="{{ placeholder }}"
                 style="border-color: {{ base_color }} ">
      </form>
    </div>
  </div>
</div>

{% if error %}
  <p><strong>{{ _('There was an error while searching.') }}</strong> {{ _('Please try again.') }}</p>
{% endif %}

Remove hardcoded value for color
Remove hardcoded value for color
