You are here

public function OliveroHexToHslTest::hexCodes in Drupal 10

Data provider of hex codes and HSL values.

Return value

array[] The test data.

File

core/themes/olivero/tests/src/Unit/OliveroHexToHslTest.php, line 42

Class

OliveroHexToHslTest
Tests the _olivero_hex_to_hsl() function.

Namespace

Drupal\Tests\olivero\Unit

Code

public function hexCodes() : array {
  return [
    'Blue Lagoon' => [
      '#1b9ae4',
      [
        202,
        79,
        50,
      ],
    ],
    'Firehouse' => [
      '#a30f0f',
      [
        0,
        83,
        35,
      ],
    ],
    'Ice' => [
      '#57919e',
      [
        191,
        29,
        48,
      ],
    ],
    'Plum' => [
      '#7a4587',
      [
        288,
        32,
        40,
      ],
    ],
    'Slate' => [
      '#47625b',
      [
        164,
        16,
        33,
      ],
    ],
  ];
}