Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

1.1KB

+++ title = “Custom Styles” description = “Modify theme styles for complete design control.” categories = [“customizing”] tags = [“color”, “style”, “branding”] features = [“code highlighter”, “snippets”] +++

After Dark uses {{< external href=“https://gohugo.io/hugo-pipes/” text=“Hugo Pipes” />}} to enable customization of theme styles using CSS. Left unmodified the following custom styles are provided by default:

{{< highlight css “linenos=inline” >}} {{< include “themes/after-dark/assets/css/custom.css” >}} {{< /highlight >}}

Adjust them from custom.css in the site assets/css directory:

├── archetypes
├── assets
│   └── css
│       └── custom.css
├── content

If the file doesn’t exist yet, copy it from the theme default:

$ mkdir -p assets/css
$ cp themes/after-dark/assets/css/custom.css assets/css

Then open the file and begin editing, or remove it to restore default styles.

{{< hackcss-alert type=“info” >}} Tip: Choose from thousands of predefined color palettes on {{< external “https://coolors.co/” />}}. {{< /hackcss-alert >}}