Skip to content

atsphinx/color-text

Repository files navigation

atsphinx-color-text

Text color changer for Sphinx.

Overview

This extension adds simple role to set style of text-color for HTML-based builders.

Getting started

pip install atsphinx-color-text
extensions = [
    "atsphinx.color_text",
]

Usage

Write your text with :color: role.

Your title
==========

sphinx-revealjs is presentation library for Pythonista using reStructuredText and :color:red:`Sphinx`.

When you generate HTML by sphinx-build -b html , "Sphinx" rendered as red color by CSS ( likely font-color: red; ).

Notes and ToDo

I will not implements all color-names, but plan "RGB code" mode and custom name mode.