random_font_color

Random curated Fonts and pastel Colors for your UI/UX design, design for non-designers.


Keywords
fonts, colors, pastel, design, random, nim, nim-lang, nim-language, pastel-colors
License
LGPL-3.0
Install
nimble install random_font_color

Documentation

nim-random-font-color

Random curated Fonts and pastel Colors for your UI/UX design, design for non-designers, poors man design. Nim package.

screenshot

Use

>>> import random_font_color
>>> echo get_random_handwriting_font()
"Redressed"
>>> echo get_random_mono_font()
"Inconsolata"
>>> echo get_random_display_font()
"McLaren"
>>> echo get_random_sans_font()
"Lato"
>>> echo get_random_serif_font()
"Rasa"
>>> echo get_random_font()
"Yellowtail"
>>> echo get_random_pastel_color("dark")
(name: "darkgray", hexa: "#a9a9a9", rgb: [169, 169, 169], rgb_percent: [66, 66, 66])
>>> echo get_random_pastel_color("light")
(name: "lavenderblush", hexa: "#fff0f5", rgb: [255, 240, 245], rgb_percent: [100, 94, 96])
>>> echo get_random_pastel_color()
(name: "chocolate", hexa: "#d2691e", rgb: [210, 105, 30], rgb_percent: [82, 41, 11])
>>>

Install

nimble install random_font_color

Requisites

Documentation

get_random_pastel_color()

Description: Get a random dark or light color as string, useful for CSS styling.. The proc does not accept char only string.

Arguments:

  • tone A one of "dark" or "light", dark for dark colors and light for light colors, string type, optional.

Returns: tuple type.

  • All other proc cant take any arguments at all, just use them directly.

Why?