Skip to content

An open-source, faster Devin alternative

TypeScript

docs: tighten radius via mint's --rounded-* vars (robust, all surfaces)

Igor Zalutski80f6de9172c4
diff --git a/docs/styles/custom.css b/docs/styles/custom.css
index f38d5b48..229719c0 100644
--- a/docs/styles/custom.css
+++ b/docs/styles/custom.css
@@ -58,15 +58,16 @@ pre code {
margin-top: 0.625rem; /* was mt-1 (4px) — too tight under the heading; give it air */
}
-/* Corner radius: OC's brand radius is 6px (the site's --radius). Mint already uses 6px for
- small UI, but over-rounds the big surfaces to 16px (rounded-2xl). Bring code blocks,
- callouts, and cards to the brand radius — crisper + consistent. Dial --oc-radius to taste
- (0.25rem = crisper, 0 = terminal-sharp). Pills/badges (rounded-full) are left alone. */
+/* Corner radius: OC's brand radius is 6px (the site's --radius). Mint wires each rounded-*
+ utility to a --rounded-* variable (defaulting the big steps to 12–16px), so redefine those
+ at the source. This tightens code blocks (incl. nested/tabbed pieces), cards, callouts, and
+ sidebar items consistently — and avoids the corner/border mismatch a single-element override
+ caused. Pills (rounded-full) and the small step (rounded-md = 6px) are left as-is.
+ Dial --oc-radius: 0.25rem = crisper, 0 = terminal-sharp. */
:root {
--oc-radius: 0.375rem;
-}
-[data-component-part="code-block-root"],
-[data-component-part="card"],
-.callout {
- border-radius: var(--oc-radius);
+ --rounded-lg: var(--oc-radius);
+ --rounded-xl: var(--oc-radius);
+ --rounded-2xl: var(--oc-radius);
+ --rounded-3xl: var(--oc-radius);
}