/* * Devframe brand palette (sage green, anchored on the old VitePress brand * color #517158). Nuxt UI maps `--ui-color-primary-*` to `var(--color-sage-*)` * when `ui.colors.primary` is `sage`, so defining these custom properties is * enough to theme every primary accent (links, section labels, syntax hints). */ :root { --color-sage-50: #f3f7f3; --color-sage-100: #e3ede4; --color-sage-200: #c8dcca; --color-sage-300: #9fc0a4; --color-sage-400: #6f9d77; --color-sage-500: #517158; --color-sage-600: #445f4a; --color-sage-700: #384d3d; --color-sage-800: #2f3f33; --color-sage-900: #28352b; --color-sage-950: #131d16; } /* * The comark-docs layer pins the semantic `--ui-primary` and highlighted text * to neutral for its monochrome look; devframe uses its brand green for both * the primary accent (buttons, links, active nav) and highlighted text * (headings, emphasis). The doubled `:root:root` / `:root.dark` selectors give * these a higher specificity than the layer's plain `:root` / `.dark`, so they * win regardless of stylesheet load order. */ :root { --ui-primary: var(--ui-color-primary-500); } .dark { --ui-primary: var(--ui-color-primary-400); } [data-active].text-highlighted { color: var(--ui-color-primary-500); } .dark [data-active].text-highlighted { color: var(--ui-color-primary-400); } .mermaid svg { width: 100%; } .post-diagram-frame { width: min(52rem, calc(100vw - 1rem)); margin-inline: calc(50% - min(26rem, calc(50vw - 0.5rem))); background: linear-gradient(to bottom right, #88888810, #88888815); box-shadow: 0 1.25rem 4rem rgb(0 0 0 / 5%); } .dark .post-diagram-frame { box-shadow: 0 1.25rem 4rem rgb(0 0 0 / 40%); } @media (max-width: 39.999rem) { .post-diagram-frame { width: 100%; margin-inline: 0; } } .terminal-window { position: relative; overflow: hidden; margin: 1.2em 0; border: 1px solid var(--ui-border); border-radius: 0.75rem; background: var(--ui-bg); box-shadow: 0 10px 30px rgb(0 0 0 / 5%); } .terminal-window::before { display: block; height: 2rem; border-bottom: 1px solid var(--ui-border); background: var(--ui-bg-elevated); content: ''; } .terminal-window::after { position: absolute; top: 0.6rem; left: 0.8rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #ff5f57; box-shadow: 1.2rem 0 #febc2e, 2.4rem 0 #28c840; content: ''; } .terminal-window > div { margin: 0; } .terminal-window > pre, .terminal-window > div > pre { overflow-x: auto; margin: 0 !important; padding: 1.2rem 1.35rem 1.35rem; border: 0; border-radius: 0; background: transparent !important; } .dark .terminal-window { box-shadow: 0 10px 30px rgb(0 0 0 / 27%); } .\[\&\>code\]\:border-current > code { border-color: color-mix(in oklab, var(--ui-primary) 50%, transparent); outline: none; } .prose-date { font-size: 0.875rem; color: var(--ui-text-muted); margin-bottom: 1rem; margin-top: -3rem; }