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
22 changes: 22 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "",
"css": "src/app/globals.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"iconLibrary": "lucide",
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"registries": {}
}
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,30 @@
"start": "next start"
},
"dependencies": {
"@base-ui/react": "^1.1.0",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-popover": "^1.1.15",
"@radix-ui/react-slot": "^1.2.4",
"@tailwindcss/postcss": "^4.1.18",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"dayjs": "^1.11.19",
"lucide-react": "^0.563.0",
"next": "^16.0.7",
"nextra": "^4.6.1",
"nextra-theme-docs": "^4.6.1",
"postcss": "^8.5.6",
"react": "19.1.0",
"react-dom": "19.1.0",
"tailwind-merge": "^3.4.0",
"tailwindcss": "^4.1.18"
},
"devDependencies": {
"@types/node": "25.0.3",
"@types/react": "19.2.7",
"gray-matter": "^4.0.3",
"pagefind": "^1.3.0",
"tw-animate-css": "^1.4.0",
"typescript": "5.9.3"
}
}
20 changes: 20 additions & 0 deletions src/app/_components/CardInfo.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export const CardInfo = ({
classNames = {
container: "",
title: "",
description: "",
},
title,
children,
}) => {
return (
<div
className={`mt-10 p-6 bg-gray-100 dark:bg-zinc-800 dark:border-zinc-600 border border-gray-200 shadow rounded-lg ${classNames.container}`}
>
{title && (
<p className={`font-semibold text-xl ${classNames.title}`}>{title}</p>
)}
<ul className={`list-disc ${classNames.description}`}>{children}</ul>
</div>
)
}
23 changes: 15 additions & 8 deletions src/app/_meta.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
export default {
index: {
display: 'hidden'
display: "hidden",
},
docs: {
type: 'page',
title: 'Documentation'
type: "page",
title: "Documentation",
},
blog: {
type: 'page',
title: 'Blog'
type: "page",
title: "Blog",
},
community: {
type: 'page',
title: 'Community'
}
type: "page",
title: "Community",
},
troubleshooting: {
theme: {
sidebar: false, // Hide sidebar on this page
toc: false,
},
type: "page",
},
}
133 changes: 133 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,80 @@
@import "tailwindcss";

@custom-variant dark (&:is(.dark *));

@variant dark (&:where(.dark *));
/* SpaceDF Theme Color Configuration */
:root {
--nextra-primary-hue: 255deg;
--nextra-primary-saturation: 84%;
--nextra-primary-lightness: 80%;
--radius: 0.625rem;
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--primary: oklch(0.205 0 0);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.97 0 0);
--secondary-foreground: oklch(0.205 0 0);
--muted: oklch(0.97 0 0);
--muted-foreground: oklch(0.556 0 0);
--accent: oklch(0.97 0 0);
--accent-foreground: oklch(0.205 0 0);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.922 0 0);
--input: oklch(0.922 0 0);
--ring: oklch(0.708 0 0);
--chart-1: oklch(0.646 0.222 41.116);
--chart-2: oklch(0.6 0.118 184.704);
--chart-3: oklch(0.398 0.07 227.392);
--chart-4: oklch(0.828 0.189 84.429);
--chart-5: oklch(0.769 0.188 70.08);
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.145 0 0);
--sidebar-primary: oklch(0.205 0 0);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.97 0 0);
--sidebar-accent-foreground: oklch(0.205 0 0);
--sidebar-border: oklch(0.922 0 0);
--sidebar-ring: oklch(0.708 0 0);
}

.dark {
--nextra-primary-lightness: 80%;
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.205 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.205 0 0);
--popover-foreground: oklch(0.985 0 0);
--primary: oklch(0.922 0 0);
--primary-foreground: oklch(0.205 0 0);
--secondary: oklch(0.269 0 0);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.269 0 0);
--muted-foreground: oklch(0.708 0 0);
--accent: oklch(0.269 0 0);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.556 0 0);
--chart-1: oklch(0.488 0.243 264.376);
--chart-2: oklch(0.696 0.17 162.48);
--chart-3: oklch(0.769 0.188 70.08);
--chart-4: oklch(0.627 0.265 303.9);
--chart-5: oklch(0.645 0.246 16.439);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.556 0 0);
}

/* Custom SpaceDF primary color #4006AA overrides */
Expand Down Expand Up @@ -54,3 +119,71 @@ html[class~="dark"] .dark\:nx-text-primary-600 {
.dark .svg-icon {
filter: brightness(0) invert(1);
}

@theme inline {
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--radius-2xl: calc(var(--radius) + 8px);
--radius-3xl: calc(var(--radius) + 12px);
--radius-4xl: calc(var(--radius) + 16px);
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
}

html {
font-size: 18px;
}

@media (max-width: 768px) {
html {
font-size: 14px;
}

h1 {
font-size: 24px;
}

h2 {
font-size: 20px;
}
}
4 changes: 2 additions & 2 deletions src/app/layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default async function RootLayout({ children }) {
const navbar = (
<Navbar
logo={
<div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
<div className="flex flex-col md:flex-row items-center md:gap-2">
<img
src="/spacedf_logo.svg"
alt="SpaceDF"
Expand All @@ -56,7 +56,7 @@ export default async function RootLayout({ children }) {
)
const pageMap = await getPageMap()
return (
<html lang="en" dir="ltr" suppressHydrationWarning style={{ fontSize: 18 }}>
<html lang="en" dir="ltr" suppressHydrationWarning>
<Head
faviconGlyph="✦"
color={{
Expand Down
Loading