Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 5f0d1db

Browse files
committed
update global theme, and apis diagram.
1 parent 6333744 commit 5f0d1db

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

docs/apis.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ Nitric has built-in support for web apps and HTTP API development. The `api` res
1212
graph LR;
1313
classDef default line-height:1.2;
1414
15-
A[Api]-->B[Service A];
16-
A-->C[Service B];
15+
A(Admin Api)-->B(Service A);
16+
A-->C(Service B);
17+
D(Public Api)-->B(Service A)
1718
```
1819

20+
> An API can route to many nitric services, and services can handle many APIs.
21+
1922
## Creating APIs
2023

2124
Nitric allows you define named APIs, each with their own routes, middleware, handlers and security.

src/mdx/remark.mjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ export const remarkPlugins = [
1111
output: 'svg',
1212
mermaid: {
1313
theme: 'base',
14+
// TODO: Relocate theme config
1415
themeVariables: {
15-
primaryColor: '#ff0000',
16-
secondaryColor: '#00ff00',
16+
primaryColor: '#242037',
17+
lineColor: '#cad3f5',
18+
secondaryColor: '#42424a',
1719
tertiaryColor: '#0000ff',
18-
textColor: '#000000',
20+
primaryTextColor: '#cad3f5',
1921
fontSize: '14px',
2022
fontFamily: 'Fira Code, monospace',
2123
},

0 commit comments

Comments
 (0)