Skip to content

"CSS and Passage Tags": Chapbook (v1.0.0)#

Summary#

Using the built-in global variable config, text colors and other CSS properties can be programmatically adjusted using the [JavaScript] modifier in Chapbook.

Example#

Download

Twee Code#

:: StoryTitle
Chapbook: CSS and Passage Tags

:: Start
config.style.page.color: "yellow-4"
--
This is one color!
[JavaScript]
// Overwrite the default text color
config.style.page.color = "violet-6";
[continued]

And this is the same color!

Twee Download