# File lib/nfg_ui/components/traits/theme.rb, line 23 def primary_trait options[:theme] = :primary end
module NfgUi::Components::Traits::Theme
Access to pre-designed theme traits
Constants
- COLOR_TRAITS
- TRAITS
Public Instance Methods
danger_trait()
click to toggle source
# File lib/nfg_ui/components/traits/theme.rb, line 35 def danger_trait options[:theme] = :danger end
dark_trait()
click to toggle source
# File lib/nfg_ui/components/traits/theme.rb, line 51 def dark_trait options[:theme] = :dark end
info_trait()
click to toggle source
# File lib/nfg_ui/components/traits/theme.rb, line 43 def info_trait options[:theme] = :info end
light_trait()
click to toggle source
# File lib/nfg_ui/components/traits/theme.rb, line 47 def light_trait options[:theme] = :light end
outlined_trait()
click to toggle source
# File lib/nfg_ui/components/traits/theme.rb, line 59 def outlined_trait options[:outlined] = true end
primary_trait()
click to toggle source
secondary_trait()
click to toggle source
# File lib/nfg_ui/components/traits/theme.rb, line 27 def secondary_trait options[:theme] = :secondary end
success_trait()
click to toggle source
# File lib/nfg_ui/components/traits/theme.rb, line 31 def success_trait options[:theme] = :success end
warning_trait()
click to toggle source
# File lib/nfg_ui/components/traits/theme.rb, line 39 def warning_trait options[:theme] = :warning end
white_trait()
click to toggle source
# File lib/nfg_ui/components/traits/theme.rb, line 55 def white_trait options[:theme] = :white end