Skip to content

Commit

Permalink
issue #6 & link colors
Browse files Browse the repository at this point in the history
  • Loading branch information
douden committed Dec 27, 2024
1 parent 47c1e7b commit 691f2e4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ This extension applies styling changes, being
- buttons,
- badges,
- custom components,
- $\LaTeX$
- $\LaTeX$,
- the primary and secondary color of the book (mainly used for typesetting links).
- particular icons for:
- proofs (e.g. theorem, axiom, lemma, corollary, etc.),
- exercises,
Expand Down Expand Up @@ -54,9 +55,23 @@ In your `_config.yml` file, add the extension to the list of Sphinx extra extens
```
sphinx:
extra_extensions:
.
.
.
- sphinx_tudelft_theme
.
.
.
```

The following Sphinx extra extensions (if used) must be added _before_ this extension:

- `sphinx_proof`
- `sphinx_exercise`
- `teachbooks_sphinx_grasple`

If this is forgotten, the CSS of this extension cannot be applied correctly.

## Usage

By following the steps above, the theme will be applied automatically. To see the examples of usage visit the [TeachBooks manual](https://teachbooks.io/manual/intro.html).
Expand Down
5 changes: 5 additions & 0 deletions src/sphinx_tudelft_theme/static/tudelft_style.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@
--darkBlue-min: #c1e3ff10;
--darkBlue-mid: #c1e3ff25;
}

html {
--pst-color-primary: var(--cyan) !important;
--pst-color-secondary: var(--green) !important;
}

/* BLOCK COMPONENTS (admonitions, proofs, exercises) */

Expand Down

0 comments on commit 691f2e4

Please sign in to comment.