Skip to content

Commit

Permalink
Add color values in multiple data file formats
Browse files Browse the repository at this point in the history
Previously the color values were only provided through the documentation
in the `README.md` file that can not be simply parsed programmatically
for automated usage in other projects.
This has been changed by adding the following data file formats that can
be parsed:

- JSON (1) - The file provides an object that contains an `colors`
  collection/array that stores the individual color HEX (2) values.
  They can be read and concatenated with a commato match Slack's
  shareable theme format.
- YAML (3) - Like the JSON format, the YAML file also provides the
  `colors` collection/array containing the color HEX values.
- Plain Text - The colors are also provided as plain text using a `.txt`
  file (4).

References:
  (1) https://json.org
  (2) https://en.wikipedia.org/wiki/Web_colors#Converting_RGB_to_hexadecimal
  (3) https://yaml.org
  (4) https://en.wikipedia.org/wiki/Text_file

Resolves GH-6
  • Loading branch information
arcticicestudio committed Aug 8, 2019
1 parent 23552e9 commit b5a8155
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions colors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"colors": ["#2E3440", "#3B4252", "#88C0D0", "#2E3440", "#3B4252", "#D8DEE9", "#A3BE8C", "#81A1C1"]
}
1 change: 1 addition & 0 deletions colors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#2E3440,#3B4252,#88C0D0,#2E3440,#3B4252,#D8DEE9,#A3BE8C,#81A1C1
9 changes: 9 additions & 0 deletions colors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
colors:
- "#2E3440"
- "#3B4252"
- "#88C0D0"
- "#2E3440"
- "#3B4252"
- "#D8DEE9"
- "#A3BE8C"
- "#81A1C1"

0 comments on commit b5a8155

Please sign in to comment.