Themes

Manta themes are bases on ASCII color codes that you might know from customizing your terminal. The themes basically defines color values for different for a few predefined colors.

Catppuccin

Note

Catppuccin color themes define additional colors like rosewater and lavender.

Catppuccin Frappe

Example: MyThemedSceneCatppuccinFrappe

_images/MyThemedSceneCatppuccinFrappe-1.png

Code: MyThemedSceneCatppuccinFrappe

from manta.color_theme.catppucin.catppuccin_frappe import CatppuccinFrappeTheme
from manta.slide_templates.minimal.minimal_slide_template import MinimalSlideTemplate


class MyThemedSceneCatppuccinFrappe(CatppuccinFrappeTheme, MinimalSlideTemplate):

    def construct(self):
        self.play(
            self.set_title_row(
                title="Catppuccin Frappe",
            )
        )

        self.add(
            self.color_theme_smoke_test_group()
        )


if __name__ == '__main__':
    MyCatppuccinFrappeScene.show_last_frame()

Catppuccin Latte

Example: MyCatppuccinLatteScene

_images/MyCatppuccinLatteScene-1.png

Code: MyCatppuccinLatteScene

from manta.color_theme.catppucin.catppuccin_latte import CatppuccinLatteTheme
from manta.slide_templates.minimal.minimal_slide_template import MinimalSlideTemplate

class MyCatppuccinLatteScene(CatppuccinLatteTheme, MinimalSlideTemplate):

    def construct(self):
        self.play(
            self.set_title_row(
                title="Catppuccin Latte",
            )
        )

        self.add(
            self.color_theme_smoke_test_group()
        )


if __name__ == '__main__':
    MyCatppuccinLatteScene.show_last_frame()

Catppuccin Macchiato

Example: MyCatppuccinMacchiatoScene

_images/MyCatppuccinMacchiatoScene-1.png

Code: MyCatppuccinMacchiatoScene

from manta.color_theme.catppucin.catppuccin_macchiato import CatppuccinMacchiatoTheme
from manta.slide_templates.minimal.minimal_slide_template import MinimalSlideTemplate

class MyCatppuccinMacchiatoScene(CatppuccinMacchiatoTheme, MinimalSlideTemplate):

    def construct(self):
        self.play(
            self.set_title_row(
                title="Catppuccin Macchiato",
            )
        )

        self.add(
            self.color_theme_smoke_test_group()
        )


if __name__ == '__main__':
    MyCatppuccinMacchiatoScene.show_last_frame()

Catppuccin Mocha

Note

Catppuccin Mocha is the default theme, so there is no need to import it.

Example: MyCatppuccinMochaScene

_images/MyCatppuccinMochaScene-1.png

Code: MyCatppuccinMochaScene

from manta.slide_templates.minimal.minimal_slide_template import MinimalSlideTemplate


# Catppuccin Mocha is the default theme, so we don't need to import it.
class MyCatppuccinMochaScene(MinimalSlideTemplate):

    def construct(self):
        self.play(
            self.set_title_row(
                title="Catppuccin Mocha",
            )
        )

        self.add(
            self.color_theme_smoke_test_group()
        )


if __name__ == '__main__':
    MyCatppuccinMochaScene.show_last_frame()

Tokyo Night

Warning

The Tokyo Night theme was generated by GitHub Copilot. It was prompted generate similar structured coniguration classes as the Catppuccin theme. Therefore the Tokyo Night theme colors might be a bit off.

The resom for this is that I could not find a color scheme for Tokyo Night colors in its github repo on the first glance and decided to not spend to much time on this.

If you looked up the colors and want to contribute them, feel free to open a pull request or a issue with a link to the correct color values. Thanks :)

Example: MyTokyoNightScene

_images/MyTokyoNightScene-1.png

Code: MyTokyoNightScene

from manta.color_theme.tokyo_night.tokyo_night import TokyoNight
from manta.slide_templates.minimal.minimal_slide_template import MinimalSlideTemplate


class MyTokyoNightScene(TokyoNight, MinimalSlideTemplate):

    def construct(self):
        self.play(
            self.set_title_row(
                title="Tokyo Night",
            )
        )

        self.add(
            self.color_theme_smoke_test_group()
        )


if __name__ == '__main__':
    MyTokyoNightScene.show_last_frame()

Tokyo Night Day

Example: MyTokyoNightDayScene

_images/MyTokyoNightDayScene-1.png

Code: MyTokyoNightDayScene

from manta.color_theme.tokyo_night.tokyo_night_day import TokyoNightDay
from manta.slide_templates.minimal.minimal_slide_template import MinimalSlideTemplate

class MyTokyoNightDayScene(TokyoNightDay, MinimalSlideTemplate):

    def construct(self):
        self.play(
            self.set_title_row(
                title="Tokyo Night Day",
            )
        )

        self.add(
            self.color_theme_smoke_test_group()
        )

if __name__ == '__main__':
    MyTokyoNightDayScene.show_last_frame()

Tokyo Night Moon

Example: MyTokyoNightMoonScene

_images/MyTokyoNightMoonScene-1.png

Code: MyTokyoNightMoonScene

from manta.color_theme.tokyo_night.tokyo_night_moon import TokyoNightMoon
from manta.slide_templates.minimal.minimal_slide_template import MinimalSlideTemplate

class MyTokyoNightMoonScene(TokyoNightMoon, MinimalSlideTemplate):

    def construct(self):
        self.play(
            self.set_title_row(
                title="Tokyo Night Moon",
            )
        )

        self.add(
            self.color_theme_smoke_test_group()
        )

if __name__ == '__main__':
    MyTokyoNightMoonScene.show_last_frame()

Tokyo Night Storm

Example: MyTokyoNightStormScene

_images/MyTokyoNightStormScene-1.png

Code: MyTokyoNightStormScene

from manta.color_theme.tokyo_night.tokyo_night_storm import TokyoNightStorm
from manta.slide_templates.minimal.minimal_slide_template import MinimalSlideTemplate

class MyTokyoNightStormScene(TokyoNightStorm, MinimalSlideTemplate):

    def construct(self):
        self.play(
            self.set_title_row(
                title="Tokyo Night Storm",
            )
        )

        self.add(
            self.color_theme_smoke_test_group()
        )

if __name__ == '__main__':
    MyTokyoNightStormScene.show_last_frame()

Custom Themes

Tip

This the following website allows to export the color values of a lot of popular themes: https://windowsterminalthemes.dev/ When clicken on ‘Get Theme’ the color values in jason format are copied to your clipboard. The MyCustomCyberdyneTheme class belowwas generated by GitHub Copilot, by prompting it to will all values defined in the ColorThemeABC class with the provided color values.

Example: MyCustomThemeScene

_images/MyCustomThemeScene-1.png

Code: MyCustomThemeScene

from manta.slide_templates.minimal.minimal_slide_template import MinimalSlideTemplate

from manta.color_theme.color_theme_ABC import ColorThemeABC


# useful link: https://windowsterminalthemes.dev/
class MyCustomCyberdyneTheme(ColorThemeABC):
    background_color: str = "#151144"
    background_color_bright: str = "#2e2e2e"

    font_color: str = "#00ff92"
    font_color_secondary: str = "#00ff9c"

    black: str = "#080808"
    black_bright: str = "#2e2e2e"

    red: str = "#ff8373"
    red_bright: str = "#ffc4be"

    green: str = "#00c172"
    green_bright: str = "#d6fcba"

    yellow: str = "#d2a700"
    yellow_bright: str = "#fffed5"

    blue: str = "#0071cf"
    blue_bright: str = "#c2e3ff"

    magenta: str = "#ff90fe"
    magenta_bright: str = "#ffb2fe"

    cyan: str = "#6bffdd"
    cyan_bright: str = "#e6e7fe"

    white: str = "#f1f1f1"
    white_bright: str = "#ffffff"


class MyCustomThemeScene(MyCustomCyberdyneTheme, MinimalSlideTemplate):

    def construct(self):
        self.play(
            self.set_title_row(
                title="Custom Theme",
                seperator=": ",
                subtitle="Cyberdyne",
            )
        )

        self.add(
            self.color_theme_smoke_test_group()
        )


if __name__ == '__main__':
    MyCustomThemeScene.show_last_frame()