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"| Theme | Look |
|---|---|
dark_documentary (default) | Navy background, gold accents β the classic documentary look. |
hacker_terminal | Green-on-black terminal. |
scientific | Clean, light, neutral. |
blueprint | Blue technical-drawing palette. |
modern_minimal | Restrained and bright. |
retro_computer | Amber CRT. |
ancient_manuscript | Parchment 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);| Theme | Notes |
|---|---|
base16-ocean.dark (default) | Balanced dark palette. |
base16-eighties.dark | Warmer dark. |
base16-mocha.dark | Brown-toned dark. |
Solarized (dark) | The classic Solarized dark. |
base16-ocean.light | Light counterpart to the default. |
Solarized (light) | Solarized light. |
InspiredGitHub | GitHub-style light theme. |
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.
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 = 18Code 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.