CSS Theme Reference

A visual reference of CSS styling on the theme of this world.

This is the shiny page where you can go "ooooh, colours!" - my Style Manual goes into even more detail about how and where I use each of these elements! (For usage, please see my author's notes.)

Colours

The colours in my theme are distinct, have intentional uses, and have been applied throughout the world consistently. The colour combinations and font weights used in my theme currently meet or exceed level AA of the WCAG standards for accessible text.    
Light Normal Dark
Light --melior-ll --melior-l --melior-ld
Interaction --melior-il --melior-i --melior-id
Primary --melior-pl --melior-p --melior-pd
Secondary --melior-sl --melior-s --melior-sd
Dark --melior-dl --melior-d --melior-dd
 
  • Light colours are used for all text on dark coloured backgrounds and for high contrast headings.
  • Interaction colours are used for coloured headers and also links (all links are underlined). These are also used on :focus states so you can see what element you are about to interact with when you use tab or other methods to navigate a page.
  • Primary colours are used for things of importance like certain headings, icons, and buttons. I also use it to style my naughty #nsfw articles!
  • Secondary colours are used to inform, such as with comments, notifications, highlights, selections, and to note information or spoilers.
  • Dark colours are used for background elements of the page or used for text on light backgrounds.
 

Typography

Fonts
Marcellus
Used for large headings and titles.   IM Fell DW Pica
(regular and italic)

Used for some of the smaller headings and also used in quote boxes.   Nunito (regular, italic, and extra bold)
Used everywhere else and as the main body text.  
Headings
The visual hierarchy is about to get confusing on this article, but here's an example of how my article headings are styled:  
A corvidan parent playfully launches their young child into the sky, where they gleefully daydream of being able to fly like the birds high in the sky above them.
Corvidan parent and child by TJ Trewin

BBCode Heading One

Did you know that the World Anvil BBCode H1 is actually a H2 in HTML? Use your browser's inspect tool to see for yourself! This is because the developers of World Anvil wanted there to only be one HTML H1 on an article page, and that's the article title.

BBCode Heading Two

The reason for having only one HTML H1 tag is for good SEO purposes and it also provides clear visual hierarchy by having the largest header at the top of the page.

BBCode Heading Three

Smaller headings are great to use as subheadings of larger sections to talk about specific points in more detail. They also display differently depending on their order in an article's ToC.
BBCode Heading Four
I like to use the smallest headings if I ever need a splash of colour in my article.  


 
Inline Text Elements
These are examples of all of the inline text elements used in World Anvil BBCode - I made myself a handy style manual on how exactly I use these in my world. The first big letter there is a dropcap. It looks super fancy but I rarely find the right place to use it. Maybe I should start using it in the introduction paragraph of my articles? What do you think?  
This is an unordered list:
  • This is an example of bold text in a sentence.
  • Italic styling is excellent for emphasis in text.
    • Underlined text looks very serious.
      • I've made my strikethrough text look different: it functions as a hover-over spoiler for sensitive content!
        (I was inspired by Discord!)
And this is an ordered list:
  1. Superscript is floaty and really good for adding in references. [1]
  2. Subscript is smol and good for H2O.
  3. Small text is smaller than normal text.
  4. Redacted text is ██████████ top sekrit. No really. There's nothing there. It's been redacted. Or maybe burnt away?
  I have styled a few extras, such as this nifty highlight. This is mark. It's basically a highlighted section. Will I remember to use it? Who knows.   Speaking of highlights, have you tried highlighting some text on this page?
Yes, I did change the colour.  

Boxes

Quotes, Alouds, Indents, and Spoilers
This is an example of a blockquote and also a mockup link inside of the quote.
I bloody love CSS.
— This is the quote author
This is an example of an aloud box and also another mockup link to check the colours.
 
This is a mockup of a secret and also another mockup link to check the colours.
This is how I've styled my indented text. I prefer to use this as I don't use it for the intended purpose of formatting prose.
  And this text is an expandable spoiler:
Click to expand
This is an example of a spoiler and also a mockup link inside of it.


  1. ^This is the footnotes section and it's super useful for references.
[sup][anchor|fn1a][url:#fn1b][1][/url][/sup]
[ol][li][anchor|fn1b][url:#fn1a]^[/url]This is the footnotes section and it's super useful for references.[/li][/ol]

Heading One

Heading Two

Heading Three

Heading Four
Example of headings inside of the sidebar panel and also a mockup link.  

Inspirations

I took heavy inspiration from the following sources to create my own CSS:

Further reading

Style Manual
Generic article | Dec 1, 2022

A reference of tone, writing style, and visual hierarchy in this world.

World Organization
Generic article | Dec 1, 2022

A reference to the structure of this world's content.



Cover image: by TJ Trewin

Comments

Author's Notes

You're welcome to take some inspiration from this page and my CSS theme to create your own unique theme :D
(Please ask for my permission if you'd like to copy or replicate anything from my CSS directly.)   This page is for my own brief reference, and also to inspire my friends.
It does not have an example of every single WA feature here :)


Please Login in order to comment!
Jun 11, 2023 11:57

Oh, this is good! So well organized. I will use this as a guide/inspiration for my world!

Lucious
__________   Check out my World! The New Realm
  Don't forget to follow!
 
*Spelling mistakes, subject changes and other peculiar oddities curtesy of my ADD.
Powered by World Anvil