@extends('_layouts.master', ['title' => 'Backgrounds']) @section('body')

Backgrounds

Using the utilities in HTML:

{{ '
' }}

Using the utilities in Less:

div {
  .bg-light;
  .bg-light-soft;
  .bg-light-softer;
  .bg-light-softest;

  .bg-dark;
  .bg-dark-soft;
  .bg-dark-softer;
  .bg-dark-softest;

  // Responsive example
  .screen(lg, {
      .bg-light;
  });
}

Custom backgrounds

Generate custom background utilities:

.define-text-color('primary';
  default #3498db,
  'light' #a0cfee,
  'dark'  #2980b9
;);

Using custom background utilities in HTML:

{{ '
' }}

Using custom background utilities in Less:

div {
  .bg-primary;
  .bg-primary-light;
  .bg-primary-dark;

  // Responsive example
  .screen(lg, {
      .bg-primary;
  });
}
@endsection