Class: Primer::Classify::FunctionalBorderColors
- Inherits:
-
FunctionalColors
- Object
- FunctionalColors
- Primer::Classify::FunctionalBorderColors
- Defined in:
- app/lib/primer/classify/functional_border_colors.rb
Overview
Border specific functional colors primer-css-git-mkt-color-modes-docs-primer.vercel.app/css/support/v16-migration#border
Constant Summary collapse
- FUNCTIONAL_OPTIONS =
{ primary: :primary, secondary: :secondary, tertiary: :tertiary, info: :info, success: :success, warning: :warning, danger: :danger, inverse: :inverse, overlay: :overlay }.freeze
- MAPPINGS =
{ gray: FUNCTIONAL_OPTIONS[:primary], gray_light: FUNCTIONAL_OPTIONS[:secondary], gray_dark: FUNCTIONAL_OPTIONS[:tertiary], blue: FUNCTIONAL_OPTIONS[:info], green: FUNCTIONAL_OPTIONS[:success], yellow: FUNCTIONAL_OPTIONS[:warning], red: FUNCTIONAL_OPTIONS[:danger], white: FUNCTIONAL_OPTIONS[:inverse] }.freeze
- OPTIONS =
FUNCTIONAL_OPTIONS.values.freeze
- OPTIONS_WITHOUT_MAPPINGS =
[:gray_darker, :blue_light, :red_light, :purple, :black_fade, :white_fade].freeze
- DEPRECATED_OPTIONS =
[*MAPPINGS.keys, *OPTIONS_WITHOUT_MAPPINGS].freeze
Class Method Summary collapse
Class Method Details
.color(val) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'app/lib/primer/classify/functional_border_colors.rb', line 36 def color(val) functional_color( key: "border", value: val, mappings: MAPPINGS, non_functional_prefix: "border", functional_prefix: "color-border", number_prefix: "border", functional_options: OPTIONS, options_without_mappigs: OPTIONS_WITHOUT_MAPPINGS ) end |