If you like Use RGB with Alpha Channel in TiddlyWiki: A Notebox Example - Tips & Tricks - Talk TW, then the below example shows an improved version of notebox in Tiddlywiki.
With light palettes
With dark palettes
To give a try
- Download kk-notebox-bundle.json (4.7 KB)
- Open https://tiddlywiki.com and drag and drop
kk-notebox-bundle.json
from step 1 - Open Test Note Box
- Change the color palettes in TiddlyWiki and see how it works with dark/light palettes.
Remarks
- The stylesheet is a dynamic one
- The background and foreground colors of textbox is determined from the color-scheme field of palette in use
- The svg icons are provided using simple macros (you can change them)
- The main macro (
note
) is similar to Shiraz alert, so if you are familiar with Shiraz, using note is quite simple.
Reference
Edited: See @tw-FRed hack below for simplifying macro call and creating custom notebox on top of the note
.