diff --git a/fern/assets/BerkeleyMono-Regular.woff2 b/fern/assets/BerkeleyMono-Regular.woff2 deleted file mode 100644 index 478cfc3d4a..0000000000 Binary files a/fern/assets/BerkeleyMono-Regular.woff2 and /dev/null differ diff --git a/fern/assets/BerkeleyMonoVariable-Italic.woff2 b/fern/assets/BerkeleyMonoVariable-Italic.woff2 new file mode 100644 index 0000000000..e938a56f28 Binary files /dev/null and b/fern/assets/BerkeleyMonoVariable-Italic.woff2 differ diff --git a/fern/assets/BerkeleyMonoVariable-Regular.woff2 b/fern/assets/BerkeleyMonoVariable-Regular.woff2 new file mode 100644 index 0000000000..3d583b0525 Binary files /dev/null and b/fern/assets/BerkeleyMonoVariable-Regular.woff2 differ diff --git a/fern/assets/GT-Planar-Bold.woff2 b/fern/assets/GT-Planar-Bold.woff2 index f847e4988d..a6688fcfb8 100644 Binary files a/fern/assets/GT-Planar-Bold.woff2 and b/fern/assets/GT-Planar-Bold.woff2 differ diff --git a/fern/assets/GT-Planar-Italic-15-Bold.woff2 b/fern/assets/GT-Planar-Italic-15-Bold.woff2 new file mode 100644 index 0000000000..bf6f02d361 Binary files /dev/null and b/fern/assets/GT-Planar-Italic-15-Bold.woff2 differ diff --git a/fern/assets/GT-Planar-Italic-15-Light.woff2 b/fern/assets/GT-Planar-Italic-15-Light.woff2 new file mode 100644 index 0000000000..dc4170a6ef Binary files /dev/null and b/fern/assets/GT-Planar-Italic-15-Light.woff2 differ diff --git a/fern/assets/GT-Planar-Italic-15-Medium.woff2 b/fern/assets/GT-Planar-Italic-15-Medium.woff2 new file mode 100644 index 0000000000..f8aeee1b56 Binary files /dev/null and b/fern/assets/GT-Planar-Italic-15-Medium.woff2 differ diff --git a/fern/assets/GT-Planar-Italic-15-Regular.woff2 b/fern/assets/GT-Planar-Italic-15-Regular.woff2 new file mode 100644 index 0000000000..d68fe0b8c9 Binary files /dev/null and b/fern/assets/GT-Planar-Italic-15-Regular.woff2 differ diff --git a/fern/assets/GT-Planar-Light.woff2 b/fern/assets/GT-Planar-Light.woff2 new file mode 100644 index 0000000000..9ada00471e Binary files /dev/null and b/fern/assets/GT-Planar-Light.woff2 differ diff --git a/fern/assets/GT-Planar-Regular.woff2 b/fern/assets/GT-Planar-Regular.woff2 new file mode 100644 index 0000000000..29ad899a66 Binary files /dev/null and b/fern/assets/GT-Planar-Regular.woff2 differ diff --git a/fern/assets/GT-Planar.woff2 b/fern/assets/GT-Planar.woff2 deleted file mode 100644 index 5075ca7f3b..0000000000 Binary files a/fern/assets/GT-Planar.woff2 and /dev/null differ diff --git a/fern/assets/icons/accessibility.svg b/fern/assets/icons/accessibility.svg new file mode 100644 index 0000000000..7ddb13149d --- /dev/null +++ b/fern/assets/icons/accessibility.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/app-window.svg b/fern/assets/icons/app-window.svg new file mode 100644 index 0000000000..1170418508 --- /dev/null +++ b/fern/assets/icons/app-window.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/arrow-down.svg b/fern/assets/icons/arrow-down.svg new file mode 100644 index 0000000000..b7acd7c79a --- /dev/null +++ b/fern/assets/icons/arrow-down.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/arrow-right-left.svg b/fern/assets/icons/arrow-right-left.svg new file mode 100644 index 0000000000..926505e6fe --- /dev/null +++ b/fern/assets/icons/arrow-right-left.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/arrow-right.svg b/fern/assets/icons/arrow-right.svg new file mode 100644 index 0000000000..13a4589f79 --- /dev/null +++ b/fern/assets/icons/arrow-right.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/arrow-up.svg b/fern/assets/icons/arrow-up.svg new file mode 100644 index 0000000000..d8358abd19 --- /dev/null +++ b/fern/assets/icons/arrow-up.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/bell.svg b/fern/assets/icons/bell.svg new file mode 100644 index 0000000000..20c6fbe72b --- /dev/null +++ b/fern/assets/icons/bell.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/blocks.svg b/fern/assets/icons/blocks.svg new file mode 100644 index 0000000000..d41b8340f6 --- /dev/null +++ b/fern/assets/icons/blocks.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/book-open.svg b/fern/assets/icons/book-open.svg new file mode 100644 index 0000000000..956a2583c2 --- /dev/null +++ b/fern/assets/icons/book-open.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/bot.svg b/fern/assets/icons/bot.svg new file mode 100644 index 0000000000..555b68468f --- /dev/null +++ b/fern/assets/icons/bot.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/box.svg b/fern/assets/icons/box.svg new file mode 100644 index 0000000000..be8d9ecf1c --- /dev/null +++ b/fern/assets/icons/box.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/braces.svg b/fern/assets/icons/braces.svg new file mode 100644 index 0000000000..54bf232aeb --- /dev/null +++ b/fern/assets/icons/braces.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/bug.svg b/fern/assets/icons/bug.svg new file mode 100644 index 0000000000..375fa06e1a --- /dev/null +++ b/fern/assets/icons/bug.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/calendar.svg b/fern/assets/icons/calendar.svg new file mode 100644 index 0000000000..e9af10b5d1 --- /dev/null +++ b/fern/assets/icons/calendar.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/chart-line.svg b/fern/assets/icons/chart-line.svg new file mode 100644 index 0000000000..c73f8c592b --- /dev/null +++ b/fern/assets/icons/chart-line.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/check.svg b/fern/assets/icons/check.svg new file mode 100644 index 0000000000..7a457e52ff --- /dev/null +++ b/fern/assets/icons/check.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/chevron-down.svg b/fern/assets/icons/chevron-down.svg new file mode 100644 index 0000000000..fb6d97dd05 --- /dev/null +++ b/fern/assets/icons/chevron-down.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/chevrons-down.svg b/fern/assets/icons/chevrons-down.svg new file mode 100644 index 0000000000..504a5a5e04 --- /dev/null +++ b/fern/assets/icons/chevrons-down.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/circle-check.svg b/fern/assets/icons/circle-check.svg new file mode 100644 index 0000000000..694003d1ea --- /dev/null +++ b/fern/assets/icons/circle-check.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/circle-gauge.svg b/fern/assets/icons/circle-gauge.svg new file mode 100644 index 0000000000..2bb0de1054 --- /dev/null +++ b/fern/assets/icons/circle-gauge.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/code.svg b/fern/assets/icons/code.svg new file mode 100644 index 0000000000..750977d907 --- /dev/null +++ b/fern/assets/icons/code.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/copy.svg b/fern/assets/icons/copy.svg new file mode 100644 index 0000000000..0c1bcb492d --- /dev/null +++ b/fern/assets/icons/copy.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/download.svg b/fern/assets/icons/download.svg new file mode 100644 index 0000000000..83a959b004 --- /dev/null +++ b/fern/assets/icons/download.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/eye-off.svg b/fern/assets/icons/eye-off.svg new file mode 100644 index 0000000000..9a388bdaa9 --- /dev/null +++ b/fern/assets/icons/eye-off.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/eye.svg b/fern/assets/icons/eye.svg new file mode 100644 index 0000000000..27c0a889c9 --- /dev/null +++ b/fern/assets/icons/eye.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/fern-agent.svg b/fern/assets/icons/fern-agent.svg new file mode 100644 index 0000000000..f4bbfdb7b3 --- /dev/null +++ b/fern/assets/icons/fern-agent.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/file-code.svg b/fern/assets/icons/file-code.svg new file mode 100644 index 0000000000..1e7e6b4cb4 --- /dev/null +++ b/fern/assets/icons/file-code.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/file-text.svg b/fern/assets/icons/file-text.svg new file mode 100644 index 0000000000..b124b8bd05 --- /dev/null +++ b/fern/assets/icons/file-text.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/file.svg b/fern/assets/icons/file.svg new file mode 100644 index 0000000000..aab2410257 --- /dev/null +++ b/fern/assets/icons/file.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/flag.svg b/fern/assets/icons/flag.svg new file mode 100644 index 0000000000..94b0d1502a --- /dev/null +++ b/fern/assets/icons/flag.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/folder-open.svg b/fern/assets/icons/folder-open.svg new file mode 100644 index 0000000000..809d2ffd93 --- /dev/null +++ b/fern/assets/icons/folder-open.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/folder-tree.svg b/fern/assets/icons/folder-tree.svg new file mode 100644 index 0000000000..f0abecca03 --- /dev/null +++ b/fern/assets/icons/folder-tree.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/git-branch.svg b/fern/assets/icons/git-branch.svg new file mode 100644 index 0000000000..abdcd544ef --- /dev/null +++ b/fern/assets/icons/git-branch.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/git-merge.svg b/fern/assets/icons/git-merge.svg new file mode 100644 index 0000000000..f26c33adac --- /dev/null +++ b/fern/assets/icons/git-merge.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/git-pull-request.svg b/fern/assets/icons/git-pull-request.svg new file mode 100644 index 0000000000..463112adbe --- /dev/null +++ b/fern/assets/icons/git-pull-request.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/github.svg b/fern/assets/icons/github.svg new file mode 100644 index 0000000000..c7768a1e7b --- /dev/null +++ b/fern/assets/icons/github.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/globe.svg b/fern/assets/icons/globe.svg new file mode 100644 index 0000000000..569aeb7d44 --- /dev/null +++ b/fern/assets/icons/globe.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/grid-2x2.svg b/fern/assets/icons/grid-2x2.svg new file mode 100644 index 0000000000..2917586f1f --- /dev/null +++ b/fern/assets/icons/grid-2x2.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/history.svg b/fern/assets/icons/history.svg new file mode 100644 index 0000000000..d87e1ef6f5 --- /dev/null +++ b/fern/assets/icons/history.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/house.svg b/fern/assets/icons/house.svg new file mode 100644 index 0000000000..a00dc98fb2 --- /dev/null +++ b/fern/assets/icons/house.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/hub.svg b/fern/assets/icons/hub.svg new file mode 100644 index 0000000000..7f6d28add6 --- /dev/null +++ b/fern/assets/icons/hub.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/info.svg b/fern/assets/icons/info.svg new file mode 100644 index 0000000000..ef9da56da5 --- /dev/null +++ b/fern/assets/icons/info.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/key-round.svg b/fern/assets/icons/key-round.svg new file mode 100644 index 0000000000..d18e217d89 --- /dev/null +++ b/fern/assets/icons/key-round.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/layers.svg b/fern/assets/icons/layers.svg new file mode 100644 index 0000000000..501b79f2ad --- /dev/null +++ b/fern/assets/icons/layers.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/lightbulb.svg b/fern/assets/icons/lightbulb.svg new file mode 100644 index 0000000000..ce3a399c0d --- /dev/null +++ b/fern/assets/icons/lightbulb.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/link.svg b/fern/assets/icons/link.svg new file mode 100644 index 0000000000..5ccc5f0293 --- /dev/null +++ b/fern/assets/icons/link.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/list-checks.svg b/fern/assets/icons/list-checks.svg new file mode 100644 index 0000000000..768841ca0e --- /dev/null +++ b/fern/assets/icons/list-checks.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/list-filter.svg b/fern/assets/icons/list-filter.svg new file mode 100644 index 0000000000..bbd588d499 --- /dev/null +++ b/fern/assets/icons/list-filter.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/list-ordered.svg b/fern/assets/icons/list-ordered.svg new file mode 100644 index 0000000000..fffa607f56 --- /dev/null +++ b/fern/assets/icons/list-ordered.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/list.svg b/fern/assets/icons/list.svg new file mode 100644 index 0000000000..92675babd2 --- /dev/null +++ b/fern/assets/icons/list.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/lock.svg b/fern/assets/icons/lock.svg new file mode 100644 index 0000000000..5883acb94d --- /dev/null +++ b/fern/assets/icons/lock.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/mcp.svg b/fern/assets/icons/mcp.svg new file mode 100644 index 0000000000..fb92e7fb13 --- /dev/null +++ b/fern/assets/icons/mcp.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/menu.svg b/fern/assets/icons/menu.svg new file mode 100644 index 0000000000..0aeab043d1 --- /dev/null +++ b/fern/assets/icons/menu.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/message-square-more.svg b/fern/assets/icons/message-square-more.svg new file mode 100644 index 0000000000..a47139b65b --- /dev/null +++ b/fern/assets/icons/message-square-more.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/message-square.svg b/fern/assets/icons/message-square.svg new file mode 100644 index 0000000000..10e5ae824d --- /dev/null +++ b/fern/assets/icons/message-square.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/messages-square.svg b/fern/assets/icons/messages-square.svg new file mode 100644 index 0000000000..a4d53cf5bf --- /dev/null +++ b/fern/assets/icons/messages-square.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/monitor.svg b/fern/assets/icons/monitor.svg new file mode 100644 index 0000000000..6da4640068 --- /dev/null +++ b/fern/assets/icons/monitor.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/mouse-pointer-click.svg b/fern/assets/icons/mouse-pointer-click.svg new file mode 100644 index 0000000000..3a775ef130 --- /dev/null +++ b/fern/assets/icons/mouse-pointer-click.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/package.svg b/fern/assets/icons/package.svg new file mode 100644 index 0000000000..a8673a74b0 --- /dev/null +++ b/fern/assets/icons/package.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/palette.svg b/fern/assets/icons/palette.svg new file mode 100644 index 0000000000..bc992bcd39 --- /dev/null +++ b/fern/assets/icons/palette.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/pen-line.svg b/fern/assets/icons/pen-line.svg new file mode 100644 index 0000000000..55b21d1a69 --- /dev/null +++ b/fern/assets/icons/pen-line.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/play.svg b/fern/assets/icons/play.svg new file mode 100644 index 0000000000..ded03a309a --- /dev/null +++ b/fern/assets/icons/play.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/refresh-cw.svg b/fern/assets/icons/refresh-cw.svg new file mode 100644 index 0000000000..d25a92a385 --- /dev/null +++ b/fern/assets/icons/refresh-cw.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/rocket.svg b/fern/assets/icons/rocket.svg new file mode 100644 index 0000000000..f6077ff8d9 --- /dev/null +++ b/fern/assets/icons/rocket.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/rotate-cw.svg b/fern/assets/icons/rotate-cw.svg new file mode 100644 index 0000000000..27e03ef814 --- /dev/null +++ b/fern/assets/icons/rotate-cw.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/sdk.svg b/fern/assets/icons/sdk.svg new file mode 100644 index 0000000000..3ec82da10d --- /dev/null +++ b/fern/assets/icons/sdk.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/search.svg b/fern/assets/icons/search.svg new file mode 100644 index 0000000000..54648121a4 --- /dev/null +++ b/fern/assets/icons/search.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/send.svg b/fern/assets/icons/send.svg new file mode 100644 index 0000000000..72bcdcdccf --- /dev/null +++ b/fern/assets/icons/send.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/server.svg b/fern/assets/icons/server.svg new file mode 100644 index 0000000000..7e247be017 --- /dev/null +++ b/fern/assets/icons/server.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/settings.svg b/fern/assets/icons/settings.svg new file mode 100644 index 0000000000..6700d7da6f --- /dev/null +++ b/fern/assets/icons/settings.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/shapes.svg b/fern/assets/icons/shapes.svg new file mode 100644 index 0000000000..68a0ad8329 --- /dev/null +++ b/fern/assets/icons/shapes.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/shield-check.svg b/fern/assets/icons/shield-check.svg new file mode 100644 index 0000000000..7965169c0d --- /dev/null +++ b/fern/assets/icons/shield-check.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/shield-user.svg b/fern/assets/icons/shield-user.svg new file mode 100644 index 0000000000..ea8f23e643 --- /dev/null +++ b/fern/assets/icons/shield-user.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/shield.svg b/fern/assets/icons/shield.svg new file mode 100644 index 0000000000..a275d231b0 --- /dev/null +++ b/fern/assets/icons/shield.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/sliders-horizontal.svg b/fern/assets/icons/sliders-horizontal.svg new file mode 100644 index 0000000000..6b79fdc752 --- /dev/null +++ b/fern/assets/icons/sliders-horizontal.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/sparkles.svg b/fern/assets/icons/sparkles.svg new file mode 100644 index 0000000000..4c2aba95da --- /dev/null +++ b/fern/assets/icons/sparkles.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/square-pen.svg b/fern/assets/icons/square-pen.svg new file mode 100644 index 0000000000..a5f919bf9b --- /dev/null +++ b/fern/assets/icons/square-pen.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/square-terminal.svg b/fern/assets/icons/square-terminal.svg new file mode 100644 index 0000000000..d1487d4fa2 --- /dev/null +++ b/fern/assets/icons/square-terminal.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/star.svg b/fern/assets/icons/star.svg new file mode 100644 index 0000000000..b62a50e7df --- /dev/null +++ b/fern/assets/icons/star.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/table.svg b/fern/assets/icons/table.svg new file mode 100644 index 0000000000..90498f0579 --- /dev/null +++ b/fern/assets/icons/table.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/terminal.svg b/fern/assets/icons/terminal.svg new file mode 100644 index 0000000000..51743839ab --- /dev/null +++ b/fern/assets/icons/terminal.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/triangle-alert.svg b/fern/assets/icons/triangle-alert.svg new file mode 100644 index 0000000000..041dc89c89 --- /dev/null +++ b/fern/assets/icons/triangle-alert.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/upload.svg b/fern/assets/icons/upload.svg new file mode 100644 index 0000000000..3cb2f5301f --- /dev/null +++ b/fern/assets/icons/upload.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/user.svg b/fern/assets/icons/user.svg new file mode 100644 index 0000000000..ec375cd75b --- /dev/null +++ b/fern/assets/icons/user.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/users.svg b/fern/assets/icons/users.svg new file mode 100644 index 0000000000..2d547de35d --- /dev/null +++ b/fern/assets/icons/users.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/wand-sparkles.svg b/fern/assets/icons/wand-sparkles.svg new file mode 100644 index 0000000000..193d29d0ca --- /dev/null +++ b/fern/assets/icons/wand-sparkles.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/wifi.svg b/fern/assets/icons/wifi.svg new file mode 100644 index 0000000000..777e013f42 --- /dev/null +++ b/fern/assets/icons/wifi.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/icons/zap.svg b/fern/assets/icons/zap.svg new file mode 100644 index 0000000000..3d7885524a --- /dev/null +++ b/fern/assets/icons/zap.svg @@ -0,0 +1 @@ + diff --git a/fern/assets/styles.css b/fern/assets/styles.css index 1fb64d679c..b709ccc102 100644 --- a/fern/assets/styles.css +++ b/fern/assets/styles.css @@ -49,10 +49,69 @@ color: var(--grayscale-12) !important; } +/*** START -- BUILDWITHFERN.COM THEME ***/ +/* Mirrors the marketing-site tokens documented at buildwithfern.com/design.md. + Page colors and fonts live in docs.yml; this block covers type scale, buttons, + and surfaces docs.yml can't express. */ +:root { + --fern-primary: #171717; + --fern-primary-hover: #404040; + --fern-primary-foreground: #fafafa; +} + +:is(.dark) { + --fern-primary: #e5e5e5; + --fern-primary-hover: #d4d4d4; + --fern-primary-foreground: #171717; +} + h1, h2, h3 { + font-weight: 400 !important; +} + +.fern-page-heading { + font-weight: 400 !important; +} + +h1, h2, .fern-page-heading { + letter-spacing: -0.04em !important; +} + +h3 { letter-spacing: -0.02em !important; } +h4, h5, h6 { + font-weight: 500 !important; + letter-spacing: -0.01em !important; +} + +.fern-prose :is(p, li, td, blockquote), +.fern-page-heading + * { + font-weight: 300; +} + +.fern-prose :is(strong, b, th) { + font-weight: 500; +} + +.fern-prose ul { + list-style-type: square; +} + +/* Brand green is for accents only; filled buttons use the charcoal primary like buildwithfern.com. */ +.fern-button.filled:not([disabled]), +.fern-button.filled.primary:not([disabled]) { + background-color: var(--fern-primary) !important; + color: var(--fern-primary-foreground) !important; +} + +.fern-button.filled:not([disabled]):is(:hover, :focus-visible), +.fern-button.filled.primary:not([disabled]):is(:hover, :focus-visible) { + background-color: var(--fern-primary-hover) !important; +} +/*** END -- BUILDWITHFERN.COM THEME ***/ + /*** START -- MERMAID DIAGRAMS STYLING ***/ #mermaid-svg { rect { @@ -246,50 +305,21 @@ h1, h2, h3 { } } -:is(.dark) .fern-product-selector-radio-group a[href*="home"] img { - content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/product-switcher-home-dark.png") !important; +/* Product icons: Hairline-style flat tiles with Fern design-system glyphs, inverted for dark mode. */ +.fern-product-selector-radio-group img[src*="ps-"] { + width: 44px; + height: 44px; + object-fit: contain; } -:is(.dark) .fern-product-selector-radio-group a[href*="sdks"] img { - content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/product-switcher-sdks-dark.png") !important; -} - -:is(.dark) .fern-product-selector-radio-group a[href*="docs"] img { - content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/product-switcher-docs-dark.png") !important; -} - -:is(.dark) .fern-product-selector-radio-group a[href*="cli-api-reference"] img { - content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/product-switcher-cliapi-dark.png") !important; -} - -:is(.dark) .fern-product-selector-radio-group a[href*="dashboard"] img { - content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/product-switcher-dashboard-dark.png") !important; -} - -:is(.dark) .fern-product-selector-radio-group a[href*="openapi"] img { - content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/openapi-definition-dark.png") !important; +:is(.dark) .fern-product-selector-radio-group img[src*="ps-"] { + filter: invert(1) brightness(0.92); } :is(.dark) .fern-product-selector-radio-group a[href*="ferndef"] img { content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/fern-definition-dark.png") !important; } -:is(.dark) .fern-product-selector-radio-group a[href*="asyncapi"] img { - content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/asyncapi-dark.png") !important; -} - -:is(.dark) .fern-product-selector-radio-group a[href*="openrpc"] img { - content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/openrpc-dark.png") !important; -} - -:is(.dark) .fern-product-selector-radio-group a[href*="grpc"] img { - content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/grpc-dark.png") !important; -} - -:is(.dark) .fern-product-selector-radio-group a[href*="cli-generator"] img { - content: url("https://fern-docs.s3.us-east-2.amazonaws.com/product-switcher/product-switcher-cli-generator-dark.png") !important; -} - /*** END -- PRODUCT SELECTOR STYLING ***/ /*** START -- DOCS HOMEPAGE STYLING ***/ @@ -600,9 +630,10 @@ h1, h2, h3 { } .hero-title { - font-size: 2.25rem; - font-weight: bold; - letter-spacing: -0.025em; + font-size: 3rem; + line-height: 1.15; + font-weight: 400; + letter-spacing: -0.04em; color: var(--grayscale-12); } @@ -636,7 +667,6 @@ h1, h2, h3 { } .docs-card { - gap: 1rem; grid-row: 1 / 3; } @@ -648,8 +678,9 @@ h1, h2, h3 { } .card-title { - font-size: 1.25rem; - font-weight: bold; + font-size: 1.5rem; + font-weight: 400; + letter-spacing: -0.02em; color: var(--grayscale-12); display: flex; gap: 0.25rem; @@ -805,7 +836,7 @@ h1, h2, h3 { .community-card-title { font-size: 1rem; - font-weight: bold; + font-weight: 500; color: var(--grayscale-12); } @@ -1115,6 +1146,21 @@ h1, h2, h3 { /*** END -- FERN EDITOR STYLING ***/ /* HACK: hide the changelog icon for changelog pages */ +/* Mirror the sidebar on the right: full-height lines on both sides of the TOC, + the right one under the header's last control. */ +/* 1px "On this page" rail. Connector paths sit on x=1 and x=13 of a 2px rail, so shift them half a pixel to stay centered on the 1px tracks. */ +#fern-toc :is(.toc-track, .toc-fill) { + width: 1px !important; +} + +#fern-toc .toc-connector { + transform: translateX(-0.5px); +} + +#fern-toc .toc-connector path { + stroke-width: 1px !important; +} + .fern-sidebar-link[href$="changelog"] > svg { display: none; } @@ -1189,3 +1235,2153 @@ h1, h2, h3 { } } /*** END -- ASK AI PANEL STYLING ***/ + +/* The custom footer already carries the "Built with Fern" mark. */ +.fern-main a.mx-auto.my-8.w-fit[href^="https://buildwithfern.com"] { + display: none !important; +} + +/*** START -- HOME GRID (buildwithfern.com frame) ***/ +/* Grid rails, rail-dot hover ornaments and animated gutter patterns from the + marketing site. Components live in components/HomeGrid.tsx. */ +.hg-page { + --hg-max-w: 72rem; + --hg-pattern: #c7c7c7; + --hg-muted: var(--grayscale-10); + overflow-x: clip; +} + +:is(.dark) .hg-page { + --hg-pattern: #343434; +} + +.lp-page-container.hg-page .main-content.hg-container { + position: relative; + max-width: var(--hg-max-w); + padding: 0; + border-left: 1px solid var(--border); + border-right: 1px solid var(--border); +} + +/* Home: the Home product's sidebar only lists the page itself, so drop it and let the grid use the width. */ +@media (min-width: 1024px) { + body:has(.hg-page-toc) #fern-sidebar { + display: none; + } +} + +/* Home: the grid fills the overview layout's content column, next to the built-in TOC. */ +.lp-page-container.hg-page.hg-page-toc { + min-height: 0; +} + +.lp-page-container.hg-page.hg-page-toc .main-content.hg-container { + max-width: none; + margin: 0; +} + +/* Home: frame the left side with a full-height line under the logo (like the docs sidebar line) + and stretch the grid from that line to the TOC's left line. */ +@media (min-width: 1024px) { + body:has(.hg-page-toc) .fern-layout-overview { + /* Same left edge as the header logo: the header centers within layout.page-width (1504px). */ + margin-left: max(2rem, calc((100vw - 1504px) / 2)); + padding-inline: 0; + border-left: 1px solid var(--border); + } + + body:has(.hg-page-toc) .fern-layout-overview > article { + width: 100%; + max-width: none; + margin-inline: 0; + } + + body:has(.hg-page-toc) .fern-layout-overview > article > header { + padding-inline: 2rem; + } + + .lp-page-container.hg-page.hg-page-toc .main-content.hg-container { + border-inline: none; + } + + /* Let the corner dots on the frame lines show in full instead of being cut in half. */ + .lp-page-container.hg-page.hg-page-toc { + overflow-x: visible; + } +} + +/* Rail lines stop at the content edge so they don't cut through the TOC. */ +.hg-page-toc .hg-grid::after, +.hg-page-toc .hg-section::before { + content: none; +} + +/* Inside the overview layout's prose, keep minimal tile buttons in the foreground color. */ +.hg-page a.fern-button.minimal.a-btn { + color: var(--grayscale-12); +} + +/* Tile titles are markdown h2s so the built-in TOC lists them; keep the card-title look. */ +.hg-page .hg-tile h2 { + margin: 0; + padding: 0; + scroll-margin-top: 6.25rem; + font-size: 1.5rem; + font-weight: 400; + line-height: 1.2; + letter-spacing: -0.02em; + color: var(--grayscale-12); +} + +.hg-page .hg-tile h2 a { + color: inherit; + font-weight: inherit; + text-decoration: none; +} + +.hg-gutters { + position: absolute; + inset: 0; + pointer-events: none; +} + +.hg-gutter { + position: absolute; + top: 0; + bottom: 0; + width: max(0px, calc((100vw - 100%) / 2 - 1px)); + overflow: hidden; + pointer-events: auto; + color: var(--hg-pattern); +} + +.hg-gutter-left { + right: calc(100% + 1px); +} + +.hg-gutter-right { + left: calc(100% + 1px); +} + +.hg-pattern { + position: relative; + width: 100%; + height: 100%; + opacity: 0; + transition: opacity 700ms ease-out; +} + +.hg-pattern[data-visible="true"] { + opacity: 1; +} + +.hg-pattern canvas { + display: block; + width: 100%; + height: 100%; +} + +.hg-pattern-row { + position: relative; + height: 6rem; + color: var(--hg-pattern); +} + +.hg-hero { + padding: 4rem 2rem 3rem; +} + +.hg-page .hg-hero.hero-section { + margin: 0; +} + +.hg-page .hg-hero .hero-title-container { + margin: 0; + padding: 0; +} + +.hg-page .hg-hero .hero-title { + font-size: 3rem; + margin: 0; +} + +.hg-hero-actions { + display: flex; + flex-wrap: wrap; + gap: 0.75rem; + margin-top: 2rem; +} + +/* Grid of tiles: 1px gaps paint the border color, the padding paints the + top/bottom lines, and the pseudo-elements carry those lines across the + gutters like the marketing site's SectionDivider. */ +.hg-grid { + position: relative; + display: grid; + gap: 1px; + padding: 1px 0; + background-color: var(--border); +} + +.hg-grid + .hg-grid { + margin-top: -1px; +} + +.hg-grid::before, +.hg-grid::after { + content: ""; + position: absolute; + left: 50%; + width: 100vw; + height: 1px; + transform: translateX(-50%); + background-color: var(--border); + pointer-events: none; +} + +.hg-grid::before { + top: 0; +} + +.hg-grid::after { + bottom: 0; +} + +.hg-cols-2 { + grid-template-columns: repeat(2, minmax(0, 1fr)); +} + +.hg-cols-3 { + grid-template-columns: repeat(3, minmax(0, 1fr)); +} + +.hg-cols-4 { + grid-template-columns: repeat(4, minmax(0, 1fr)); +} + +.hg-span-2 { + grid-column: span 2; +} + +.hg-row-span-2 { + grid-row: span 2; +} + +.hg-span-all { + grid-column: 1 / -1; +} + +.hg-tile { + position: relative; + display: flex; + flex-direction: column; + gap: 1.5rem; + min-width: 0; + padding: 2rem; + background-color: var(--background); + color: inherit; + text-decoration: none !important; +} + +.hg-tile-link { + cursor: pointer; +} + +.hg-tile .hg-arrow { + position: absolute; + top: 2rem; + right: 2rem; + color: var(--hg-muted); + transition: + transform 200ms ease-out, + color 200ms ease-out; +} + +.hg-tile:hover .hg-arrow { + color: var(--grayscale-12); + transform: translate(2px, -2px); +} + +.hg-tile-graphic { + transition: transform 300ms ease-out; +} + +.hg-tile:hover .hg-tile-graphic { + transform: translateY(-4px); +} + +.hg-eyebrow { + font-family: var(--font-code, ui-monospace, monospace); + font-size: 0.75rem; + letter-spacing: 0.04em; + text-transform: uppercase; + color: var(--hg-muted); + margin: 0; +} + +.hg-tile-title { + font-size: 1.5rem; + font-weight: 400; + letter-spacing: -0.02em; + line-height: 1.2; + color: var(--grayscale-12); + margin: 0; +} + +.hg-tile-title-sm { + font-size: 1.125rem; +} + +.hg-tile-text { + font-size: 0.875rem; + font-weight: 300; + color: var(--hg-muted); + margin: 0; +} + +.hg-tile .hg-tile-footer { + margin-top: auto; +} + +.hg-tile-logo { + width: 2rem; + height: 2rem; + margin: 0 !important; +} + +.hg-chips { + display: flex; + flex-wrap: wrap; + gap: 0.5rem; +} + +.hg-chip { + display: inline-flex; + align-items: center; + gap: 0.375rem; + padding: 0.25rem 0.625rem; + border: 1px solid var(--border); + border-radius: 999px; + font-size: 0.8125rem; + color: var(--grayscale-11); + text-decoration: none !important; + transition: + border-color 150ms ease-out, + color 150ms ease-out; +} + +.hg-chip:hover { + border-color: var(--grayscale-8); + color: var(--grayscale-12); +} + +/* Grayscale port of the buildwithfern.com/cli hero terminal. */ +.hg-cli { + --hg-cli-bg: #fcfcfd; + --hg-cli-border: var(--border); + --hg-cli-fg: rgba(0, 0, 0, 0.85); + --hg-cli-dim: rgba(0, 0, 0, 0.45); + --hg-cli-accent: rgba(0, 0, 0, 0.62); + --hg-cli-chrome: rgba(0, 0, 0, 0.045); + --hg-cli-dot: rgba(0, 0, 0, 0.16); + --hg-cli-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); + --hg-cli-shine: linear-gradient(90deg, #8a8a8a 0%, #5c5c5c 22%, #111111 50%, #5c5c5c 78%, #8a8a8a 100%); + overflow: hidden; + border-radius: 0.625rem; + background: var(--hg-cli-bg); + box-shadow: + var(--hg-cli-shadow), + 0 0 0 1px var(--hg-cli-border); + font-family: var(--font-code, ui-monospace, monospace); + opacity: 0; + transition: opacity 900ms ease-out 1000ms; +} + +.dark .hg-cli { + --hg-cli-bg: #121212; + --hg-cli-border: rgba(255, 255, 255, 0.14); + --hg-cli-fg: rgba(255, 255, 255, 0.92); + --hg-cli-dim: rgba(255, 255, 255, 0.5); + --hg-cli-accent: rgba(255, 255, 255, 0.72); + --hg-cli-chrome: rgba(255, 255, 255, 0.06); + --hg-cli-dot: rgba(255, 255, 255, 0.28); + --hg-cli-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); + --hg-cli-shine: linear-gradient(90deg, #9a9a9a 0%, #c8c8c8 22%, #ffffff 50%, #c8c8c8 78%, #8a8a8a 100%); +} + +.hg-cli[data-started="true"] { + opacity: 1; +} + +.cli-card-graphic { + display: block; + margin: 0; +} + +.cli-card-graphic, +.cli-card-graphic * { + text-decoration: none !important; +} + +/* Border traces itself in, then the terminal fill fades up behind it. */ +.hg-cli-frame { + --hg-cli-trace: var(--border); + position: relative; +} + +.hg-cli-trace { + position: absolute; + inset: 0; + z-index: 2; + overflow: visible; + pointer-events: none; + transition: opacity 500ms ease-out 1700ms; +} + +.hg-cli-trace rect { + fill: none; + stroke: var(--hg-cli-trace); + stroke-width: 1; + stroke-dasharray: 1000; + stroke-dashoffset: 1000; + transition: stroke-dashoffset 1400ms cubic-bezier(0.65, 0, 0.35, 1) 100ms; +} + +.hg-cli-frame[data-started="true"] .hg-cli-trace { + opacity: 0; +} + +.hg-cli-frame[data-started="true"] .hg-cli-trace rect { + stroke-dashoffset: 0; +} + +.hg-cli-titlebar { + position: relative; + display: flex; + align-items: center; + height: 1.375rem; + margin: 0.5rem 0.5rem 0; + padding: 0 0.5rem; + border-radius: 999px; + background: var(--hg-cli-chrome); +} + +.hg-cli-dots { + display: flex; + gap: 0.3rem; +} + +.hg-cli-dots span { + width: 0.5rem; + height: 0.5rem; + border-radius: 999px; + background: var(--hg-cli-dot); +} + +.hg-cli-path { + position: absolute; + left: 50%; + transform: translateX(-50%); + font-size: 0.625rem; + color: var(--hg-cli-fg); + opacity: 0.85; +} + +.hg-cli-body { + container-type: inline-size; + display: flex; + flex-direction: column; + gap: 0.625rem; + padding: 0.75rem 1rem 1rem; +} + +.hg-cli-banner { + margin: 0; + padding: 0; + overflow: hidden; + border: 0; + background-color: transparent; + background-image: var(--hg-cli-shine); + background-size: 300% 100%; + background-position: 100% 0; + -webkit-background-clip: text; + background-clip: text; + color: transparent; + font-family: inherit; + font-size: calc(100cqw / 57); + line-height: 1; + letter-spacing: -0.05em; + white-space: pre; + animation: hg-cli-shine 6.5s steps(36, end) infinite; +} + +.hg-cli-subtitle { + display: flex; + gap: 0.5rem; + font-size: min(0.625rem, calc(100cqw / 28)); + color: var(--hg-cli-dim); + white-space: nowrap; + overflow: hidden; +} + +.hg-cli-lines { + display: flex; + flex-direction: column; + gap: 0.25rem; + margin-top: 0.25rem; + font-size: min(0.6875rem, calc(100cqw / 32)); + line-height: 1.55; +} + +.hg-cli-line { + display: flex; + align-items: baseline; + gap: 0.375rem; + min-height: 1.55em; + white-space: nowrap; + opacity: 0; + transform: translateY(3px); + transition: + opacity 350ms ease-out, + transform 350ms ease-out; +} + +.hg-cli-line[data-visible="true"] { + opacity: 1; + transform: none; +} + +.hg-cli-fg { + color: var(--hg-cli-fg); +} + +.hg-cli-dim { + color: var(--hg-cli-dim); +} + +.hg-cli-accent { + color: var(--hg-cli-accent); +} + +.hg-cli-bullet { + width: 0.75rem; + flex-shrink: 0; + color: var(--hg-cli-accent); +} + +.hg-cli-caret { + display: inline-block; + width: 0.375rem; + height: 0.75rem; + margin-left: 0.125rem; + align-self: center; + background: var(--hg-cli-fg); +} + +.hg-cli-caret-blink { + animation: hg-cli-caret 1s steps(1) infinite; +} + +@keyframes hg-cli-shine { + 0%, + 55% { + background-position: 100% 0; + } + 100% { + background-position: 0% 0; + } +} + +@keyframes hg-cli-caret { + 0%, + 49% { + opacity: 1; + } + 50%, + 100% { + opacity: 0; + } +} + +@media (prefers-reduced-motion: reduce) { + .hg-cli, + .hg-cli-trace, + .hg-cli-trace rect, + .hg-cli-line { + transition: none; + } + + .hg-cli-banner, + .hg-cli-caret-blink { + animation: none; + } +} + +/* RailDot: ring on a grid intersection that collapses and grows into a + corner bracket on .group hover (marketing-site globals.css). */ +.rail-dot { + position: absolute; + z-index: 20; + overflow: visible; + pointer-events: none; + --rail-dot-collapse: 70ms; + --rail-dot-grow: 100ms; + --rail-dot-mid-stroke: color-mix(in oklab, var(--grayscale-12) 65%, var(--border)); +} + +.rail-dot-tl { + left: -19px; + top: -18.5px; +} + +.rail-dot-tr { + right: -18px; + top: -18.5px; +} + +.rail-dot-bl { + left: -19px; + bottom: -18.5px; +} + +.rail-dot-br { + right: -18px; + bottom: -18.5px; +} + +.rail-dot-bg { + fill: var(--background); +} + +.rail-dot-mask { + fill: var(--background); + opacity: 0; + transition: opacity var(--rail-dot-grow) ease-out; +} + +.rail-dot-ring { + d: var(--rail-dot-d-rest); + stroke: var(--border); + transition: + d var(--rail-dot-collapse) ease-out var(--rail-dot-grow), + stroke var(--rail-dot-collapse) ease-out var(--rail-dot-grow), + opacity 1ms linear var(--rail-dot-grow); +} + +.rail-dot-curve { + opacity: 0; + d: var(--rail-dot-d-rest); + stroke: var(--rail-dot-mid-stroke); + transition: + d var(--rail-dot-grow) ease-out, + stroke var(--rail-dot-grow) ease-out, + opacity 1ms linear var(--rail-dot-grow); +} + +.group:hover .rail-dot { + z-index: 30; +} + +.hg-dots { + display: contents; +} + +.rail-dot { + transition: visibility 0s linear 170ms; +} + +.rail-dot[data-suppressed="true"] { + visibility: hidden; + transition: none; +} + +.group:hover .rail-dot-ring { + opacity: 0; + d: var(--rail-dot-d-hover); + stroke: var(--rail-dot-mid-stroke); + transition: + d var(--rail-dot-collapse) ease-out, + stroke var(--rail-dot-collapse) ease-out, + opacity 1ms linear var(--rail-dot-collapse); +} + +.group:hover .rail-dot-curve { + opacity: 1; + d: var(--rail-dot-d-hover); + stroke: var(--grayscale-12); + transition: + d var(--rail-dot-grow) ease-out var(--rail-dot-collapse), + stroke var(--rail-dot-grow) ease-out var(--rail-dot-collapse), + opacity 1ms linear var(--rail-dot-collapse); +} + +.group:hover .rail-dot-mask { + opacity: 1; + transition: opacity var(--rail-dot-grow) ease-out var(--rail-dot-collapse); +} + +/* Version A keeps the existing home page cards inside the grid. */ +.hg-page .hg-grid .panel-card, +.hg-page .hg-grid .community-section, +.hg-page .hg-grid .help-section { + border: 0; +} + +.hg-page .hg-grid .community-section, +.hg-page .hg-grid .help-section { + padding: 2rem; +} + +body:has(.hg-page-toc) #fern-toc { + z-index: 10; +} + +.hg-tile-logo { + transition: transform 200ms ease; +} + +.hg-tile:hover .hg-tile-logo { + transform: translateY(-2px); +} + +/* Supported specs: Hairline-style flat tile that lifts on hover. */ +.hg-spec-iso { + display: block; + width: 3rem; + height: auto; + margin-left: -0.25rem; + overflow: visible; + --hl-plate: #ffffff; + --hl-edge: #a4a4ac; + --hl-lo: #e0e0e4; + --hl-hi: #232327; +} + +.dark .hg-spec-iso { + --hl-plate: #171717; + --hl-edge: #5b5d64; + --hl-lo: #29292d; + --hl-hi: #d0d6e0; +} + +.hg-spec-iso path, +.hg-spec-iso rect, +.hg-spec-iso circle { + stroke-width: 1px; +} + +.hg-spec-sil { + fill: var(--hl-plate); + stroke: var(--hl-edge); +} + +.hg-spec-crease { + stroke: var(--hl-lo); +} + +.hg-spec-glyph { + stroke: var(--hl-hi); + transition: stroke 260ms cubic-bezier(0.5, 0, 0.1, 1); +} + +.hg-spec-glyph * { + stroke-width: 1px; +} + +.hg-spec-glyph .hg-spec-dot { + fill: var(--hl-hi); + stroke: none; + transition: fill 260ms cubic-bezier(0.5, 0, 0.1, 1); +} + +.hg-spec-card { + transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1); +} + +.hg-tile:hover .hg-spec-card, +.hg-tile:focus-within .hg-spec-card { + transform: translateY(-1.5px); +} + +.hg-tile:hover .hg-spec-glyph, +.hg-tile:focus-within .hg-spec-glyph { + stroke: var(--accent); +} + +.hg-tile:hover .hg-spec-dot, +.hg-tile:focus-within .hg-spec-dot { + fill: var(--accent); +} + +@media (prefers-reduced-motion: reduce) { + .hg-tile-logo, + .hg-spec-card { + transition: none; + } +} + +.hg-page .hg-tile .card-description { + margin-bottom: 0; +} + +.hg-page .hg-tile > .card-header + .cli-card-graphic { + margin-top: -0.5rem; +} + +.hg-page .hg-tile .card-title img { + opacity: 1; +} + +.hg-page .hg-tile:hover .card-title img { + transform: translate(2px, -2px); +} + +@media (max-width: 1024px) { + .hg-cols-4 { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} + +@media (max-width: 768px) { + .hg-cols-2, + .hg-cols-3, + .hg-cols-4 { + grid-template-columns: minmax(0, 1fr); + } + + .hg-span-2, + .hg-row-span-2 { + grid-column: auto; + grid-row: auto; + } + + .hg-hero { + padding: 3rem 1.5rem 2rem; + } + + .hg-page .hg-hero.hero-section { + margin: 0; +} + +.hg-page .hg-hero .hero-title-container { + margin: 0; + padding: 0; +} + +.hg-page .hg-hero .hero-title { + font-size: 2.25rem; + } + + .hg-tile { + padding: 1.5rem; + } +} +/*** END -- HOME GRID ***/ + +/* Section header tiles: keep title and description together. */ +.hg-tile.hg-span-all { + gap: 0.5rem; +} + +.hg-tile.hg-span-all > p { + margin: 0; +} + +/* SDK and Docs tile graphics: recreations of the Rive artboards (416x105 and + 415x269). Everything is laid out in artboard units (--u) so the graphic + scales with the tile like Rive's "contain" fit. */ +.hg-rv-frame { + container-type: inline-size; +} + +.hg-win { + --u: calc(100cqw / 416); + --rv-bg: #fcfcfd; + --rv-panel: #f3f3f4; + --rv-line: #e3e3e6; + --rv-bar: #b9bbc0; + --rv-text: #60646c; + --rv-strong: #1c2024; + --rv-faint: #b9bbc6; + --rv-chip: #ededef; + --rv-chip-line: #cdced3; + position: relative; + overflow: hidden; + border-radius: 0.625rem; + background: var(--rv-bg); + box-shadow: 0 0 0 1px var(--border); + color: var(--rv-text); + font-family: var(--font-code, ui-monospace, monospace); + font-weight: 400; + opacity: 0; + transition: opacity 900ms ease-out 1000ms; +} + +.dark .hg-win { + --rv-bg: #111113; + --rv-panel: #18191b; + --rv-line: #232326; + --rv-bar: #3e3f44; + --rv-text: #b0b4ba; + --rv-strong: #edeef0; + --rv-faint: #5a5c63; + --rv-chip: #1c1d20; + --rv-chip-line: #34353a; +} + +.hg-win[data-started="true"] { + opacity: 1; +} + +.hg-win button { + all: unset; + box-sizing: border-box; + cursor: pointer; +} + +.hg-win button:disabled { + cursor: default; +} + +.hg-win button:focus-visible { + outline: 1px solid var(--accent); + outline-offset: -1px; +} + +.hg-rv-bar { + display: block; + height: calc(var(--u) * 1.6); + border-radius: 999px; + background: var(--rv-bar); +} + +.hg-rv-in { + opacity: 0; +} + +.hg-win[data-started="true"] .hg-rv-in { + animation: hg-rv-rise 380ms ease-out both; +} + +@keyframes hg-rv-rise { + from { + opacity: 0; + transform: translateY(calc(var(--u) * 2)); + } + to { + opacity: 1; + transform: none; + } +} + +/* SDK picker */ +.hg-sdk { + aspect-ratio: 416 / 105; +} + +.hg-sdk-pill { + position: absolute; + top: calc(var(--u) * 9); + left: calc(var(--u) * 8); + width: calc(var(--u) * 57); +} + +.hg-sdk-tabs { + position: absolute; + top: calc(var(--u) * 22); + left: 0; + right: 0; + height: calc(var(--u) * 48); + display: flex; + padding: 0 calc(var(--u) * 11.5); + border-top: 1px solid var(--rv-line); + border-bottom: 1px solid var(--rv-line); +} + +.hg-win .hg-sdk-tab { + position: relative; + flex: 1 1 0; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: calc(var(--u) * 5.5); + padding-top: calc(var(--u) * 2); + color: var(--rv-strong); + font-size: calc(var(--u) * 7); + line-height: 1; + text-decoration: none; +} + +.hg-sdk-tab[data-muted="true"] { + color: var(--rv-faint); +} + +.hg-sdk-tab::after { + content: ""; + position: absolute; + bottom: -1px; + left: 50%; + width: calc(var(--u) * 41); + height: calc(var(--u) * 1.4); + transform: translateX(-50%) scaleX(0); + border-radius: 999px; + background: var(--accent); + transition: transform 200ms ease; +} + +.hg-sdk-tab[data-active="true"]::after { + transform: translateX(-50%) scaleX(1); +} + +.hg-sdk-logo { + display: flex; + align-items: center; + justify-content: center; + width: calc(var(--u) * 12); + height: calc(var(--u) * 12); + transition: transform 200ms ease; +} + +.hg-sdk-logo img { + max-width: 100%; + max-height: 100%; + margin: 0 !important; +} + +.hg-sdk-tab:not(:disabled):hover .hg-sdk-logo { + transform: translateY(calc(var(--u) * -1)); +} + +.hg-sdk-tab[data-muted="true"] .hg-sdk-logo { + filter: grayscale(1); + opacity: 0.45; +} + +.hg-sdk-cmd { + position: absolute; + top: calc(var(--u) * 70); + left: 0; + right: 0; + bottom: 0; + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 calc(var(--u) * 9); + background: var(--rv-panel); + color: var(--rv-text); + font-size: calc(var(--u) * 7.6); + font-weight: 100; + white-space: nowrap; +} + +.hg-sdk-cmd-text { + animation: hg-sdk-swap 220ms ease-out; +} + +@keyframes hg-sdk-swap { + from { + opacity: 0; + transform: translateY(calc(var(--u) * 1.5)); + } +} + +.hg-win .hg-sdk-copy { + display: flex; + width: calc(var(--u) * 9); + height: calc(var(--u) * 9); + color: var(--rv-faint); +} + +.hg-win .hg-sdk-copy:hover { + color: var(--rv-text); +} + +.hg-sdk-copy svg { + width: 100%; + height: 100%; +} + +/* Docs site mock */ +.hg-docs { + --u: calc(100cqw / 415); + aspect-ratio: 415 / 269; +} + +.hg-docs svg { + display: block; + flex-shrink: 0; +} + +.hg-docs-header { + position: absolute; + inset: 0 0 auto; + height: calc(var(--u) * 26); + display: flex; + align-items: center; + padding: 0 calc(var(--u) * 12) 0 calc(var(--u) * 13); + border-bottom: 1px solid var(--rv-line); + font-size: calc(var(--u) * 6); +} + +.hg-docs-brand { + display: flex; + align-items: center; + gap: calc(var(--u) * 4.5); + width: calc(var(--u) * 96); + color: var(--rv-text); + font-family: var(--font-body, inherit); +} + +.hg-docs-logo { + width: calc(var(--u) * 9.5); + height: calc(var(--u) * 9.5); +} + +.hg-docs-search { + display: flex; + align-items: center; + gap: calc(var(--u) * 3); + width: calc(var(--u) * 166); + height: calc(var(--u) * 18); + padding: 0 calc(var(--u) * 5.5); + border: 1px solid var(--rv-chip-line); + border-radius: calc(var(--u) * 3.5); + background: var(--rv-chip); + color: var(--rv-text); + font-size: calc(var(--u) * 6.4); + transition: border-color 150ms ease; +} + +.hg-docs-search svg { + width: calc(var(--u) * 7); + height: calc(var(--u) * 7); +} + +.hg-docs-search:hover { + border-color: var(--rv-bar); +} + +.hg-docs-navbar { + width: calc(var(--u) * 18); + margin-left: calc(var(--u) * 10); +} + +.hg-docs-header > .hg-docs-navbar:nth-child(3) { + margin-left: auto; +} + +.hg-docs-btn { + display: flex; + align-items: center; + justify-content: center; + width: calc(var(--u) * 24.5); + height: calc(var(--u) * 13); + margin-left: calc(var(--u) * 9); + border: 1px solid var(--rv-bar); + border-radius: calc(var(--u) * 3.5); +} + +.hg-docs-btn .hg-rv-bar { + width: calc(var(--u) * 18); +} + +.hg-docs-sun { + width: calc(var(--u) * 7.5); + height: calc(var(--u) * 7.5); + margin-left: calc(var(--u) * 7); + color: var(--rv-text); +} + +.hg-docs-tabs { + position: absolute; + top: calc(var(--u) * 26); + left: 0; + right: 0; + height: calc(var(--u) * 18); + display: flex; + gap: calc(var(--u) * 10); + padding-left: calc(var(--u) * 19); + border-bottom: 1px solid var(--rv-line); +} + +.hg-docs-tab { + position: relative; + display: flex; + align-items: center; +} + +.hg-docs-tab .hg-rv-bar { + width: calc(var(--u) * 18); +} + +.hg-docs-tab[data-active="true"]::after { + content: ""; + position: absolute; + bottom: -1px; + left: calc(var(--u) * -4.5); + right: calc(var(--u) * -4.5); + height: 1px; + background: var(--rv-text); +} + +.hg-docs-body { + -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); + mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); + position: absolute; + top: calc(var(--u) * 44); + left: 0; + right: 0; + bottom: 0; + display: flex; +} + +.hg-docs-side { + display: flex; + flex-direction: column; + width: calc(var(--u) * 124); + padding: calc(var(--u) * 12) calc(var(--u) * 7) 0; + border-right: 1px solid var(--rv-line); +} + +.hg-docs-heading { + width: calc(var(--u) * 18); + margin: 0 calc(var(--u) * 5) calc(var(--u) * 7.5); +} + +.hg-docs-side > .hg-docs-heading:not(:first-child) { + margin-top: calc(var(--u) * 10); +} + +.hg-docs-item { + display: flex; + align-items: center; + gap: calc(var(--u) * 9); + height: calc(var(--u) * 15); + padding: 0 calc(var(--u) * 5); + border: 1px solid transparent; + border-radius: calc(var(--u) * 3); + color: var(--rv-text); + transition: + background-color 150ms ease, + border-color 150ms ease; +} + +.hg-docs-item + .hg-docs-item { + margin-top: calc(var(--u) * 0.5); +} + +.hg-docs-item .hg-rv-bar { + width: calc(var(--u) * 18); +} + +.hg-docs-item[data-active="true"], +.hg-docs-item:hover { + border-color: var(--rv-chip-line); + background: var(--rv-chip); +} + +.hg-docs-icon { + display: flex; + margin-left: calc(var(--u) * 7); +} + +.hg-docs-icon svg { + width: calc(var(--u) * 7.5); + height: calc(var(--u) * 7.5); +} + +.hg-docs-group { + gap: calc(var(--u) * 4); +} + +.hg-docs-group svg { + width: calc(var(--u) * 6); + height: calc(var(--u) * 6); +} + +.hg-docs-endpoint { + gap: calc(var(--u) * 6); +} + +.hg-docs-method { + width: calc(var(--u) * 16); + height: calc(var(--u) * 6.5); + border-radius: calc(var(--u) * 1.5); + background: var(--rv-chip); + color: var(--rv-faint); + font-size: calc(var(--u) * 3.6); + line-height: calc(var(--u) * 6.5); + text-align: center; +} + +.hg-docs-main { + flex: 1; + padding: calc(var(--u) * 15) calc(var(--u) * 15) 0; + background: color-mix(in srgb, var(--rv-panel) 55%, var(--rv-bg)); +} + +.hg-docs-title { + width: calc(var(--u) * 60); +} + +.hg-docs-hero { + display: block; + width: calc(var(--u) * 223); + height: calc(var(--u) * 74); + margin: calc(var(--u) * 15) 0 calc(var(--u) * 15); + overflow: hidden; + border-radius: calc(var(--u) * 3); +} + +.hg-docs-hero img { + display: block; + width: 100%; + height: 100%; + margin: 0 !important; + object-fit: cover; +} + +.dark .hg-docs-hero img { + filter: brightness(0.5) contrast(1.1); +} + +.hg-docs-line + .hg-docs-line { + margin-top: calc(var(--u) * 6); +} + +@media (prefers-reduced-motion: reduce) { + .hg-win, + .hg-win[data-started="true"] .hg-rv-in, + .hg-sdk-cmd-text { + transition: none !important; + animation: none !important; + } + + .hg-rv-in { + opacity: 1; + } +} + +/* SDKs overview: language cards styled like the Docs overview cards, each with an isometric logo card. */ +.sdks-homepage.hg-page { + overflow-x: visible; +} + +.sdk-grid { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 1rem; + margin: 1.5rem 0; +} + +.sdk-tile { + display: flex; + flex-direction: column; + gap: 0.75rem; + min-width: 0; + padding: 0.5rem 1.25rem 1.25rem; + overflow: hidden; + background-color: #ffffff; + border: 1px solid #e4e4e4; + border-radius: 0.75rem; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06); + transition: border-color 150ms ease; +} + +.dark .sdk-tile { + background-color: #171717; + border-color: #252525; + box-shadow: 0 2px 4px 0 rgba(255, 255, 255, 0.07); +} + +.sdk-tile:hover { + border-color: var(--grayscale-7); +} + +.sdk-tile .hg-tile-title-sm { + font-size: 1rem; +} + +.sdk-tile a { + text-decoration: none !important; +} + +.sdk-tile .external-link-icon { + display: none !important; +} + +.sdk-tile-graphic { + display: block; + margin: 0 -1.25rem; + border-bottom: 1px solid #e4e4e4; +} + +.dark .sdk-tile-graphic { + border-bottom-color: #252525; +} + +/* Isometric logo card that floats up when its tile is hovered. */ +.sdk-iso { + position: relative; + display: grid; + place-items: center; + aspect-ratio: 3 / 2; + --iso-face: #ffffff; + --iso-edge: #e4e4e4; + --iso-side: #ececec; + --iso-shadow: rgba(0, 0, 0, 0.08); + --iso-base: #f3f3f3; +} + +.dark .sdk-iso { + --iso-face: #1f1f1f; + --iso-edge: #2c2c2c; + --iso-side: #262626; + --iso-shadow: rgba(0, 0, 0, 0.6); + --iso-base: #121212; +} + +.sdk-iso::before { + content: ""; + position: absolute; + left: 50%; + top: 50%; + width: 48%; + aspect-ratio: 1; + border: 1px solid var(--iso-edge); + border-radius: 18px; + background: var(--iso-base); + transform: translate(-50%, -42%) rotateX(55deg) rotateZ(-45deg); + pointer-events: none; +} + +.sdk-iso::after { + content: ""; + position: absolute; + left: 50%; + top: 62%; + width: 46%; + height: 22%; + border-radius: 50%; + background: radial-gradient(closest-side, var(--iso-shadow), transparent); + transform: translate(-50%, 0) scale(0.85); + opacity: 0.7; + transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 400ms ease; + pointer-events: none; +} + +.sdk-iso-card { + position: relative; + z-index: 1; + display: grid; + place-items: center; + width: 40%; + aspect-ratio: 1; + border: 1px solid var(--iso-edge); + border-radius: 14px; + background: var(--iso-face); + box-shadow: + -1px 1px 0 var(--iso-side), + -2px 2px 0 var(--iso-side), + -3px 3px 0 var(--iso-side), + -4px 4px 0 var(--iso-side), + -5px 5px 0 var(--iso-edge); + transform: rotateX(55deg) rotateZ(-45deg); + transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1); +} + +.sdk-iso-logo { + width: 62%; + height: 62%; + object-fit: contain; + margin: 0 !important; + filter: grayscale(1) contrast(1.15); + opacity: 0.8; + transition: filter 400ms ease, opacity 400ms ease; +} + +/* Turn the gem so its point faces the viewer. */ +.sdk-iso-logo-ruby { + transform: rotate(90deg); +} + +.dark .sdk-iso-logo { + filter: grayscale(1) brightness(1.5); + opacity: 0.9; +} + +.dark .sdk-iso-invert { + filter: grayscale(1) invert(1); +} + +.sdk-tile:hover .sdk-iso-logo, +.sdk-tile:focus-within .sdk-iso-logo { + filter: none; + opacity: 1; +} + +.dark .sdk-tile:hover .sdk-iso-invert, +.dark .sdk-tile:focus-within .sdk-iso-invert { + filter: invert(1); +} + +.sdk-tile:hover .sdk-iso-card, +.sdk-tile:focus-within .sdk-iso-card { + transform: translateY(-22px) rotateX(55deg) rotateZ(-45deg); +} + +.sdk-tile:hover .sdk-iso::after, +.sdk-tile:focus-within .sdk-iso::after { + transform: translate(-50%, 8%) scale(1.1); + opacity: 0.4; +} + +@media (prefers-reduced-motion: reduce) { + .sdk-iso-card, + .sdk-iso-logo, + .sdk-iso::after { + transition: none; + } +} + +.sdk-tile-footer { + display: flex; + align-items: center; + justify-content: space-between; + gap: 0.5rem; + margin-top: auto; +} + +.sdk-tile-meta { + display: flex; + align-items: center; + gap: 0.25rem; +} + +.sdk-tile-version { + font-size: 0.875rem; + font-weight: 300; + color: var(--hg-muted); +} + +.sdk-tile-request { + justify-content: space-between; + gap: 1rem; + padding: 1.25rem; + border-style: dashed; +} + +@media (max-width: 1024px) { + .sdk-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} + +@media (max-width: 640px) { + .sdk-grid { + grid-template-columns: minmax(0, 1fr); + } +} + +/* All code-font text (code blocks, inline code, prompts, kbd) uses the thin weight. */ +code, +code *, +pre, +pre *, +kbd, +samp, +.font-mono, +.fern-kbd, +.fern-prompt-code, +.code-block, +.code-block * { + font-weight: 100 !important; +} + +/* No divider lines around the canvas: the card's own border separates it from the header and sidebar. */ +#fern-header { + border-bottom: 0 !important; +} + +/* Header: search and Ask AI sit at the left edge of the canvas, navbar links on the right. + The logo slot is the sidebar width minus the header's 2rem inset and 1rem gap. */ +@media (min-width: 1024px) { + #fern-sidebar.fern-sidebar-desktop { + border-right-color: transparent !important; + } + + #fern-header .fern-header-logo-container { + flex: none; + width: calc(var(--sidebar-width) - 3rem); + min-width: 0; + } + + #fern-header .product-item-title { + font-size: 1.125rem; + white-space: nowrap; + } + + #fern-header div:has(> div > #fern-search-button) { + flex: 0 1 auto; + width: auto; + min-width: 0; + } + + #fern-search-button { + flex-shrink: 1; + width: 13rem; + min-width: 7rem; + } + + #fern-header .fern-header-navbar-links { + margin-left: auto; + } + + /* Canvas card ends where the header content ends. That margin already takes the page gutter, + so the TOC drops the matching right padding Fern gives it and sits at the card's right edge. */ + :root [data-body-theme="canvas"] .canvas-wrapper.canvas-wrapper { + margin-right: max(2rem, calc((100vw - var(--page-width)) / 2)); + } + + /* One scroll container: the canvas grows with its content and the page scrolls, instead of the + card scrolling inside a viewport-height box. */ + :root [data-body-theme="canvas"] .canvas-wrapper.canvas-wrapper { + height: auto; + max-height: none; + min-height: calc(100vh - var(--header-height) - 12px); + overflow: visible; + } + + /* Footer sits under the canvas card and spans the same width. */ + :root [data-body-theme="canvas"] #fern-footer .fern-cf { + width: auto; + max-width: none; + margin: 0 max(2rem, calc((100vw - var(--page-width)) / 2)) 0 var(--sticky-aside-width); + padding: 2.5rem 2rem 3rem; + } + + :root [data-body-theme="canvas"] #fern-toc { + top: var(--header-height); + max-height: calc(100vh - var(--header-height)); + } + + :root [data-body-theme="canvas"] #fern-toc { + width: calc(var(--sticky-aside-width) - var(--aside-offset)); + padding-right: 0; + } + + /* Changelog pages render outside the canvas wrapper; give them the same card. Their TOC column is empty. */ + :root [data-body-theme="canvas"] main:has(> .fern-layout-changelog) > #fern-toc { + display: none; + } + + :root [data-body-theme="canvas"] .fern-layout-changelog { + flex: 1 1 0; + min-width: 0; + margin: 0 max(2rem, calc((100vw - var(--page-width)) / 2)) 12px 0; + padding: 2rem; + border: 1px solid var(--border); + border-radius: 16px; + background: var(--card-background); + } +} + +/* Canvas home: hero, code explorer, "Connect your agent" card, and link sections. */ +body:has(.cv-home) .fern-layout-guide > article { + width: 100%; + max-width: none; +} + +body:has(.cv-home) .fern-layout-guide > article > header { + display: none; +} + +.cv-home { + width: 100%; + max-width: 62.5rem; + margin: 0 auto; + padding: 5rem 0 2rem; +} + +.cv-home p.cv-hero-title { + max-width: 40rem; + margin: 0; + color: var(--grayscale-12); + font-size: clamp(2.25rem, 4.2vw, 3.5rem); + font-weight: 400; + line-height: 1.08; + letter-spacing: -0.035em; + text-wrap: balance; +} + +.cv-home p.cv-hero-sub { + max-width: 38rem; + margin: 1.5rem 0 0; + color: var(--grayscale-11); + font-size: 1.0625rem; + line-height: 1.6; +} + +/* Shared controls */ +.cv-copy { + display: inline-flex; + flex: none; + align-items: center; + justify-content: center; + width: 1.75rem; + height: 1.75rem; + border-radius: 0.375rem; + color: var(--grayscale-11); + cursor: pointer; +} + +.cv-copy:hover { + background: var(--grayscale-a3); + color: var(--grayscale-12); +} + +.cv-copy:focus-visible { + outline: 2px solid var(--accent); +} + +.cv-copy svg { + width: 1rem; + height: 1rem; +} + +/* Sections */ +.cv-section { + margin-top: 6rem; +} + +.cv-hero + .cv-section { + margin-top: 4.5rem; +} + +.cv-home p.cv-eyebrow { + margin: 0 0 0.5rem; + color: var(--accent); + font-size: 0.75rem; + font-weight: 500; + line-height: 1rem; + letter-spacing: 0.06em; + text-transform: uppercase; +} + +.cv-home p.cv-h2 { + margin: 0; + color: var(--grayscale-12); + font-size: 2rem; + font-weight: 400; + line-height: 1.2; + letter-spacing: -0.03em; +} + +.cv-home p.cv-section-sub { + margin: 0.75rem 0 0; + color: var(--grayscale-11); +} + +.cv-section-head { + display: flex; + align-items: flex-end; + justify-content: space-between; + gap: 1rem; +} + +.cv-section .card-group { + margin-top: 1.75rem; +} + +.cv-home .fern-card { + padding: 1.5rem; + border: 1px solid var(--border); + border-radius: 1rem; + background: var(--card-background); + box-shadow: none; + text-decoration: none !important; +} + +.cv-home .fern-card:hover { + border-color: var(--grayscale-7); +} + +.cv-home .fern-card .external-link-icon, +.cv-home p.cv-section-sub .external-link-icon { + display: none; +} + +.cv-home .fern-card .card-icon { + width: 1.375rem !important; + height: 1.375rem !important; + color: var(--grayscale-12) !important; +} + +.cv-home .fern-card .text-body { + font-size: 1.125rem; + font-weight: 400; + letter-spacing: -0.01em; +} + +.cv-home .fern-card p { + font-size: 0.9375rem; + line-height: 1.6; +} + +/* Connect your agent: option list on the left, details and command on the right. */ +.cv-agent-card { + display: grid; + grid-template-columns: 13rem minmax(0, 1fr); + gap: 1.5rem; + margin-top: 1.75rem; + padding: 1.5rem; + border: 1px solid var(--border); + border-radius: 1rem; + background: var(--card-background); +} + +.cv-agent-tabs { + display: flex; + flex-direction: column; + gap: 2px; +} + +.cv-agent-tab { + padding: 0.5rem 0.75rem; + border-radius: 0.5rem; + color: var(--grayscale-11); + font-size: 0.9375rem; + text-align: left; + white-space: nowrap; + cursor: pointer; + transition: background-color 150ms ease, color 150ms ease; +} + +.cv-agent-tab:hover { + background: var(--grayscale-a2); + color: var(--grayscale-12); +} + +.cv-agent-tab[aria-selected="true"] { + background: var(--grayscale-a3); + color: var(--grayscale-12); +} + +.cv-agent-tab:focus-visible { + outline: 2px solid var(--accent); + outline-offset: -2px; +} + +.cv-agent-panel { + display: flex; + flex-direction: column; + min-width: 0; + border: 1px solid var(--border); + border-radius: 0.75rem; +} + +.cv-agent-info { + display: flex; + flex: 1; + flex-direction: column; + align-items: flex-start; + gap: 0.5rem; + padding: 1.5rem; +} + +.cv-home p.cv-agent-title { + margin: 0; + color: var(--grayscale-12); + font-size: 1.25rem; + font-weight: 400; + letter-spacing: -0.01em; +} + +.cv-home p.cv-agent-desc { + margin: 0; + color: var(--grayscale-11); + font-size: 0.9375rem; + line-height: 1.6; +} + +.cv-agent-cmd { + position: relative; + display: flex; + align-items: center; + border-top: 1px solid var(--border); + padding-right: 0.75rem; +} + +.cv-agent-select { + display: flex; + flex: none; + align-items: center; + align-self: stretch; + min-width: 10.5rem; + padding: 0 1rem 0 1.25rem; + border-right: 1px solid var(--border); +} + +.cv-agent-logo { + display: inline-flex; + flex: none; + width: 1rem; + height: 1rem; + color: var(--grayscale-12); +} + +.cv-agent-logo svg { + width: 100%; + height: 100%; +} + +.cv-picker { + position: relative; +} + +.cv-picker-trigger, +.cv-picker-static { + display: inline-flex; + align-items: center; + gap: 0.5rem; + color: var(--grayscale-12); + font-size: 0.8125rem; + font-weight: 500; + white-space: nowrap; +} + +.cv-picker-trigger { + margin-left: -0.5rem; + padding: 0.375rem 0.5rem; + border-radius: 0.375rem; + cursor: pointer; +} + +.cv-picker-trigger:hover, +.cv-picker-trigger[aria-expanded="true"] { + background: var(--grayscale-a3); +} + +.cv-picker-trigger:focus-visible, +.cv-picker-item:focus-visible { + outline: 2px solid var(--accent); + outline-offset: -2px; +} + +.cv-picker-chevron { + width: 0.875rem; + height: 0.875rem; + color: var(--grayscale-11); +} + +.cv-picker-menu { + position: absolute; + top: calc(100% + 0.375rem); + left: -0.5rem; + z-index: 20; + display: flex; + flex-direction: column; + min-width: 12rem; + padding: 0.25rem; + border: 1px solid var(--border); + border-radius: 0.75rem; + background: var(--card-background); + box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.25); +} + +.cv-picker-item { + display: flex; + align-items: center; + gap: 0.625rem; + padding: 0.5rem 0.625rem; + border-radius: 0.5rem; + color: var(--grayscale-12); + font-size: 0.8125rem; + text-align: left; + cursor: pointer; +} + +.cv-picker-item:hover, +.cv-picker-item:focus-visible { + background: var(--grayscale-a3); +} + +.cv-picker-item span:not(.cv-agent-logo) { + flex: 1; +} + +.cv-picker-check { + width: 0.875rem; + height: 0.875rem; + color: var(--grayscale-11); +} + +.cv-agent-line { + display: flex; + flex: 1; + flex-direction: column; + gap: 0.375rem; + min-width: 0; + padding: 0.875rem 1rem; + overflow-x: auto; +} + +.cv-agent-file { + color: var(--grayscale-11); + font-size: 0.75rem; +} + +.cv-home .cv-agent-code { + margin: 0; + padding: 0; + border: 0 !important; + background: transparent !important; + box-shadow: none !important; + color: var(--grayscale-12); + font-family: var(--font-code, ui-monospace, monospace); + font-size: 0.8125rem; + line-height: 1.5; + white-space: pre; +} + +.cv-home code.cv-agent-code { + white-space: pre-wrap; + overflow-wrap: anywhere; +} + +.cv-agent-prompt { + margin-right: 0.75ch; + color: var(--grayscale-11); + user-select: none; +} + +.cv-agent-program { + color: var(--accent); +} + +.cv-agent-link { + margin-top: 0.5rem; + color: var(--grayscale-12) !important; + font-size: 0.875rem; + font-weight: 500; + text-decoration: none !important; +} + +.cv-agent-link:hover { + color: var(--accent) !important; +} + +/* API definition logos */ +.cv-logo-grid { + display: grid; + grid-template-columns: repeat(4, minmax(0, 1fr)); + margin-top: 1.75rem; + overflow: hidden; + border: 1px solid var(--border); + border-radius: 1rem; + background: var(--card-background); +} + +.cv-home .cv-logo-cell { + display: flex; + align-items: center; + justify-content: center; + gap: 0.75rem; + padding: 2rem 1rem; + color: var(--grayscale-12); + font-size: 1.0625rem; + text-decoration: none; + transition: background-color 150ms ease; +} + +.cv-home .cv-logo-cell + .cv-logo-cell { + border-left: 1px solid var(--border); +} + +.cv-home .cv-logo-cell:hover { + background: var(--grayscale-a2); +} + +.cv-home .cv-logo-cell .hg-spec-iso { + width: 2.25rem; + margin: 0; +} + +.cv-home .cv-logo-cell:hover .hg-spec-glyph { + stroke: var(--accent); +} + +.cv-home .cv-logo-cell:hover .hg-spec-dot { + fill: var(--accent); +} + +@media (max-width: 767px) { + .cv-home { + padding-top: 3rem; + } + + .cv-section { + margin-top: 4rem; + } + + .cv-section-head { + flex-direction: column; + align-items: flex-start; + } + + .cv-agent-card { + grid-template-columns: minmax(0, 1fr); + gap: 1rem; + padding: 1rem; + } + + .cv-agent-tabs { + flex-direction: row; + overflow-x: auto; + scrollbar-width: none; + mask-image: linear-gradient(to right, #000 85%, transparent); + } + + .cv-agent-tab { + flex: none; + } + + .cv-agent-info { + padding: 1.25rem; + } + + .cv-agent-cmd { + flex-direction: column; + align-items: stretch; + padding-right: 0; + } + + .cv-agent-select { + padding: 0.625rem 1rem; + border-right: 0; + border-bottom: 1px solid var(--border); + } + + .cv-agent-cmd .cv-copy { + position: absolute; + top: 0.5rem; + right: 0.75rem; + } + + .cv-logo-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + + .cv-home .cv-logo-cell + .cv-logo-cell { + border-left: 0; + } + + .cv-home .cv-logo-cell:nth-child(even) { + border-left: 1px solid var(--border); + } + + .cv-home .cv-logo-cell:nth-child(n + 3) { + border-top: 1px solid var(--border); + } +} diff --git a/fern/components/CanvasHome.tsx b/fern/components/CanvasHome.tsx new file mode 100644 index 0000000000..ba4616aa89 --- /dev/null +++ b/fern/components/CanvasHome.tsx @@ -0,0 +1,255 @@ +// Canvas home page: the "Connect your agent" card with per-agent install commands. +declare const React: any; +const { useEffect, useRef, useState } = React; + +// Agent logos from fern-marketing-site (public/docs/ai-*.svg); Codex and Cursor marks follow the text color. +const AGENT_LOGOS: Record = { + claude: "", + codex: "", + cursor: "", + copilot: "", + terminal: "", +}; + +function AgentLogo({ icon }: { icon?: string }) { + return ; +} + +function writeClipboard(text: string): Promise { + if (navigator.clipboard?.writeText) return navigator.clipboard.writeText(text); + return new Promise((resolve, reject) => { + const area = document.createElement("textarea"); + area.value = text; + area.setAttribute("readonly", ""); + area.style.position = "fixed"; + area.style.opacity = "0"; + document.body.appendChild(area); + area.select(); + const ok = document.execCommand("copy"); + area.remove(); + if (ok) resolve(); + else reject(new Error("copy failed")); + }); +} + +// Tracks the key of the last copied snippet, so the check mark only shows next to that snippet. +function useCopy() { + const [copiedKey, setCopiedKey] = useState(null as string | null); + const timer = useRef(0); + const copy = (text: string, key: string) => { + writeClipboard(text) + .then(() => { + window.clearTimeout(timer.current); + setCopiedKey(key); + timer.current = window.setTimeout(() => setCopiedKey(null), 1200); + }) + .catch(() => {}); + }; + return { copiedKey, copy }; +} + +function CopyButton({ copied, onClick, label }: { copied: boolean; onClick: () => void; label: string }) { + return ( + + ); +} + +type AgentOption = { label: string; command: string; file?: string; icon?: string }; +type AgentTab = { + label: string; + description: string; + href: string; + optionsLabel?: string; + options: AgentOption[]; +}; + +// Dropdown of agents with their logos; a single option renders as a plain label. +function AgentPicker({ + options, + value, + onChange, + label, +}: { + options: AgentOption[]; + value: number; + onChange: (i: number) => void; + label: string; +}) { + const [open, setOpen] = useState(false); + const rootRef = useRef(null); + const itemRefs = useRef([] as any[]); + + useEffect(() => { + if (!open) return; + itemRefs.current[value]?.focus(); + const onPointer = (e: any) => { + if (!rootRef.current?.contains(e.target)) setOpen(false); + }; + document.addEventListener("mousedown", onPointer); + return () => document.removeEventListener("mousedown", onPointer); + }, [open]); + + const current = options[value]; + if (options.length < 2) { + return ( + + + {current.label} + + ); + } + + const onMenuKeyDown = (e: any) => { + const index = itemRefs.current.indexOf(document.activeElement); + if (e.key === "Escape") { + setOpen(false); + rootRef.current?.querySelector(".cv-picker-trigger")?.focus(); + } else if (e.key === "ArrowDown" || e.key === "ArrowUp") { + e.preventDefault(); + const delta = e.key === "ArrowDown" ? 1 : -1; + itemRefs.current[(index + delta + options.length) % options.length]?.focus(); + } + }; + + return ( +
+ + {open ? ( +
+ {options.map((o, i) => ( + + ))} +
+ ) : null} +
+ ); +} + +export function AgentConnect({ tabs, linkText = "Read the docs" }: { tabs: AgentTab[]; linkText?: string }) { + const [active, setActive] = useState(0); + const [options, setOptions] = useState({} as Record); + const tabRefs = useRef([] as any[]); + const { copiedKey, copy } = useCopy(); + + const tab = tabs[active]; + const optionIndex = Math.min(options[active] ?? 0, tab.options.length - 1); + const copyKey = `${active}-${optionIndex}`; + const option = tab.options[optionIndex]; + const multiline = option.command.includes("\n"); + const [program, ...rest] = option.command.split(" "); + + const onKeyDown = (e: any) => { + const delta = e.key === "ArrowDown" ? 1 : e.key === "ArrowUp" ? -1 : 0; + if (!delta) return; + e.preventDefault(); + const next = (active + delta + tabs.length) % tabs.length; + setActive(next); + tabRefs.current[next]?.focus(); + }; + + return ( +
+
+ {tabs.map((t, i) => ( + + ))} +
+
+
+

{tab.label}

+

{tab.description}

+ + {linkText} + +
+
+
+ setOptions({ ...options, [active]: v })} + /> +
+
+ {option.file ? {option.file} : null} + {multiline ? ( +
{option.command}
+ ) : ( + + + {program} {rest.join(" ")} + + )} +
+ copy(option.command, copyKey)} label="Copy command" /> +
+
+
+ ); +} diff --git a/fern/components/FernFooter.tsx b/fern/components/FernFooter.tsx index 987de2cac7..fed01d5466 100644 --- a/fern/components/FernFooter.tsx +++ b/fern/components/FernFooter.tsx @@ -182,7 +182,6 @@ export default function FernFooter() {