Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Borealis Theme #21

Draft
wants to merge 23 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions data/borealis/Custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
:root {
--northern-lights: url("https://autumn.revolt.chat/attachments/J6WwVLghtyiobNknPPVYoVhQNEJ8AtGqCftu5-uvAa/image.png");

--northern-lights-darkened: linear-gradient(rgba(0, 0, 0, 0.65),rgba(0, 0, 0, 0.65)), var(--northern-lights);

--accent-hue: 165;

--accent-light: hsl(var(--accent-hue), 95%, 55%);
--accent-dark: hsl(var(--accent-hue), 100%, 15%);
--standard: #1e1e1e;
}

/* Sidebar */
#app > * {
background: linear-gradient(0deg, black 0%, var(--accent-dark) 100%);
}

/* Chat background */
.MessageArea__Area-sc-1q4cka6-0 {
/* Uses gradient to darken image */
background-image: var(--northern-lights-darkened);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}

/* Channel description and some other stuff */
:is(.fCZYAb > *, .fCZYAb) {
background: linear-gradient(160deg, black 0%, var(--accent-dark) 100%);
}

/* Friend list */
:is(.gSMWE > *, .gSMWE) {
background: linear-gradient(0deg, var(--standard) 0%, var(--accent-dark) 100%);
}
/* Friend list catagories */
:is(.dbiFXv > *, .dbiFXv, .dxJENu) {
/* background: linear-gradient(0deg, var(--standard) 0%, var(--accent-dark) 100%); */
/* Removes background */
background: none;
}

/* Settings sidebar */
._settings_1x72n_34 > ._sidebar_1x72n_40 {
background: black;
background-image: var(--northern-lights-darkened);
background-repeat: no-repeat;
background-size: cover;
background-position: top;
}

:is(
div.drwAci,
/* "Looking to customize…" button */
.cTfrSn,
/* Delete Account Button */
.iRhROc,
/* "Edit Profile" Button */
.sc-bdfBQB,
/* Text Blocks, except for the message box */
.sc-cxFLGX > textarea:not(#message)
) {
background: hsla(var(--accent-hue), 100%, 50%, 0.05);
border: none;
}

/* Make logout button bold… */
div[class^='_logOut_'], div[class*=' _logOut_'] {
font-weight: bolder;
}
/* …and the SVG icon too */
:is(div[class^='_logOut_'], div[class*=' _logOut_']) > div > svg > path {
font-weight: bolder;
stroke-width: 10px;
}
/* Also make donate button grey because it's not needed for daily use */
a[href="https://insrt.uk/donate"] > * {
filter: grayscale(100%);
}
/* Required because hover filter was replaced with CSS above */
:is(a[href="https://insrt.uk/donate"] > *:hover, ._donate_2mw2x_124:hover) {
filter: grayscale(100%) brightness(2);
}

/* Hides scrollbar from channel list */
div[class^='ServerSidebar__ServerBase'] > *, div[class*=' ServerSidebar__ServerBase'] > * {
-ms-overflow-style: none; /* for Internet Explorer, Edge */
scrollbar-width: none; /* for Firefox */
overflow-y: scroll;
}

/* User Selected Backfill */
/* TODO current CSS locator doesn't work */
.sc-lcuiOb > div > div > svg > * {
/* background: linear-gradient(160deg, black 0%, var(--accent-dark) 100%); */
}
51 changes: 51 additions & 0 deletions data/borealis/Preset.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# URL friendly name
slug = "borealis"
# Display name
name = "Borealis"
# Authors' name
creator = "Qaz Cetelic"
# The commit this preset was built against
# commit = ""
# Preset description
description = "Dark green theme inspired by the northern lights"
version = "1.0.0"

[variables]
light = false
accent = "#1ABC9C"
background = "#191919"
foreground = "#F6F6F6"

block = "hsla(165, 100%, 10%, 0.2)"
message-box = "linear-gradient(170deg, black 0%, var(--accent-dark) 100%)"
mention = "rgba(251, 255, 0, 0.06)"

success = "hsl(125, 70%, 30%)"
warning = "hsl(30, 100%, 40%)"
error = "hsl(360, 80%, 30%)"

hover = "hsla(0, 0%, 0%, 0.3)"

[variables.scrollbar]
thumb = "#15967d"
track = "hsla(165, 100%, 33%, 0.05)"

[variables.primary]
background = "hsla(165, 10%, 10%, 0.8)"
header = "hsla(165, 100%, 33%, 0.2)"

[variables.secondary]
background = "hsla(165, 10%, 10%, 0.8)"
foreground = "#C8C8C8"
header = "hsla(165, 100%, 33%, 0.2)"

[variables.tertiary]
background = "hsla(165, 100%, 33%, 0.2)"
foreground = "hsla(0, 0%, 80%, 0.8)"

[variables.status]
online = "hsl(150, 80%, 20%)"
away = "hsl(40, 100%, 30%)"
busy = "hsl(0, 90%, 30%)"
streaming = "hsl(250, 60%, 60%)"
invisible = "hsl(0, 0%, 60%)"