├── .gitignore ├── .npmignore ├── LICENSE.md ├── README.md ├── package.json └── riso-colors.json /.gitignore: -------------------------------------------------------------------------------- 1 | bower_components 2 | node_modules 3 | *.log 4 | .DS_Store 5 | bundle.js 6 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | bower_components 2 | node_modules 3 | *.log 4 | .DS_Store 5 | bundle.js 6 | test 7 | test.js 8 | demo/ 9 | .npmignore 10 | LICENSE.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | Copyright (c) 2017 Matt DesLauriers 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is 9 | furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 18 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE 20 | OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # riso-colors 2 | 3 | [![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges) 4 | 5 | A list of popular colors for Risograph printers, sourced from [stencil.wiki/colors](http://stencil.wiki/colors). Only includes colors with HEX, Pantone and Z-Type codes. 6 | 7 | ```js 8 | const colors = require('riso-colors'); 9 | 10 | // Print a random color 11 | const color = colors[Math.floor(Math.random() * colors.length)]; 12 | console.log(color); 13 | ``` 14 | 15 | Each "color" is an object, like so: 16 | 17 | ```js 18 | { 19 | name: 'Marine Red', 20 | hex: '#d2515e', 21 | pantone: '186 U', 22 | zType: 'S-4281' 23 | } 24 | ``` 25 | 26 | *Last Updated:* Feb 25, 2019 27 | 28 | ## Install 29 | 30 | Use [npm](https://npmjs.com/) to install. 31 | 32 | ```sh 33 | npm install riso-colors --save 34 | ``` 35 | 36 | ## Scraping 37 | 38 | You can scrape the JSON yourself from the [stencil.wiki/colors](http://stencil.wiki/colors) website by pasting this in the console and executing it: 39 | 40 | ```js 41 | var result = Array.from($$('.color-meta')).map(el => { 42 | const hex = el.querySelector('.views-field-field-ink-color-hex .field-content').textContent.replace(/#/, '').toLowerCase(); 43 | const pantoneEl = el.querySelector('.views-field-field-ink-color-pantone .field-content'); 44 | const zTypeEl = el.querySelector('.views-field-field-article-z-type-part-number .field-content'); 45 | const name = el.querySelector('.views-field-name a').textContent; 46 | if (!hex || !zTypeEl || !pantoneEl) return false; 47 | const pantone = pantoneEl ? pantoneEl.textContent.toUpperCase() : undefined; 48 | const zType = zTypeEl ? zTypeEl.textContent.toUpperCase() : undefined; 49 | return { name, hex: `#${hex}`, pantone, zType }; 50 | }).filter(Boolean); 51 | console.dir(result); 52 | copy(JSON.stringify(result, undefined, 2)); 53 | ``` 54 | 55 | This will copy the formatted JSON to your clipboard. 56 | 57 | *Note:* This snippet may eventually break if stencil.wiki decides to update its HTML code. 58 | 59 | ## License 60 | 61 | MIT, see [LICENSE.md](http://github.com/mattdesl/riso-colors/blob/master/LICENSE.md) for details. 62 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "riso-colors", 3 | "version": "1.0.1", 4 | "description": "A list of Risograph printer colors", 5 | "main": "./riso-colors.json", 6 | "license": "MIT", 7 | "author": { 8 | "name": "Matt DesLauriers", 9 | "email": "dave.des@gmail.com", 10 | "url": "https://github.com/mattdesl" 11 | }, 12 | "dependencies": {}, 13 | "devDependencies": {}, 14 | "scripts": { 15 | "test": "node test.js" 16 | }, 17 | "keywords": [ 18 | "riso", 19 | "print", 20 | "color", 21 | "colors", 22 | "scheme", 23 | "palette", 24 | "palettes" 25 | ], 26 | "repository": { 27 | "type": "git", 28 | "url": "git://github.com/mattdesl/riso-colors.git" 29 | }, 30 | "homepage": "https://github.com/mattdesl/riso-colors", 31 | "bugs": { 32 | "url": "https://github.com/mattdesl/riso-colors/issues" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /riso-colors.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "Black", 4 | "hex": "#000000", 5 | "pantone": "BLACK U" 6 | }, 7 | { 8 | "name": "Burgundy", 9 | "hex": "#914e72", 10 | "pantone": "235 U", 11 | "zType": "S-4225" 12 | }, 13 | { 14 | "name": "Blue", 15 | "hex": "#0078bf", 16 | "pantone": "3005 U", 17 | "zType": "S-4257" 18 | }, 19 | { 20 | "name": "Green", 21 | "hex": "#00a95c", 22 | "pantone": "354 U", 23 | "zType": "S-4259" 24 | }, 25 | { 26 | "name": "Medium Blue", 27 | "hex": "#3255a4", 28 | "pantone": "286 U", 29 | "zType": "S-4261" 30 | }, 31 | { 32 | "name": "Bright Red", 33 | "hex": "#f15060", 34 | "pantone": "185 U", 35 | "zType": "S-4263" 36 | }, 37 | { 38 | "name": "RisoFederal Blue", 39 | "hex": "#3d5588", 40 | "pantone": "288 U", 41 | "zType": "S-4265" 42 | }, 43 | { 44 | "name": "Purple", 45 | "hex": "#765ba7", 46 | "pantone": "2685 U", 47 | "zType": "S-4267" 48 | }, 49 | { 50 | "name": "Teal", 51 | "hex": "#00838a", 52 | "pantone": "321 U", 53 | "zType": "S-4269" 54 | }, 55 | { 56 | "name": "Flat Gold", 57 | "hex": "#bb8b41", 58 | "pantone": "1245 U", 59 | "zType": "S-4271" 60 | }, 61 | { 62 | "name": "Hunter Green", 63 | "hex": "#407060", 64 | "pantone": "342 U", 65 | "zType": "S-4273" 66 | }, 67 | { 68 | "name": "Red", 69 | "hex": "#ff665e", 70 | "pantone": "WARM RED U", 71 | "zType": "S-4275" 72 | }, 73 | { 74 | "name": "Brown", 75 | "hex": "#925f52", 76 | "pantone": "7526 U", 77 | "zType": "S-4277" 78 | }, 79 | { 80 | "name": "Yellow", 81 | "hex": "#ffe800", 82 | "pantone": "YELLOW U", 83 | "zType": "S-4279" 84 | }, 85 | { 86 | "name": "Marine Red", 87 | "hex": "#d2515e", 88 | "pantone": "186 U", 89 | "zType": "S-4281" 90 | }, 91 | { 92 | "name": "Orange", 93 | "hex": "#ff6c2f", 94 | "pantone": "ORANGE 021 U", 95 | "zType": "S-4283" 96 | }, 97 | { 98 | "name": "Fluorescent Pink", 99 | "hex": "#ff48b0", 100 | "pantone": "806 U", 101 | "zType": "S-4287" 102 | }, 103 | { 104 | "name": "Light Gray", 105 | "hex": "#88898a", 106 | "pantone": "424 U", 107 | "zType": "S-4291" 108 | }, 109 | { 110 | "name": "Metallic Gold", 111 | "hex": "#ac936e", 112 | "pantone": "872 U", 113 | "zType": " S-2772" 114 | }, 115 | { 116 | "name": "Crimson", 117 | "hex": "#e45d50", 118 | "pantone": "485 U", 119 | "zType": "S-4285" 120 | }, 121 | { 122 | "name": "Fluorescent Orange", 123 | "hex": "#ff7477", 124 | "pantone": "805 U", 125 | "zType": "S-4289" 126 | }, 127 | { 128 | "name": "Cornflower", 129 | "hex": "#62a8e5", 130 | "pantone": "292 U", 131 | "zType": "S-4617" 132 | }, 133 | { 134 | "name": "Sky Blue", 135 | "hex": "#4982cf", 136 | "pantone": "285U", 137 | "zType": "S-4618" 138 | }, 139 | { 140 | "name": "Sea Blue", 141 | "hex": "#0074a2", 142 | "pantone": "307 U", 143 | "zType": "S-4619" 144 | }, 145 | { 146 | "name": "Lake", 147 | "hex": "#235ba8", 148 | "pantone": "293 U", 149 | "zType": "S-4620" 150 | }, 151 | { 152 | "name": "Indigo", 153 | "hex": "#484d7a", 154 | "pantone": "2758 U", 155 | "zType": "S-4621" 156 | }, 157 | { 158 | "name": "Midnight", 159 | "hex": "#435060", 160 | "pantone": "296 U", 161 | "zType": "S-4622" 162 | }, 163 | { 164 | "name": "Mist", 165 | "hex": "#d5e4c0", 166 | "pantone": "7485 U", 167 | "zType": "S-4623" 168 | }, 169 | { 170 | "name": "Granite", 171 | "hex": "#a5aaa8", 172 | "pantone": "7538 U", 173 | "zType": "S-4624" 174 | }, 175 | { 176 | "name": "Charcoal", 177 | "hex": "#70747c", 178 | "pantone": "7540 U", 179 | "zType": "S-4625" 180 | }, 181 | { 182 | "name": "Smoky Teal", 183 | "hex": "#5f8289", 184 | "pantone": "5483 U", 185 | "zType": "S-4626" 186 | }, 187 | { 188 | "name": "Steel", 189 | "hex": "#375e77", 190 | "pantone": "302 U", 191 | "zType": "S-4627" 192 | }, 193 | { 194 | "name": "Slate", 195 | "hex": "#5e695e", 196 | "pantone": "5605 U", 197 | "zType": "S-4628" 198 | }, 199 | { 200 | "name": "Turquoise", 201 | "hex": "#00aa93", 202 | "pantone": "3275 U", 203 | "zType": "S-4629" 204 | }, 205 | { 206 | "name": "Emerald", 207 | "hex": "#19975d", 208 | "pantone": "355 U", 209 | "zType": "S-4630" 210 | }, 211 | { 212 | "name": "Grass", 213 | "hex": "#397e58", 214 | "pantone": "356 U", 215 | "zType": "S-4631" 216 | }, 217 | { 218 | "name": "Forest", 219 | "hex": "#516e5a", 220 | "pantone": "357 U", 221 | "zType": "S-4632" 222 | }, 223 | { 224 | "name": "Spruce", 225 | "hex": "#4a635d", 226 | "pantone": "567 U", 227 | "zType": "S-4633" 228 | }, 229 | { 230 | "name": "Moss", 231 | "hex": "#68724d", 232 | "pantone": "371 U", 233 | "zType": "S-4634" 234 | }, 235 | { 236 | "name": "Sea Foam", 237 | "hex": "#62c2b1", 238 | "pantone": "570 U", 239 | "zType": "S-4635" 240 | }, 241 | { 242 | "name": "Kelly Green", 243 | "hex": "#67b346", 244 | "pantone": " 368 U", 245 | "zType": "S-4636" 246 | }, 247 | { 248 | "name": "Light Teal", 249 | "hex": "#009da5", 250 | "pantone": "320 U", 251 | "zType": "S-4637" 252 | }, 253 | { 254 | "name": "Ivy", 255 | "hex": "#169b62", 256 | "pantone": "347 U", 257 | "zType": "S-4638" 258 | }, 259 | { 260 | "name": "Pine", 261 | "hex": "#237e74", 262 | "pantone": "3295 U", 263 | "zType": "S-4639" 264 | }, 265 | { 266 | "name": "Lagoon", 267 | "hex": "#2f6165", 268 | "pantone": "323 U", 269 | "zType": "S-4640" 270 | }, 271 | { 272 | "name": "Violet", 273 | "hex": "#9d7ad2", 274 | "pantone": "265 U", 275 | "zType": "S-4641" 276 | }, 277 | { 278 | "name": "Orchid", 279 | "hex": "#aa60bf", 280 | "pantone": "2592 U", 281 | "zType": "S-4642" 282 | }, 283 | { 284 | "name": "Plum", 285 | "hex": "#845991", 286 | "pantone": "2603 U", 287 | "zType": "S-4644" 288 | }, 289 | { 290 | "name": "Raisin", 291 | "hex": "#775d7a", 292 | "pantone": "519 U", 293 | "zType": "S-4645" 294 | }, 295 | { 296 | "name": "Grape", 297 | "hex": "#6c5d80", 298 | "pantone": "2695 U", 299 | "zType": "S-4646" 300 | }, 301 | { 302 | "name": "Scarlet", 303 | "hex": "#f65058", 304 | "pantone": "RED 032 U", 305 | "zType": "S-4647" 306 | }, 307 | { 308 | "name": "Tomato", 309 | "hex": "#d2515e", 310 | "pantone": "186 U", 311 | "zType": "S-4648" 312 | }, 313 | { 314 | "name": "Cranberry", 315 | "hex": "#d1517a", 316 | "pantone": "214 U", 317 | "zType": "S-4649" 318 | }, 319 | { 320 | "name": "Maroon", 321 | "hex": "#9e4c6e", 322 | "pantone": "221 U", 323 | "zType": "S-4650" 324 | }, 325 | { 326 | "name": "Raspberry Red", 327 | "hex": "#d1517a", 328 | "pantone": "214U", 329 | "zType": "S-4651" 330 | }, 331 | { 332 | "name": "Brick", 333 | "hex": "#a75154", 334 | "pantone": "1807 U", 335 | "zType": "S-4652" 336 | }, 337 | { 338 | "name": "Light Lime", 339 | "hex": "#e3ed55", 340 | "pantone": "387 U", 341 | "zType": "S-4653" 342 | }, 343 | { 344 | "name": "Sunflower", 345 | "hex": "#ffb511", 346 | "pantone": "116 U", 347 | "zType": "S-4654" 348 | }, 349 | { 350 | "name": "Melon", 351 | "hex": "#ffae3b", 352 | "pantone": "1235 U", 353 | "zType": "S-4655" 354 | }, 355 | { 356 | "name": "Apricot", 357 | "hex": "#f6a04d", 358 | "pantone": "143 U", 359 | "zType": "S-4656" 360 | }, 361 | { 362 | "name": "Paprika", 363 | "hex": "#ee7f4b", 364 | "pantone": "158 U", 365 | "zType": "S-4657" 366 | }, 367 | { 368 | "name": "Pumpkin", 369 | "hex": "#ff6f4c", 370 | "pantone": "1655 U", 371 | "zType": "S-4658" 372 | }, 373 | { 374 | "name": "Bright Olive Green", 375 | "hex": "#b49f29", 376 | "pantone": "103 U", 377 | "zType": "S-4659" 378 | }, 379 | { 380 | "name": "Bright Gold", 381 | "hex": "#ba8032", 382 | "pantone": "131 U", 383 | "zType": "S-4660" 384 | }, 385 | { 386 | "name": "Copper", 387 | "hex": "#bd6439", 388 | "pantone": "1525 U", 389 | "zType": "S-4661" 390 | }, 391 | { 392 | "name": "Mahogany", 393 | "hex": "#8e595a", 394 | "pantone": "491 U", 395 | "zType": "S-4662" 396 | }, 397 | { 398 | "name": "Bisque", 399 | "hex": "#f2cdcf", 400 | "pantone": "503 U", 401 | "zType": "S-4663" 402 | }, 403 | { 404 | "name": "Bubble Gum", 405 | "hex": "#f984ca", 406 | "pantone": "231 U", 407 | "zType": "S-4664" 408 | }, 409 | { 410 | "name": "Light Mauve", 411 | "hex": "#e6b5c9", 412 | "pantone": "7430 U", 413 | "zType": "S-4665" 414 | }, 415 | { 416 | "name": "Dark Mauve", 417 | "hex": "#bd8ca6", 418 | "pantone": "687 U", 419 | "zType": "S-4666" 420 | }, 421 | { 422 | "name": "Wine", 423 | "hex": "#914e72", 424 | "pantone": "235 U", 425 | "zType": "S-4674" 426 | }, 427 | { 428 | "name": "Gray", 429 | "hex": "#928d88", 430 | "pantone": "403 U", 431 | "zType": "S-4693" 432 | }, 433 | { 434 | "name": "White", 435 | "hex": "#ffffff", 436 | "zType": "S-4722 " 437 | }, 438 | { 439 | "name": "Aqua", 440 | "hex": "#5ec8e5", 441 | "pantone": "637 U", 442 | "zType": "S-4917" 443 | }, 444 | { 445 | "name": "Mint", 446 | "hex": "#82d8d5", 447 | "pantone": "324 U", 448 | "zType": "S-6316" 449 | }, 450 | { 451 | "name": "Fluorescent Yellow", 452 | "hex": "#ffe900", 453 | "pantone": "803 U", 454 | "zType": "S-7761" 455 | }, 456 | { 457 | "name": "Fluorescent Red", 458 | "hex": "#ff4c65", 459 | "pantone": "812 U", 460 | "zType": "S-7762" 461 | }, 462 | { 463 | "name": "Fluorescent Green", 464 | "hex": "#44d62c", 465 | "pantone": "802 U", 466 | "zType": "S-7763" 467 | } 468 | ] --------------------------------------------------------------------------------