You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.2 KiB

4 years ago
  1. +++
  2. title = "Custom Styles"
  3. description = "Modify theme styles for complete design control."
  4. categories = ["customizing"]
  5. tags = ["color", "style", "branding"]
  6. features = ["code highlighter", "snippets"]
  7. [[copyright]]
  8. owner = "Josh Habdas"
  9. date = "2019"
  10. license = "agpl-3.0-or-later"
  11. +++
  12. 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:
  13. {{< highlight css "linenos=inline" >}}
  14. {{< include "themes/after-dark/assets/css/custom.css" >}}
  15. {{< /highlight >}}
  16. Adjust them from `custom.css` in the site `assets/css` directory:
  17. ```
  18. ├── archetypes
  19. ├── assets
  20. │   └── css
  21. │   └── custom.css
  22. ├── content
  23. ```
  24. If the file doesn't exist yet, copy it from the theme default:
  25. ```sh
  26. $ mkdir -p assets/css
  27. $ cp themes/after-dark/assets/css/custom.css assets/css
  28. ```
  29. Then open the file and begin editing, or remove it to restore default styles.
  30. {{< hackcss-alert type="info" >}}
  31. <strong>Tip:</strong> Choose from thousands of predefined color palettes on {{< external "https://coolors.co/" />}}.
  32. {{< /hackcss-alert >}}