utility_colors 0.1.8 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +131 -174
- data/Rakefile +8 -12
- data/lib/generators/templates/config/utility_colors.rb +22 -0
- data/lib/generators/templates/palettes/_color-variables.scss +34 -0
- data/lib/generators/utility_colors/config_generator.rb +13 -0
- data/lib/generators/utility_colors/generate_generator.rb +31 -0
- data/lib/utility_colors/builders.rb +75 -0
- data/lib/utility_colors/colors.rb +106 -0
- data/lib/utility_colors/configuration.rb +67 -0
- data/lib/utility_colors/exports.rb +54 -0
- data/lib/utility_colors/imports.rb +42 -0
- data/lib/utility_colors/properties.rb +77 -0
- data/lib/utility_colors/version.rb +5 -5
- data/lib/utility_colors.rb +15 -8
- metadata +18 -35
- data/.npmignore +0 -28
- data/.rspec +0 -3
- data/.rubocop.yml +0 -13
- data/CHANGELOG.md +0 -46
- data/CODE_OF_CONDUCT.md +0 -84
- data/Gemfile +0 -12
- data/LICENSE.txt +0 -21
- data/examples/v0.1.8.png +0 -0
- data/index.js +0 -5
- data/package.json +0 -26
- data/utility_colors/_utility_colors.scss +0 -11
- data/utility_colors/utility_colors_files/functions/_functions.scss +0 -4
- data/utility_colors/utility_colors_files/functions/_mappings.scss +0 -25
- data/utility_colors/utility_colors_files/functions/_palettes.scss +0 -123
- data/utility_colors/utility_colors_files/functions/_references.scss +0 -7
- data/utility_colors/utility_colors_files/functions/_sequences.scss +0 -17
- data/utility_colors/utility_colors_files/mixins/_mixins.scss +0 -60
- data/utility_colors/utility_colors_files/utilities/_color.scss +0 -22
- data/utility_colors/utility_colors_files/validators/_validations.scss +0 -3
- data/utility_colors/utility_colors_files/variables/_color-variables.scss +0 -64
- data/utility_colors/utility_colors_files/variables/_mod-variables.scss +0 -53
- data/utility_colors/utility_colors_files/variables/_user-variables.scss +0 -78
- data/utility_colors/utility_colors_files/variables/_variables.scss +0 -3
@@ -0,0 +1,67 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module UtilityColors
|
4
|
+
class Configuration
|
5
|
+
attr_accessor :enable_environments,
|
6
|
+
:import_palettes_filepath,
|
7
|
+
:output_filename, :output_dated, :output_files, :output_prefix, :output_suffix,
|
8
|
+
:regular_classes, :breakpoint_classes, :pseudo_classes, :breakpoint_pseudo_classes # :utility_palettes_configuration
|
9
|
+
|
10
|
+
def initialize
|
11
|
+
# Enabled Environments
|
12
|
+
@enable_environments = [:development]
|
13
|
+
|
14
|
+
# Use Existing Utility Palettes Result
|
15
|
+
@import_palettes_filepath = 'utility_palettes.scss'
|
16
|
+
|
17
|
+
# Output
|
18
|
+
@output_filename = 'utility_colors'
|
19
|
+
@output_dated = false
|
20
|
+
@output_files = ['scss']
|
21
|
+
@output_prefix = nil
|
22
|
+
@output_suffix = nil
|
23
|
+
|
24
|
+
# Build Other Class Types
|
25
|
+
@regular_classes = true
|
26
|
+
@breakpoint_classes = false
|
27
|
+
@pseudo_classes = false
|
28
|
+
@breakpoint_pseudo_classes = false
|
29
|
+
|
30
|
+
# Configuration instance for UtilityPalettes
|
31
|
+
# @utility_palettes_configuration = UtilityPalettes::Configuration.new
|
32
|
+
end
|
33
|
+
|
34
|
+
def reset!
|
35
|
+
initialize
|
36
|
+
end
|
37
|
+
|
38
|
+
# Nested configuration method for UtilityPalettes
|
39
|
+
def configure_utility_palettes
|
40
|
+
# yield(@utility_palettes_configuration) if block_given?
|
41
|
+
end
|
42
|
+
|
43
|
+
def validate_settings
|
44
|
+
# Validate UtilityPalettes configuration
|
45
|
+
# return false unless @utility_palettes_configuration.validate_settings
|
46
|
+
|
47
|
+
# Add any additional validations specific to UtilityColors
|
48
|
+
true
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
class << self
|
53
|
+
attr_writer :configuration
|
54
|
+
|
55
|
+
def configuration
|
56
|
+
@configuration ||= Configuration.new
|
57
|
+
end
|
58
|
+
|
59
|
+
def configure
|
60
|
+
yield(configuration)
|
61
|
+
end
|
62
|
+
|
63
|
+
def reset_configuration!
|
64
|
+
@configuration = Configuration.new
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module UtilityColors
|
4
|
+
class Exports
|
5
|
+
def self.json(filename, output_classes)
|
6
|
+
# TODO: determine if they imported scss or css and return the variables keys in that way
|
7
|
+
# TODO: determine if the style value should use a syntax variable or be converted to hardcoded value
|
8
|
+
content = JSON.pretty_generate(output_classes.transform_values { |class_content| class_content.gsub('£$', '$').gsub('$£', '') })
|
9
|
+
filepath = "#{filename}.json"
|
10
|
+
|
11
|
+
# Create directory if it doesn't exist
|
12
|
+
FileUtils.mkdir_p(File.dirname(filepath))
|
13
|
+
File.write(filepath, content)
|
14
|
+
|
15
|
+
puts 'Exporting utility colour classes JSON...'
|
16
|
+
true
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.scss(filename, output_classes)
|
20
|
+
# TODO: determine if the style value should use the syntax variable or be converted to hardcoded value
|
21
|
+
content = output_classes.collect { |class_name, class_content| "#{class_name} {\n\t#{class_content.gsub('£$', '$').gsub('$£', '')}\n}" }.join("\n\n")
|
22
|
+
filepath = "#{filename}.scss"
|
23
|
+
|
24
|
+
# Create directory if it doesn't exist
|
25
|
+
FileUtils.mkdir_p(File.dirname(filepath))
|
26
|
+
File.write(filepath, content)
|
27
|
+
|
28
|
+
puts 'Exporting utility colour classes SCSS...'
|
29
|
+
true
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.css(filename, output_classes)
|
33
|
+
# TODO: add root for variables at top? Leave for now as this is all based off a palette file where they should exist (easy copy and paste for devs)
|
34
|
+
# TODO: determine if the style value should use the syntax variable or be converted to hardcoded value
|
35
|
+
content = output_classes.collect { |class_name, class_content| "#{class_name} {\n\t#{class_content.gsub('£$', 'var(--').gsub('$£', ')')}\n}" }.join("\n\n")
|
36
|
+
filepath = "#{filename}.css"
|
37
|
+
|
38
|
+
# Create directory if it doesn't exist
|
39
|
+
FileUtils.mkdir_p(File.dirname(filepath))
|
40
|
+
File.write(filepath, content)
|
41
|
+
|
42
|
+
puts 'Exporting utility colour classes CSS...'
|
43
|
+
true
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.append_percentage(value)
|
47
|
+
"#{value}%"
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.append_alpha(alpha)
|
51
|
+
"/ #{alpha * 100}"
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module UtilityColors
|
4
|
+
class Imports
|
5
|
+
def self.import
|
6
|
+
import_path = UtilityColors.configuration.import_palettes_filepath
|
7
|
+
|
8
|
+
if import_path.present? && File.file?(import_path)
|
9
|
+
case File.extname(import_path)
|
10
|
+
when '.json'
|
11
|
+
UtilityColors::Imports.json(import_path)
|
12
|
+
when '.scss'
|
13
|
+
UtilityColors::Imports.scss(import_path)
|
14
|
+
when '.css'
|
15
|
+
UtilityColors::Imports.css(import_path)
|
16
|
+
else
|
17
|
+
warn 'WARNING: Palette file could not be imported as it is not JSON, SCSS, or CSS.'
|
18
|
+
{}
|
19
|
+
end
|
20
|
+
else
|
21
|
+
{}
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
def self.json(import_path)
|
28
|
+
# expecting a normal json hash of name and value
|
29
|
+
JSON.parse(File.read(import_path))
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.scss(import_path)
|
33
|
+
# expecting a normal scss file of variables
|
34
|
+
File.read(import_path).scan(/\$([^:]+):\s*([^;]+);/).to_h
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.css(import_path)
|
38
|
+
# expecting a normal css file of variables
|
39
|
+
File.read(import_path).scan(/--([^:]+):\s*([^;]+);/).to_h
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module UtilityColors
|
4
|
+
class Properties
|
5
|
+
def self.get_property(*keys)
|
6
|
+
keys = [keys] unless keys.is_a?(Array)
|
7
|
+
|
8
|
+
property = UtilityColors::Properties.send(keys[0])
|
9
|
+
property = property.dig(*keys.slice(1..-1)) if keys.length > 1
|
10
|
+
|
11
|
+
property
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.screen_sizes
|
15
|
+
{
|
16
|
+
'sm' => '325px',
|
17
|
+
'md' => '768px',
|
18
|
+
'lg' => '1024px',
|
19
|
+
'xl' => '1440px'
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.pseudo_input
|
24
|
+
[
|
25
|
+
'checked',
|
26
|
+
'disabled',
|
27
|
+
'enabled',
|
28
|
+
'focus'
|
29
|
+
]
|
30
|
+
end
|
31
|
+
|
32
|
+
# TODO: add it in
|
33
|
+
def self.pseudo_input_extra
|
34
|
+
[
|
35
|
+
'in-range',
|
36
|
+
'invalid',
|
37
|
+
'optional',
|
38
|
+
'out-of-range',
|
39
|
+
'read-only',
|
40
|
+
'read-write',
|
41
|
+
'require',
|
42
|
+
'valid'
|
43
|
+
]
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.pseudo_action
|
47
|
+
[
|
48
|
+
'active',
|
49
|
+
'hover',
|
50
|
+
'link',
|
51
|
+
'target',
|
52
|
+
'visited'
|
53
|
+
]
|
54
|
+
end
|
55
|
+
|
56
|
+
def self.pseudo_child
|
57
|
+
[
|
58
|
+
'root',
|
59
|
+
'first-child',
|
60
|
+
'first-of-type',
|
61
|
+
'last-child',
|
62
|
+
'last-of-type',
|
63
|
+
'only-of-type',
|
64
|
+
'only-child',
|
65
|
+
'empty'
|
66
|
+
# // nth-child(n},
|
67
|
+
# // nth-last-child(n},
|
68
|
+
# // nth-last-of-type(n},
|
69
|
+
# // nth-of-type(n},
|
70
|
+
]
|
71
|
+
end
|
72
|
+
|
73
|
+
def self.pseudos
|
74
|
+
UtilityColors::Properties.pseudo_input + UtilityColors::Properties.pseudo_action + UtilityColors::Properties.pseudo_child
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module UtilityColors
|
4
|
-
VERSION =
|
5
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module UtilityColors
|
4
|
+
VERSION = '1.0.0'
|
5
|
+
end
|
data/lib/utility_colors.rb
CHANGED
@@ -1,8 +1,15 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'utility_colors/version'
|
4
|
+
|
5
|
+
require_relative 'utility_colors/configuration'
|
6
|
+
require_relative 'utility_colors/builders'
|
7
|
+
require_relative 'utility_colors/colors'
|
8
|
+
require_relative 'utility_colors/exports'
|
9
|
+
require_relative 'utility_colors/imports'
|
10
|
+
require_relative 'utility_colors/properties'
|
11
|
+
|
12
|
+
module UtilityColors
|
13
|
+
class Error < StandardError; end
|
14
|
+
# Your code goes here...
|
15
|
+
end
|
metadata
CHANGED
@@ -1,49 +1,34 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: utility_colors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Louis
|
8
|
-
|
9
|
-
bindir: exe
|
7
|
+
- Louis Davis
|
8
|
+
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-09-04 00:00:00.000000000 Z
|
12
11
|
dependencies: []
|
13
|
-
description: Creates all the color palettes classes you need from your colors
|
14
12
|
email:
|
15
|
-
-
|
13
|
+
- LouisWilliamDavis@gmail.com
|
16
14
|
executables: []
|
17
15
|
extensions: []
|
18
16
|
extra_rdoc_files: []
|
19
17
|
files:
|
20
|
-
- ".npmignore"
|
21
|
-
- ".rspec"
|
22
|
-
- ".rubocop.yml"
|
23
|
-
- CHANGELOG.md
|
24
|
-
- CODE_OF_CONDUCT.md
|
25
|
-
- Gemfile
|
26
|
-
- LICENSE.txt
|
27
18
|
- README.md
|
28
19
|
- Rakefile
|
29
|
-
-
|
30
|
-
-
|
20
|
+
- lib/generators/templates/config/utility_colors.rb
|
21
|
+
- lib/generators/templates/palettes/_color-variables.scss
|
22
|
+
- lib/generators/utility_colors/config_generator.rb
|
23
|
+
- lib/generators/utility_colors/generate_generator.rb
|
31
24
|
- lib/utility_colors.rb
|
25
|
+
- lib/utility_colors/builders.rb
|
26
|
+
- lib/utility_colors/colors.rb
|
27
|
+
- lib/utility_colors/configuration.rb
|
28
|
+
- lib/utility_colors/exports.rb
|
29
|
+
- lib/utility_colors/imports.rb
|
30
|
+
- lib/utility_colors/properties.rb
|
32
31
|
- lib/utility_colors/version.rb
|
33
|
-
- package.json
|
34
|
-
- utility_colors/_utility_colors.scss
|
35
|
-
- utility_colors/utility_colors_files/functions/_functions.scss
|
36
|
-
- utility_colors/utility_colors_files/functions/_mappings.scss
|
37
|
-
- utility_colors/utility_colors_files/functions/_palettes.scss
|
38
|
-
- utility_colors/utility_colors_files/functions/_references.scss
|
39
|
-
- utility_colors/utility_colors_files/functions/_sequences.scss
|
40
|
-
- utility_colors/utility_colors_files/mixins/_mixins.scss
|
41
|
-
- utility_colors/utility_colors_files/utilities/_color.scss
|
42
|
-
- utility_colors/utility_colors_files/validators/_validations.scss
|
43
|
-
- utility_colors/utility_colors_files/variables/_color-variables.scss
|
44
|
-
- utility_colors/utility_colors_files/variables/_mod-variables.scss
|
45
|
-
- utility_colors/utility_colors_files/variables/_user-variables.scss
|
46
|
-
- utility_colors/utility_colors_files/variables/_variables.scss
|
47
32
|
homepage: https://github.com/louiswdavis/utility_colors
|
48
33
|
licenses:
|
49
34
|
- MIT
|
@@ -51,7 +36,6 @@ metadata:
|
|
51
36
|
homepage_uri: https://github.com/louiswdavis/utility_colors
|
52
37
|
source_code_uri: https://github.com/louiswdavis/utility_colors
|
53
38
|
changelog_uri: https://github.com/louiswdavis/utility_colors/blob/master/CHANGELOG.md
|
54
|
-
post_install_message:
|
55
39
|
rdoc_options: []
|
56
40
|
require_paths:
|
57
41
|
- lib
|
@@ -59,15 +43,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
43
|
requirements:
|
60
44
|
- - ">="
|
61
45
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
46
|
+
version: 1.9.3
|
63
47
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
48
|
requirements:
|
65
49
|
- - ">="
|
66
50
|
- !ruby/object:Gem::Version
|
67
51
|
version: '0'
|
68
52
|
requirements: []
|
69
|
-
rubygems_version: 3.3
|
70
|
-
signing_key:
|
53
|
+
rubygems_version: 3.6.3
|
71
54
|
specification_version: 4
|
72
|
-
summary:
|
55
|
+
summary: Quickly build colour palettes classes for use in stylesheets.
|
73
56
|
test_files: []
|
data/.npmignore
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
.git/
|
2
|
-
.github/
|
3
|
-
app/
|
4
|
-
bin/
|
5
|
-
lib/
|
6
|
-
spec/
|
7
|
-
|
8
|
-
/node_modules/
|
9
|
-
/node_modules/*
|
10
|
-
|
11
|
-
.gitignore
|
12
|
-
.ruby-version
|
13
|
-
.rspec
|
14
|
-
.rubocop.yml
|
15
|
-
|
16
|
-
Gemfile
|
17
|
-
Gemfile.lock
|
18
|
-
|
19
|
-
DEPTH.md
|
20
|
-
NOTES.md
|
21
|
-
|
22
|
-
package-lock.json
|
23
|
-
|
24
|
-
Rakefile
|
25
|
-
|
26
|
-
*.tgz
|
27
|
-
*.gem
|
28
|
-
utility_colors.gemspec
|
data/.rspec
DELETED
data/.rubocop.yml
DELETED
data/CHANGELOG.md
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
## [0.1.8] - 2022-08-20
|
2
|
-
|
3
|
-
- Made utility_colors accessible as both a ruby gem and npm package
|
4
|
-
- Added functions that create a linear, equally spaced and smooth shade palette based off any colour supplied regardless of it's hue, saturation, or lightness
|
5
|
-
- Added ability to use default color palettes (shades & tri)
|
6
|
-
- Added ability to create custom custom shade and tri palettes
|
7
|
-
- Added creation of BEM style utility classes to use colour palette for styles; color, background-color, etc TODO
|
8
|
-
- classes that can be created include:
|
9
|
-
- basic styles `color--red-400`
|
10
|
-
- breakpoint style `md|color--red-400`
|
11
|
-
- pseudo-element styles `hover|color--red-400`
|
12
|
-
- pseudo-element breakpoint styles `hover|md|color--red-400`
|
13
|
-
- Created function to get colour variable value based off the name of the colour `get-uc(red-400)`
|
14
|
-
- Added configuration map to allow uses to:
|
15
|
-
- add custom colours to be used to create shade palettes, tri palettes, single use colours, and to overwrite the default colour options
|
16
|
-
- disable the creation of classes if they only want to utilize the colour palette variables created
|
17
|
-
- disable the creation of pseudo-element and pseudo-element breakpoint classes by setting a boolean
|
18
|
-
- disable the creation of breakpoint and pseudo-element breakpoint classes by setting a boolean
|
19
|
-
- disable the creation and use of any default colour classes or shades
|
20
|
-
|
21
|
-
```scss
|
22
|
-
$utility_colors: (
|
23
|
-
config: (
|
24
|
-
classes: BOOLEAN,
|
25
|
-
breakpoint: BOOLEAN,
|
26
|
-
pseudo: BOOLEAN,
|
27
|
-
defaults: BOOLEAN,
|
28
|
-
),
|
29
|
-
colors: (
|
30
|
-
shades-use: (
|
31
|
-
'base-colour-A-name': hexcode,
|
32
|
-
),
|
33
|
-
tri-use: (
|
34
|
-
'base-colour-B-name': hexcode,
|
35
|
-
),
|
36
|
-
single-use: (
|
37
|
-
'base-colour-C-name': hexcode,
|
38
|
-
),
|
39
|
-
)
|
40
|
-
);
|
41
|
-
```
|
42
|
-
|
43
|
-
|
44
|
-
## [0.1.0] - 2022-08-13
|
45
|
-
|
46
|
-
- Initial commits
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
-
|
7
|
-
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
-
|
9
|
-
## Our Standards
|
10
|
-
|
11
|
-
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
-
|
13
|
-
* Demonstrating empathy and kindness toward other people
|
14
|
-
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
-
* Giving and gracefully accepting constructive feedback
|
16
|
-
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
-
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
-
|
19
|
-
Examples of unacceptable behavior include:
|
20
|
-
|
21
|
-
* The use of sexualized language or imagery, and sexual attention or
|
22
|
-
advances of any kind
|
23
|
-
* Trolling, insulting or derogatory comments, and personal or political attacks
|
24
|
-
* Public or private harassment
|
25
|
-
* Publishing others' private information, such as a physical or email
|
26
|
-
address, without their explicit permission
|
27
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
-
professional setting
|
29
|
-
|
30
|
-
## Enforcement Responsibilities
|
31
|
-
|
32
|
-
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
-
|
34
|
-
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
-
|
36
|
-
## Scope
|
37
|
-
|
38
|
-
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
-
|
40
|
-
## Enforcement
|
41
|
-
|
42
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at louiswilliamdavis@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
-
|
44
|
-
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
-
|
46
|
-
## Enforcement Guidelines
|
47
|
-
|
48
|
-
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
-
|
50
|
-
### 1. Correction
|
51
|
-
|
52
|
-
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
-
|
54
|
-
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
-
|
56
|
-
### 2. Warning
|
57
|
-
|
58
|
-
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
-
|
60
|
-
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
-
|
62
|
-
### 3. Temporary Ban
|
63
|
-
|
64
|
-
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
-
|
66
|
-
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
-
|
68
|
-
### 4. Permanent Ban
|
69
|
-
|
70
|
-
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
-
|
72
|
-
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
-
|
74
|
-
## Attribution
|
75
|
-
|
76
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
-
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
-
|
79
|
-
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
-
|
81
|
-
[homepage]: https://www.contributor-covenant.org
|
82
|
-
|
83
|
-
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
-
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/Gemfile
DELETED
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2022 Louis W Davis
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/examples/v0.1.8.png
DELETED
Binary file
|
data/index.js
DELETED
data/package.json
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "utility_colors",
|
3
|
-
"version": "0.1.8",
|
4
|
-
"description": "The last tool you'll need to create color palettes and style your applications with them",
|
5
|
-
"keywords": [
|
6
|
-
"styles",
|
7
|
-
"styling",
|
8
|
-
"utility",
|
9
|
-
"sass",
|
10
|
-
"scss",
|
11
|
-
"color",
|
12
|
-
"colour"
|
13
|
-
],
|
14
|
-
"homepage": "https://github.com/louiswdavis/utility_colors#readme",
|
15
|
-
"bugs": {
|
16
|
-
"url": "https://github.com/louiswdavis/utility_colors/issues"
|
17
|
-
},
|
18
|
-
"license": "MIT",
|
19
|
-
"author": "Louis Davis <LouisWilliamDavis@gmail.com> (https://twitter.com/louiswdavis_)",
|
20
|
-
"main": "index.js",
|
21
|
-
"style": "utility_colors/_utility_colors.scss",
|
22
|
-
"repository": "github:louiswdavis/utility_colors",
|
23
|
-
"scripts": {
|
24
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
25
|
-
}
|
26
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
@use "sass:color";
|
2
|
-
@use "sass:list";
|
3
|
-
@use "sass:map";
|
4
|
-
@use "sass:math";
|
5
|
-
@use "sass:meta";
|
6
|
-
|
7
|
-
@import 'utility_colors_files/validators/validations';
|
8
|
-
@import 'utility_colors_files/functions/functions';
|
9
|
-
@import 'utility_colors_files/variables/variables';
|
10
|
-
@import 'utility_colors_files/mixins/mixins';
|
11
|
-
@import 'utility_colors_files/utilities/color';
|
@@ -1,25 +0,0 @@
|
|
1
|
-
// a function to combine multiple mappings variables into a single map
|
2
|
-
@function map-combine($maps...) {
|
3
|
-
$collection: ();
|
4
|
-
|
5
|
-
// map-merge combines two mappings together into a single map
|
6
|
-
// this new mapping is then recursively merged to the next mapping in the array
|
7
|
-
@each $mapping in $maps {
|
8
|
-
$collection: map-merge($collection, $mapping);
|
9
|
-
}
|
10
|
-
|
11
|
-
@return $collection;
|
12
|
-
}
|
13
|
-
|
14
|
-
// a function to combine multiple listings variables into a single list
|
15
|
-
@function list-combine($lists...) {
|
16
|
-
$collection: ();
|
17
|
-
|
18
|
-
// list.join combines two listings together into a single list
|
19
|
-
// this new listing is then recursively merged to the next listings in the array
|
20
|
-
@each $listings in $lists {
|
21
|
-
$collection: join($collection, $listings);
|
22
|
-
}
|
23
|
-
|
24
|
-
@return $collection;
|
25
|
-
}
|