Skip to content
Open
Changes from all commits
Commits
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
36 changes: 32 additions & 4 deletions src/styles/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Add styles or override variables from the theme here.

--gin-blue: hsl(215, 69%, 52%);

--sl-hue-blue: 215;
--sl-hue-blue: 215;
--sl-color-blue-low: hsl(var(--sl-hue-blue), 54%, 20%);
--sl-color-blue: hsl(var(--sl-hue-blue), 100%, 60%);
--sl-color-blue-high: hsl(var(--sl-hue-blue), 100%, 87%);

--sl-color-accent-low: hsl(204, 54%, 20%);
--sl-color-accent: hsl(204, 100%, 60%);
--sl-color-accent-high: hsl(204, 100%, 85%);
Expand All @@ -26,12 +26,40 @@ Add styles or override variables from the theme here.
:root[data-theme='light'],
[data-theme='light'] ::backdrop {
/* Colours (light mode) */

--sl-color-blue-high: hsl(var(--sl-hue-blue), 80%, 30%);
--sl-color-blue: hsl(var(--sl-hue-blue), 90%, 60%);
--sl-color-blue-low: hsl(var(--sl-hue-blue), 88%, 90%);

--sl-color-accent-high: hsl(215, 80%, 30%);
--sl-color-accent: hsl(215, 90%, 60%);
--sl-color-accent-low: hsl(215, 88%, 90%);
}
}

/* Fix writing direction when the language is set to arabic and persian */
/* The fix should be applied to all RTL languages, if more to be added in the future */
html[lang='ar'] *,
html[lang='fa'] * {
direction: rtl;

pre,
.code,
.expressive-code,
.expressive-code *,
code span {
direction: ltr;
text-align: left;
}

kbd {
flex-direction: row-reverse;
}

a[rel="next"] svg {
rotate: 180deg;
}

a[rel="prev"] svg {
rotate: 180deg;
}
}