style(frontend): apply Foot palette across the site
Build and publish Docker image / build-and-publish (push) Successful in 14s

This commit is contained in:
wfalkowski committed 2026-10-24 14:42:11 +00:00
1 parent 6e68400cd0
commit 9ee9983ee2
16 files changed
+125 -100

No files matched your search

+16 -17
View File
@@ -74,26 +74,25 @@ Maintain the product principles of purpose, agency, familiarity, flexibility, si
### Canonical palette
`src/theme/colors.js` is the named JS palette. `tailwind.config.js` mirrors it and adds `dash` semantic colors. Keep both aligned if changing a token.
`~/.config/foot/foot.ini` `[colors]` is the palette authority for this site. `colors.ini` records the allowed values for the repository, `src/theme/colors.js` provides named JS tokens, and `tailwind.config.js` mirrors them for utilities. Keep all three aligned. The site must use only these Foot colors; alpha variants of those colors are allowed for non-navigation state and scrims. Navigation menus and menu headers must remain fully opaque.
| Token | Value | Usage |
| Foot color | Value | Common role |
| --- | --- | --- |
| `background` | `#151515` | Main page background. |
| `panel` / `backgroundSecondary` | `#181818` | Header, dialogs, and panel fill. |
| `surface` | `#202020` | Raised content surface. |
| `hover` | `#282828` | Hover surface. |
| `border` / `brightBlack` | `#2F2F2F` | Strong outline and hard-shadow ink. |
| `focus` | `#454545` | Focus-adjacent neutral boundary. |
| `foreground` | `#D0D0D0` | Body copy. |
| `muted` | `#898989` | Secondary copy and labels, with enough contrast for small text on the dark surfaces. |
| `dim` | `#505050` | Decorative or disabled content only. |
| `brightWhite` | `#F5F5F5` | Headings and key values. |
| `primary` / `brightBlue` | `#6C99BB` | Primary actions and keyboard focus. |
| `accent_secondary` / `blue` | `#6C99BB` | Accent and link color, checked for readable contrast on panel surfaces. |
| `yellow` / `brightYellow` | `#D3A04D` | Warning state and selective emphasis. |
| semantic green / red / cyan | `#7B9246` / `#A53C23` / `#5EA8A2` | Success, danger, and supporting status roles where required by existing UI. Keep labels/icons with color so meaning never depends on color alone. |
| `background` / `regular0` | `#151515` | Page, menu, and dialog base. |
| `foreground` / `regular7` | `#D0D0D0` | Body copy and standard controls. |
| `selection-foreground` / `bright7` | `#F5F5F5` | Headings and selected text. |
| `bright0` | `#505050` | Borders, disabled decoration, and hard-shadow ink. |
| `regular1` | `#A53C23` | Danger and destructive actions. |
| `regular2` | `#7B9246` | Success state. |
| `regular3` | `#D3A04D` | Warning and selective emphasis. |
| `regular4` | `#6C99BB` | Primary actions, links, and focus. |
| `regular5` | `#9F4E85` | Secondary status distinction. |
| `regular6` | `#5EA8A2` | Supporting status distinction. |
| `bright4` | `#547C99` | Secondary blue, hover, and focus boundary. |
Dashboard semantic Tailwind tokens are `dash.surface`, `dash.surfaceElevated`, `dash.border`, `dash.text`, `dash.textMuted`, `dash.accent`, `dash.danger`, `dash.success`, and `dash.warning`. `dashboardTokens.js` exports matching JS values and `dashLayout` class strings: `viewShell` is a squared, bordered panel, `headerBar` is a responsive header strip, and `bodyPadding` establishes section spacing. Prefer semantic tokens such as `text-dash-text` over repeated hex values or arbitrary colors. `colors.ini` is the palette source of truth; `src/theme/colors.js`, the `dash` tokens, and `tailwind.config.js` must stay aligned with it.
Use the base background with visible borders to create structure; do not invent extra graphite shades. Pair colored status text with a label or icon so color never carries meaning alone.
Dashboard semantic Tailwind tokens are `dash.surface`, `dash.surfaceElevated`, `dash.border`, `dash.text`, `dash.textMuted`, `dash.accent`, `dash.danger`, `dash.success`, and `dash.warning`. `dashboardTokens.js` exports matching JS values and `dashLayout` class strings: `viewShell` is a squared, bordered panel, `headerBar` is a responsive header strip, and `bodyPadding` establishes section spacing. Prefer semantic tokens such as `text-dash-text` over repeated hex values or arbitrary colors. `colors.ini`, `src/theme/colors.js`, the dashboard tokens, and `tailwind.config.js` must remain within the Foot palette.
### Typography, spacing, and responsive behavior
+15 -12
View File
@@ -1,14 +1,17 @@
# Site palette mirrored from ~/.config/foot/foot.ini [colors].
# Keep every rendered site color within this exact set.
[colors]
background = #151515
panel = #181818
surface = #202020
hover = #282828
border = #2F2F2F
focus = #454545
text = #D0D0D0
muted = #898989
dim = #505050
emphasis = #F5F5F5
accent = #6C99BB
accent_secondary = #6C99BB
warning = #D3A04D
foreground = #D0D0D0
selection_foreground = #F5F5F5
selection_background = #6C99BB
regular_red = #A53C23
regular_green = #7B9246
regular_yellow = #D3A04D
regular_blue = #6C99BB
regular_magenta = #9F4E85
regular_cyan = #5EA8A2
regular_white = #D0D0D0
bright_black = #505050
bright_blue = #547C99
bright_white = #F5F5F5
+3 -3
View File
@@ -694,7 +694,7 @@ function LoginModal({ onClose, onLogin, onSwitchToRegister, colors, authConfig }
return (
<div className="fixed inset-0 bg-black/80 backdrop-blur-sm flex items-center justify-center z-50 p-4 animate-in fade-in duration-300">
<div className="rounded-[2.5rem] w-full max-w-md border shadow-2xl overflow-hidden bg-dash-surfaceElevated/95 backdrop-blur-2xl animate-in zoom-in-95 duration-300"
style={{ borderColor: `${colors.blue}20`, boxShadow: `0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px ${colors.blue}10` }}>
style={{ borderColor: `${colors.blue}20`, boxShadow: `0 25px 50px -12px rgba(21, 21, 21, 0.5), 0 0 0 1px ${colors.blue}10` }}>
<div className="p-10">
<div className="flex flex-col items-center text-center mb-10">
@@ -803,7 +803,7 @@ function LoginModal({ onClose, onLogin, onSwitchToRegister, colors, authConfig }
className="mt-6 w-full py-4 rounded-2xl font-bold text-sm transition-all duration-300 hover:bg-white/5 border flex items-center justify-center gap-3"
style={{ backgroundColor: 'transparent', borderColor: colors.brightBlack, color: colors.brightWhite }}
>
<svg className="w-5 h-5" viewBox="0 0 24 24"><path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/><path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/><path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/><path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"/></svg>
<svg className="w-5 h-5" viewBox="0 0 24 24" aria-hidden="true"><path fill="#6C99BB" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/><path fill="#7B9246" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/><path fill="#D3A04D" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/><path fill="#A53C23" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"/></svg>
<span>Continue with Google</span>
</button>
)}
@@ -1100,7 +1100,7 @@ function RegisterModal({
return (
<div className="fixed inset-0 bg-black/80 backdrop-blur-sm flex items-center justify-center z-50 p-4 animate-in fade-in duration-300">
<div className="rounded-[2.5rem] w-full max-w-2xl border shadow-2xl overflow-hidden bg-dash-surfaceElevated/95 backdrop-blur-2xl animate-in zoom-in-95 duration-300 max-h-[90vh] flex flex-col"
style={{ borderColor: `${colors.green}20`, boxShadow: `0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px ${colors.green}10` }}>
style={{ borderColor: `${colors.green}20`, boxShadow: `0 25px 50px -12px rgba(21, 21, 21, 0.5), 0 0 0 1px ${colors.green}10` }}>
<div className="p-10 overflow-y-auto custom-scrollbar">
<div className="flex flex-col items-center text-center mb-10">
+2 -2
View File
@@ -348,7 +348,7 @@ export const ResourceGraph = ({ data, color, title, unit, maxValue, currentValue
<div className="flex items-center justify-between mb-8">
<div className="flex items-center gap-4">
<div className="relative">
<div className="w-3 h-3 rounded-full shadow-[0_0_10px_rgba(255,255,255,0.2)]" style={{ backgroundColor: serverStatus === 'Running' ? color : colors.foreground }} />
<div className="w-3 h-3 rounded-full shadow-[0_0_10px_rgba(245,245,245,0.2)]" style={{ backgroundColor: serverStatus === 'Running' ? color : colors.foreground }} />
{serverStatus === 'Running' && (
<div className="absolute inset-0 w-3 h-3 rounded-full blur-[6px] animate-pulse" style={{ backgroundColor: color }} />
)}
@@ -599,7 +599,7 @@ export const MinecraftSettings = ({ server, settings, onSave, isLoading }) => {
<button
onClick={() => handleToggle(s.key)}
className={`w-12 h-6 rounded-full transition-all duration-300 relative border ${
localSettings[s.key] === 'true' ? 'border-primary bg-primary shadow-[0_0_10px_rgba(90,124,167,0.4)]' : 'border-white/10 bg-black/40'
localSettings[s.key] === 'true' ? 'border-primary bg-primary shadow-[0_0_10px_rgba(108,153,187,0.4)]' : 'border-white/10 bg-black/40'
}`}
>
<div className={`absolute top-0.5 w-4 h-4 rounded-full transition-all duration-500 shadow-md ${
+4 -4
View File
@@ -58,7 +58,7 @@ export function PageHeaderBar({
export function StatTile({ icon: Icon, label, value, accentColor = colors.blue, className = '' }) {
return (
<div
className={`flex flex-col items-start justify-center p-5 rounded-sm border-2 text-left bg-dash-surface shadow-[4px_4px_0_#2F2F2F] ${className}`.trim()}
className={`flex flex-col items-start justify-center p-5 rounded-sm border-2 text-left bg-dash-surface shadow-[4px_4px_0_#505050] ${className}`.trim()}
style={{
borderColor: colors.brightBlack,
}}
@@ -81,7 +81,7 @@ const actionBase = `inline-flex items-center justify-center gap-2 rounded-sm tex
*/
export function SettingsPanel({ title, description, children, className = '' }) {
return (
<div className={`rounded-sm border-2 border-dash-border bg-dash-surface overflow-hidden shadow-[4px_4px_0_#2F2F2F] ${className}`.trim()}>
<div className={`rounded-sm border-2 border-dash-border bg-dash-surface overflow-hidden shadow-[4px_4px_0_#505050] ${className}`.trim()}>
{(title || description) && (
<div className="px-5 py-4 border-b border-dash-border">
{title && <h4 className="text-sm font-semibold text-dash-text" style={{ color: colors.brightWhite }}>{title}</h4>}
@@ -120,7 +120,7 @@ export function DashboardEmptyState({ icon: Icon, title, description, action = n
<Wrapper
type={interactive ? 'button' : undefined}
onClick={interactive ? onClick : undefined}
className={`w-full text-left py-12 px-6 rounded-sm border-2 border-dash-border bg-dash-surface transition-colors duration-150 ${interactive ? 'shadow-[4px_4px_0_#2F2F2F]' : ''} ${
className={`w-full text-left py-12 px-6 rounded-sm border-2 border-dash-border bg-dash-surface transition-colors duration-150 ${interactive ? 'shadow-[4px_4px_0_#505050]' : ''} ${
interactive ? 'cursor-pointer hover:border-primary/50 hover:bg-white/[0.02] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary/40' : ''
}`.trim()}
>
@@ -158,7 +158,7 @@ export function SectionCard({ title, icon: Icon, children, color = colors.blue,
return (
<div
id={id}
className={`group rounded-sm p-5 md:p-6 border-2 border-dash-border bg-dash-surface w-full shadow-[4px_4px_0_#2F2F2F] ${className}`.trim()}
className={`group rounded-sm p-5 md:p-6 border-2 border-dash-border bg-dash-surface w-full shadow-[4px_4px_0_#505050] ${className}`.trim()}
style={{
borderColor: colors.brightBlack,
}}
+2 -2
View File
@@ -187,7 +187,7 @@ const NodeTerminalModal = ({ node, onClose }) => {
35: { color: colors.brightMagenta },
36: { color: colors.brightCyan },
37: { color: colors.brightWhite },
90: { color: '#666666' },
90: { color: '#505050' },
91: { color: colors.brightRed },
92: { color: colors.brightGreen },
93: { color: colors.brightYellow },
@@ -232,7 +232,7 @@ const NodeTerminalModal = ({ node, onClose }) => {
const modalContent = (
<div className="fixed inset-0 z-[9999] flex items-center justify-center bg-black/90 p-2 sm:p-5">
<div
className={`flex min-h-0 flex-col overflow-hidden border-2 border-dash-border bg-dash-surface shadow-[6px_6px_0_0_rgba(0,0,0,0.8)] ${
className={`flex min-h-0 flex-col overflow-hidden border-2 border-dash-border bg-dash-surface shadow-[6px_6px_0_0_rgba(21,21,21,0.8)] ${
isFullscreen ? 'fixed inset-0 h-full w-full max-w-none' : 'h-[calc(100dvh-1rem)] max-h-[760px] w-full max-w-[1100px] sm:h-[min(78dvh,760px)] sm:min-h-[360px]'
}`}
>
+1 -1
View File
@@ -180,7 +180,7 @@ const PluginStoreEmbedded = ({ serverId }) => {
if (loadingDetails) {
return (
<div className="h-full flex justify-center items-center rounded-2xl animate-pulse" style={{ backgroundColor: 'rgba(0,0,0,0.1)' }}>
<div className="h-full flex justify-center items-center rounded-2xl animate-pulse" style={{ backgroundColor: 'rgba(21,21,21,0.1)' }}>
<RefreshCw className="w-8 h-8 animate-spin text-blue-500" />
</div>
);
+1 -1
View File
@@ -13,7 +13,7 @@ const ansiToStyle = {
24: { textDecoration: 'none' },
39: { color: 'inherit' },
30: { color: colors.black }, 31: { color: colors.red }, 32: { color: colors.green }, 33: { color: colors.yellow }, 34: { color: colors.blue }, 35: { color: colors.magenta }, 36: { color: colors.cyan }, 37: { color: colors.foreground },
90: { color: '#666666' }, 91: { color: colors.brightRed }, 92: { color: colors.brightGreen }, 93: { color: colors.brightYellow }, 94: { color: colors.brightBlue }, 95: { color: colors.brightMagenta }, 96: { color: colors.brightCyan }, 97: { color: colors.brightWhite },
90: { color: '#505050' }, 91: { color: colors.brightRed }, 92: { color: colors.brightGreen }, 93: { color: colors.brightYellow }, 94: { color: colors.brightBlue }, 95: { color: colors.brightMagenta }, 96: { color: colors.brightCyan }, 97: { color: colors.brightWhite },
};
const GameConsole = ({ server, sendMessage, isActive }) => {
+2 -2
View File
@@ -110,7 +110,7 @@ const VPSTerminal = ({ server, sendMessage, isActive }) => {
35: { color: colors.magenta },
36: { color: colors.cyan },
37: { color: colors.foreground },
90: { color: '#666666' },
90: { color: '#505050' },
91: { color: colors.brightRed },
92: { color: colors.brightGreen },
93: { color: colors.brightYellow },
@@ -314,4 +314,4 @@ const VPSTerminal = ({ server, sendMessage, isActive }) => {
);
};
export default VPSTerminal;
export default VPSTerminal;
+26 -16
View File
@@ -51,6 +51,7 @@
svg.lucide {
flex: 0 0 auto;
aspect-ratio: 1 / 1;
object-fit: contain;
}
input,
@@ -103,7 +104,7 @@ input[type="range"]::-webkit-slider-thumb {
input[type="range"]::-webkit-slider-thumb:hover {
transform: scale(1.2);
background: #6b8db8;
background: #547C99;
}
input[type="range"]::-moz-range-thumb {
@@ -118,7 +119,7 @@ input[type="range"]::-moz-range-thumb {
input[type="range"]::-moz-range-thumb:hover {
transform: scale(1.2);
background: #6b8db8;
background: #547C99;
}
@keyframes slide-up {
@@ -229,32 +230,31 @@ a.focus-skip-global:focus-visible {
.dash-skeleton {
display: block;
background: linear-gradient(90deg, #20272d 0%, #283139 50%, #20272d 100%);
background-size: 200% 100%;
animation: dash-skeleton-shift 1.8s ease-in-out infinite;
background: #505050;
}
@keyframes dash-skeleton-shift {
50% { background-position: -100% 0; }
}
/* AnchorHost.eu neobrutalist system: the colors.ini palette, visible rules, and
/* AnchorHost.eu neobrutalist system: the Foot palette, visible rules, and
offset shadows do the visual work. Keep data and controls easy to scan. */
:root {
--ah-background: #151515;
--ah-panel: #181818;
--ah-surface: #202020;
--ah-hover: #282828;
--ah-border: #2F2F2F;
--ah-focus: #454545;
--ah-panel: #151515;
--ah-surface: #505050;
--ah-hover: #547C99;
--ah-border: #505050;
--ah-focus: #547C99;
--ah-text: #D0D0D0;
--ah-muted: #898989;
--ah-muted: #D0D0D0;
--ah-dim: #505050;
--ah-emphasis: #F5F5F5;
--ah-accent: #6C99BB;
--ah-accent-secondary: #6C99BB;
--ah-accent-secondary: #547C99;
--ah-warning: #D3A04D;
--ah-shadow: 4px 4px 0 var(--ah-border);
--tw-ring-offset-color: var(--ah-background);
}
body { color: var(--ah-text); background: var(--ah-background); }
@@ -410,7 +410,7 @@ body { color: var(--ah-text); background: var(--ah-background); }
.site-announcement-more { margin-top: 18px; }
.site-announcement-skeleton { height: 78px; border-bottom: 2px solid var(--ah-border); background: var(--ah-surface); }
.announcement-overlay { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .82); }
.announcement-overlay { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; background: rgba(21, 21, 21, .82); }
.announcement-dialog { width: min(760px, 100%); max-height: min(760px, 88dvh); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border: 2px solid var(--ah-border); border-radius: 2px; background: var(--ah-panel); color: var(--ah-text); box-shadow: 8px 8px 0 var(--ah-border); }
.announcement-dialog:focus { outline: none; }
.announcement-dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 2px solid var(--ah-border); }
@@ -445,11 +445,20 @@ body { color: var(--ah-text); background: var(--ah-background); }
/* Shared geometry across dashboard, admin, docs, legal and plugin routes. */
.app-container { background: var(--ah-background); color: var(--ah-text); }
.app-container [class*="backdrop-blur"] { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.app-container [class*="bg-dash-surfaceElevated/"] { background-color: var(--ah-panel) !important; }
.app-container aside { background-color: var(--ah-background); }
.app-container [class*="rounded-"] { border-radius: 2px !important; }
.app-container :not(button):not(a)[class*="shadow-"]:not(.shadow-none) { box-shadow: var(--ah-shadow) !important; }
.app-container [class*="hover:scale"] { transform: none !important; }
.app-container [class*="scale-"] { scale: 1 !important; }
.app-container .uppercase { letter-spacing: .02em; }
.app-container .text-\[10px\] { font-size: 12px; }
.app-container :is(p, span, label, th, td, small)[class~="opacity-30"],
.app-container :is(p, span, label, th, td, small)[class~="opacity-40"],
.app-container :is(p, span, label, th, td, small)[class~="opacity-45"],
.app-container :is(p, span, label, th, td, small)[class~="opacity-50"],
.app-container :is(p, span, label, th, td, small)[class~="opacity-55"],
.app-container :is(p, span, label, th, td, small)[class~="opacity-60"] { opacity: 1; }
.app-container [class*="text-dash-textMuted/"] { color: var(--ah-text) !important; }
.app-container :is(button, a, input, textarea, select) { border-radius: 2px; }
.app-container :is(input, textarea, select) { background-color: var(--ah-background); border-color: var(--ah-border); color: var(--ah-emphasis); }
.app-container :is(button, a):focus-visible, .app-container :is(input, textarea, select):focus-visible { outline: 2px solid var(--ah-accent); outline-offset: 2px; }
@@ -464,7 +473,7 @@ body > div:not(#root) :is(button, a, input, textarea, select):focus-visible { ou
.admin-app [class*="backdrop-blur"] { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.admin-app [class*="rounded-"] { border-radius: 2px !important; }
.admin-app :not(button):not(a)[class*="shadow-"]:not(.shadow-none) { box-shadow: var(--ah-shadow) !important; }
.admin-app [class*="hover:scale"] { transform: none !important; }
.admin-app [class*="scale-"] { scale: 1 !important; }
.admin-app :is(button, a, input, textarea, select) { border-radius: 2px; }
.admin-app :is(button, a, input, textarea, select):focus-visible { outline: 2px solid var(--ah-accent); outline-offset: 2px; }
.dashboard-app .bg-dash-surface, .admin-app .bg-dash-surface { background-color: var(--ah-surface); }
@@ -473,6 +482,7 @@ body > div:not(#root) :is(button, a, input, textarea, select):focus-visible { ou
.dashboard-app .rounded-xl.border-dash-border, .dashboard-app .rounded-2xl.border-dash-border,
.admin-app .rounded-xl.border-dash-border, .admin-app .rounded-2xl.border-dash-border { box-shadow: var(--ah-shadow); }
.dashboard-app .dash-skeleton, .admin-app .dash-skeleton { background: var(--ah-surface); background-image: none; animation: none; border: 1px solid var(--ah-border); }
.dashboard-app header[class*="bg-dash-surfaceElevated/"], .admin-app header[class*="bg-dash-surfaceElevated/"] { background-color: var(--ah-panel) !important; }
/* Server tiles: compact, readable data panels with a single consistent hover state. */
.ah-server-card { min-width: 0; overflow: hidden; border: 2px solid var(--ah-border); background: var(--ah-panel); color: var(--ah-text); box-shadow: 6px 6px 0 var(--ah-border); }
+4 -2
View File
@@ -267,7 +267,9 @@ const AdminPage = () => {
<button
type="button"
onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
className="p-2.5 rounded-xl text-dash-textMuted hover:bg-white/10 transition-all border border-transparent hover:border-dash-border/20 active:scale-90"
className="touch-target grid place-items-center border-2 border-dash-border bg-dash-surfaceElevated text-dash-textMuted hover:bg-dash-surface transition-colors"
aria-label={mobileMenuOpen ? 'Close admin navigation' : 'Open admin navigation'}
aria-expanded={mobileMenuOpen}
>
{mobileMenuOpen ? <X className="w-6 h-6" /> : <Menu className="w-6 h-6" />}
</button>
@@ -284,7 +286,7 @@ const AdminPage = () => {
{/* Alert Modal */}
{alertModal.open && (
<div className="fixed inset-0 bg-black/90 flex items-center justify-center z-[9999] p-4 animate-in fade-in duration-200">
<div className="w-full max-w-md border-2 border-dash-border bg-dash-surfaceElevated shadow-[6px_6px_0_0_rgba(0,0,0,0.8)] overflow-hidden animate-in zoom-in-95 duration-200">
<div className="w-full max-w-md border-2 border-dash-border bg-dash-surfaceElevated shadow-[6px_6px_0_0_rgba(21,21,21,0.8)] overflow-hidden animate-in zoom-in-95 duration-200">
<div className={`p-6 border-b-2 flex justify-between items-center ${
alertModal.type === 'error' ? 'border-brightRed/20' :
alertModal.type === 'success' ? 'border-brightGreen/20' : 'border-dash-border'
+7 -7
View File
@@ -2104,8 +2104,8 @@ const handleWebSocketMessage = useCallback((data) => {
</div>
<span className="font-bold text-dash-text tracking-tight truncate">Dashboard</span>
</div>
<button type="button" onClick={() => setIsMobileSidebarOpen(!isMobileSidebarOpen)} className="p-2.5 rounded-xl text-dash-textMuted hover:bg-white/10 active:scale-95 transition-all">
<Menu className="w-6 h-6" />
<button type="button" onClick={() => setIsMobileSidebarOpen(!isMobileSidebarOpen)} className="touch-target grid place-items-center border-2 border-dash-border bg-dash-surfaceElevated text-dash-textMuted hover:bg-dash-surface transition-colors" aria-label={isMobileSidebarOpen ? 'Close navigation menu' : 'Open navigation menu'} aria-expanded={isMobileSidebarOpen}>
<Menu className="w-6 h-6" aria-hidden="true" />
</button>
</header>
@@ -3340,7 +3340,7 @@ const handleWebSocketMessage = useCallback((data) => {
{ label: 'Username', value: selectedServer.sftp_username },
{ label: 'Password', value: selectedServer.sftp_password, isPassword: true }
].map((item, idx) => (
<div key={idx} className="p-4 rounded-xl border bg-white/5" style={{ borderColor: 'rgba(255,255,255,0.05)' }}>
<div key={idx} className="p-4 rounded-xl border bg-white/5" style={{ borderColor: 'rgba(245,245,245,0.05)' }}>
<div className="text-xs opacity-50 mb-1">{item.label}</div>
<div className="flex items-center justify-between">
<div className="font-mono text-sm truncate mr-2" style={{ color: colors.brightWhite }}>
@@ -3399,7 +3399,7 @@ const handleWebSocketMessage = useCallback((data) => {
showAlert('Success', 'SFTP command copied to clipboard', 'success');
}}
className="flex-1 lg:w-full flex items-center justify-center space-x-2 px-4 py-3 rounded-xl text-sm font-medium transition-all duration-200 hover:scale-105 border bg-white/5"
style={{ borderColor: 'rgba(255,255,255,0.1)', color: colors.brightWhite }}
style={{ borderColor: 'rgba(245,245,245,0.1)', color: colors.brightWhite }}
>
<Terminal className="w-4 h-4" />
<span>Copy SSH Cmd</span>
@@ -3502,7 +3502,7 @@ const handleWebSocketMessage = useCallback((data) => {
</div>
</div>
</div>
<div className="border-t px-5 sm:px-6 py-3 flex flex-wrap items-center justify-between gap-3" style={{ borderColor: `${colors.white}08`, backgroundColor: 'rgba(0,0,0,0.12)' }}>
<div className="border-t px-5 sm:px-6 py-3 flex flex-wrap items-center justify-between gap-3" style={{ borderColor: `${colors.white}08`, backgroundColor: 'rgba(21,21,21,0.12)' }}>
<p className="text-xs opacity-55">Internal ports stay inside the server; external ports accept connections from the internet.</p>
<button
type="button"
@@ -3568,7 +3568,7 @@ const handleWebSocketMessage = useCallback((data) => {
</div>
</td>
<td className="px-5 py-4">
<code className="text-xs px-2 py-1 rounded font-mono border" style={{ backgroundColor: 'rgba(0,0,0,0.4)', borderColor: 'rgba(255,255,255,0.05)', color: colors.foreground }}>22</code>
<code className="text-xs px-2 py-1 rounded font-mono border" style={{ backgroundColor: 'rgba(21,21,21,0.4)', borderColor: 'rgba(245,245,245,0.05)', color: colors.foreground }}>22</code>
</td>
<td className="px-5 py-4">
<div className="flex items-center gap-2">
@@ -3623,7 +3623,7 @@ const handleWebSocketMessage = useCallback((data) => {
</div>
</td>
<td className="px-5 py-4">
<code className="text-xs px-2 py-1 rounded font-mono border" style={{ backgroundColor: 'rgba(0,0,0,0.4)', borderColor: 'rgba(255,255,255,0.05)', color: colors.foreground }}>{port.internal}</code>
<code className="text-xs px-2 py-1 rounded font-mono border" style={{ backgroundColor: 'rgba(21,21,21,0.4)', borderColor: 'rgba(245,245,245,0.05)', color: colors.foreground }}>{port.internal}</code>
</td>
<td className="px-5 py-4">
<div className="flex items-center gap-2">
+1 -1
View File
@@ -1126,7 +1126,7 @@ Then visit the website and complete the WordPress setup form with the database n
)}
{activeArticle && <div className="mt-16 pt-8 border-t border-dash-border flex flex-col md:flex-row justify-between items-center gap-6 relative bg-black/5 p-6 sm:p-8 rounded-2xl border border-dash-border">
<div className="absolute top-0 left-12 w-24 h-[1px] bg-primary shadow-[0_0_15px_rgba(var(--color-primary),0.5)]" />
<div className="absolute top-0 left-12 w-24 h-[1px] bg-primary" />
<div className="flex items-center gap-6">
<div className="p-4 rounded-2xl bg-dash-surfaceElevated border border-dash-border shadow-xl shadow-black/20 group hover:border-primary/30 transition-all">
<Headphones className="w-8 h-8 text-primary group-hover:scale-110 group-hover:rotate-6 transition-transform" />
+17 -8
View File
@@ -1,31 +1,40 @@
/** Product palette: colors.ini is the canonical source; keep Tailwind aligned. */
/** Site palette mirrored from ~/.config/foot/foot.ini. Keep Tailwind aliases aligned. */
export const colors = {
foreground: '#D0D0D0',
background: '#151515',
backgroundSecondary: '#181818',
backgroundSecondary: '#151515',
black: '#151515',
red: '#A53C23',
green: '#7B9246',
yellow: '#D3A04D',
orange: '#D3A04D',
blue: '#6C99BB',
magenta: '#6C99BB',
magenta: '#9F4E85',
cyan: '#5EA8A2',
white: '#898989',
brightBlack: '#2F2F2F',
white: '#D0D0D0',
brightBlack: '#505050',
brightRed: '#A53C23',
brightGreen: '#7B9246',
brightYellow: '#D3A04D',
brightBlue: '#6C99BB',
brightMagenta: '#6C99BB',
brightMagenta: '#9F4E85',
brightCyan: '#5EA8A2',
brightWhite: '#F5F5F5',
primary: '#6C99BB',
darkBlue: '#6C99BB',
darkBlue: '#547C99',
darkCyan: '#5EA8A2',
darkWhite: '#505050',
darkRed: '#A53C23',
darkGreen: '#7B9246',
darkYellow: '#D3A04D',
darkMagenta: '#6C99BB',
darkMagenta: '#9F4E85',
surface: '#505050',
hover: '#547C99',
border: '#505050',
focus: '#547C99',
muted: '#D0D0D0',
dim: '#505050',
emphasis: '#F5F5F5',
accent_secondary: '#547C99',
warning: '#D3A04D',
};
+6 -6
View File
@@ -5,15 +5,15 @@
import { colors } from './colors';
export const dash = {
surface: '#202020',
surface: colors.surface,
surfaceElevated: colors.backgroundSecondary,
border: '#2F2F2F',
border: colors.border,
text: colors.brightWhite,
textMuted: '#D0D0D0',
textMuted: colors.muted,
accent: colors.primary,
danger: '#A53C23',
success: '#7B9246',
warning: '#D3A04D',
danger: colors.red,
success: colors.green,
warning: colors.yellow,
};
/** Shared layout class strings for panel chrome */
+18 -16
View File
@@ -5,9 +5,9 @@ module.exports = {
extend: {
colors: {
dash: {
surface: "#202020",
surfaceElevated: "#181818",
border: "#2F2F2F",
surface: "#505050",
surfaceElevated: "#151515",
border: "#505050",
text: "#F5F5F5",
textMuted: "#D0D0D0",
accent: "#6C99BB",
@@ -15,34 +15,36 @@ module.exports = {
success: "#7B9246",
warning: "#D3A04D",
},
// Preserve common legacy utility names without importing Tailwind's palette.
blue: { DEFAULT: "#6C99BB", 400: "#6C99BB", 500: "#6C99BB", 600: "#547C99" },
cyan: { DEFAULT: "#5EA8A2", 400: "#5EA8A2", 500: "#5EA8A2" },
green: { DEFAULT: "#7B9246", 400: "#7B9246", 500: "#7B9246" },
red: { DEFAULT: "#A53C23", 400: "#A53C23", 500: "#A53C23", 600: "#A53C23" },
yellow: { DEFAULT: "#D3A04D", 400: "#D3A04D", 500: "#D3A04D" },
orange: { DEFAULT: "#D3A04D", 400: "#D3A04D", 500: "#D3A04D", 600: "#D3A04D" },
gray: { 200: "#D0D0D0", 400: "#D0D0D0", 500: "#505050", 700: "#505050", 900: "#151515" },
foreground: "#D0D0D0",
background: "#151515",
backgroundSecondary: "#181818",
backgroundSecondary: "#151515",
black: "#151515",
red: "#A53C23",
green: "#7B9246",
yellow: "#D3A04D",
orange: "#D3A04D",
blue: "#6C99BB",
magenta: "#6C99BB",
cyan: "#5EA8A2",
white: "#898989",
brightBlack: "#2F2F2F",
white: "#F5F5F5",
magenta: "#9F4E85",
brightBlack: "#505050",
brightRed: "#A53C23",
brightGreen: "#7B9246",
brightYellow: "#D3A04D",
brightBlue: "#6C99BB",
brightMagenta: "#6C99BB",
brightMagenta: "#9F4E85",
brightCyan: "#5EA8A2",
brightWhite: "#F5F5F5",
primary: "#6C99BB",
darkBlue: "#6C99BB",
darkBlue: "#547C99",
darkCyan: "#5EA8A2",
darkWhite: "#505050",
darkRed: "#A53C23",
darkGreen: "#7B9246",
darkYellow: "#D3A04D",
darkMagenta: "#6C99BB",
darkMagenta: "#9F4E85",
},
},
},