Skip to content

Repository files navigation

GoblinThemes

Custom CSS themes for the Goblin Notebook, offering aesthetic enhancements across backgrounds, fonts, and markdown containers.

Explore more: Goblin Notebook

Table of Contents


Introduction

GoblinThemes offers a range of CSS modifications for the Goblin Notebook, including background and font changes.

Updates

Stay tuned for new themes, hacks, and notes additions.

Contact and Suggestions

For changes or add-on suggestions, reach out via Goblin's Notebook Discord or DM @sliverspell.

Supporting GoblinThemes

To support my work, consider a donation through ko-fi

ThemeHacks

Enhancements for text, images, columns, etc. These can be added into the CSS settings, css, edit and add the links:

@import url('https://cdn.jsdelivr.net/gh/sliverspell/goblinthemes/theme-hacks/layout.css');
@import url('https://cdn.jsdelivr.net/gh/sliverspell/goblinthemes/theme-hacks/responsive.css');
@import url('https://cdn.jsdelivr.net/gh/sliverspell/goblinthemes/theme-hacks/container.css');

You can also add all hacks into the CSS of goblin notebook, and just refer to the in div styles, covered later in this tutorial. Make sure you read the read me text under inside the themehacks also:

Using Themes

Adding CSS to main CSS so you can edit

If you want your notebook to only have one theme all over and be able to edit to your liking, then go to: https://github.com/sliverspell/goblinthemes/tree/main/themes Press the theme you want, copy the css and paste this into your edit css in gobline notebook. In here. image

Themes can also be imported using stylesheets into the main CSS. Then you just copy the link under and paste into the main css. The downside of this is that you cant edit theme unless you know the css. If you know css, you can of course override it inside the main CSS.

<link rel="stylesheet" href="https://sliverspell.github.io/goblinthemes/themes/medieval.css">

you can then change to any theme I have in here by simply changing its name /themes/neon.css Like this

<link rel="stylesheet" href="https://sliverspell.github.io/goblinthemes/themes/neon.css">

This will instantly change the theme in your notebook.

Override a theme in any object

IF you have imported the whole css into main i dont recomend this method. But if you are using the main theme of Goblin notebook, you can override each object page by using a theme stylesheet inside that specific object. Then when you are on any page you can just add the snippet, and change to the theme you want. Using the link of the respective theme:

<link rel="stylesheet" href="https://sliverspell.github.io/goblinthemes/themes/medieval.css">

goblinthemes_demo1.mp4

Table Styles

A table style is styles that you can use to override the default table style of Goblin notebook.

These are the different styles I have so far:

medieval-table neon-table phb-table cyberpunk-table elegant-table grey-table horror-table steampunk-table space-table underwater-table enchanted-forest-table digital-cybernetics-table phbgreen-table newspaper-table desert-table mothership-table

Styles and instructions available at Table Styles on GitHub

How do add and use a tablestyle?

There are a few different ways to apply styles to tables. Both ways will make it easy to change style.

Import all styles globally

If you want to be able to style the tables just using

Or any other table, you can import this into the top of your main css edit:
<link rel="stylesheet" href="https://sliverspell.github.io/goblinthemes/tablestyles/tables.css">

If you want pr object/page

If you dont paste the link into main CSS, then you need to paste the stylesheet on the top of the object Add this link to the object.

goblinthemes_tabledemo.mp4

Which tables can I use?

First make sure you add the styles in one way or the other as stated above. You can either use HTML tables divs or markdown tables. There are different ways for both. If you paste this inside a page , you can simply change the name of the class to those tables that are available. Examples of this are.

to
or
or any other names that are on this github. Then you will see the style of the table changes automagically. ;)

