Apple design (plans/gtm/APPLE-DESIGN-RULES-2026-11-17.md): rewrote theme tokens in globals.css/tailwind.config.js to neutral black/white + one accent (#0071E3), replacing the GitHub-dark blue+green dual-accent theme; mechanically swept every raw inline hex/rgba literal across app/components that bypassed the CSS vars (506 hex + 326 rgb(a) replacements) since most of the app hardcoded colors rather than using tokens; removed all emoji, decorative gradients (Tailwind bg-gradient-to-* and raw linear/radial- gradient() in inline styles), confetti, and glow/blur decorative orbs; converted Navbar/Navigation to icon-only with aria-label+title. Finished two stopped agents' in-progress work: deleted the fake AnimatedStats/ LiveActivity/ProjectShowcase/Testimonials auth-panel components and cleaned up the emoji-laden feature list in (auth)/layout.tsx. Removed remaining fabricated stats (topics/topics/[slug] posts-per-week/ contributors/followers) per the no-fake-numbers rule. Rithub sign-in: added "Continue with Rithub" as an icon-only OAuth2 button (RithubMark component) on login/register, hidden "Continue with GitHub" when GITHUB_CLIENT_ID is unset (confirmed unset in prod). Backend: authenticateWithGitea in oauthService.ts exchanges the Gitea OAuth2 code, resolves identity via the existing ForgeConnection table (no schema migration needed), issues the same JWT/session as GitHub/Google login. OAuth2 app created live on rithub.dev via its REST API as admin user caelum0x; client id/secret stored in railyard-box's compose file (env files don't ship to the runtime image, so the actual wiring lives in docker-compose.yml, not backend/.env) and in ~/products/.env. Critical bug found and fixed while verifying: services/api.ts's global 401 interceptor redirected every anonymous visitor to /login a couple seconds after ANY page load -- including /login and /register themselves -- because the AuthBootstrap's background GET /auth/me (expected to 401 for signed-out visitors) was treated the same as a real session-expiry 401, triggering a refresh attempt, another 401, and a hard window.location.href redirect, which re-ran AuthBootstrap and repeated. Fixed by excluding /auth/me and /auth/refresh from that redirect path. Verified live with a fresh, cookie-less browser: previously looped /register -> /login forever; now stable after 6s. Also fixed: production CORS/API origin mismatch -- the frontend was built with NEXT_PUBLIC_API_URL pointing at ritgram.ereboslab.com while served from ritgram.rithub.dev, so every API call (login, register, etc.) was blocked by CORS; rebuilt with rithub.dev as canonical and CORS_ORIGIN allowing both domains. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
109 lines
2.4 KiB
CSS
109 lines
2.4 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
/* Prism.js syntax highlighting theme */
|
|
@import '../styles/prism-github-dark.css';
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border-width: 0;
|
|
}
|
|
|
|
.focus-visible:focus {
|
|
outline: 2px solid #3b82f6;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
font-feature-settings: "rlig" 1, "calt" 1;
|
|
}
|
|
}
|
|
|
|
/* Apple-style design tokens (plans/gtm/APPLE-DESIGN-RULES-2026-11-17.md):
|
|
neutral surfaces, one accent (#0071E3), no second accent, no decorative color. */
|
|
:root {
|
|
/* Core colors - neutral dark theme (Apple dark mode: near-black surfaces) */
|
|
--background: #000000;
|
|
--background-light: #1C1C1E;
|
|
--background-dark: #000000;
|
|
|
|
--surface: #1C1C1E; /* Card background */
|
|
--surface-secondary: #2C2C2E; /* Hover state / secondary surface */
|
|
--surface-dark: #000000;
|
|
|
|
--border: #38383A; /* Hairline */
|
|
|
|
/* Text colors */
|
|
--foreground: #F5F5F7; /* Primary text */
|
|
--foreground-secondary: #98989D; /* Secondary text */
|
|
--text-primary-light: #1D1D1F;
|
|
--text-primary-dark: #F5F5F7;
|
|
--text-secondary-light: #6E6E73;
|
|
--text-secondary-dark: #98989D;
|
|
|
|
/* One accent, used only for primary actions and links */
|
|
--primary: #0071E3;
|
|
--primary-hover: #0077ED;
|
|
--accent: #0071E3;
|
|
--accent-hover: #0077ED;
|
|
--info: #0071E3;
|
|
|
|
/* Semantic colors — functional only, never decorative */
|
|
--success: #30D158;
|
|
--success-hover: #30D158;
|
|
--error: #FF453A;
|
|
--warning: #FF9F0A;
|
|
|
|
/* Interactive states */
|
|
--hover: #2C2C2E;
|
|
--active: #38383A;
|
|
--disabled: #48484A;
|
|
|
|
/* Button colors — single accent for every primary action */
|
|
--button-primary: #0071E3;
|
|
--button-primary-hover: #0077ED;
|
|
--button-secondary: #2C2C2E;
|
|
--button-secondary-hover: #38383A;
|
|
|
|
/* Content backgrounds */
|
|
--content-light: #ffffff;
|
|
--content-dark: #000000;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
body {
|
|
color: var(--foreground);
|
|
background: var(--background);
|
|
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|