Module: Tailwindcss::Helpers
Instance Method Summary collapse
- #ab(value) ⇒ Object
- #color_scheme_token(token, weight = 500) ⇒ Object
- #color_token(color_token, weight = 500) ⇒ Object
- #tailwind(**style_attributes) ⇒ Object (also: #tw)
Instance Method Details
#ab(value) ⇒ Object
10 11 12 |
# File 'lib/tailwindcss/helpers.rb', line 10 def ab(value) ArbitraryValue.new(value) end |
#color_scheme_token(token, weight = 500) ⇒ Object
16 17 18 |
# File 'lib/tailwindcss/helpers.rb', line 16 def color_scheme_token(token, weight = 500) color_token(Tailwindcss.theme.color_scheme[token.to_sym], weight) end |
#color_token(color_token, weight = 500) ⇒ Object
22 23 24 |
# File 'lib/tailwindcss/helpers.rb', line 22 def color_token(color_token, weight = 500) "#{color_token}-#{weight}" end |