Almost helpful guide on how to style lanaboards through Stylus
featuring orion i guess
DISCLAIMER from the creator!
This is not a full propper guide on how to use Stylus
This was made purely for fun without any mean to violate any term of service or with malicious intent.
Everything you do it's not under my responsability, you're fully responsable of what you do.
Basic knowledge
Stylus in an open source project compatible with chrome and firefox based web browser, you can get it from here. Not to be confused with Stylish, which is another extension with the same purpose but it was caught plenty of times tracking your data and web activity, not cute.
You'll need basic knowledge in CSS, since it's what most of the customization relies on.
Page inspector / developer tools are your best friend during this process
General knowledge into using code editors or syntax highlight
Useful places to get more info and help
Stylus UserCSS explanation - Stylus' editor - general CSS guide - (On the sidebar you have all the different CSS "Rules" like CSS Outline, ect. the "Rules" are what define the look of a an item/part of the site.)
How Stylus works (made easy)
Imagine a website's look is like a house with a specific color on the walls. CSS is the paint color chosen by the owner.
Stylus is like bringing your own can of paint and painting over the original color. You get to see the house with your new color, but for everyone else, the original color is still there.
Basically, Stylus lets you change a website's design just for your own view, overriding its original look.
The general structure of lanaboards CSS file
You can find different CSS files when loading up lanaboards, i will be focusing on the "main" css file -bold assumption cause i'm not entirely sure-
Open developer tools / page inspector - > Network - > filter the files by CSS / .css format - > chose the file that starts with something like this
You can pretty much ingore everything that's is a number with px (pixels) since they're related to mostly sizing. Most things in :root{...} are stored as "variables"
Colors are also values stored as variables, makes easier for them to be to be used across the whole site and can even be used in operations
Colors are mainly stored as RGB values --variable-name: RRR, GGG, BBB;
-- (aka: red green and blue, each number can go from 0 to a max 255)
Rarely they're stored in a HEX value --variable-name: #FFF5F5;
example from the CSS file of the Ultraviolence theme
You can easely change the colors of any part of the site by just going through the list and changing the RGB values to your custom ones!
Any basic color picker will be able to output you a RGB value like this one as well as HEX, HSL, CMYK...
Note that usually, any modern color picker will also include a 4th value when copy-pasting the string, it's the alpha value, which is the transparency of the color. Lanaboards doesn't play nicely with transparencies, so avoid using them.
When editing the colors in Stylus, remember to keep them in
How to identify what you want to change more easely?
The page inspector / developer tools. They look scarry and confusing but for the most part they're just confusing
You open the developer tools and click this button in the left corner
This tool will let you hoove over any part of the website telling you all the infos about it, as well as styling
You can also click on the part you're interested in changing, in the dev tools it will redirect you to the related part and under the tab "Styling" you'll be able to see the CSS behind that one part
From what you can currently see, you can make your own deductions and tell which part is colored by what, in this case the variable --theme-widget_title_font is used in :root{...} to define the color of the text of the title while the color for the background is defined by --theme-widget_title_bar.
Knowing this information now, you can move over to Stylus and change the colors freely, for example here i changed it to a bright blue
What if you want to change the look of the pictures on the top?
That part was tricky, it took me quite a while to figure it out but here's the code snippets i made that you can freely use as you want
Change the wide pic on top of lanaboards
Change the logo/LANABOARDS image text
Change the background image
Remember to upload your replacements/pictures to an image upload site and when copying/pasting the link it should be ending in either an png or jpg format
THE END.
not rlly but i'm tired and i don't really know much else, for any deeper edits you should learn css propperly okayyy