MCPcopy Create free account
hub / github.com/idosal/git-mcp / layout

Function layout

src/utils.ts:12–173  ·  view source on GitHub ↗
(
  content: HtmlEscapedString | string,
  title: string,
)

Source from the content-addressed store, hash-verified

10// anything from this file.
11
12export const layout = (
13 content: HtmlEscapedString | string,
14 title: string,
15) => html`
16 <!DOCTYPE html>
17 <html lang="en">
18 <head>
19 <meta charset="UTF-8" />
20 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
21 <title>${title}</title>
22 <script src="https://cdn.tailwindcss.com"></script>
23 <script>
24 tailwind.config = {
25 theme: {
26 extend: {
27 colors: {
28 primary: "#3498db",
29 secondary: "#2ecc71",
30 accent: "#f39c12",
31 },
32 fontFamily: {
33 sans: ["Inter", "system-ui", "sans-serif"],
34 heading: ["Roboto", "system-ui", "sans-serif"],
35 },
36 },
37 },
38 };
39 </script>
40 <style>
41 @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap");
42
43 /* Custom styling for markdown content */
44 .markdown h1 {
45 font-size: 2.25rem;
46 font-weight: 700;
47 font-family: "Roboto", system-ui, sans-serif;
48 color: #1a202c;
49 margin-bottom: 1rem;
50 line-height: 1.2;
51 }
52
53 .markdown h2 {
54 font-size: 1.5rem;
55 font-weight: 600;
56 font-family: "Roboto", system-ui, sans-serif;
57 color: #2d3748;
58 margin-top: 1.5rem;
59 margin-bottom: 0.75rem;
60 line-height: 1.3;
61 }
62
63 .markdown h3 {
64 font-size: 1.25rem;
65 font-weight: 600;
66 font-family: "Roboto", system-ui, sans-serif;
67 color: #2d3748;
68 margin-top: 1.25rem;
69 margin-bottom: 0.5rem;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected