Welcome to mirror list, hosted at ThFree Co, Russian Federation.

data_visualization_palette.rb « enums « concerns « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 25002e64ba663e7fce717ec88b8360e4b76e4362 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# frozen_string_literal: true

module Enums
  # These color palettes are part of the Pajamas Design System.
  # See https://design.gitlab.com/data-visualization/color/#categorical-data
  module DataVisualizationPalette
    def self.colors
      {
        blue: 0,
        orange: 1,
        aqua: 2,
        green: 3,
        magenta: 4
      }
    end

    def self.weights
      {
        '50'  =>  0,
        '100' =>  1,
        '200' =>  2,
        '300' =>  3,
        '400' =>  4,
        '500' =>  5,
        '600' =>  6,
        '700' =>  7,
        '800' =>  8,
        '900' =>  9,
        '950' =>  10
      }
    end
  end
end