An open API service indexing awesome lists of open source software.

https://github.com/devidw/hugo-theme-component-asciidoctor-skin

Asciidoctor skin styles designed for usage inside Hugo Themes
https://github.com/devidw/hugo-theme-component-asciidoctor-skin

asciidoctor asciidoctor-theme dark dark-mode dark-theme hugo hugo-theme-component sass sass-files skin static style

Last synced: 3 months ago
JSON representation

Asciidoctor skin styles designed for usage inside Hugo Themes

Awesome Lists containing this project

README

        

= Hugo Theme Component: Asciidoctor Skin

Adds a fully styled Asciidoctor Stylesheet to your Hugo site so all your pages will look amazing.

Designed to be included as a theme component to your Hugo site, so code is separated nicely and you don't have to worry so much about update related problems.

== Features
* Dark and Light styles
* Customisable in many ways
* Great predesign for
** Typography
** Content elments
** Forms
** ...

== Installation

=== 1. Clone this theme component to your project's `themes` directory
[source,cmd]
----
git submodule add https://github.com/devidw/hugo-theme-component-asciidoctor-skin ./themes/hugo-theme-component-asciidoctor-skin
----

=== 2. Add this theme component to your list of themes inside your project's `config` file (either `.yaml`, `.toml` or `.json`)

.`config.yaml`
[source,yaml]
----
theme:
- "…"
- "hugo-theme-component-asciidoctor-skin"
- "…"
----

.`config.toml`
[source,toml]
----
theme = ["…", "hugo-theme-component-asciidoctor-skin", "…"]
----

.`config.json`
[source,json]
----
"theme": ["…", "hugo-theme-component-asciidoctor-skin", "…"]
----

=== 3. Import the stylesheet

The styles are located inside the `/assets/sass/vendor/devidw/asciidoctor-skin` directory in the theme component and are available inside that directory in your project root and other themes and theme components at the same place because of the way Hugo merges all its sources into one site when building.

// When you are writing your styles inside a subfolder of `assets` like `/assets/sass`, `/assets/scss`, `/assets/css` or `/assets/styles` you can import like so:

.In SASS
[source,sass]
----
/* /assets/sass/_custom.sass */
@import ./vendor/devidw/asciidoctor-skin/import
----

.In SCSS
[source,scss]
----
/* /assets/sass/_custom.scss */
@import './vendor/devidw/asciidoctor-skin/import';
----

////
.In CSS
[source, css]
----
@import url('/asciidoctor-skin/import.min.css');
----
////

== Personalisation
=== With `SASS` or `SCSS`
Have a look into `_variables.scss` to get an idea of what you can change, also check out the files inside `mixins` and `functions` to see the available mixins and functions you can use.

=== With `CSS`
Once you added the stylesheet to your document you can see a list of all CSS custom properties in your browsers dev tools when you inspect the `html` node.

// Include the partial `vendor/devidw/asciidoctor-skin/include.html` in the `` section of your theme's template files.

// [source,html]
// ----
//

//
//

// {{ if templates.Exists "partials/vendor/devidw/asciidoctor-skin/include.html" }}
// {{ partial "vendor/devidw/asciidoctor-skin/include.html" . }}
// {{ end }}

//
//

//
// ----