Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions mintlify/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@
"dark": "#000000"
}
},
"fonts": {
"heading": {
"family": "Suisse Intl",
"source": "/fonts/suisse-intl/SuisseIntl-Medium.woff2",
"format": "woff2",
"weight": 500
},
"body": {
"family": "Suisse Intl",
"source": "/fonts/suisse-intl/SuisseIntl-Regular.woff2",
"format": "woff2",
"weight": 400
}
},
"favicon": "/favicon.svg",
"navigation": {
"tabs": [
Expand Down Expand Up @@ -256,6 +270,20 @@
},
"head": {
"links": [
{
"rel": "preload",
"href": "/fonts/suisse-intl/SuisseIntl-Regular.woff2",
"as": "font",
"type": "font/woff2",
"crossOrigin": "anonymous"
},
{
"rel": "preload",
"href": "/fonts/suisse-intl/SuisseIntl-Book.woff2",
"as": "font",
"type": "font/woff2",
"crossOrigin": "anonymous"
},
{
"rel": "preload",
"href": "/fonts/suisse-intl/SuisseIntl-Medium.woff2",
Expand All @@ -265,14 +293,14 @@
},
{
"rel": "preload",
"href": "/fonts/suisse-intl/SuisseIntl-Regular.woff2",
"href": "/fonts/suisse-intl-mono/SuisseIntlMono-Regular-WebXL.woff2",
"as": "font",
"type": "font/woff2",
"crossOrigin": "anonymous"
},
{
"rel": "preload",
"href": "/fonts/suisse-intl/SuisseIntl-Bold.woff2",
"href": "/fonts/suisse-intl-mono/SuisseIntlMono-Bold-WebXL.woff2",
"as": "font",
"type": "font/woff2",
"crossOrigin": "anonymous"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file removed mintlify/fonts/suisse-intl/SuisseIntl-Bold.woff2
Binary file not shown.
Binary file added mintlify/fonts/suisse-intl/SuisseIntl-Book.woff2
Binary file not shown.
88 changes: 45 additions & 43 deletions mintlify/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -140,48 +140,50 @@ export const HeroCard = ({ title, description, href, icon, whiteIcon }) => {
</div>
</div>

<div className="flex w-full justify-center items-center mb-6">
<div className="footer mx-auto">
<a href="https://x.com/lightspark" target="_blank" className="h-fit">
<span className="sr-only">x</span>
<svg
className="w-5 h-5 bg-gray-400 dark:bg-gray-500 hover:bg-gray-500 dark:hover:bg-gray-400"
style={{
maskImage: 'url("/images/x-twitter.svg")',
maskRepeat: "no-repeat",
maskPosition: "center center",
}}
></svg>
</a>
<a
href="https://github.com/lightsparkdev"
target="_blank"
className="h-fit"
>
<span className="sr-only">github</span>
<svg
className="w-5 h-5 bg-gray-400 dark:bg-gray-500 hover:bg-gray-500 dark:hover:bg-gray-400"
style={{
maskImage: 'url("/images/github.svg")',
maskRepeat: "no-repeat",
maskPosition: "center center",
}}
></svg>
</a>
<a
href="https://linkedin.com/company/lightspark-group"
target="_blank"
className="h-fit"
>
<span className="sr-only">linkedin</span>
<svg
className="w-5 h-5 bg-gray-400 dark:bg-gray-500 hover:bg-gray-500 dark:hover:bg-gray-400"
style={{
maskImage: 'url("/images/linkedin.svg")',
maskRepeat: "no-repeat",
maskPosition: "center center",
}}
></svg>
</a>
<div className="flex usecase w-full justify-center items-center">
<div className="section mx-auto">
<div className="footer">
<a href="https://x.com/lightspark" target="_blank" className="h-fit">
<span className="sr-only">x</span>
<svg
className="w-5 h-5 bg-gray-400 dark:bg-gray-500 hover:bg-gray-500 dark:hover:bg-gray-400"
style={{
maskImage: 'url("/images/x-twitter.svg")',
maskRepeat: "no-repeat",
maskPosition: "center center",
}}
></svg>
</a>
<a
href="https://github.com/lightsparkdev"
target="_blank"
className="h-fit"
>
<span className="sr-only">github</span>
<svg
className="w-5 h-5 bg-gray-400 dark:bg-gray-500 hover:bg-gray-500 dark:hover:bg-gray-400"
style={{
maskImage: 'url("/images/github.svg")',
maskRepeat: "no-repeat",
maskPosition: "center center",
}}
></svg>
</a>
<a
href="https://linkedin.com/company/lightspark-group"
target="_blank"
className="h-fit"
>
<span className="sr-only">linkedin</span>
<svg
className="w-5 h-5 bg-gray-400 dark:bg-gray-500 hover:bg-gray-500 dark:hover:bg-gray-400"
style={{
maskImage: 'url("/images/linkedin.svg")',
maskRepeat: "no-repeat",
maskPosition: "center center",
}}
></svg>
</a>
</div>
</div>
</div>
44 changes: 40 additions & 4 deletions mintlify/styles/fonts.css
Original file line number Diff line number Diff line change
@@ -1,25 +1,61 @@
/* ===========================================
Suisse Intl Font Family
=========================================== */

/* Regular (400) - Default body text */
@font-face {
font-family: "Suisse Intl";
src: url("/fonts/suisse-intl/SuisseIntl-Regular.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
font-display: block;
}

/* Book (450) - Button text */
@font-face {
font-family: "Suisse Intl";
src: url("/fonts/suisse-intl/SuisseIntl-Book.woff2") format("woff2");
font-weight: 450;
font-style: normal;
font-display: block;
}
Comment on lines +14 to 21
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Book weight (450) is defined and preloaded but not used anywhere in the CSS. Consider using it for buttons as the comment suggests, or remove to reduce font loading overhead.

Prompt To Fix With AI
This is a comment left during a code review.
Path: mintlify/styles/fonts.css
Line: 14:21

Comment:
**style:** Book weight (450) is defined and preloaded but not used anywhere in the CSS. Consider using it for buttons as the comment suggests, or remove to reduce font loading overhead.

How can I resolve this? If you propose a fix, please make it concise.


/* Medium (500) - Bold/emphasis text */
@font-face {
font-family: "Suisse Intl";
src: url("/fonts/suisse-intl/SuisseIntl-Medium.woff2") format("woff2");
font-weight: 500;
font-style: normal;
font-display: swap;
font-display: block;
}

/* Map bold (700) to Medium for consistent typography */
@font-face {
font-family: "Suisse Intl";
src: url("/fonts/suisse-intl/SuisseIntl-Bold.woff2") format("woff2");
src: url("/fonts/suisse-intl/SuisseIntl-Medium.woff2") format("woff2");
font-weight: 700;
font-style: normal;
font-display: swap;
font-display: block;
}

/* ===========================================
Suisse Intl Mono Font Family
=========================================== */

/* Mono Regular - Code blocks */
@font-face {
font-family: "Suisse Intl Mono";
src: url("/fonts/suisse-intl-mono/SuisseIntlMono-Regular-WebXL.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: block;
}

/* Mono Bold - Bold code */
@font-face {
font-family: "Suisse Intl Mono";
src: url("/fonts/suisse-intl-mono/SuisseIntlMono-Bold-WebXL.woff2") format("woff2");
font-weight: 700;
font-style: normal;
font-display: block;
}
87 changes: 77 additions & 10 deletions mintlify/styles/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,77 @@
/* ===========================================
Custom Font Styles for Suisse Intl

Note: Base fonts (body/heading) are configured
in docs.json using Mintlify's fonts config.
This CSS handles additional customizations.
=========================================== */

/* Global: Enable single-story 'a' (stylistic alternates) */
* {
font-feature-settings: "salt" on;
text-shadow: none;
}

/* Headings & Bold: Use Medium weight (500), normal tracking */
h1, h2, h3, h4, h5, h6,
strong, b, th,
.sidebar-group-header,
.eyebrow,
.font-semibold,
[data-component-part="step-title"],
[data-component-part="tab-button"] {
font-weight: 500 !important;
letter-spacing: normal !important;
}

/* Navigation tabs, navbar links & CTA button: Medium weight */
.nav-tabs-item,
.navbar-link a,
#topbar-cta-button, #topbar-cta-button *,
#page-context-menu-button, #page-context-menu-button *,
#pagination a, #pagination a * {
font-weight: 500 !important;
text-shadow: none !important;
}

/* Active sidebar item only: Medium weight (has text-primary class) */
a[class*="text-primary"]:not(.nav-tabs-item),
a[class*="text-primary"]:not(.nav-tabs-item) *,
button[class*="text-primary"],
button[class*="text-primary"] * {
font-weight: 500 !important;
}

/* Code: Use Suisse Intl Mono */
code, pre, kbd, samp, .font-mono {
font-family: "Suisse Intl Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
font-feature-settings: "salt" on !important;
}

/* API field names: Mono Bold */
[data-component-part="field-name"] {
font-family: "Suisse Intl Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
font-weight: 700 !important;
font-feature-settings: "salt" on !important;
}

/* Homepage: Headings use Regular weight (400) */
.hero h1, .hero h2, .hero h3,
.hero .title, .hero .highlight,
.usecase h2, .usecase .highlight,
.hero-card h3, .card-content h3 {
font-weight: 400 !important;
}

/* Hero title letter-spacing */
.hero .title span {
letter-spacing: -1.2px !important;
}

/* ===========================================
Existing Styles
=========================================== */

html.light .hero {
background: #f0f0ee;
background-image: radial-gradient(
Expand Down Expand Up @@ -76,10 +150,9 @@ html.dark .hero-card {
align-items: center;
gap: 4px;
border-radius: 4px;
font-feature-settings: "salt" on;
font-size: 16px;
font-style: normal;
font-weight: 400;
font-weight: 500; /* Medium weight for buttons */
line-height: 24px;
}

Expand All @@ -90,7 +163,6 @@ html.dark .hero-card {
padding-right: 16px;
margin-bottom: 32px;
gap: 32px;
font-family: "Suisse Intl";
}

@media (min-width: 640px) {
Expand Down Expand Up @@ -149,7 +221,6 @@ html.dark .hero-card {
align-items: flex-start;
gap: 32px;
align-self: stretch;
font-family: "Suisse Intl";
}

@media (min-width: 640px) {
Expand Down Expand Up @@ -197,18 +268,14 @@ html.dark .hero-card {

.footer {
display: flex;
width: 100%;
max-width: 1200px;
flex-direction: row;
align-items: flex-start;
align-items: center;
gap: 16px;
padding: 0 16px;
}

@media (min-width: 640px) {
.footer {
gap: 20px;
padding: 0;
}
}

Expand Down Expand Up @@ -269,4 +336,4 @@ html.dark .hero-card {

#footer > div.flex.items-center.justify-between > div > a {
display: none;
}
}