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

docs: Update branding colors in docs site #1544

Merged
merged 10 commits into from
Mar 27, 2023
Merged
Show file tree
Hide file tree
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
25 changes: 25 additions & 0 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@font-face {
font-family: 'Hanken Grotesk';
src: url('../fonts/HankenGrotesk-Regular.woff2') format('woff2'),
url('../fonts/HankenGrotesk-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Plus Jakarta Sans';
src: url('../fonts/PlusJakartaSans-Regular.woff2') format('woff2'),
url('../fonts/PlusJakartaSans-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}

h1 {
color: var(--color-brand-content);
}

h1, h2, h3, h4, h5, h6 {
font-family: "Plus Jakarta Sans";
}
Binary file added docs/_static/fonts/HankenGrotesk-Regular.woff
Binary file not shown.
Binary file added docs/_static/fonts/HankenGrotesk-Regular.woff2
Binary file not shown.
Binary file added docs/_static/fonts/PlusJakartaSans-Regular.woff
Binary file not shown.
Binary file not shown.
Binary file added docs/_static/img/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/_static/img/melty-apple-touch-icon.png
Binary file not shown.
Binary file removed docs/_static/img/melty-favicon-16x16.png
Binary file not shown.
Binary file removed docs/_static/img/melty-favicon-32x32.png
Binary file not shown.
6 changes: 3 additions & 3 deletions docs/_templates/base.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{% extends '!base.html' %}
{% block extrahead %}
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans&amp;display=swap">
<link rel="apple-touch-icon" sizes="180x180" href="{{ pathto('_static/img/melty-apple-touch-icon.png', 1) }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ pathto('_static/img/melty-favicon-32x32.png', 1) }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ pathto('_static/img/melty-favicon-16x16.png', 1) }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{ pathto('_static/img/favicon.png', 1) }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ pathto('_static/img/favicon.png', 1) }}">
<link rel="icon" type="image/png" sizes="192x192" href="{{ pathto('_static/img/favicon.png', 1) }}">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=GTM-WHJMBX2"></script>
<script>
Expand Down
41 changes: 31 additions & 10 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,22 +71,39 @@
"sidebar_hide_name": True,
# branding
"light_css_variables": {
"color-brand-primary": "#3438bf",
"color-brand-content": "#3438bf",
"font-stack": "Hanken Grotesk,-apple-system,Helvetica,sans-serif",
"color-foreground-primary": "#080216",
"color-background-primary": "#E9E5FB",
"color-link": "#f963bc",
"color-link-underline": "transparent",
"color-link--hover": "#f963bc",
"color-link-underline--hover": "#f963bc",
# brand
"color-brand-primary": "#311772",
"color-brand-content": "#311772",
# sidebar
"color-sidebar-background": "#3438bf",
"color-sidebar-item-background--hover": "#3438bf",
"color-sidebar-background": "#311772",
"color-sidebar-search-background": "#E9E5FB",
"color-sidebar-item-background--hover": "#311772",
"color-sidebar-item-expander-background--hover": "#311772",
"color-sidebar-brand-text": "white",
"color-sidebar-caption-text": "white",
"color-sidebar-caption-text": "rgba(255, 255, 255, 0.7)",
"color-sidebar-link-text": "white",
"color-sidebar-link-text--top-level": "white",
},
"dark_css_variables": {
"color-brand-primary": "#3438bf",
"color-brand-content": "#3438bf",
# siderbar
"color-sidebar-background": "#3438bf",
"color-sidebar-item-background--hover": "#3438bf",
"color-background-primary": "#080216",
"color-link": "#18c3fa",
"color-link-underline": "transparent",
"color-link--hover": "#18c3fa",
"color-link-underline--hover": "#18c3fa",
# brand
"color-brand-primary": "#311772",
"color-brand-content": "rgba(255, 255, 255, 0.7)",
# sidebar
"color-sidebar-background": "#311772",
"color-sidebar-search-background": "#080216",
"color-sidebar-item-background--hover": "#311772",
},
}

Expand All @@ -95,6 +112,10 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]

html_css_files = [
"css/custom.css",
]

myst_heading_anchors = 3

redirects = {
Expand Down