https://github.com/yariplus/nodebb-plugin-rainbows
Add rainbows to your posts. Smile!
https://github.com/yariplus/nodebb-plugin-rainbows
Last synced: about 2 months ago
JSON representation
Add rainbows to your posts. Smile!
- Host: GitHub
- URL: https://github.com/yariplus/nodebb-plugin-rainbows
- Owner: yariplus
- License: other
- Created: 2015-02-25T13:08:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-04-22T17:53:41.000Z (about 6 years ago)
- Last Synced: 2025-03-12T15:51:13.033Z (3 months ago)
- Language: JavaScript
- Size: 73.2 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
#nodebb-plugin-rainbows
Add rainbows to your posts. Smile!
## Install
Install the usual way, either using the ACP "Extend=>Plugins" page or using npm from your NodeBB home directory:
npm i nodebb-plugin-rainbows
## Usage
Surround text with "-= =-" to make rainbows.
`-=Rainbow Text=-`
Add options with parenthesis like so:
`-=(red,yellow,blue,range:3)Rainbow Text=-`
Options include:
- Any CSS valid color
- Adds that color to the spectrum used in the rainbow.
- range:{number}
- Repeats the spectrum after {number} characters, instead of stretching it over the whole text.
- bg:{color}
- Puts a background color {color} behind the text.
- theme:{name}
- Uses the theme {name} to make the rainbow. Themes are created in the ACP.### Examples
Normal Rainbows:
> `-=Smile! With the power of smiles, the world becomes connected.=-`
>
> Multi-line with options:
> `-=(blue,lightblue,blue,range:12)If you can keep your head when all about you`
> `Are losing theirs and blaming it on you,`
> `If you can trust yourself when all men doubt you,`
> `But make allowance for their doubting too;=-`
>
> Multi-line with theme and embed link:
> `-=(theme:flutter)Here is a video in the middle of the rainbow`
> `https://youtu.be/ukCYa6BbyYA`
> `and the rainbow continues after...=-`
>
> ## ACP and Themes
Themes are controlled inside the fancy ACP page (*With awesome colored nav!!*):

## Composer GUI
Composer buttons are added the the default composer and redactor composer. The button opens a GUI for editing your rainbow.
