style: adopt the E&P corporate design tokens and components

This commit is contained in:
fromme committed 2026-11-12 11:13:30 +01:00
1 parent 126a0680db
commit acd8e78e55
12 files changed
+120 -49

No files matched your search

+42 -3
View File
@@ -6,12 +6,45 @@
@source inline("rotate-90");
/*
* Corporate design of the internal E&P tools, as defined by the apps portal (Gitea EP/apps,
* frontend/app/globals.css) and ported to Symfony by epbms: Lato, deep blue as the brand colour,
* magenta only for the main action, square shapes, light blue page.
* Status colours (green, red, amber) always come with text, never alone.
*/
@theme {
--font-sans: Lato, sans-serif;
--font-weight-semibold: 700;
--font-weight-bold: 900;
--color-primary: #3d8ccb;
--color-secondary: #f9c700;
/* square everywhere; rounded-full stays round. Plain `rounded` reads --radius. */
--radius: 0px;
--radius-xs: 0px;
--radius-sm: 0px;
--radius-md: 0px;
--radius-lg: 0px;
--radius-xl: 0px;
--radius-2xl: 0px;
--radius-3xl: 0px;
--radius-4xl: 0px;
--color-brand: #18527b; /* E&P deep blue, 8.5:1 on white */
--color-brand-dark: #103c5b;
--color-brand-mid: #165883;
--color-brand-bright: #009fff; /* underlines and focus, never text */
--color-brand-light: #e3eef8;
--color-page: #ebf3fa; /* page background */
--color-line: #d8e3ed; /* borders */
--color-ink: #27272a; /* text */
--color-muted: #52525b; /* secondary text, 7.7:1 on white */
--color-accent: #c4097c; /* magenta of the main action */
--color-accent-from: #960167;
--color-accent-to: #fa1a8c;
/* the colour name the templates were written with, now on the brand colour */
--color-primary: var(--color-brand);
}
/*
@@ -24,7 +57,7 @@
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentcolor);
border-color: var(--color-line, currentcolor);
}
button:not(:disabled),
@@ -43,4 +76,10 @@
scrollbar-width: thin;
scrollbar-color: var(--color-gray-300) transparent;
}
/* visible keyboard focus everywhere (WCAG 2.4.7) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
outline: 3px solid var(--color-brand-bright);
outline-offset: 2px;
}
}