sai-mei 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9525032aece6c2687a778352be21f464009087846cb44ae3fb775ea3e8af9d8e
4
+ data.tar.gz: 12b1b139637800755c5820e174d407796e70b9a492e583157d2127cd8c422222
5
+ SHA512:
6
+ metadata.gz: e6de728a5883770a5b97d90bed638d427c337e5cb101f665e72601e478b7b2c9fa7487d01954ed17a29a8da75ff1271b248e2465e31beb3093b4d88bb6020ca9
7
+ data.tar.gz: ee5f94085458586737f1528c7fbc85275698bdfbc4754f14666372d09224401f7d58b656eddb1c8a1f467e2fee3c4f90657c10299d6c05c42c1d98015adb2110
data/.yardopts ADDED
@@ -0,0 +1,11 @@
1
+ lib/**/*.rb
2
+ --title Sai-Mei
3
+ --readme README.md
4
+ --no-private
5
+ --protected
6
+ --markup markdown
7
+ --markup-provider redcarpet
8
+ --embed-mixins
9
+ --tag rbs
10
+ --hide-tag rbs
11
+ --files LICENSE
data/CHANGELOG.md ADDED
@@ -0,0 +1,18 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog], and this project adheres to [Break Versioning].
6
+
7
+ ## [Unreleased]
8
+
9
+ ## 0.1.0 - 2025-01-23
10
+
11
+ * Initial release
12
+
13
+ [Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
14
+ [Break Versioning]: https://www.taoensso.com/break-versioning
15
+
16
+ <!-- versions -->
17
+
18
+ [Unreleased]: https://github.com/aaronmallen/sai-mei/compare/
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Aaron Allen
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/README.md ADDED
@@ -0,0 +1,94 @@
1
+ # Sai-Mei
2
+
3
+ [![Sai-Mei Version](https://img.shields.io/gem/v/sai-mei?style=for-the-badge&logo=rubygems&logoColor=white&logoSize=auto&label=Gem%20Version)](https://rubygems.org/gems/sai-mei)
4
+ [![Sai-Mei License](https://img.shields.io/github/license/aaronmallen/sai-mei?style=for-the-badge&logo=opensourceinitiative&logoColor=white&logoSize=auto)](./LICENSE)
5
+ [![Sai-Mei Docs](https://img.shields.io/badge/rubydoc-blue?style=for-the-badge&logo=readthedocs&logoColor=white&logoSize=auto&label=docs)](https://rubydoc.info/gems/sai-mei/0.3.2)
6
+ [![Sai-Mei Open Issues](https://img.shields.io/github/issues-search/aaronmallen/sai-mei?query=state%3Aopen&style=for-the-badge&logo=github&logoColor=white&logoSize=auto&label=issues&color=red)](https://github.com/aaronmallen/sai-mei/issues?q=state%3Aopen%20)
7
+
8
+ An elegant color naming system extending [Sai] with sophisticated color palettes
9
+
10
+ Sai-Mei (彩名) - combining [Sai]'s color management with the on'yomi reading for 'name' - provides a comprehensive
11
+ collection of named colors extending the [Sai] color management system. Drawing inspiration from traditional color
12
+ vocabularies, Sai-Mei brings rich, curated color palettes to terminal interfaces.
13
+
14
+ Sai-Mei empowers developers to selectively incorporate sophisticated color collections into
15
+ their CLI applications. Like its parent gem [Sai], it combines precision with flexibility,
16
+ allowing developers to organize and utilize color palettes with fine-grained control.
17
+
18
+ ## Installation
19
+
20
+ Add this line to your application's Gemfile:
21
+
22
+ ```ruby
23
+ gem 'sai-mei'
24
+ ```
25
+
26
+ Or install it yourself as:
27
+
28
+ ```ruby
29
+ gem install sai-mei
30
+ ```
31
+
32
+ ## Quick Start
33
+
34
+ ```ruby
35
+ require 'sai/mei'
36
+
37
+ # Install all colors from a palette
38
+ Sai::Mei.css.install
39
+
40
+ # Install specific colors
41
+ Sai::Mei.xterm
42
+ .only(:green, :dodger_blue_2, :spring_green_4)
43
+ .install
44
+
45
+ # Install colors with custom names
46
+ Sai::Mei.tailwind
47
+ .rename(blue_500: :primary, red_500: :danger)
48
+ .install
49
+
50
+ # Use the installed colors with Sai
51
+ Sai.primary.on_danger.decorate('Hello, World!')
52
+ ```
53
+
54
+ ## Available Palettes
55
+
56
+ Sai-Mei includes several carefully curated color palettes:
57
+
58
+ * **[CSS](docs/palettes/css.md)** - Web colors from CSS Color Module Level 4
59
+ * **[Tailwind](docs/palettes/tailwind.md)** - Color system from Tailwind CSS
60
+ * **[Xterm](docs/palettes/xterm.md)** - Extended 256-color terminal palette
61
+
62
+ Each palette can be installed in its entirety or selectively customized to meet your needs. See individual palette
63
+ documentation for complete color listings and usage examples.
64
+
65
+ ## Features
66
+
67
+ * 🎨 **Multiple Color Palettes** - Choose from standard ANSI, CSS web colors, Tailwind UI colors, or Xterm's extended
68
+ palette
69
+ * 🔧 **Selective Installation** - Install entire palettes or pick specific colors
70
+ * 📝 **Custom Naming** - Rename colors to match your application's semantics
71
+ * 🔄 **Chainable Configuration** - Fluent interface for palette customization
72
+ * 🎯 **Zero Runtime Overhead** - Colors are registered once during setup
73
+
74
+ ## Documentation
75
+
76
+ * [RubyDoc](https://rubydoc.info/gems/sai-mei)
77
+ * [Color Palettes](./docs/palettes)
78
+
79
+ ## Contributing
80
+
81
+ We welcome contributions! Please see our [Contributing Guidelines](docs/CONTRIBUTING.md) for:
82
+
83
+ * Development setup and workflow
84
+ * Code style and documentation standards
85
+ * Testing requirements
86
+ * Pull request process
87
+
88
+ Before contributing, please review our [Code of Conduct](docs/CODE_OF_CONDUCT.md).
89
+
90
+ ## License
91
+
92
+ The gem is available as open source under the terms of the [MIT License](LICENSE).
93
+
94
+ [Sai]: https://github.com/aaronmallen/sai
data/config/css.yml ADDED
@@ -0,0 +1,589 @@
1
+ ---
2
+ alice_blue:
3
+ - 240
4
+ - 248
5
+ - 255
6
+ antique_white:
7
+ - 250
8
+ - 235
9
+ - 215
10
+ aqua:
11
+ - 0
12
+ - 255
13
+ - 255
14
+ aquamarine:
15
+ - 127
16
+ - 255
17
+ - 212
18
+ azure:
19
+ - 240
20
+ - 255
21
+ - 255
22
+ beige:
23
+ - 245
24
+ - 245
25
+ - 220
26
+ bisque:
27
+ - 255
28
+ - 228
29
+ - 196
30
+ black:
31
+ - 0
32
+ - 0
33
+ - 0
34
+ blanched_almond:
35
+ - 255
36
+ - 235
37
+ - 205
38
+ blue:
39
+ - 0
40
+ - 0
41
+ - 255
42
+ blue_violet:
43
+ - 138
44
+ - 43
45
+ - 226
46
+ brown:
47
+ - 165
48
+ - 42
49
+ - 42
50
+ burlywood:
51
+ - 222
52
+ - 184
53
+ - 135
54
+ cadet_blue:
55
+ - 95
56
+ - 158
57
+ - 160
58
+ chartreuse:
59
+ - 127
60
+ - 255
61
+ - 0
62
+ chocolate:
63
+ - 210
64
+ - 105
65
+ - 30
66
+ coral:
67
+ - 255
68
+ - 127
69
+ - 80
70
+ cornflower_blue:
71
+ - 100
72
+ - 149
73
+ - 237
74
+ cornsilk:
75
+ - 255
76
+ - 248
77
+ - 220
78
+ crimson:
79
+ - 220
80
+ - 20
81
+ - 60
82
+ cyan:
83
+ - 0
84
+ - 255
85
+ - 255
86
+ dark_blue:
87
+ - 0
88
+ - 0
89
+ - 139
90
+ dark_cyan:
91
+ - 0
92
+ - 139
93
+ - 139
94
+ dark_golden_rod:
95
+ - 184
96
+ - 134
97
+ - 11
98
+ dark_gray:
99
+ - 169
100
+ - 169
101
+ - 169
102
+ dark_green:
103
+ - 0
104
+ - 100
105
+ - 0
106
+ dark_grey:
107
+ - 169
108
+ - 169
109
+ - 169
110
+ dark_khaki:
111
+ - 189
112
+ - 183
113
+ - 107
114
+ dark_magenta:
115
+ - 139
116
+ - 0
117
+ - 139
118
+ dark_olive_green:
119
+ - 85
120
+ - 107
121
+ - 47
122
+ dark_orange:
123
+ - 255
124
+ - 140
125
+ - 0
126
+ dark_orchid:
127
+ - 153
128
+ - 50
129
+ - 204
130
+ dark_red:
131
+ - 139
132
+ - 0
133
+ - 0
134
+ dark_salmon:
135
+ - 233
136
+ - 150
137
+ - 122
138
+ dark_sea_green:
139
+ - 143
140
+ - 188
141
+ - 143
142
+ dark_slate_blue:
143
+ - 72
144
+ - 61
145
+ - 139
146
+ dark_slate_gray:
147
+ - 47
148
+ - 79
149
+ - 79
150
+ dark_slate_grey:
151
+ - 47
152
+ - 79
153
+ - 79
154
+ dark_turquoise:
155
+ - 0
156
+ - 206
157
+ - 209
158
+ dark_violet:
159
+ - 148
160
+ - 0
161
+ - 211
162
+ deep_pink:
163
+ - 255
164
+ - 20
165
+ - 147
166
+ deep_sky_blue:
167
+ - 0
168
+ - 191
169
+ - 255
170
+ dim_gray:
171
+ - 105
172
+ - 105
173
+ - 105
174
+ dim_grey:
175
+ - 105
176
+ - 105
177
+ - 105
178
+ dodger_blue:
179
+ - 30
180
+ - 144
181
+ - 255
182
+ fire_brick:
183
+ - 178
184
+ - 34
185
+ - 34
186
+ floral_white:
187
+ - 255
188
+ - 250
189
+ - 240
190
+ forest_green:
191
+ - 34
192
+ - 139
193
+ - 34
194
+ fuchsia:
195
+ - 255
196
+ - 0
197
+ - 255
198
+ gainsboro:
199
+ - 220
200
+ - 220
201
+ - 220
202
+ ghost_white:
203
+ - 248
204
+ - 248
205
+ - 255
206
+ gold:
207
+ - 255
208
+ - 215
209
+ - 0
210
+ golden_rod:
211
+ - 218
212
+ - 165
213
+ - 32
214
+ gray:
215
+ - 128
216
+ - 128
217
+ - 128
218
+ green:
219
+ - 0
220
+ - 128
221
+ - 0
222
+ green_yellow:
223
+ - 173
224
+ - 255
225
+ - 47
226
+ grey:
227
+ - 128
228
+ - 128
229
+ - 128
230
+ honeydew:
231
+ - 240
232
+ - 255
233
+ - 240
234
+ hot_pink:
235
+ - 255
236
+ - 105
237
+ - 180
238
+ indian_red:
239
+ - 205
240
+ - 92
241
+ - 92
242
+ indigo:
243
+ - 75
244
+ - 0
245
+ - 130
246
+ ivory:
247
+ - 255
248
+ - 255
249
+ - 240
250
+ khaki:
251
+ - 240
252
+ - 230
253
+ - 140
254
+ lavender:
255
+ - 230
256
+ - 230
257
+ - 250
258
+ lavender_blush:
259
+ - 255
260
+ - 240
261
+ - 245
262
+ lawn_green:
263
+ - 124
264
+ - 252
265
+ - 0
266
+ lemon_chiffon:
267
+ - 255
268
+ - 250
269
+ - 205
270
+ light_blue:
271
+ - 173
272
+ - 216
273
+ - 230
274
+ light_coral:
275
+ - 240
276
+ - 128
277
+ - 128
278
+ light_cyan:
279
+ - 224
280
+ - 255
281
+ - 255
282
+ light_golden_rod_yellow:
283
+ - 250
284
+ - 250
285
+ - 210
286
+ light_gray:
287
+ - 211
288
+ - 211
289
+ - 211
290
+ light_green:
291
+ - 144
292
+ - 238
293
+ - 144
294
+ light_grey:
295
+ - 211
296
+ - 211
297
+ - 211
298
+ light_pink:
299
+ - 255
300
+ - 182
301
+ - 193
302
+ light_salmon:
303
+ - 255
304
+ - 160
305
+ - 122
306
+ light_sea_green:
307
+ - 32
308
+ - 178
309
+ - 170
310
+ light_sky_blue:
311
+ - 135
312
+ - 206
313
+ - 250
314
+ light_slate_gray:
315
+ - 119
316
+ - 136
317
+ - 153
318
+ light_slate_grey:
319
+ - 119
320
+ - 136
321
+ - 153
322
+ light_steel_blue:
323
+ - 176
324
+ - 196
325
+ - 222
326
+ light_yellow:
327
+ - 255
328
+ - 255
329
+ - 224
330
+ lime:
331
+ - 0
332
+ - 255
333
+ - 0
334
+ lime_green:
335
+ - 50
336
+ - 205
337
+ - 50
338
+ linen:
339
+ - 250
340
+ - 240
341
+ - 230
342
+ magenta:
343
+ - 255
344
+ - 0
345
+ - 255
346
+ maroon:
347
+ - 128
348
+ - 0
349
+ - 0
350
+ medium_aquamarine:
351
+ - 102
352
+ - 205
353
+ - 170
354
+ medium_blue:
355
+ - 0
356
+ - 0
357
+ - 205
358
+ medium_orchid:
359
+ - 186
360
+ - 85
361
+ - 211
362
+ medium_purple:
363
+ - 147
364
+ - 112
365
+ - 219
366
+ medium_sea_green:
367
+ - 60
368
+ - 179
369
+ - 113
370
+ medium_slate_blue:
371
+ - 123
372
+ - 104
373
+ - 238
374
+ medium_spring_green:
375
+ - 0
376
+ - 250
377
+ - 154
378
+ medium_turquoise:
379
+ - 72
380
+ - 209
381
+ - 204
382
+ medium_violet_red:
383
+ - 199
384
+ - 21
385
+ - 133
386
+ midnight_blue:
387
+ - 25
388
+ - 25
389
+ - 112
390
+ mint_cream:
391
+ - 245
392
+ - 255
393
+ - 250
394
+ misty_rose:
395
+ - 255
396
+ - 228
397
+ - 225
398
+ moccasin:
399
+ - 255
400
+ - 228
401
+ - 181
402
+ navajo_white:
403
+ - 255
404
+ - 222
405
+ - 173
406
+ navy:
407
+ - 0
408
+ - 0
409
+ - 128
410
+ old_lace:
411
+ - 253
412
+ - 245
413
+ - 230
414
+ olive:
415
+ - 128
416
+ - 128
417
+ - 0
418
+ olive_drab:
419
+ - 107
420
+ - 142
421
+ - 35
422
+ orange:
423
+ - 255
424
+ - 165
425
+ - 0
426
+ orange_red:
427
+ - 255
428
+ - 69
429
+ - 0
430
+ orchid:
431
+ - 218
432
+ - 112
433
+ - 214
434
+ pale_golden_rod:
435
+ - 238
436
+ - 232
437
+ - 170
438
+ pale_green:
439
+ - 152
440
+ - 251
441
+ - 152
442
+ pale_turquoise:
443
+ - 175
444
+ - 238
445
+ - 238
446
+ pale_violet_red:
447
+ - 219
448
+ - 112
449
+ - 147
450
+ papaya_whip:
451
+ - 255
452
+ - 239
453
+ - 213
454
+ peachpuff:
455
+ - 255
456
+ - 218
457
+ - 185
458
+ peru:
459
+ - 205
460
+ - 133
461
+ - 63
462
+ pink:
463
+ - 255
464
+ - 192
465
+ - 203
466
+ plum:
467
+ - 221
468
+ - 160
469
+ - 221
470
+ powder_blue:
471
+ - 176
472
+ - 224
473
+ - 230
474
+ purple:
475
+ - 128
476
+ - 0
477
+ - 128
478
+ rebecca_purple:
479
+ - 102
480
+ - 51
481
+ - 153
482
+ red:
483
+ - 255
484
+ - 0
485
+ - 0
486
+ rosy_brown:
487
+ - 188
488
+ - 143
489
+ - 143
490
+ royal_blue:
491
+ - 65
492
+ - 105
493
+ - 225
494
+ saddle_brown:
495
+ - 139
496
+ - 69
497
+ - 19
498
+ salmon:
499
+ - 250
500
+ - 128
501
+ - 114
502
+ sandy_brown:
503
+ - 244
504
+ - 164
505
+ - 96
506
+ sea_green:
507
+ - 46
508
+ - 139
509
+ - 87
510
+ seashell:
511
+ - 255
512
+ - 245
513
+ - 238
514
+ sienna:
515
+ - 160
516
+ - 82
517
+ - 45
518
+ silver:
519
+ - 192
520
+ - 192
521
+ - 192
522
+ sky_blue:
523
+ - 135
524
+ - 206
525
+ - 235
526
+ slate_blue:
527
+ - 106
528
+ - 90
529
+ - 205
530
+ slate_grey:
531
+ - 112
532
+ - 128
533
+ - 144
534
+ snow:
535
+ - 255
536
+ - 250
537
+ - 250
538
+ spring_green:
539
+ - 0
540
+ - 255
541
+ - 127
542
+ steel_blue:
543
+ - 70
544
+ - 130
545
+ - 180
546
+ tan:
547
+ - 210
548
+ - 180
549
+ - 140
550
+ teal:
551
+ - 0
552
+ - 128
553
+ - 128
554
+ thistle:
555
+ - 216
556
+ - 191
557
+ - 216
558
+ tomato:
559
+ - 255
560
+ - 99
561
+ - 71
562
+ turquoise:
563
+ - 64
564
+ - 224
565
+ - 208
566
+ violet:
567
+ - 238
568
+ - 130
569
+ - 238
570
+ wheat:
571
+ - 245
572
+ - 222
573
+ - 179
574
+ white:
575
+ - 255
576
+ - 255
577
+ - 255
578
+ white_smoke:
579
+ - 245
580
+ - 245
581
+ - 245
582
+ yellow:
583
+ - 255
584
+ - 255
585
+ - 0
586
+ yellow_green:
587
+ - 154
588
+ - 205
589
+ - 50