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
3 changes: 3 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"devDependencies": {
"@eslint/js": "^10.0.1",
"@fontsource-variable/inter": "^5.3.0",
"@fontsource-variable/jetbrains-mono": "^5.3.0",
"@mdx-js/react": "^3.1.1",
"@mdx-js/rollup": "^3.1.1",
"@tailwindcss/typography": "^0.5.20",
Expand Down
2 changes: 2 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
@import "tailwindcss";
@plugin "@tailwindcss/typography";
@import "@fontsource-variable/inter";
@import "@fontsource-variable/jetbrains-mono";
@import "./dashkit/dashkit.css";

@theme {
--font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
--font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@layer base {
Expand Down
10 changes: 5 additions & 5 deletions src/partials/PropertyDoc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ export function PropertyDoc({ title, properties, className }: PropertyDocProps)
className="group hover:bg-muted/20 transition-colors duration-150"
>
<td className="px-4 py-3.5 align-top whitespace-nowrap border-r border-border">
<code className="inline-flex items-center font-mono text-xs font-semibold text-foreground bg-muted px-2 py-0.5 rounded border border-border/60">
<span className="inline-flex items-center font-sans text-xs font-semibold text-foreground bg-muted px-2 py-0.5 rounded border border-border/60">
{property.prop}
</code>
</span>
</td>
{hasType && (
<td className="px-4 py-3.5 align-top border-r border-border">
<code className="font-mono text-xs text-primary break-words">
<span className="font-sans text-xs font-medium text-primary break-words">
{property.type}
</code>
</span>
</td>
)}
{hasDefault && (
<td className="px-4 py-3.5 align-top whitespace-nowrap font-mono text-xs border-r border-border">
<td className="px-4 py-3.5 align-top whitespace-nowrap font-sans text-xs border-r border-border">
<span className="text-muted-foreground">
{property.defaultValue || '—'}
</span>
Expand Down
15 changes: 3 additions & 12 deletions src/partials/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as React from 'react';
import { Link } from 'react-router-dom';
import { motion } from 'framer-motion';
import { FiSearch, FiX } from 'react-icons/fi';
import clsx from 'clsx';

Expand Down Expand Up @@ -29,7 +28,6 @@ export function Sidebar({
sections,
currentPath,
onItemClick,
layoutId = "sidebar-active-item",
isActive: customIsActive,
searchable = false,
}: SidebarProps) {
Expand Down Expand Up @@ -110,27 +108,20 @@ export function Sidebar({
className={clsx(
"relative px-3 py-1.5 rounded-full text-sm transition-colors duration-150 flex items-center gap-2.5 group focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
active
? "text-ds-50 dark:text-ds-950"
? "bg-ds-900 text-ds-50 dark:bg-ds-100 dark:text-ds-950"
: "text-muted-foreground font-medium hover:text-foreground hover:bg-card dark:hover:bg-ds-800/50",
link.disabled && "opacity-50 cursor-not-allowed hover:bg-transparent"
)}
>
{active && (
<motion.div
layoutId={layoutId}
className="absolute inset-0 bg-ds-900 dark:bg-ds-100 rounded-full"
transition={{ type: "spring", bounce: 0, duration: 0.35 }}
/>
)}
<div className={clsx(
"shrink-0 transition-colors duration-150 relative z-10",
"shrink-0 transition-colors duration-150",
active
? "text-ds-50 dark:text-ds-950"
: "text-muted-foreground group-hover:text-foreground"
)}>
{link.icon}
</div>
<span className="relative z-10 font-medium">{link.label}</span>
<span className="font-medium">{link.label}</span>
</Link>
);
})}
Expand Down
Loading