Skip to content

Commit 777ab69

Browse files
bankworachedclaude
andcommitted
feat(ui): SGCU/ISD brand theme (dark, Space Grotesk + Anuphan, ISD pink, logo)
Adds custom/ overrides: dark :root palette + ISD pink primary, Space Grotesk + Anuphan fonts (Google Fonts), dark form fields/tables/modals, ISD logo + header override. Matches the isd.sgcu.in.th visual identity. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 22ed146 commit 777ab69

3 files changed

Lines changed: 123 additions & 0 deletions

File tree

custom/css/isd.css

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/* SGCU / ISD brand theme for chula.me — dark, Space Grotesk + Anuphan, ISD pink.
2+
Loaded after styles.css (via custom_styles), so these :root values win. */
3+
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Anuphan:wght@400;500;600;700&display=swap');
4+
5+
:root {
6+
--bg-color: hsl(0, 0%, 6%); /* #0f0f0f */
7+
--text-color: hsl(0, 0%, 100%);
8+
--color-primary: hsl(335, 92%, 56%); /* ISD pink */
9+
--outline-color: hsl(335, 92%, 56%);
10+
--underline-color: hsl(335, 92%, 56%);
11+
--secondary-text-color: hsl(0, 0%, 64%);
12+
--focus-outline-color: hsla(335, 92%, 57%, 0.5);
13+
--checkbox-bg-color: hsl(335, 92%, 57%);
14+
--input-label-color: hsl(0, 0%, 85%);
15+
--button-bg: linear-gradient(to right, hsl(0,0%,20%), hsl(0,0%,14%));
16+
--button-bg-box-shadow-color: rgba(0,0,0,0.5);
17+
--button-bg-primary: linear-gradient(to right, hsl(335,92%,57%), hsl(322,88%,49%));
18+
--button-bg-primary-box-shadow-color: hsla(335,92%,50%,0.45);
19+
--button-bg-secondary: linear-gradient(to right, hsl(245,72%,63%), hsl(255,74%,53%));
20+
--button-bg-secondary-box-shadow-color: hsla(248,62%,52%,0.45);
21+
--table-bg-color: hsl(0,0%,10%);
22+
--table-tr-border-color: hsl(0,0%,16%);
23+
--table-tr-hover-bg-color: hsl(0,0%,13%);
24+
--table-head-tr-border-color: hsl(0,0%,20%);
25+
--table-status-gray-bg-color: hsl(0,0%,14%);
26+
}
27+
28+
body, button, input, select, textarea,
29+
h1, h2, h3, h4, h5, a, p, label {
30+
font-family: "Space Grotesk", "Anuphan", system-ui, -apple-system, "Segoe UI", sans-serif;
31+
}
32+
33+
/* dark form fields (Kutt hardcodes white on these) */
34+
input[type="text"], input[type="email"], input[type="password"],
35+
textarea, select, button.nav, table .tab a {
36+
background-color: hsl(0,0%,11%) !important;
37+
color: #fff !important;
38+
border-bottom-color: hsl(0,0%,22%) !important;
39+
}
40+
input::placeholder, textarea::placeholder { color: hsl(0,0%,48%) !important; }
41+
42+
/* dark surfaces (table, stats panel, modals/dialogs) */
43+
table, #stats, .dialog, .modal {
44+
background-color: hsl(0,0%,9%) !important;
45+
color: #fff;
46+
}
47+
48+
/* links */
49+
a { color: #fff; }
50+
a:hover { color: var(--color-primary); }
51+
a.forgot-password, a.nav, .nav { color: var(--secondary-text-color); }
52+
53+
/* white ISD logo sits on the dark header */
54+
header .logo img { height: 26px; width: auto; }

custom/images/isd-logo.svg

Lines changed: 13 additions & 0 deletions
Loading

custom/views/partials/header.hbs

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<header>
2+
<div class="logo-wrapper">
3+
<a class="logo nav" href="/" title="Homepage">
4+
<img src="/images/isd-logo.svg" alt="{{site_name}}" height="26" />
5+
{{site_name}}
6+
</a>
7+
<ul class="logo-links">
8+
<li>
9+
<a class="nav" href="https://github.com/isd-sgcu/kutt" target="_blank" rel="noopener noreferrer" title="GitHub">
10+
GitHub
11+
</a>
12+
</li>
13+
{{#if report_email}}
14+
<li>
15+
<a class="nav" href="/report" title="Report abuse">
16+
Report
17+
</a>
18+
</li>
19+
{{/if}}
20+
</ul>
21+
</div>
22+
<nav>
23+
<ul>
24+
{{#unless user}}
25+
{{#unless login_disabled}}
26+
<li>
27+
<a class="button primary" href="/login" title="Log in or sign up">
28+
Log in / Sign up
29+
</a>
30+
</li>
31+
{{/unless}}
32+
{{/unless}}
33+
{{#if user}}
34+
<li>
35+
<a class="button primary" href="/settings" title="Settings">
36+
<span>{{> icons/cog}}</span>
37+
Settings
38+
</a>
39+
</li>
40+
{{#if isAdmin}}
41+
<li>
42+
<a class="button secondary" href="/admin" title="Admin">
43+
<span>{{> icons/shield}}</span>
44+
Admin
45+
</a>
46+
</li>
47+
{{/if}}
48+
<li>
49+
<a class="nav" href="/logout" title="Log out">
50+
Log out
51+
</a>
52+
</li>
53+
{{/if}}
54+
</ul>
55+
</nav>
56+
</header>

0 commit comments

Comments
 (0)