Class: Dodopayments::Models::ThemeModeConfig
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::ThemeModeConfig
- Defined in:
- lib/dodopayments/models/theme_mode_config.rb,
sig/dodopayments/models/theme_mode_config.rbs
Instance Attribute Summary collapse
-
#bg_primary ⇒ String?
Background primary color.
-
#bg_secondary ⇒ String?
Background secondary color.
-
#border_primary ⇒ String?
Border primary color.
-
#border_secondary ⇒ String?
Border secondary color.
-
#button_primary ⇒ String?
Primary button background color.
-
#button_primary_hover ⇒ String?
Primary button hover color.
-
#button_secondary ⇒ String?
Secondary button background color.
-
#button_secondary_hover ⇒ String?
Secondary button hover color.
-
#button_text_primary ⇒ String?
Primary button text color.
-
#button_text_secondary ⇒ String?
Secondary button text color.
-
#input_focus_border ⇒ String?
Input focus border color.
-
#text_error ⇒ String?
Text error color.
-
#text_placeholder ⇒ String?
Text placeholder color.
-
#text_primary ⇒ String?
Text primary color.
-
#text_secondary ⇒ String?
Text secondary color.
-
#text_success ⇒ String?
Text success color.
Instance Method Summary collapse
-
#initialize(bg_primary: nil, bg_secondary: nil, border_primary: nil, border_secondary: nil, button_primary: nil, button_primary_hover: nil, button_secondary: nil, button_secondary_hover: nil, button_text_primary: nil, button_text_secondary: nil, input_focus_border: nil, text_error: nil, text_placeholder: nil, text_primary: nil, text_secondary: nil, text_success: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see ThemeModeConfig for more details.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(bg_primary: nil, bg_secondary: nil, border_primary: nil, border_secondary: nil, button_primary: nil, button_primary_hover: nil, button_secondary: nil, button_secondary_hover: nil, button_text_primary: nil, button_text_secondary: nil, input_focus_border: nil, text_error: nil, text_placeholder: nil, text_primary: nil, text_secondary: nil, text_success: nil) ⇒ Object
Some parameter documentations has been truncated, see Dodopayments::Models::ThemeModeConfig for more details.
Color configuration for a single theme mode (light or dark).
All color fields accept standard CSS color formats:
- Hex:
#fff,#ffffff,#ffffffff(with or without # prefix) - RGB/RGBA:
rgb(255, 255, 255),rgba(255, 255, 255, 0.5) - HSL/HSLA:
hsl(120, 100%, 50%),hsla(120, 100%, 50%, 0.5) - Named colors:
red,blue,transparent, etc. - Advanced:
hwb(),lab(),lch(),oklab(),oklch(),color()
|
|
# File 'lib/dodopayments/models/theme_mode_config.rb', line 104
|
Instance Attribute Details
#bg_primary ⇒ String?
Background primary color
Examples: "#ffffff", "rgb(255, 255, 255)", "white"
12 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 12 optional :bg_primary, String, nil?: true |
#bg_secondary ⇒ String?
Background secondary color
18 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 18 optional :bg_secondary, String, nil?: true |
#border_primary ⇒ String?
Border primary color
24 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 24 optional :border_primary, String, nil?: true |
#border_secondary ⇒ String?
Border secondary color
30 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 30 optional :border_secondary, String, nil?: true |
#button_primary ⇒ String?
Primary button background color
36 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 36 optional :button_primary, String, nil?: true |
#button_primary_hover ⇒ String?
Primary button hover color
42 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 42 optional :button_primary_hover, String, nil?: true |
#button_secondary ⇒ String?
Secondary button background color
48 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 48 optional :button_secondary, String, nil?: true |
#button_secondary_hover ⇒ String?
Secondary button hover color
54 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 54 optional :button_secondary_hover, String, nil?: true |
#button_text_primary ⇒ String?
Primary button text color
60 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 60 optional :button_text_primary, String, nil?: true |
#button_text_secondary ⇒ String?
Secondary button text color
66 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 66 optional :button_text_secondary, String, nil?: true |
#input_focus_border ⇒ String?
Input focus border color
72 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 72 optional :input_focus_border, String, nil?: true |
#text_error ⇒ String?
Text error color
78 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 78 optional :text_error, String, nil?: true |
#text_placeholder ⇒ String?
Text placeholder color
84 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 84 optional :text_placeholder, String, nil?: true |
#text_primary ⇒ String?
Text primary color
90 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 90 optional :text_primary, String, nil?: true |
#text_secondary ⇒ String?
Text secondary color
96 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 96 optional :text_secondary, String, nil?: true |
#text_success ⇒ String?
Text success color
102 |
# File 'lib/dodopayments/models/theme_mode_config.rb', line 102 optional :text_success, String, nil?: true |
Instance Method Details
#to_hash ⇒ {
75 |
# File 'sig/dodopayments/models/theme_mode_config.rbs', line 75
def to_hash: -> {
|