Skip to content

Commit e8f4c20

Browse files
committed
Add v1.0.0
0 parents  commit e8f4c20

File tree

6 files changed

+267
-0
lines changed

6 files changed

+267
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.beam
2+
*.ez
3+
/build
4+
erl_crash.dump

LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2016 heeyeun
4+
Copyright (c) 2024 Salif Mehmed
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# open_color
2+
3+
[![Package Version](https://img.shields.io/hexpm/v/open_color)](https://hex.pm/packages/open_color)
4+
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/open_color/)
5+
6+
Gleam implementation of the [Open Color](https://yeun.github.io/open-color) scheme.
7+
8+
```sh
9+
gleam add open_color
10+
```
11+
12+
Further documentation can be found at <https://hexdocs.pm/open_color>.

gleam.toml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name = "open_color"
2+
version = "1.0.0"
3+
4+
description = "Gleam implementation of the Open Color scheme"
5+
licences = ["MIT"]
6+
repository = { type = "github", user = "salif", repo = "gleam-open-color" }
7+
links = [{ title = "Website", href = "https://github.com/salif/gleam-open-color" }]
8+
9+
[dependencies]
10+
11+
[dev-dependencies]

manifest.toml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file was generated by Gleam
2+
# You typically do not need to edit this file
3+
4+
packages = [
5+
]
6+
7+
[requirements]

src/open_color.gleam

+211
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,211 @@
1+
2+
pub const oc_white: Int = 0xffffff
3+
4+
pub const oc_white_list: List(Int) = [oc_white]
5+
6+
pub const oc_black: Int = 0x000000
7+
8+
pub const oc_black_list: List(Int) = [oc_black]
9+
10+
pub const oc_gray_0: Int = 0xf8f9fa
11+
pub const oc_gray_1: Int = 0xf1f3f5
12+
pub const oc_gray_2: Int = 0xe9ecef
13+
pub const oc_gray_3: Int = 0xdee2e6
14+
pub const oc_gray_4: Int = 0xced4da
15+
pub const oc_gray_5: Int = 0xadb5bd
16+
pub const oc_gray_6: Int = 0x868e96
17+
pub const oc_gray_7: Int = 0x495057
18+
pub const oc_gray_8: Int = 0x343a40
19+
pub const oc_gray_9: Int = 0x212529
20+
21+
pub const oc_gray_list: List(Int) = [
22+
oc_gray_0, oc_gray_1, oc_gray_2, oc_gray_3, oc_gray_4,
23+
oc_gray_5, oc_gray_6, oc_gray_7, oc_gray_8, oc_gray_9]
24+
25+
pub const oc_red_0: Int = 0xfff5f5
26+
pub const oc_red_1: Int = 0xffe3e3
27+
pub const oc_red_2: Int = 0xffc9c9
28+
pub const oc_red_3: Int = 0xffa8a8
29+
pub const oc_red_4: Int = 0xff8787
30+
pub const oc_red_5: Int = 0xff6b6b
31+
pub const oc_red_6: Int = 0xfa5252
32+
pub const oc_red_7: Int = 0xf03e3e
33+
pub const oc_red_8: Int = 0xe03131
34+
pub const oc_red_9: Int = 0xc92a2a
35+
36+
pub const oc_red_list: List(Int) = [
37+
oc_red_0, oc_red_1, oc_red_2, oc_red_3, oc_red_4,
38+
oc_red_5, oc_red_6, oc_red_7, oc_red_8, oc_red_9]
39+
40+
pub const oc_pink_0: Int = 0xfff0f6
41+
pub const oc_pink_1: Int = 0xffdeeb
42+
pub const oc_pink_2: Int = 0xfcc2d7
43+
pub const oc_pink_3: Int = 0xfaa2c1
44+
pub const oc_pink_4: Int = 0xf783ac
45+
pub const oc_pink_5: Int = 0xf06595
46+
pub const oc_pink_6: Int = 0xe64980
47+
pub const oc_pink_7: Int = 0xd6336c
48+
pub const oc_pink_8: Int = 0xc2255c
49+
pub const oc_pink_9: Int = 0xa61e4d
50+
51+
pub const oc_pink_list: List(Int) = [
52+
oc_pink_0, oc_pink_1, oc_pink_2, oc_pink_3, oc_pink_4,
53+
oc_pink_5, oc_pink_6, oc_pink_7, oc_pink_8, oc_pink_9]
54+
55+
pub const oc_grape_0: Int = 0xf8f0fc
56+
pub const oc_grape_1: Int = 0xf3d9fa
57+
pub const oc_grape_2: Int = 0xeebefa
58+
pub const oc_grape_3: Int = 0xe599f7
59+
pub const oc_grape_4: Int = 0xda77f2
60+
pub const oc_grape_5: Int = 0xcc5de8
61+
pub const oc_grape_6: Int = 0xbe4bdb
62+
pub const oc_grape_7: Int = 0xae3ec9
63+
pub const oc_grape_8: Int = 0x9c36b5
64+
pub const oc_grape_9: Int = 0x862e9c
65+
66+
pub const oc_grape_list: List(Int) = [
67+
oc_grape_0, oc_grape_1, oc_grape_2, oc_grape_3, oc_grape_4,
68+
oc_grape_5, oc_grape_6, oc_grape_7, oc_grape_8, oc_grape_9]
69+
70+
pub const oc_violet_0: Int = 0xf3f0ff
71+
pub const oc_violet_1: Int = 0xe5dbff
72+
pub const oc_violet_2: Int = 0xd0bfff
73+
pub const oc_violet_3: Int = 0xb197fc
74+
pub const oc_violet_4: Int = 0x9775fa
75+
pub const oc_violet_5: Int = 0x845ef7
76+
pub const oc_violet_6: Int = 0x7950f2
77+
pub const oc_violet_7: Int = 0x7048e8
78+
pub const oc_violet_8: Int = 0x6741d9
79+
pub const oc_violet_9: Int = 0x5f3dc4
80+
81+
pub const oc_violet_list: List(Int) = [
82+
oc_violet_0, oc_violet_1, oc_violet_2, oc_violet_3, oc_violet_4,
83+
oc_violet_5, oc_violet_6, oc_violet_7, oc_violet_8, oc_violet_9]
84+
85+
pub const oc_indigo_0: Int = 0xedf2ff
86+
pub const oc_indigo_1: Int = 0xdbe4ff
87+
pub const oc_indigo_2: Int = 0xbac8ff
88+
pub const oc_indigo_3: Int = 0x91a7ff
89+
pub const oc_indigo_4: Int = 0x748ffc
90+
pub const oc_indigo_5: Int = 0x5c7cfa
91+
pub const oc_indigo_6: Int = 0x4c6ef5
92+
pub const oc_indigo_7: Int = 0x4263eb
93+
pub const oc_indigo_8: Int = 0x3b5bdb
94+
pub const oc_indigo_9: Int = 0x364fc7
95+
96+
pub const oc_indigo_list: List(Int) = [
97+
oc_indigo_0, oc_indigo_1, oc_indigo_2, oc_indigo_3, oc_indigo_4,
98+
oc_indigo_5, oc_indigo_6, oc_indigo_7, oc_indigo_8, oc_indigo_9]
99+
100+
pub const oc_blue_0: Int = 0xe7f5ff
101+
pub const oc_blue_1: Int = 0xd0ebff
102+
pub const oc_blue_2: Int = 0xa5d8ff
103+
pub const oc_blue_3: Int = 0x74c0fc
104+
pub const oc_blue_4: Int = 0x4dabf7
105+
pub const oc_blue_5: Int = 0x339af0
106+
pub const oc_blue_6: Int = 0x228be6
107+
pub const oc_blue_7: Int = 0x1c7ed6
108+
pub const oc_blue_8: Int = 0x1971c2
109+
pub const oc_blue_9: Int = 0x1864ab
110+
111+
pub const oc_blue_list: List(Int) = [
112+
oc_blue_0, oc_blue_1, oc_blue_2, oc_blue_3, oc_blue_4,
113+
oc_blue_5, oc_blue_6, oc_blue_7, oc_blue_8, oc_blue_9]
114+
115+
pub const oc_cyan_0: Int = 0xe3fafc
116+
pub const oc_cyan_1: Int = 0xc5f6fa
117+
pub const oc_cyan_2: Int = 0x99e9f2
118+
pub const oc_cyan_3: Int = 0x66d9e8
119+
pub const oc_cyan_4: Int = 0x3bc9db
120+
pub const oc_cyan_5: Int = 0x22b8cf
121+
pub const oc_cyan_6: Int = 0x15aabf
122+
pub const oc_cyan_7: Int = 0x1098ad
123+
pub const oc_cyan_8: Int = 0x0c8599
124+
pub const oc_cyan_9: Int = 0x0b7285
125+
126+
pub const oc_cyan_list: List(Int) = [
127+
oc_cyan_0, oc_cyan_1, oc_cyan_2, oc_cyan_3, oc_cyan_4,
128+
oc_cyan_5, oc_cyan_6, oc_cyan_7, oc_cyan_8, oc_cyan_9]
129+
130+
pub const oc_teal_0: Int = 0xe6fcf5
131+
pub const oc_teal_1: Int = 0xc3fae8
132+
pub const oc_teal_2: Int = 0x96f2d7
133+
pub const oc_teal_3: Int = 0x63e6be
134+
pub const oc_teal_4: Int = 0x38d9a9
135+
pub const oc_teal_5: Int = 0x20c997
136+
pub const oc_teal_6: Int = 0x12b886
137+
pub const oc_teal_7: Int = 0x0ca678
138+
pub const oc_teal_8: Int = 0x099268
139+
pub const oc_teal_9: Int = 0x087f5b
140+
141+
pub const oc_teal_list: List(Int) = [
142+
oc_teal_0, oc_teal_1, oc_teal_2, oc_teal_3, oc_teal_4,
143+
oc_teal_5, oc_teal_6, oc_teal_7, oc_teal_8, oc_teal_9]
144+
145+
pub const oc_green_0: Int = 0xebfbee
146+
pub const oc_green_1: Int = 0xd3f9d8
147+
pub const oc_green_2: Int = 0xb2f2bb
148+
pub const oc_green_3: Int = 0x8ce99a
149+
pub const oc_green_4: Int = 0x69db7c
150+
pub const oc_green_5: Int = 0x51cf66
151+
pub const oc_green_6: Int = 0x40c057
152+
pub const oc_green_7: Int = 0x37b24d
153+
pub const oc_green_8: Int = 0x2f9e44
154+
pub const oc_green_9: Int = 0x2b8a3e
155+
156+
pub const oc_green_list: List(Int) = [
157+
oc_green_0, oc_green_1, oc_green_2, oc_green_3, oc_green_4,
158+
oc_green_5, oc_green_6, oc_green_7, oc_green_8, oc_green_9]
159+
160+
pub const oc_lime_0: Int = 0xf4fce3
161+
pub const oc_lime_1: Int = 0xe9fac8
162+
pub const oc_lime_2: Int = 0xd8f5a2
163+
pub const oc_lime_3: Int = 0xc0eb75
164+
pub const oc_lime_4: Int = 0xa9e34b
165+
pub const oc_lime_5: Int = 0x94d82d
166+
pub const oc_lime_6: Int = 0x82c91e
167+
pub const oc_lime_7: Int = 0x74b816
168+
pub const oc_lime_8: Int = 0x66a80f
169+
pub const oc_lime_9: Int = 0x5c940d
170+
171+
pub const oc_lime_list: List(Int) = [
172+
oc_lime_0, oc_lime_1, oc_lime_2, oc_lime_3, oc_lime_4,
173+
oc_lime_5, oc_lime_6, oc_lime_7, oc_lime_8, oc_lime_9]
174+
175+
pub const oc_yellow_0: Int = 0xfff9db
176+
pub const oc_yellow_1: Int = 0xfff3bf
177+
pub const oc_yellow_2: Int = 0xffec99
178+
pub const oc_yellow_3: Int = 0xffe066
179+
pub const oc_yellow_4: Int = 0xffd43b
180+
pub const oc_yellow_5: Int = 0xfcc419
181+
pub const oc_yellow_6: Int = 0xfab005
182+
pub const oc_yellow_7: Int = 0xf59f00
183+
pub const oc_yellow_8: Int = 0xf08c00
184+
pub const oc_yellow_9: Int = 0xe67700
185+
186+
pub const oc_yellow_list: List(Int) = [
187+
oc_yellow_0, oc_yellow_1, oc_yellow_2, oc_yellow_3, oc_yellow_4,
188+
oc_yellow_5, oc_yellow_6, oc_yellow_7, oc_yellow_8, oc_yellow_9]
189+
190+
pub const oc_orange_0: Int = 0xfff4e6
191+
pub const oc_orange_1: Int = 0xffe8cc
192+
pub const oc_orange_2: Int = 0xffd8a8
193+
pub const oc_orange_3: Int = 0xffc078
194+
pub const oc_orange_4: Int = 0xffa94d
195+
pub const oc_orange_5: Int = 0xff922b
196+
pub const oc_orange_6: Int = 0xfd7e14
197+
pub const oc_orange_7: Int = 0xf76707
198+
pub const oc_orange_8: Int = 0xe8590c
199+
pub const oc_orange_9: Int = 0xd9480f
200+
201+
pub const oc_orange_list: List(Int) = [
202+
oc_orange_0, oc_orange_1, oc_orange_2, oc_orange_3, oc_orange_4,
203+
oc_orange_5, oc_orange_6, oc_orange_7, oc_orange_8, oc_orange_9]
204+
205+
pub const oc_color_spectrum: Int = 9
206+
207+
pub const oc_color_list: List(List(Int)) = [
208+
oc_white_list, oc_black_list, oc_gray_list, oc_red_list, oc_pink_list,
209+
oc_grape_list, oc_violet_list, oc_indigo_list, oc_blue_list, oc_cyan_list,
210+
oc_teal_list, oc_green_list, oc_lime_list, oc_yellow_list, oc_orange_list
211+
]

0 commit comments

Comments
 (0)