settlekit/apps/docs/app/globals.css
pextacy bcd51b5829 feat(ui): "Statement" greenbar-ledger frontend redesign
Replace the dark blue→purple gradient SaaS look across all 7 apps with a
gradient-free settlement-ledger identity grounded in what SettleKit does:
reconcile money to the cent.

- Palette: greenbar ledger paper + ink, with accounting semantics
  (credit-green / debit-red / ink-blue seal). No gradients or glows.
- Type: Archivo (display/body) + IBM Plex Mono carrying every number,
  label and section reference; loaded via next/font in each app layout.
- Signature: apps/web hero is a live settlement statement — debit/credit
  line items printing in sequentially with a rotated "SETTLED" stamp.
- apps/web fully rebuilt (globals, layout, components, pages); dashboard,
  portal, marketplace, admin, checkout, docs rethemed by flipping :root
  token values (component JSX untouched); shared packages/ui/theme.css
  moved to the same system.

All 7 apps + @settlekit/ui build clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 22:35:42 +03:00

371 lines
6.0 KiB
CSS

:root {
/* STATEMENT — greenbar ledger palette (see @settlekit/ui) */
--bg: #ebede4;
--bg-elev: #dde3d1;
--bg-code: #e3e6da;
--border: #c4cbb8;
--text: #18211c;
--text-dim: #45524b;
--accent: #1e40a2;
--accent-strong: #16306f;
--radius: 4px;
--maxw: 820px;
--font-sans: var(--font-archivo), "Archivo", system-ui, -apple-system,
"Segoe UI", Roboto, sans-serif;
--font-mono: var(--font-mono-plex), "IBM Plex Mono", ui-monospace, "SF Mono",
Menlo, Consolas, monospace;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
background: var(--bg);
color: var(--text);
font-family: var(--font-sans);
font-size: 16px;
line-height: 1.65;
-webkit-font-smoothing: antialiased;
}
a {
color: var(--accent);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.layout {
display: grid;
grid-template-columns: 260px minmax(0, 1fr);
min-height: 100vh;
}
.layout__sidebar {
border-right: 1px solid var(--border);
background: var(--bg-elev);
padding: 24px 20px;
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
}
.layout__main {
padding: 48px 40px 96px;
}
.content {
max-width: var(--maxw);
margin: 0 auto;
}
/* ---- Nav ---- */
.nav__brand {
display: block;
font-weight: 700;
font-size: 18px;
color: var(--text);
margin-bottom: 24px;
}
.nav__brand:hover {
text-decoration: none;
color: var(--accent);
}
.nav__section {
margin-bottom: 22px;
}
.nav__section-title {
text-transform: uppercase;
letter-spacing: 0.06em;
font-size: 11px;
font-weight: 600;
color: var(--text-dim);
margin: 0 0 8px;
}
.nav__list {
list-style: none;
margin: 0;
padding: 0;
}
.nav__link {
display: block;
padding: 5px 10px;
border-radius: 6px;
color: var(--text-dim);
font-size: 14px;
}
.nav__link:hover {
color: var(--text);
background: rgba(24, 33, 28, 0.05);
text-decoration: none;
}
.nav__link--active {
color: var(--bg);
background: var(--accent-strong);
font-weight: 600;
}
.nav__link--active:hover {
color: var(--bg);
background: var(--accent);
}
/* ---- Prose ---- */
.content h1 {
font-size: 34px;
line-height: 1.2;
margin: 0 0 8px;
letter-spacing: -0.02em;
}
.content h2 {
font-size: 22px;
margin: 40px 0 12px;
border-bottom: 1px solid var(--border);
padding-bottom: 8px;
}
.content h3 {
font-size: 17px;
margin: 28px 0 8px;
}
.content p,
.content li {
color: var(--text);
}
.lead {
font-size: 18px;
color: var(--text-dim);
margin: 0 0 28px;
}
.content ul,
.content ol {
padding-left: 22px;
}
.content li {
margin: 6px 0;
}
.content code {
background: var(--bg-code);
border: 1px solid var(--border);
border-radius: 4px;
padding: 1px 5px;
font-family: var(--font-mono);
font-size: 13px;
}
/* ---- CodeBlock ---- */
.code-block {
margin: 18px 0;
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
background: var(--bg-code);
}
.code-block__head {
display: flex;
justify-content: space-between;
align-items: center;
padding: 6px 14px;
background: var(--bg-elev);
border-bottom: 1px solid var(--border);
font-size: 12px;
color: var(--text-dim);
}
.code-block__title {
font-family: var(--font-mono);
}
.code-block__lang {
text-transform: uppercase;
letter-spacing: 0.05em;
margin-left: auto;
}
.code-block__pre {
margin: 0;
padding: 16px;
overflow-x: auto;
}
.code-block__pre code {
background: none;
border: none;
padding: 0;
font-family: var(--font-mono);
font-size: 13px;
line-height: 1.55;
color: var(--text);
white-space: pre;
}
/* ---- Cards / tables ---- */
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 14px;
margin: 20px 0;
}
.card {
display: block;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px;
background: var(--bg-elev);
color: var(--text);
}
.card:hover {
border-color: var(--accent-strong);
text-decoration: none;
}
.card__title {
font-weight: 600;
margin: 0 0 4px;
}
.card__desc {
font-size: 14px;
color: var(--text-dim);
margin: 0;
}
.endpoint-table {
width: 100%;
border-collapse: collapse;
margin: 16px 0;
font-size: 14px;
}
.endpoint-table th,
.endpoint-table td {
text-align: left;
padding: 8px 10px;
border-bottom: 1px solid var(--border);
vertical-align: top;
}
.endpoint-table th {
color: var(--text-dim);
font-weight: 600;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.method {
font-family: ui-monospace, Menlo, Consolas, monospace;
font-size: 12px;
font-weight: 700;
padding: 2px 6px;
border-radius: 4px;
}
.method--get {
color: #1e40a2;
background: rgba(30, 64, 162, 0.1);
}
.method--post {
color: #2c6e49;
background: rgba(44, 110, 73, 0.12);
}
.method--patch {
color: #9a6a18;
background: rgba(154, 106, 24, 0.12);
}
.method--put {
color: #a3552b;
background: rgba(163, 85, 43, 0.12);
}
.method--delete {
color: #a33a2b;
background: rgba(163, 58, 43, 0.1);
}
.path {
font-family: ui-monospace, Menlo, Consolas, monospace;
font-size: 13px;
}
.steps {
counter-reset: step;
list-style: none;
padding-left: 0;
}
.steps li {
counter-increment: step;
position: relative;
padding-left: 38px;
margin: 14px 0;
}
.steps li::before {
content: counter(step);
position: absolute;
left: 0;
top: 0;
width: 26px;
height: 26px;
border-radius: 50%;
background: var(--accent-strong);
color: var(--bg);
font-weight: 700;
font-size: 13px;
display: flex;
align-items: center;
justify-content: center;
}
.note {
border-left: 3px solid var(--accent-strong);
background: var(--bg-elev);
padding: 12px 16px;
border-radius: 0 var(--radius) var(--radius) 0;
margin: 18px 0;
color: var(--text-dim);
font-size: 14px;
}
@media (max-width: 760px) {
.layout {
grid-template-columns: 1fr;
}
.layout__sidebar {
position: static;
height: auto;
border-right: none;
border-bottom: 1px solid var(--border);
}
.layout__main {
padding: 28px 20px 64px;
}
}