CineCode
Reference

Themes

Project themes and code highlight themes.

CineCode has two kinds of theme: a project theme (the overall palette and background) and a code highlight theme (the colors of syntax-highlighted code). List both with cinecode themes.

Project themes

Set in the manifest:

theme = "dark_documentary"
ThemeLook
dark_documentary (default)Navy background, gold accents β€” the classic documentary look.
hacker_terminalGreen-on-black terminal.
scientificClean, light, neutral.
blueprintBlue technical-drawing palette.
modern_minimalRestrained and bright.
retro_computerAmber CRT.
ancient_manuscriptParchment and ink.

Code highlight themes

Passed as the optional theme argument to s.code():

// code(source, lang, theme, x, y)
s.code(read("src/main.rs"), "rust", "Solarized (dark)", 96, 160);
ThemeNotes
base16-ocean.dark (default)Balanced dark palette.
base16-eighties.darkWarmer dark.
base16-mocha.darkBrown-toned dark.
Solarized (dark)The classic Solarized dark.
base16-ocean.lightLight counterpart to the default.
Solarized (light)Solarized light.
InspiredGitHubGitHub-style light theme.
The same code under several highlight themes.
Files that made this video

The same Rust source rendered repeatedly with different syntax highlight themes.

codescene.toml
Project manifest: output size, theme, scene order, transitions, and shader names.
Open full file
scenes = ["scenes/intro.ccs", "scenes/terrain.ccs", "scenes/pathfind.ccs", "scenes/particles.ccs", "scenes/graph.ccs", "scenes/life.ccs", "scenes/boids.ccs", "scenes/tweens.ccs", "scenes/inserts.ccs", "scenes/edit.ccs", "scenes/edit_source.ccs", "scenes/editor_theme.ccs", "scenes/font_set.ccs", "scenes/remove_styles.ccs", "scenes/morph.ccs", "scenes/shapes.ccs", "scenes/effects.ccs"]
theme = "dark_documentary"

[episode]
title = "How Rivers Form"

[output]
fps = 30
width = 1280
height = 720

[shaders]
aurora = "shaders/aurora.wgsl"
glitch = "shaders/glitch.wgsl"
scanlines = "shaders/scanlines.wgsl"

[transition]
kind = "crossfade"
frames = 18

Code highlighting is powered by syntect, so any theme available to your build works. Run cinecode themes to see the exact list on your machine.

See also: Customize themes and fonts.

On this page