Skip to content

feat(theme): terminal-green theme, boxy UI, collapsed sidebar, footer… - #12

Merged
somnergy merged 2 commits into
mainfrom
theme/green-terminal-ui
Jul 26, 2026
Merged

somnergy merged 2 commits into
mainfrom
theme/green-terminal-ui

Conversation

@somnergy

Copy link
Copy Markdown
Member

Redesign

  • Recolor the site to a terminal-green palette (Infima primary scale + all accent literals), replacing the previous orange; square/boxy UI globally via --ifm-global-radius and per-component overrides.
  • Sidebar: enclose in its own rounded box (no full-height divider); monospace nav; collapsible section headers rendered as [+]/[-] boxes with full-height separators; expanded section = solid green fill + white text; page links borderless with a solid-square selected marker; no grey hover; lighter green accent in dark mode.
  • Collapse all doc categories by default (category.json collapsed: true).
  • Redesign the footer: compact single-line layout, green top border, monospace, square social buttons, terminal-style bottom bar; theme-aware (no forced black).
  • Homepage hero: fix light/dark logo double-render that only appeared in the production build (equal-specificity display rule reordered by the CSS minifier).
  • Update the navbar Blog link to https://zilkworm.hashnode.dev.
  • Restructure docs: rename docs/basics -> docs/getting-started.

somnergy and others added 2 commits July 24, 2026 13:06
… redesign

- Recolor the site to a terminal-green palette (Infima primary scale + all
  accent literals), replacing the previous orange; square/boxy UI globally
  via --ifm-global-radius and per-component overrides.
- Sidebar: enclose in its own rounded box (no full-height divider); monospace
  nav; collapsible section headers rendered as [+]/[-] boxes with full-height
  separators; expanded section = solid green fill + white text; page links
  borderless with a solid-square selected marker; no grey hover; lighter green
  accent in dark mode.
- Collapse all doc categories by default (_category_.json collapsed: true).
- Redesign the footer: compact single-line layout, green top border, monospace,
  square social buttons, terminal-style bottom bar; theme-aware (no forced black).
- Homepage hero: fix light/dark logo double-render that only appeared in the
  production build (equal-specificity display rule reordered by the CSS minifier).
- Update the navbar Blog link to https://zilkworm.hashnode.dev.
- Restructure docs: rename docs/basics -> docs/getting-started.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The docs rename (basics -> getting-started) left stale references that broke CI:

- Fix /documentation/basics/* links in NotFound content, docs/index.md, and the
  homepage CTA. The getting-started category-index page resolves to
  /documentation/getting-started, so those links point there.
- Regenerate static/llms.txt and static/llms-full.txt (fixes the llms drift-guard
  step that was failing first in CI).
- Update the README docs-tree reference.

Resolves the llms drift-guard failure and the onBrokenLinks build failure.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@somnergy
somnergy merged commit b9a9b22 into main Jul 26, 2026
1 check passed
bloxster added a commit that referenced this pull request Aug 3, 2026
The terminal-green theme (#12, #16) rewrote the footer into a single
horizontal row, dropping the four canonical link columns (Products /
Developers / Company / Community), the Erigon Technologies AG address and
the hello@erigon.tech contact, and replacing the shared Nunito Sans /
black-background treatment with a monospace "$ ... " terminal motif.

The footer is the shared Erigon corporate footer: docusaurus-design-spec.md
section 6 specifies it as identical across docs.erigon.tech,
cocoon.erigon.tech and zilkworm.erigon.tech. Restore it.

The green theme is untouched -- --ifm-color-primary stays #1F9D3E and the
site chrome is unchanged. Only the footer reverts, including its #EF7716
hover accent on .footer-social-btn, so the corporate footer matches its
siblings rather than being half-recolored.

src/theme/Footer/index.tsx is now identical to cocoon's copy except for a
dead `import Link` that cocoon still carries, and identical to erigon's
except for the Quantify wordmark -- erigon dropped Quantify during a
licensing question that was later resolved in Quantify's favour; spec
section 7 mandates it and zilkworm already vendors Quantify.woff2.

Verified: tsc --noEmit clean, npm run build clean, and the built HTML
contains all four columns, the Zug address and hello@erigon.tech.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
bloxster added a commit that referenced this pull request Aug 7, 2026
* revert(footer): restore Somnath's original single-row terminal footer

Reverts #18 (5090b0a), which had replaced the footer Somnath introduced in
#12 with the five-column shared corporate footer. This puts his design back
exactly as he authored it — src/theme/Footer/index.tsx is byte-identical to
his 06f3677 — as a reference point for comparison.

His design, restored verbatim:
- Single horizontal row: brand lockup, tagline, social icons pushed right.
- Monospace throughout (--ifm-font-family-monospace), Quantify wordmark.
- Terminal motif on the copyright line: a green "$" prompt and a "▊" block
  cursor bracketing the text.
- Square 38x38 social buttons, borderRadius 0, accent-tinted on hover.
- 2px Zilkworm Green top rule.
- Zilkworm Green accent throughout, via --brand-accent.

The custom.css hunk is the other half of the same revert: .footer-social-btn
hover goes back to green #1F9D3E. Note that rule is dead code against this
footer — it styles inline and never sets that class — so it has no visual
effect either way; it is included only to make the revert complete.

Authorship note: the footer content here is Somnath Banerjee's work from
06f3677; this commit only restores it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* feat(footer): link the brand lockup and drop the dead social-button CSS

Two additions on top of the restored footer, plus one cleanup.

- Link the brand lockup (logo + erigon.tech wordmark) to erigon.tech. One
  anchor wraps both so it is a single hit target rather than two adjacent
  links to the same URL, with an aria-label because the visible content is a
  wordmark plus an image. Hover tints it corporate orange via a new
  footer-scoped --footer-accent; --brand-accent (the site-wide Zilkworm
  Green, which also drives the sidebar, TOC and menu) is deliberately not
  touched. Without this var the hover would resolve to nothing and silently
  do nothing.
- Remove .footer-social-btn and its :hover rule from custom.css. They are
  dead against this footer, which styles its social buttons inline and never
  sets that class; grep finds no remaining references. This also removes the
  malformed rgba(31, 157, 62,0.15) that lived inside the dead block.

Typography stays monospace throughout, as in the original design. An
automated reviewer flagged that as contradicting the brand font roles in
docusaurus-design-spec.md section 7; keeping it is a product decision, not
an oversight.

Verified: tsc clean, and the lockup hover probed over CDP in both colour
modes at rgb(239, 119, 22), with --brand-accent still green (#1F9D3E light,
#29AE4A dark).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(footer): make the mobile rule actually stack, correct a stale comment

Both reviewers flagged this: .footer-top-grid is a flex container, but the
mobile rule set grid-template-columns, which is a no-op there. The footer
therefore never stacked at <=768px — it kept the desktop row plus a stale
2.5rem gap and old padding, and the socials stayed pushed right by
margin-left:auto with no reset.

The rule is a leftover from the five-column footer this design replaced. Now
flex-direction: column with the margin reset, matching what docs.erigon.tech
and cocoon.erigon.tech do.

Also corrected the CSS header comment, which still claimed "the corporate
footer stays Erigon Orange #EF7716". Not true of this footer: green drives the
social and legal hovers, and only the brand lockup hovers orange via the
footer-scoped --footer-accent.

Verified: tsc clean.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(footer): CSS interaction states, scope --footer-accent, canonical About URL

Addresses all four Copilot review comments on this PR.

- **Keyboard accessibility.** The brand lockup and the social buttons styled
  hover with onMouseEnter/onMouseLeave, which only fire for a mouse — tabbing
  through the footer produced no accent state and no focus indicator. Moved to
  .footer-brand / .footer-social / .footer-legal with :hover and :focus-visible
  declared together, plus an explicit focus outline. Colours are unchanged:
  socials and legal links hover Zilkworm Green, only the lockup hovers orange.
- **--footer-accent is now genuinely scoped.** It was declared on :root while
  the comment claimed it was footer-scoped — true in intent (kept separate from
  --brand-accent) but not in CSS. Now declared on `footer`, so the name matches
  the behaviour.
- **color-mix() fallback.** A flat rgba green is declared before the color-mix
  line; color-mix is Chrome 111+, so older engines keep the tint instead of
  losing it silently.
- **About Us URL** gains its trailing slash, matching the other legal links and
  avoiding a redirect.

Also replaced the mobile `.footer-top-grid > div:last-child` selector with the
dedicated .footer-socials class, and dropped a constant left unused once the
lockup hover moved to CSS.

Verified: tsc + build clean.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(footer): black surface in dark mode, AA-legible fine print, no hover underline

- **Surface now matches docs.erigon.tech and cocoon.erigon.tech**: white in light
  mode, black in dark, via --footer-bg / --footer-fg declared on `footer`. It was
  --ifm-background-surface-color, which is the Infima grey #141414 in dark rather
  than black. This removes one of the divergences listed in design spec §6.2.
- **Fine print raised from --ifm-color-emphasis-600 to -700.** Measured on the
  light surface, -600 is 3.06:1 — below WCAG AA's 4.5:1 for 0.8rem text, and it
  covers the copyright line and all three legal links. -700 measures 5.72:1
  light / 15.41:1 dark. Pre-existing, surfaced while verifying the new surface.
- **Hover underline removed.** Infima's `a:hover` sets text-decoration: underline
  and outranks a plain class selector, so the base `text-decoration: none` did
  not survive the hover state. Cleared on :hover and :focus-visible.

The underline was a regression from moving the footer's interactive states off
inline styles into CSS: inline styles beat Infima's a:hover, stylesheet classes
do not. Verified by stripping the declaration at runtime and re-hovering — the
underline returns without it, on all three docs sites.

Verified: tsc + build clean; footer probed over CDP in both colour modes —
bg #FFFFFF light / #000000 dark, contrast 5.72:1 / 15.41:1, hover
text-decoration-line: none.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant