style(frontend): darken dashboard surfaces
Build and publish Docker image / build-and-publish (push) Successful in 14s
Build and publish Docker image / build-and-publish (push) Successful in 14s
This commit is contained in:
1 parent
9ee9983ee2
commit
28675a541b
4 files changed
+14
-15
No files matched your search
@@ -58,7 +58,7 @@ export function PageHeaderBar({
|
|||||||
export function StatTile({ icon: Icon, label, value, accentColor = colors.blue, className = '' }) {
|
export function StatTile({ icon: Icon, label, value, accentColor = colors.blue, className = '' }) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
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()}
|
className={`flex flex-col items-start justify-center p-5 rounded-sm border-2 text-left bg-dash-surface ${className}`.trim()}
|
||||||
style={{
|
style={{
|
||||||
borderColor: colors.brightBlack,
|
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 = '' }) {
|
export function SettingsPanel({ title, description, children, className = '' }) {
|
||||||
return (
|
return (
|
||||||
<div className={`rounded-sm border-2 border-dash-border bg-dash-surface overflow-hidden shadow-[4px_4px_0_#505050] ${className}`.trim()}>
|
<div className={`rounded-sm border-2 border-dash-border bg-dash-surface overflow-hidden ${className}`.trim()}>
|
||||||
{(title || description) && (
|
{(title || description) && (
|
||||||
<div className="px-5 py-4 border-b border-dash-border">
|
<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>}
|
{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
|
<Wrapper
|
||||||
type={interactive ? 'button' : undefined}
|
type={interactive ? 'button' : undefined}
|
||||||
onClick={interactive ? onClick : 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_#505050]' : ''} ${
|
className={`w-full text-left py-12 px-6 rounded-sm border-2 border-dash-border bg-dash-surface transition-colors duration-150 ${
|
||||||
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' : ''
|
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()}
|
}`.trim()}
|
||||||
>
|
>
|
||||||
@@ -158,7 +158,7 @@ export function SectionCard({ title, icon: Icon, children, color = colors.blue,
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
id={id}
|
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_#505050] ${className}`.trim()}
|
className={`group rounded-sm p-5 md:p-6 border-2 border-dash-border bg-dash-surface w-full ${className}`.trim()}
|
||||||
style={{
|
style={{
|
||||||
borderColor: colors.brightBlack,
|
borderColor: colors.brightBlack,
|
||||||
}}
|
}}
|
||||||
|
|||||||
+8
-9
@@ -242,7 +242,7 @@ a.focus-skip-global:focus-visible {
|
|||||||
:root {
|
:root {
|
||||||
--ah-background: #151515;
|
--ah-background: #151515;
|
||||||
--ah-panel: #151515;
|
--ah-panel: #151515;
|
||||||
--ah-surface: #505050;
|
--ah-surface: #151515;
|
||||||
--ah-hover: #547C99;
|
--ah-hover: #547C99;
|
||||||
--ah-border: #505050;
|
--ah-border: #505050;
|
||||||
--ah-focus: #547C99;
|
--ah-focus: #547C99;
|
||||||
@@ -253,7 +253,7 @@ a.focus-skip-global:focus-visible {
|
|||||||
--ah-accent: #6C99BB;
|
--ah-accent: #6C99BB;
|
||||||
--ah-accent-secondary: #547C99;
|
--ah-accent-secondary: #547C99;
|
||||||
--ah-warning: #D3A04D;
|
--ah-warning: #D3A04D;
|
||||||
--ah-shadow: 4px 4px 0 var(--ah-border);
|
--ah-shadow: none;
|
||||||
--tw-ring-offset-color: var(--ah-background);
|
--tw-ring-offset-color: var(--ah-background);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -448,7 +448,7 @@ body { color: var(--ah-text); background: var(--ah-background); }
|
|||||||
.app-container [class*="bg-dash-surfaceElevated/"] { background-color: var(--ah-panel) !important; }
|
.app-container [class*="bg-dash-surfaceElevated/"] { background-color: var(--ah-panel) !important; }
|
||||||
.app-container aside { background-color: var(--ah-background); }
|
.app-container aside { background-color: var(--ah-background); }
|
||||||
.app-container [class*="rounded-"] { border-radius: 2px !important; }
|
.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*="shadow-"] { box-shadow: none !important; }
|
||||||
.app-container [class*="scale-"] { scale: 1 !important; }
|
.app-container [class*="scale-"] { scale: 1 !important; }
|
||||||
.app-container .uppercase { letter-spacing: .02em; }
|
.app-container .uppercase { letter-spacing: .02em; }
|
||||||
.app-container .text-\[10px\] { font-size: 12px; }
|
.app-container .text-\[10px\] { font-size: 12px; }
|
||||||
@@ -464,7 +464,7 @@ body { color: var(--ah-text); background: var(--ah-background); }
|
|||||||
.app-container :is(button, a):focus-visible, .app-container :is(input, textarea, select):focus-visible { outline: 2px solid var(--ah-accent); outline-offset: 2px; }
|
.app-container :is(button, a):focus-visible, .app-container :is(input, textarea, select):focus-visible { outline: 2px solid var(--ah-accent); outline-offset: 2px; }
|
||||||
/* React portals (menus and dialogs) mount beside #root, so carry the same theme there. */
|
/* React portals (menus and dialogs) mount beside #root, so carry the same theme there. */
|
||||||
body > div:not(#root) [class*="rounded-"] { border-radius: 2px !important; }
|
body > div:not(#root) [class*="rounded-"] { border-radius: 2px !important; }
|
||||||
body > div:not(#root) :not(button):not(a)[class*="shadow-"]:not(.shadow-none) { box-shadow: var(--ah-shadow) !important; }
|
body > div:not(#root) [class*="shadow-"] { box-shadow: none !important; }
|
||||||
body > div:not(#root) :is(button, a)[class*="shadow-"] { box-shadow: none !important; transform: none !important; }
|
body > div:not(#root) :is(button, a)[class*="shadow-"] { box-shadow: none !important; transform: none !important; }
|
||||||
body > div:not(#root) [class*="backdrop-blur"] { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
|
body > div:not(#root) [class*="backdrop-blur"] { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
|
||||||
body > div:not(#root) [class*="bg-dash-surfaceElevated/"] { background-color: var(--ah-panel) !important; }
|
body > div:not(#root) [class*="bg-dash-surfaceElevated/"] { background-color: var(--ah-panel) !important; }
|
||||||
@@ -472,20 +472,19 @@ body > div:not(#root) :is(button, a, input, textarea, select):focus-visible { ou
|
|||||||
.dashboard-app, .admin-app { background: var(--ah-background) !important; color: var(--ah-text); }
|
.dashboard-app, .admin-app { background: var(--ah-background) !important; color: var(--ah-text); }
|
||||||
.admin-app [class*="backdrop-blur"] { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
|
.admin-app [class*="backdrop-blur"] { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
|
||||||
.admin-app [class*="rounded-"] { border-radius: 2px !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; }
|
.dashboard-app [class*="shadow-"], .admin-app [class*="shadow-"] { box-shadow: none !important; }
|
||||||
.admin-app [class*="scale-"] { scale: 1 !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) { border-radius: 2px; }
|
||||||
.admin-app :is(button, a, input, textarea, select):focus-visible { outline: 2px solid var(--ah-accent); outline-offset: 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); }
|
.dashboard-app .bg-dash-surface, .admin-app .bg-dash-surface { background-color: var(--ah-surface); }
|
||||||
.dashboard-app .bg-dash-surfaceElevated, .admin-app .bg-dash-surfaceElevated { background-color: var(--ah-panel); }
|
.dashboard-app .bg-dash-surfaceElevated, .admin-app .bg-dash-surfaceElevated { background-color: var(--ah-panel); }
|
||||||
.dashboard-app .border-dash-border, .admin-app .border-dash-border { border-color: var(--ah-border); }
|
.dashboard-app .border-dash-border, .admin-app .border-dash-border { border-color: var(--ah-border); }
|
||||||
.dashboard-app .rounded-xl.border-dash-border, .dashboard-app .rounded-2xl.border-dash-border,
|
.dashboard-app [class*="bg-white/"], .admin-app [class*="bg-white/"] { background-color: var(--ah-panel) !important; }
|
||||||
.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 .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; }
|
.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. */
|
/* 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); }
|
.ah-server-card { min-width: 0; overflow: hidden; border: 2px solid var(--ah-border); background: var(--ah-panel); color: var(--ah-text); box-shadow: none; }
|
||||||
.ah-server-card-content { display: flex; min-height: 100%; flex-direction: column; }
|
.ah-server-card-content { display: flex; min-height: 100%; flex-direction: column; }
|
||||||
.ah-server-card-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; min-width: 0; padding: 18px; border-bottom: 2px solid var(--ah-border); background: var(--ah-surface); }
|
.ah-server-card-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; min-width: 0; padding: 18px; border-bottom: 2px solid var(--ah-border); background: var(--ah-surface); }
|
||||||
.ah-server-card-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
|
.ah-server-card-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
|
||||||
@@ -511,7 +510,7 @@ body > div:not(#root) :is(button, a, input, textarea, select):focus-visible { ou
|
|||||||
.app-container :is(button, a)[class*="shadow-"] { box-shadow: none !important; transform: none !important; }
|
.app-container :is(button, a)[class*="shadow-"] { box-shadow: none !important; transform: none !important; }
|
||||||
|
|
||||||
/* Opaque tooltip panels use the same ink border and offset shadow as other surfaces. */
|
/* Opaque tooltip panels use the same ink border and offset shadow as other surfaces. */
|
||||||
.ah-tooltip { max-width: min(24rem, calc(100vw - 2rem)); border: 2px solid var(--ah-border); background: var(--ah-panel); color: var(--ah-emphasis); box-shadow: 5px 5px 0 var(--ah-border); line-height: 1.5; overflow-wrap: anywhere; }
|
.ah-tooltip { max-width: min(24rem, calc(100vw - 2rem)); border: 2px solid var(--ah-border); background: var(--ah-panel); color: var(--ah-emphasis); box-shadow: none; line-height: 1.5; overflow-wrap: anywhere; }
|
||||||
.ah-tooltip-heading { margin-bottom: 7px; color: var(--ah-accent); font-size: 14px; font-weight: 850; line-height: 1.3; }
|
.ah-tooltip-heading { margin-bottom: 7px; color: var(--ah-accent); font-size: 14px; font-weight: 850; line-height: 1.3; }
|
||||||
.ah-tooltip-description { margin-bottom: 11px; color: var(--ah-text); font-size: 12px; line-height: 1.5; }
|
.ah-tooltip-description { margin-bottom: 11px; color: var(--ah-text); font-size: 12px; line-height: 1.5; }
|
||||||
.ah-tooltip-code { padding: 8px 9px; border: 1px solid var(--ah-border); background: var(--ah-background); color: var(--ah-emphasis); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }
|
.ah-tooltip-code { padding: 8px 9px; border: 1px solid var(--ah-border); background: var(--ah-background); color: var(--ah-emphasis); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ export const colors = {
|
|||||||
darkGreen: '#7B9246',
|
darkGreen: '#7B9246',
|
||||||
darkYellow: '#D3A04D',
|
darkYellow: '#D3A04D',
|
||||||
darkMagenta: '#9F4E85',
|
darkMagenta: '#9F4E85',
|
||||||
surface: '#505050',
|
surface: '#151515',
|
||||||
hover: '#547C99',
|
hover: '#547C99',
|
||||||
border: '#505050',
|
border: '#505050',
|
||||||
focus: '#547C99',
|
focus: '#547C99',
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ module.exports = {
|
|||||||
extend: {
|
extend: {
|
||||||
colors: {
|
colors: {
|
||||||
dash: {
|
dash: {
|
||||||
surface: "#505050",
|
surface: "#151515",
|
||||||
surfaceElevated: "#151515",
|
surfaceElevated: "#151515",
|
||||||
border: "#505050",
|
border: "#505050",
|
||||||
text: "#F5F5F5",
|
text: "#F5F5F5",
|
||||||
|
|||||||
Reference in new issue
Block a user