-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added basics for Phosphor - https://phosphoricons.com/ - https://github.com/phosphor-icons/core/ * Set up all variants
- Loading branch information
Showing
9 changed files
with
153 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# frozen_string_literal: true | ||
|
||
module RailsIcons | ||
class Configuration | ||
class Phosphor | ||
def config | ||
ActiveSupport::OrderedOptions.new.tap do |options| | ||
options.default_variant = :regular | ||
|
||
setup_bold_config(options) | ||
setup_duotone_config(options) | ||
setup_fill_config(options) | ||
setup_light_config(options) | ||
setup_regular_config(options) | ||
setup_thin_config(options) | ||
end | ||
end | ||
|
||
private | ||
|
||
def setup_bold_config(options) | ||
options.bold = ActiveSupport::OrderedOptions.new | ||
options.bold.default = default_bold_options | ||
end | ||
|
||
def default_bold_options | ||
ActiveSupport::OrderedOptions.new.tap do |options| | ||
options.css = "size-6" | ||
options.data = {} | ||
end | ||
end | ||
|
||
def setup_duotone_config(options) | ||
options.duotone = ActiveSupport::OrderedOptions.new | ||
options.duotone.default = default_duotone_options | ||
end | ||
|
||
def default_duotone_options | ||
ActiveSupport::OrderedOptions.new.tap do |options| | ||
options.css = "size-6" | ||
options.data = {} | ||
end | ||
end | ||
|
||
def setup_fill_config(options) | ||
options.fill = ActiveSupport::OrderedOptions.new | ||
options.fill.default = default_fill_options | ||
end | ||
|
||
def default_fill_options | ||
ActiveSupport::OrderedOptions.new.tap do |options| | ||
options.css = "size-6" | ||
options.data = {} | ||
end | ||
end | ||
|
||
def setup_light_config(options) | ||
options.light = ActiveSupport::OrderedOptions.new | ||
options.light.default = default_light_options | ||
end | ||
|
||
def default_light_options | ||
ActiveSupport::OrderedOptions.new.tap do |options| | ||
options.css = "size-6" | ||
options.data = {} | ||
end | ||
end | ||
|
||
def setup_regular_config(options) | ||
options.regular = ActiveSupport::OrderedOptions.new | ||
options.regular.default = default_regular_options | ||
end | ||
|
||
def default_regular_options | ||
ActiveSupport::OrderedOptions.new.tap do |options| | ||
options.css = "size-6" | ||
options.data = {} | ||
end | ||
end | ||
|
||
def setup_thin_config(options) | ||
options.thin = ActiveSupport::OrderedOptions.new | ||
options.thin.default = default_thin_options | ||
end | ||
|
||
def default_thin_options | ||
ActiveSupport::OrderedOptions.new.tap do |options| | ||
options.css = "size-6" | ||
options.data = {} | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters