From acfe3966556c0a456d21ee2b66dc82c7a706fbb9 Mon Sep 17 00:00:00 2001 From: alexander-sei Date: Wed, 15 Jul 2026 21:22:05 +0200 Subject: [PATCH] chore: remove unused code from snippets, script, and styles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dead-code cleanup with no runtime/behavior impact: - scripts/sync-default-configs.mjs: drop unused `execSync` import (only import from node:child_process; the script never spawns a process). - snippets/ecosystem-contracts.jsx: remove the `seiScanStyle` variable, which was declared but never read (the SeiScan link builds its own style object). - style.css: remove the unused custom MDX author utilities `.sei-icon-square` (+ `.gold`) and `.sei-meta` (+ `.dark` variant) — no references in any .mdx, snippet, or docs.json. `.sei-eyebrow` is kept (its rule is shared with the `[class*="eyebrow"]` selector) and `.sei-eco-grid` is kept (in use). All snippets/scripts still parse (esbuild / node --check) and style.css braces remain balanced. Co-Authored-By: Claude Opus 4.8 --- scripts/sync-default-configs.mjs | 1 - snippets/ecosystem-contracts.jsx | 5 ----- style.css | 32 -------------------------------- 3 files changed, 38 deletions(-) diff --git a/scripts/sync-default-configs.mjs b/scripts/sync-default-configs.mjs index 7f27680..4249e7e 100755 --- a/scripts/sync-default-configs.mjs +++ b/scripts/sync-default-configs.mjs @@ -23,7 +23,6 @@ * top level and will fail to parse the page. */ -import { execSync } from 'node:child_process'; import { existsSync, readFileSync, writeFileSync } from 'node:fs'; import { homedir } from 'node:os'; import { dirname, join, resolve } from 'node:path'; diff --git a/snippets/ecosystem-contracts.jsx b/snippets/ecosystem-contracts.jsx index 8459dad..3a4ed73 100644 --- a/snippets/ecosystem-contracts.jsx +++ b/snippets/ecosystem-contracts.jsx @@ -685,11 +685,6 @@ export const EcosystemContracts = () => { }, [pendingScrollId]); // --- Theme-aware brand colors (replace former sei-* Tailwind classes) --- - // Light/dark text + background for the SeiScan link button. - const seiScanStyle = isDark - ? { color: 'var(--sei-maroon-25)', backgroundColor: 'rgba(96, 0, 20, 0.2)' } - : { color: 'var(--sei-maroon-100)', backgroundColor: 'var(--sei-grey-25)' }; - const focusRingColor = 'var(--sei-maroon-100)'; // Desktop rows use a div-based grid (not a ): Mintlify maps MDX diff --git a/style.css b/style.css index 0cf7474..a388534 100644 --- a/style.css +++ b/style.css @@ -1216,38 +1216,6 @@ figure { --color-accent: var(--sei-gold-25); } -/* -------------------------------------------------------------------------- - Utilities for custom MDX (if authors want a Sei-branded eyebrow or square) - -------------------------------------------------------------------------- */ - -.sei-icon-square { - width: 20px; - height: 20px; - display: inline-flex; - align-items: center; - justify-content: center; - background: var(--sei-maroon-100); - color: var(--sei-white); - border-radius: var(--sei-radius-sm); - flex-shrink: 0; -} - -.sei-icon-square.gold { - background: var(--sei-gold-100); -} - -.sei-meta { - font-family: var(--sei-font-mono); - text-transform: uppercase; - font-size: 11px; - letter-spacing: 0.04em; - color: var(--sei-gold-100); -} - -.dark .sei-meta { - color: var(--sei-gold-25); -} - /* -------------------------------------------------------------------------- Widget iframes — let height be content-driven, not 16/9 cinematic crop --------------------------------------------------------------------------