Skip to content
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
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Deploy to GitHub Pages
on:
push:
branches: [main]
pull_request:
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -34,6 +35,7 @@ jobs:

deploy:
needs: build
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
environment:
name: github-pages
Expand Down
30 changes: 30 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
},
"dependencies": {
"@astrojs/starlight": "^0.37.6",
"@fontsource/ibm-plex-sans": "^5.2.8",
"@fontsource/iosevka": "^5.2.5",
"@fontsource/iosevka-aile": "^5.2.5",
"astro": "^5.10.0"
}
}
25 changes: 8 additions & 17 deletions src/layouts/Base.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import '../styles/global.css';
import iosevkaAile600Url from '@fontsource/iosevka-aile/files/iosevka-aile-latin-600-normal.woff2?url';

interface Props {
title?: string;
Expand All @@ -13,7 +14,7 @@ const navLinks = [
{ label: "Status", href: "https://status.wezel.build" },
];

const themes = ["warm", "slate", "light"] as const;
const themes = ["dark", "light"] as const;
---

<!doctype html>
Expand All @@ -23,24 +24,14 @@ const themes = ["warm", "slate", "light"] as const;
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Wezel is an open-source build observability suite that catches regressions before they slow your team down." />
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%23b08868'/%3E%3Ctext x='50%25' y='54%25' dominant-baseline='middle' text-anchor='middle' font-family='monospace' font-weight='bold' font-size='18' fill='%23141210'%3Ew%3C/text%3E%3C/svg%3E" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@fontsource/iosevka@5/400.css" />
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@fontsource/iosevka@5/500.css" />
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@fontsource/iosevka@5/600.css" />
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@fontsource/iosevka@5/700.css" />
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@fontsource/iosevka-aile@5/400.css" />
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@fontsource/iosevka-aile@5/500.css" />
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@fontsource/iosevka-aile@5/600.css" />
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@fontsource/iosevka-aile@5/700.css" />
<link rel="preload" href={iosevkaAile600Url} as="font" type="font/woff2" crossorigin />
<title>{title}</title>
</head>
<body>
<script is:inline>
(function() {
var t = localStorage.getItem('theme') || 'warm';
var t = localStorage.getItem('theme') || 'dark';
if (t === 'slate') { t = 'dark'; localStorage.setItem('theme', t); }
document.documentElement.setAttribute('data-theme', t);
})();
</script>
Expand All @@ -56,7 +47,7 @@ const themes = ["warm", "slate", "light"] as const;
<a href={link.href} class="nav-link">{link.label}</a>
))}
<button id="theme-toggle" class="theme-btn" type="button" aria-label="Switch theme">
warm
dark
</button>
<a href="https://github.com/wezel-build/wezel" target="_blank" rel="noopener" class="btn btn-sm btn-secondary">
GitHub
Expand All @@ -66,9 +57,9 @@ const themes = ["warm", "slate", "light"] as const;
</nav>
<script is:inline>
(function() {
var order = ['warm', 'slate', 'light'];
var order = ['dark', 'light'];
var btn = document.getElementById('theme-toggle');
var current = localStorage.getItem('theme') || 'warm';
var current = localStorage.getItem('theme') || 'dark';
btn.textContent = current;
btn.addEventListener('click', function() {
var i = order.indexOf(current);
Expand Down
83 changes: 37 additions & 46 deletions src/styles/global.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
@import '@fontsource/ibm-plex-sans/latin-400.css';
@import '@fontsource/ibm-plex-sans/latin-500.css';
@import '@fontsource/ibm-plex-sans/latin-600.css';
@import '@fontsource/ibm-plex-sans/latin-700.css';
@import '@fontsource/iosevka/latin-400.css';
@import '@fontsource/iosevka/latin-500.css';
@import '@fontsource/iosevka/latin-600.css';
@import '@fontsource/iosevka/latin-700.css';
@import '@fontsource/iosevka-aile/latin-400.css';
@import '@fontsource/iosevka-aile/latin-500.css';
@import '@fontsource/iosevka-aile/latin-600.css';
@import '@fontsource/iosevka-aile/latin-700.css';

/* ===== Reset ===== */
*,
*::before,
Expand Down Expand Up @@ -65,15 +78,15 @@ ol {

/* ── Warm (default) ────────────────────────────────── */
:root,
[data-theme="warm"] {
[data-theme="dark"] {
--bg: #141210;
--bg-deep: #0e0d0b;
--surface: #1c1a17;
--surface2: #242220;
--surface3: #2e2c28;
--text: #d0ccc4;
--text-mid: #9a9488;
--text-dim: #686058;
--text-dim: #8b8075;
--accent: #b08868;
--accent-glow: rgba(176, 136, 104, 0.12);
--accent-glow-strong: rgba(176, 136, 104, 0.25);
Expand All @@ -88,52 +101,28 @@ ol {
--nav-bg: rgba(20, 18, 16, 0.82);
}

/* ── Slate ─────────────────────────────────────────── */
[data-theme="slate"] {
--bg: #101218;
--bg-deep: #0a0c12;
--surface: #171b22;
--surface2: #1e222c;
--surface3: #262c38;
--text: #c8ccd4;
--text-mid: #8890a0;
--text-dim: #586070;
--accent: #7880b0;
--accent-glow: rgba(120, 128, 176, 0.12);
--accent-glow-strong: rgba(120, 128, 176, 0.25);
--green: #6a9a78;
--green-dim: rgba(106, 154, 120, 0.15);
--cyan: #6898a0;
--cyan-dim: rgba(104, 152, 160, 0.15);
--red: #b45454;
--amber: #b09868;
--border: #232836;
--border-light: #2c3340;
--nav-bg: rgba(16, 18, 24, 0.82);
}

/* ── Light ─────────────────────────────────────────── */
[data-theme="light"] {
--bg: #f8f7f5;
--bg-deep: #f0eeeb;
--surface: #ffffff;
--surface2: #f0eeeb;
--surface3: #e6e3de;
--text: #2c2a28;
--text-mid: #5c5850;
--text-dim: #908880;
--accent: #8a6e50;
--accent-glow: rgba(138, 110, 80, 0.1);
--accent-glow-strong: rgba(138, 110, 80, 0.18);
--green: #4a7a52;
--green-dim: rgba(74, 122, 82, 0.1);
--cyan: #4a7a80;
--cyan-dim: rgba(74, 122, 128, 0.1);
--red: #b04838;
--amber: #9a7830;
--border: #d8d4ce;
--border-light: #c8c4be;
--nav-bg: rgba(248, 247, 245, 0.82);
--bg: #f5f2ee;
--bg-deep: #ece8e3;
--surface: #faf8f5;
--surface2: #ece8e3;
--surface3: #e2ddd7;
--text: #28241f;
--text-mid: #56504a;
--text-dim: #746e68;
--accent: #8a5e2e;
--accent-glow: rgba(138, 94, 46, 0.14);
--accent-glow-strong: rgba(138, 94, 46, 0.26);
--green: #3d6e42;
--green-dim: rgba(61, 110, 66, 0.14);
--cyan: #3d6e72;
--cyan-dim: rgba(61, 110, 114, 0.14);
--red: #a03020;
--amber: #907020;
--border: #d6d0c8;
--border-light: #c8c2ba;
--nav-bg: rgba(245, 242, 238, 0.88);
}

/* ===== Base ===== */
Expand Down Expand Up @@ -295,6 +284,8 @@ samp {
}

[data-theme="light"] .btn-primary:hover {
background: #7a5028;
border-color: #7a5028;
box-shadow:
0 0 24px var(--accent-glow-strong),
0 2px 6px rgba(0, 0, 0, 0.12);
Expand Down
Loading