(ps! in the futire I will also add snippets to "code" your own style the easy way. HTML TABLE EXAMPLE

<div>
  <table class="medieval-table">
    <tr>
      <th>Planet</th>
      <th>Distance from Earth</th>
      <th>Exploration Status</th>
      <th>Dice</th>
    </tr>
    <tr>
      <td>Earth</td>
      <td>54.6 million km</td>
      <td>Ongoing Missions</td>
      <td>1D12</th>
    </tr>
    <tr>
      <td>Jupiter</td>
      <td>588 million km</td>
      <td>Planned Missions</td>
      <td>1D12</th>
    </tr>
      <td>Mars</td>
      <td>588 million km</td>
      <td>Planned Missions</td>
      <td>1D12</th>
 <tr>
       </tr>

  </table>
</div>

MARKDWON TABLE EXAPMLE

<div class="digital-cybernetics-table">

##### The Concierge

| Level | Proficiency Bonus | Features             | Hermetic Geography |
|:-----:|:-----------------:|:---------------------|:------------------:|
|  1st  |        +2         | Seismological Alchemy|         2          |
|  2nd  |        +2         | Torque Interfacer    |         2          |
|  3rd  |        +2         | Divinatory Mineralogy|         3          |
|  4th  |        +2         | Genetic Banishing    |         3          |
|  5th  |        +3         | Biochemical Sorcery  |         3          |
|  6th  |        +3         | Genetic Banishing    |         4          |
|  7th  |        +3         | Divinatory Mineralogy|         4          |
|  8th  |        +3         | Civil Divination     |         4          |
|  9th  |        +4         | Gunpowder Torturer   |         4          |


</div>

Can I style my own tables?

Yes you can . First you need to go the css for tables: https://github.com/sliverspell/goblinthemes/blob/main/tablestyles/tables.css

Then find your table that you want to style. LEts say you like medieval, then copy this code into your main CSS. And edit the parameters to your liking. Be aware that if you override it this way and also use import stylesheet and chose medieval your style will override this one. But that is probably what you want. :)

/* Medieval Table Style */
.medieval-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Cardo', serif; /* Example font */
}
.medieval-table th,
.medieval-table td {
  padding: 10px;
  text-align: left;
}
/* Styling for header row */
.medieval-table th {
  background-color: #a48767; /* A medieval brown */
  color: #FFF; /* White text for contrast */
  border: 1px solid #a48767;
}
/* Styling for odd rows */
.medieval-table tr:nth-child(odd) {
  background-color: #f4e4bc; /* A lighter shade for odd rows */
}
/* Styling for even rows */
.medieval-table tr:nth-child(even) {
  background-color: #e8dfc9; /* A slightly darker shade for even rows */
}

Table generator

I have also created a table generator, where you can generate html and markdown tables. Here you can choose number of rows and columns. You can use it with or without my css styles for tables. Simply use the dropdown, choose theme, then press generate. This will generate a table with the correct div style for that theme in both HTML and Markdown. Copy the code using copy html or copy markdown.

Its also possible to choose your own colors. Press include styling. Then choose your colors. I have choosen to put styling into the HTML tables so that you also can override each row individually.

You can find the Goblin table generator here: https://sliverspell.github.io/goblinthemes/tablegenerator.html

Here is a short video demonstrating how it works

tablegenerator.mp4

Note Styles

Add styles to your notes: Add this on TOP in ANY note:

<link rel="stylesheet" href="https://sliverspell.github.io/goblinthemes/notestyles/notes.css">

Or use CDN

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/sliverspell/goblinthemes@main/notestyles/notes.css

!NOTE This can sometimes take some time to update due to how CDN delivery works. So sometimes when things are updated it can take a few minutes, but sometimes even hours, or up to a day. This depends on the worlds CDN servers.

There is also a few other tricks you can do here. Read the notes behind the code. Add shit code as an example:

.note2 {
    padding: 40px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    background-image: url('https://i.pinimg.com/originals/11/b2/c0/11b2c0d0d3618b138dca11b32e40999d.png');
    background-color: transparent; /* Placeholder for no initial background color */
    color: rgba(0, 0, 0, 0); /* Fully transparent black as a placeholder */
    border-radius: 20px;
    border: 1px solid transparent;
    border-color: black; /* Keeping border color as black */
}

goblinthemes_note_demo.mp4

Description of Border Styles

CSS borders have several style properties that determine the look of the border drawn around an element. Here are some of the most common border-style values:

solid: A single solid line. dotted: A series of dots. dashed: A series of short dashes. double: Two solid lines. The sum of the two lines and the space between them equals the border-width value. groove: Appears 3D, as though it were carved into the page (the effect depends on the border-color value). ridge: The opposite of groove, giving the appearance of a 3D ridge around the page. inset: Makes the box appear embedded in the page. outset: The opposite of inset, making the box stand out from the page. none: No border is drawn (this will override any border-width or border-color values). hidden: Similar to none, but specifically used in table borders.

Snippets

Inside goblin notebook you can add snippets. Snippets are markdwon or html code that can be inserted into a notebook. So if you have read all the above, you can make snippets for themes, tables, and notes. Example: If you make 1 snippet for each and call it, paste in the link into the snippet and save. Style theme:

<link rel="stylesheet" href="https://sliverspell.github.io/goblinthemes/themes/medieval.css"> 

change then /medieval.css to any other theme Style notes: look above for an example of code, then just change .note2. to .note3 and so on Style tables: see examples in the markdown table and html table above, and adjust as wanted

FAQ

Regular updates and fixes are applied to all tables and styles.

About

This is my CSS themes for the awesome Goblin notebook

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages