Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

feat(docs): redesign docs site with dark-first brand theme (#1178)

Francesco Bonacci25fb8a8a10fe
diff --git a/.lycheeignore b/.lycheeignore
index 4891972549..14ff721cb1 100644
--- a/.lycheeignore
+++ b/.lycheeignore
@@ -2,3 +2,5 @@ https://cua.ai/
https://api.cua.ai/
# Google Cloud Console links have HTTP/2 protocol issues with automated checkers
https://console.cloud.google.com/*
+# hud.ai rate-limits automated link checkers (429)
+https://www.hud.ai/*
diff --git a/docs/public/apple-touch-icon.png b/docs/public/apple-touch-icon.png
new file mode 100644
index 0000000000..1fb1a37be2
Binary files /dev/null and b/docs/public/apple-touch-icon.png differ
diff --git a/docs/public/favicon.ico b/docs/public/favicon.ico
new file mode 100644
index 0000000000..d91a037fa3
Binary files /dev/null and b/docs/public/favicon.ico differ
diff --git a/docs/public/favicon.png b/docs/public/favicon.png
new file mode 100644
index 0000000000..4c53796631
Binary files /dev/null and b/docs/public/favicon.png differ
diff --git a/docs/public/img/bg-dark.jpg b/docs/public/img/bg-dark.jpg
deleted file mode 100644
index c4f125d1ec..0000000000
Binary files a/docs/public/img/bg-dark.jpg and /dev/null differ
diff --git a/docs/public/img/bg-light.jpg b/docs/public/img/bg-light.jpg
deleted file mode 100644
index 17f242feeb..0000000000
Binary files a/docs/public/img/bg-light.jpg and /dev/null differ
diff --git a/docs/public/img/cua-logo-accent.svg b/docs/public/img/cua-logo-accent.svg
new file mode 100644
index 0000000000..e9c57fd483
--- /dev/null
+++ b/docs/public/img/cua-logo-accent.svg
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 30.1.0, SVG Export Plug-In . SVG Version: 9.03 Build 0) -->
+<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ viewBox="0 0 1117.09 1117.09" style="enable-background:new 0 0 1117.09 1117.09;" xml:space="preserve">
+<style type="text/css">
+ .st0{fill:url(#cuaAccentGradient);}
+</style>
+<defs>
+ <linearGradient id="cuaAccentGradient" x1="145.0903" y1="134.0903" x2="972" y2="961" gradientUnits="userSpaceOnUse">
+ <stop offset="0" style="stop-color:#61BCFF"/>
+ <stop offset="1" style="stop-color:#4FD37E"/>
+ </linearGradient>
+</defs>
+<g>
+ <g>
+ <path class="st0" d="M615.45,884.56c-19.83,6.49-41.54,7.23-62.2,6.71c-32.28-0.81-70.99-6.35-89.89-36.09c-10.85-17.08-6.21-42.43-2.2-60.95
+ c5.58-25.77,13.62-51.02,23.98-75.27c8.85-20.73,20.01-42.15,38.89-55.46c19.7-13.89,44.92-15.47,65.19-1.66
+ c24.79,16.89,36.18,48.86,47.62,75.37c8.2,19.01,15.26,38.59,19.94,58.79c4.48,19.35,8.07,39.26-1.52,57.73
+ c-7.37,14.19-21.31,24.12-36.32,29.62C617.78,883.77,616.62,884.17,615.45,884.56z"/>
+ <path class="st0" d="M601.53,1028.22c-19.42,1.2-38.9,1.58-58.35,1.13c-115.28-2.64-253.01-26.14-326.27-125.85
+ c-14.2-19.33-25.22-40.85-33-63.51c-2.81-8.19-4.94-17.26-12.46-22.28c-16.07-10.73-32.64-20.22-43.86-36.46
+ c-10.38-15.01-15.75-33.56-14.37-51.81c0.71-9.44,2.3-15.28-6.43-20.98c-17.74-11.58-33.7-22.79-40.14-44.18
+ c-7.31-24.28,0.84-47.29,14.48-67.45c2-2.95,3.91-6.08,4.58-9.58c1.38-7.26-2.73-13.89-5.66-20.2c-3-6.46-6.01-12.86-9.15-19.27
+ c-6.66-13.6-12.78-27.91-13.65-43.23c-1.14-20.17,0.76-40.73,9.99-59.01c9.06-17.95,21.94-33.98,37.58-46.62
+ c45.67-36.92,109.66-23.27,160.19-5.44c26.71,9.43,52.68,21.59,77.38,35.45c4.19,2.35,6.39,2.69,10.51,0.03
+ c61.83-39.97,133.45-67.99,207.82-68.46c27.5-0.17,54.97,3.43,81.65,10.01c39.72,9.80,78.62,25.85,113.96,46.46
+ c6.28,3.66,16.86,12.90,24.45,11.44c3-0.58,6.70-3.66,9.35-5.11c23.86-13.04,47.30-25.88,73.10-34.82
+ c38.21-13.24,82.43-24.74,121.38-8.67c50.83,20.96,86.78,78.31,73.93,133.46c-4.08,17.50-15.64,32-19.59,49.41
+ c-1.04,4.58-1.43,9.46,0.09,13.91c3.09,9.06,11.64,15.83,15.67,24.74c4.23,9.33,6.63,19.51,6.71,29.76
+ c0.12,15.44-5.15,30.99-15.21,42.70c-7.35,8.57-17.14,15.49-26.90,21.03c-2.36,1.34-4.94,2.78-5.99,5.28
+ c-0.73,1.74-0.58,3.70-0.43,5.58c0.74,8.90,1.95,17.53,0.67,26.39c-0.61,4.24-1.60,8.42-2.91,12.50c-1.03,3.21-4.90,8.70-4.90,11.86
+ c-7.92,15.52-20.54,28.36-35.03,38.04c-3.79,2.53-9.12,5.06-11.87,8.80c-1.96,2.68-2.36,6.29-3.24,9.55
+ c-1.52,5.61-3.04,11.21-4.56,16.82c-4.83,17.82-12,34.64-22.29,49.99c-36.82,54.93-85.32,90.26-147.30,112.25
+ C723.56,1012.39,662.80,1024.43,601.53,1028.22z M620.68,979.97c54.47-3.71,107.81-13.91,158.39-35.25
+ c41.56-17.57,77.49-40.48,104.98-76.91c60.63-80.36,32.83-197.56-13.01-277.92c-18.04-31.63-42.05-60.47-68.70-85.20
+ c-81.98-76.07-201.17-117.71-311.44-89.56c-38.78,9.90-75.46,27.21-108.58,49.58c-66.16,44.68-114.14,109.14-142.77,183.23
+ c-15.03,38.90-23.65,83.54-23.83,125.25c-0.21,50.48,24.76,98.43,61.47,132.15c41.57,38.18,99.14,53.33,153.20,64.45
+ c59.35,12.21,121.18,14.06,181.55,10.72C614.86,980.34,617.77,980.16,620.68,979.97z M966.58,738.76
+ c2.53-2.76,4.49-6.03,5.68-9.97c1.95-6.42,1.95-13.24,1.87-19.95c-0.32-26.29,10.68-46.13,33.32-59.92
+ c7.96-4.84,17.51-11.15,17.12-21.86c-0.36-9.80-9.42-16.01-14.42-23.52c-6.50-9.78-8.36-23.01-7.85-34.51
+ c0.60-13.43,4.13-27.85,9.57-40.16c5.21-11.80,11.56-23,13.39-36.07c4.45-31.91-20.82-59.57-47.48-72.98
+ c-21.25-10.69-46.92-8.38-69.35-3.28c-25.45,5.79-50.18,14.74-73.42,26.60c-5.57,2.84-22.12,9.74-15.15,18.30
+ c10.26,12.59,23.18,22.74,34.30,34.56c11.53,12.26,22.22,25.30,31.99,38.99c21.34,29.90,38.25,62.94,50.26,97.65
+ c12.06,34.86,16.69,69.54,20.45,105.95c0.23,2.27,0.77,4.56,1.25,6.79C961.31,743.52,964.20,741.36,966.58,738.76z M174.43,764.70
+ c3.21-6,2.08-18.53,2.81-25.22c1.31-11.94,2.49-23.88,4.34-35.75c5.12-32.87,13.68-65.02,26.19-95.85
+ c20.74-51.10,53.51-94.70,90.29-135.23c2.35-2.59,13.75-11.59,10.47-15.71c-0.71-0.89-2.40-1.98-4.03-2.74
+ c-54.25-25.39-134.25-62.06-185.32-12.84c-11.15,10.75-20.20,24.10-23.85,39.16c-7.74,31.96,19.48,58.95,26.62,88.49
+ c2.79,11.54,3.32,23.85-0.22,35.18c-5.31,16.99-31.91,34.85-13.22,51.65c4.78,4.29,10.84,6.35,16.06,9.83
+ c4.62,3.07,9.39,6.63,13.29,10.60c7.59,7.73,13.91,16.98,16.20,27.70c2.34,10.93-1.72,21.45-0.42,32.29
+ C154.85,746.24,164.43,761.50,174.43,764.70z"/>
+ </g>
+</g>
+<path class="st0" d="M556.48,280.01L556.48,280.01c-16.36,0-29.62-13.26-29.62-29.62V116.01c0-16.36,13.26-29.62,29.62-29.62h0
+ c16.36,0,29.62,13.26,29.62,29.62v134.38C586.10,266.75,572.84,280.01,556.48,280.01z"/>
+<path class="st0" d="M475.52,305.74L475.52,305.74c-11.57,11.57-30.32,11.57-41.89,0l-72.36-72.36c-11.57-11.57-11.57-30.32,0-41.89l0,0
+ c11.57-11.57,30.32-11.57,41.89,0l72.36,72.36C487.08,275.42,487.08,294.17,475.52,305.74z"/>
+<path class="st0" d="M637.94,305.73L637.94,305.73c11.57,11.57,30.32,11.57,41.89,0l72.36-72.36c11.57-11.57,11.57-30.32,0-41.89l0,0
+ c-11.57-11.57-30.32-11.57-41.89,0l-72.36,72.36C626.37,275.41,626.37,294.16,637.94,305.73z"/>
+<path class="st0" d="M358.94,765.85h-38.70c-11.05,0-20-8.95-20-20V644.88c0-11.05,8.95-20,20-20h38.70c11.05,0,20,8.95,20,20v100.97
+ C378.94,756.90,369.99,765.85,358.94,765.85z"/>
+<path class="st0" d="M796.70,765.49h-38.70c-11.05,0-20-8.95-20-20V644.52c0-11.05,8.95-20,20-20h38.70c11.05,0,20,8.95,20,20v100.97
+ C816.70,756.54,807.74,765.49,796.70,765.49z"/>
+</svg>
diff --git a/docs/public/img/cua_logo_white_new.svg b/docs/public/img/cua_logo_white_new.svg
new file mode 100644
index 0000000000..1847443f3b
--- /dev/null
+++ b/docs/public/img/cua_logo_white_new.svg
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 30.1.0, SVG Export Plug-In . SVG Version: 9.03 Build 0) -->
+<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ viewBox="0 0 1117.09 1117.09" style="enable-background:new 0 0 1117.09 1117.09;" xml:space="preserve">
+<style type="text/css">
+ .st0{fill:#FFFFFF;}
+</style>
+<g>
+ <g>
+ <path class="st0" d="M615.45,884.56c-19.83,6.49-41.54,7.23-62.2,6.71c-32.28-0.81-70.99-6.35-89.89-36.09
+ c-10.85-17.08-6.21-42.43-2.2-60.95c5.58-25.77,13.62-51.02,23.98-75.27c8.85-20.73,20.01-42.15,38.89-55.46
+ c19.7-13.89,44.92-15.47,65.19-1.66c24.79,16.89,36.18,48.86,47.62,75.37c8.2,19.01,15.26,38.59,19.94,58.79
+ c4.48,19.35,8.07,39.26-1.52,57.73c-7.37,14.19-21.31,24.12-36.32,29.62C617.78,883.77,616.62,884.17,615.45,884.56z"/>
+ <path class="st0" d="M601.53,1028.22c-19.42,1.2-38.9,1.58-58.35,1.13c-115.28-2.64-253.01-26.14-326.27-125.85
+ c-14.2-19.33-25.22-40.85-33-63.51c-2.81-8.19-4.94-17.26-12.46-22.28c-16.07-10.73-32.64-20.22-43.86-36.46
+ c-10.38-15.01-15.75-33.56-14.37-51.81c0.71-9.44,2.3-15.28-6.43-20.98c-17.74-11.58-33.7-22.79-40.14-44.18
+ c-7.31-24.28,0.84-47.29,14.48-67.45c2-2.95,3.91-6.08,4.58-9.58c1.38-7.26-2.73-13.89-5.66-20.2c-3-6.46-6.01-12.86-9.15-19.27
+ c-6.66-13.6-12.78-27.91-13.65-43.23c-1.14-20.17,0.76-40.73,9.99-59.01c9.06-17.95,21.94-33.98,37.58-46.62
+ c45.67-36.92,109.66-23.27,160.19-5.44c26.71,9.43,52.68,21.59,77.38,35.45c4.19,2.35,6.39,2.69,10.51,0.03
+ c61.83-39.97,133.45-67.99,207.82-68.46c27.5-0.17,54.97,3.43,81.65,10.01c39.72,9.8,78.62,25.85,113.96,46.46
+ c6.28,3.66,16.86,12.9,24.45,11.44c3-0.58,6.7-3.66,9.35-5.11c23.86-13.04,47.3-25.88,73.1-34.82
+ c38.21-13.24,82.43-24.74,121.38-8.67c50.83,20.96,86.78,78.31,73.93,133.46c-4.08,17.5-15.64,32-19.59,49.41
+ c-1.04,4.58-1.43,9.46,0.09,13.91c3.09,9.06,11.64,15.83,15.67,24.74c4.23,9.33,6.63,19.51,6.71,29.76
+ c0.12,15.44-5.15,30.99-15.21,42.7c-7.35,8.57-17.14,15.49-26.9,21.03c-2.36,1.34-4.94,2.78-5.99,5.28
+ c-0.73,1.74-0.58,3.7-0.43,5.58c0.74,8.9,1.95,17.53,0.67,26.39c-0.61,4.24-1.6,8.42-2.91,12.5c-1.03,3.21-4.9,8.7-4.9,11.86
+ c-7.92,15.52-20.54,28.36-35.03,38.04c-3.79,2.53-9.12,5.06-11.87,8.8c-1.96,2.68-2.36,6.29-3.24,9.55
+ c-1.52,5.61-3.04,11.21-4.56,16.82c-4.83,17.82-12,34.64-22.29,49.99c-36.82,54.93-85.32,90.26-147.3,112.25
+ C723.56,1012.39,662.8,1024.43,601.53,1028.22z M620.68,979.97c54.47-3.71,107.81-13.91,158.39-35.25
+ c41.56-17.57,77.49-40.48,104.98-76.91c60.63-80.36,32.83-197.56-13.01-277.92c-18.04-31.63-42.05-60.47-68.7-85.2
+ c-81.98-76.07-201.17-117.71-311.44-89.56c-38.78,9.9-75.46,27.21-108.58,49.58c-66.16,44.68-114.14,109.14-142.77,183.23
+ c-15.03,38.9-23.65,83.54-23.83,125.25c-0.21,50.48,24.76,98.43,61.47,132.15c41.57,38.18,99.14,53.33,153.2,64.45
+ c59.35,12.21,121.18,14.06,181.55,10.72C614.86,980.34,617.77,980.16,620.68,979.97z M966.58,738.76
+ c2.53-2.76,4.49-6.03,5.68-9.97c1.95-6.42,1.95-13.24,1.87-19.95c-0.32-26.29,10.68-46.13,33.32-59.92
+ c7.96-4.84,17.51-11.15,17.12-21.86c-0.36-9.8-9.42-16.01-14.42-23.52c-6.5-9.78-8.36-23.01-7.85-34.51
+ c0.6-13.43,4.13-27.85,9.57-40.16c5.21-11.8,11.56-23,13.39-36.07c4.45-31.91-20.82-59.57-47.48-72.98
+ c-21.25-10.69-46.92-8.38-69.35-3.28c-25.45,5.79-50.18,14.74-73.42,26.6c-5.57,2.84-22.12,9.74-15.15,18.3
+ c10.26,12.59,23.18,22.74,34.3,34.56c11.53,12.26,22.22,25.3,31.99,38.99c21.34,29.9,38.25,62.94,50.26,97.65
+ c12.06,34.86,16.69,69.54,20.45,105.95c0.23,2.27,0.77,4.56,1.25,6.79C961.31,743.52,964.2,741.36,966.58,738.76z M174.43,764.7
+ c3.21-6,2.08-18.53,2.81-25.22c1.31-11.94,2.49-23.88,4.34-35.75c5.12-32.87,13.68-65.02,26.19-95.85
+ c20.74-51.1,53.51-94.7,90.29-135.23c2.35-2.59,13.75-11.59,10.47-15.71c-0.71-0.89-2.4-1.98-4.03-2.74
+ c-54.25-25.39-134.25-62.06-185.32-12.84c-11.15,10.75-20.2,24.1-23.85,39.16c-7.74,31.96,19.48,58.95,26.62,88.49
+ c2.79,11.54,3.32,23.85-0.22,35.18c-5.31,16.99-31.91,34.85-13.22,51.65c4.78,4.29,10.84,6.35,16.06,9.83
+ c4.62,3.07,9.39,6.63,13.29,10.6c7.59,7.73,13.91,16.98,16.2,27.7c2.34,10.93-1.72,21.45-0.42,32.29
+ C154.85,746.24,164.43,761.5,174.43,764.7z"/>
+ </g>
+</g>
+<path class="st0" d="M556.48,280.01L556.48,280.01c-16.36,0-29.62-13.26-29.62-29.62V116.01c0-16.36,13.26-29.62,29.62-29.62l0,0
+ c16.36,0,29.62,13.26,29.62,29.62v134.38C586.1,266.75,572.84,280.01,556.48,280.01z"/>
+<path class="st0" d="M475.52,305.74L475.52,305.74c-11.57,11.57-30.32,11.57-41.89,0l-72.36-72.36c-11.57-11.57-11.57-30.32,0-41.89
+ l0,0c11.57-11.57,30.32-11.57,41.89,0l72.36,72.36C487.08,275.42,487.08,294.17,475.52,305.74z"/>
+<path class="st0" d="M637.94,305.73L637.94,305.73c11.57,11.57,30.32,11.57,41.89,0l72.36-72.36c11.57-11.57,11.57-30.32,0-41.89
+ l0,0c-11.57-11.57-30.32-11.57-41.89,0l-72.36,72.36C626.37,275.41,626.37,294.16,637.94,305.73z"/>
+<path class="st0" d="M358.94,765.85h-38.7c-11.05,0-20-8.95-20-20V644.88c0-11.05,8.95-20,20-20h38.7c11.05,0,20,8.95,20,20v100.97
+ C378.94,756.9,369.99,765.85,358.94,765.85z"/>
+<path class="st0" d="M796.7,765.49H758c-11.05,0-20-8.95-20-20V644.52c0-11.05,8.95-20,20-20h38.7c11.05,0,20,8.95,20,20v100.97
+ C816.7,756.54,807.74,765.49,796.7,765.49z"/>
+</svg>
diff --git a/docs/public/img/hero.png b/docs/public/img/hero.png
index f76a84d8d8..6f739e3107 100644
Binary files a/docs/public/img/hero.png and b/docs/public/img/hero.png differ
diff --git a/docs/public/img/logos/linkedin-white.svg b/docs/public/img/logos/linkedin-white.svg
new file mode 100644
index 0000000000..3043ab9d94
--- /dev/null
+++ b/docs/public/img/logos/linkedin-white.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
+ <path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" fill="white"/>
+</svg>
diff --git a/docs/public/img/logos/x-white.svg b/docs/public/img/logos/x-white.svg
new file mode 100644
index 0000000000..6206269fe5
--- /dev/null
+++ b/docs/public/img/logos/x-white.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
+ <path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" fill="white"/>
+</svg>
diff --git a/docs/src/app/(landing)/page.tsx b/docs/src/app/(landing)/page.tsx
index ef3f3babaf..9c53096723 100644
--- a/docs/src/app/(landing)/page.tsx
+++ b/docs/src/app/(landing)/page.tsx
@@ -1,301 +1,305 @@
-import { ArrowRight, BookOpen, ChevronRight, Cloud, Code2, FileCode } from 'lucide-react';
-import type { Metadata } from 'next';
-import Image from 'next/image';
-import Link from 'next/link';
+import {
+ ArrowRight,
+ BookOpen,
+ ChevronRight,
+ Cloud,
+ Code2,
+ FileCode,
+} from "lucide-react";
+import type { Metadata } from "next";
+import Link from "next/link";
export const metadata: Metadata = {
- title: 'Cua Documentation',
- description:
- 'Build computer use agents that see screens, click buttons, type and run code — with Cua.',
+ title: "Cua Documentation",
+ description:
+ "Give every agent a cloud desktop. Built for Claude Code, Codex, OpenClaw, and computer-use agents.",
};
// Navigation card data
const navCards = [
- {
- icon: BookOpen,
- title: 'Guide',
- description:
- 'Everything you need to know to use Cua. Dive deep into all of our features and best practices.',
- href: '/cua/guide/get-started/what-is-cua',
- },
- {
- icon: Code2,
- title: 'Examples',
- description:
- 'Practical examples built with Cua. Explore guided starting points for your use case.',
- href: '/cua/examples/automation/form-filling',
- },
- {
- icon: FileCode,
- title: 'API Reference',
- description:
- 'Technical information about the Cua APIs. Quickly refer to basic descriptions of various programming functionalities.',
- href: '/cua/reference/computer-sdk',
- },
- {
- icon: Cloud,
- title: 'Cloud',
- description:
- 'Managed cloud sandboxes for production workloads. Deploy agents at scale with our hosted infrastructure.',
- href: 'https://cua.ai',
- },
+ {
+ icon: BookOpen,
+ title: "Guide",
+ description:
+ "Set up your first agent, configure sandboxes, and learn the core concepts.",
+ href: "/cua/guide/get-started/what-is-cua",
+ },
+ {
+ icon: Code2,
+ title: "Examples",
+ description:
+ "Form filling, contact export, VPN automation, and more — ready to copy and run.",
+ href: "/cua/examples/automation/form-filling",
+ },
+ {
+ icon: FileCode,
+ title: "API Reference",
+ description:
+ "Computer, Agent, and Cloud SDK — every class, method, and parameter.",
+ href: "/cua/reference/computer-sdk",
+ },
+ {
+ icon: Cloud,
+ title: "Cloud",
+ description:
+ "Managed sandboxes for production. Deploy agents at scale without managing infra.",
+ href: "https://cua.ai",
+ },
];
// Featured examples data
const featuredExamples = [
- {
- title: 'Windows App Behind VPN',
- description: 'Automate legacy Windows applications securely behind VPN',
- href: '/cua/examples/platform-specific/windows-app-behind-vpn',
- },
- {
- title: 'PDF to Form Automation',
- description: 'Enhance interactions between form filling and local file systems',
- href: '/cua/examples/automation/form-filling',
- },
- {
- title: 'Contact Export',
- description: 'Export contacts from post-event platforms automatically',
- href: '/cua/examples/automation/post-event-contact-export',
- },
- {
- title: 'Complex UI Navigation',
- description: 'Navigate complex UIs with Gemini vision capabilities',
- href: '/cua/examples/ai-models/gemini-complex-ui-navigation',
- },
+ {
+ title: "Windows App Behind VPN",
+ description: "Automate legacy Windows applications securely behind VPN",
+ href: "/cua/examples/platform-specific/windows-app-behind-vpn",
+ },
+ {
+ title: "PDF to Form Automation",
+ description:
+ "Enhance interactions between form filling and local file systems",
+ href: "/cua/examples/automation/form-filling",
+ },
+ {
+ title: "Contact Export",
+ description: "Export contacts from post-event platforms automatically",
+ href: "/cua/examples/automation/post-event-contact-export",
+ },
+ {
+ title: "Complex UI Navigation",
+ description: "Navigate complex UIs with Gemini vision capabilities",
+ href: "/cua/examples/ai-models/gemini-complex-ui-navigation",
+ },
];
export default function LandingPage() {
- return (
- <div className="relative min-h-screen">
- {/* Background image - extends behind header */}
- <div className="pointer-events-none absolute inset-0 -top-14">
- <Image
- src="/docs/img/bg-dark.jpg"
- alt=""
- fill
- className="hidden object-cover object-top opacity-50 dark:block"
- priority
- />
- <Image
- src="/docs/img/bg-light.jpg"
- alt=""
- fill
- className="block object-cover object-top opacity-30 dark:hidden"
- priority
- />
- {/* Gradient overlay */}
- <div className="absolute inset-0 bg-gradient-to-b from-transparent via-fd-background/50 to-fd-background" />
- </div>
+ return (
+ <div className="relative min-h-screen overflow-hidden bg-[var(--bg-base)] text-[var(--ink-body)]">
+ <div className="pointer-events-none absolute inset-0 -top-14">
+ <div className="absolute inset-0 bg-[radial-gradient(circle_at_top,rgba(97,188,255,0.14),transparent_32rem)]" />
+ </div>
- {/* Hero Section */}
- <section className="relative overflow-hidden pb-16 pt-20 md:pb-24 md:pt-28">
- <div className="container relative mx-auto px-6 lg:px-8">
- <div className="grid items-center gap-12 lg:grid-cols-2 lg:gap-16">
- {/* Text content */}
- <div className="max-w-xl">
- {/* Badge */}
- <div className="mb-6 inline-flex items-center gap-2 rounded-lg border border-fd-border bg-fd-card/50 px-3 py-1.5 text-sm backdrop-blur-sm">
- <span className="h-2 w-2 rounded-full bg-emerald-500" />
- <span className="text-fd-muted-foreground">Open Source</span>
- </div>
+ <section className="relative overflow-hidden pb-16 pt-20 md:pb-24 md:pt-28">
+ <div className="container relative mx-auto px-6 lg:px-8">
+ <div className="cds-hero-shell grid items-center gap-10 px-8 py-10 lg:grid-cols-2 lg:gap-16 lg:px-12 lg:py-14">
+ <div className="cds-hero-grid pointer-events-none" />
+ <div className="relative max-w-xl">
+ <a
+ href="https://github.com/trycua/cua"
+ target="_blank"
+ rel="noreferrer"
+ className="github-badge mb-6 inline-flex items-center gap-2 rounded-md border border-white/10 bg-white/[0.04] px-3 py-2 text-xs uppercase tracking-widest text-[var(--ink-muted)] transition-colors hover:border-white/20 hover:bg-white/[0.08]"
+ >
+ <svg
+ aria-hidden="true"
+ viewBox="0 0 16 16"
+ className="h-3.5 w-3.5"
+ fill="currentColor"
+ >
+ <path d="M8 0C3.58 0 0 3.58 0 8a8 8 0 0 0 5.47 7.59c.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.56 7.56 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z" />
+ </svg>
+ <span>Open source</span>
+ <span className="h-3 w-px bg-white/20" />
+ <span className="flex items-center gap-1">
+ <svg
+ aria-hidden="true"
+ viewBox="0 0 16 16"
+ className="h-3 w-3"
+ fill="currentColor"
+ >
+ <path d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z" />
+ </svg>
+ 13.1k
+ </span>
+ </a>
- <h1
- className="text-4xl font-bold tracking-tight sm:text-5xl md:text-6xl"
- style={{ fontFamily: 'var(--font-urbanist)' }}
- >
- <span className="text-fd-foreground">Cua </span>
- <span className="text-sky-500">Documentation</span>
- </h1>
+ <h1
+ className="not-italic text-4xl font-semibold text-[var(--ink-strong)] sm:text-5xl md:text-6xl"
+ style={{ fontFamily: "var(--font-urbanist)", letterSpacing: "-0.035em" }}
+ >
+ Cua Docs
+ </h1>
- <p className="mt-6 text-lg leading-relaxed text-fd-muted-foreground">
- Build computer use agents that see screens, click buttons, type and run code —
- without thinking about infrastructure.
- </p>
+ <p className="mt-6 bg-gradient-to-r from-[var(--ink-body)] to-[var(--ink-muted)] bg-clip-text text-lg leading-relaxed text-transparent">
+ Give every agent a cloud desktop. Built for Claude Code, Codex,
+ OpenClaw, and computer-use agents.
+ </p>
- {/* CTA Buttons */}
- <div className="mt-8 flex flex-wrap items-center gap-4">
- <Link
- href="/cua/guide/get-started/what-is-cua"
- className="group inline-flex items-center gap-2 rounded-xl bg-fd-foreground px-6 py-2.5 text-sm font-medium text-fd-background transition-all hover:bg-fd-foreground/90"
- >
- Get Started
- <ArrowRight className="h-4 w-4 transition-transform group-hover:translate-x-0.5" />
- </Link>
- <a
- href="https://github.com/trycua/cua"
- target="_blank"
- rel="noreferrer"
- className="inline-flex items-center gap-2 rounded-xl border border-fd-border bg-fd-background/50 px-6 py-2.5 text-sm font-medium backdrop-blur-sm transition-all hover:bg-fd-accent"
- >
- <svg className="h-5 w-5" viewBox="0 0 24 24" fill="currentColor">
- <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
- </svg>
- Star on GitHub
- </a>
- </div>
- </div>
+ <div className="cta-row mt-8 flex flex-wrap gap-4">
+ <Link
+ href="/cua/guide/get-started/what-is-cua"
+ className="cds-button-primary inline-flex items-center gap-2 rounded-[10px] px-6 py-3 text-[0.95rem] font-semibold"
+ >
+ Get started
+ </Link>
+ <a
+ href="https://cua.ai"
+ target="_blank"
+ rel="noreferrer"
+ className="cds-button-secondary inline-flex items-center gap-2 rounded-[10px] px-6 py-3 text-[0.95rem] font-semibold"
+ >
+ Try Cua Cloud
+ </a>
+ </div>
+ </div>
- {/* Hero image */}
- <div className="relative hidden lg:block">
- <div className="relative mx-auto max-w-md">
- {/* Glow effect behind image */}
- <div className="absolute -inset-4 rounded-3xl bg-gradient-to-br from-sky-500/20 via-emerald-500/10 to-purple-500/20 blur-2xl" />
- <div className="relative overflow-hidden rounded-2xl border border-fd-border/50 bg-fd-card/30 p-4 backdrop-blur-sm">
- <Image
- src="/docs/img/hero.png"
- alt="Cua Platform"
- width={400}
- height={400}
- className="rounded-xl"
- priority
- />
- </div>
- </div>
- </div>
- </div>
- </div>
- </section>
+ <div className="relative hidden lg:block">
+ <a
+ href="https://cua.ai"
+ target="_blank"
+ rel="noreferrer"
+ className="group relative block"
+ >
+ <div className="absolute -inset-6 bg-[radial-gradient(circle,rgba(97,188,255,0.18),rgba(88,200,190,0.06),transparent_72%)] blur-2xl transition-opacity duration-300 group-hover:opacity-150" />
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src="/docs/img/hero.png"
+ alt="Cua Platform"
+ className="relative w-full rounded-[10px] transition-all duration-300 group-hover:scale-[1.02] group-hover:shadow-[0_8px_40px_rgba(97,188,255,0.25)]"
+ />
+ </a>
+ </div>
+ </div>
+ </div>
+ </section>
- {/* Navigation Cards Section */}
- <section className="relative container mx-auto px-6 py-12 lg:px-8">
- <div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
- {navCards.map((card) => {
- const Icon = card.icon;
- return (
- <Link
- key={card.title}
- href={card.href}
- className="group relative overflow-hidden rounded-xl border border-fd-border bg-fd-card/50 p-6 backdrop-blur-sm transition-all duration-300 hover:border-fd-primary/30 hover:bg-fd-card"
- >
- {/* Hover glow effect */}
- <div className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100">
- <div className="absolute inset-0 bg-gradient-to-br from-sky-500/5 to-emerald-500/5" />
- </div>
+ <section className="relative container mx-auto px-6 py-12 lg:px-8">
+ <div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
+ {navCards.map((card) => {
+ const Icon = card.icon;
+ return (
+ <Link
+ key={card.title}
+ href={card.href}
+ className="cds-card group relative overflow-hidden p-6 backdrop-blur-sm transition-all duration-300"
+ >
+ <div className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100">
+ <div className="absolute inset-0 bg-gradient-to-br from-[rgba(97,188,255,0.09)] to-[rgba(88,200,190,0.06)]" />
+ </div>
- <div className="relative">
- <div className="mb-4 inline-flex rounded-lg bg-gradient-to-br from-sky-500/10 to-emerald-500/10 p-3">
- <Icon className="h-6 w-6 text-sky-500" />
- </div>
- <h3 className="mb-2 text-lg font-semibold">{card.title}</h3>
- <p className="text-sm leading-relaxed text-fd-muted-foreground">
- {card.description}
- </p>
- <div className="mt-4 inline-flex items-center text-sm font-medium text-sky-500 opacity-0 transition-all duration-300 group-hover:opacity-100">
- Explore
- <ArrowRight className="ml-1 h-4 w-4 transition-transform group-hover:translate-x-1" />
- </div>
- </div>
- </Link>
- );
- })}
- </div>
- </section>
+ <div className="relative">
+ <div className="mb-4 inline-flex rounded-2xl border border-white/10 bg-[rgba(97,188,255,0.08)] p-3">
+ <Icon className="h-6 w-6 text-[var(--brand-500)]" />
+ </div>
+ <h3 className="mb-2 text-lg font-semibold text-[var(--ink-strong)]">
+ {card.title}
+ </h3>
+ <p className="text-sm leading-relaxed text-[var(--ink-muted)]">
+ {card.description}
+ </p>
+ <div className="mt-4 inline-flex items-center text-sm font-medium text-[var(--brand-500)] opacity-0 transition-all duration-300 group-hover:opacity-100">
+ Explore
+ <ArrowRight className="ml-1 h-4 w-4 transition-transform group-hover:translate-x-1" />
+ </div>
+ </div>
+ </Link>
+ );
+ })}
+ </div>
+ </section>
- {/* Featured Examples Section */}
- <section className="relative container mx-auto px-6 py-12 lg:px-8">
- <div className="mb-8 flex items-center justify-between">
- <div>
- <h2
- className="text-2xl font-bold md:text-3xl"
- style={{ fontFamily: 'var(--font-urbanist)' }}
- >
- Featured Examples
- </h2>
- <p className="mt-2 text-fd-muted-foreground">
- Real-world examples to get you started quickly
- </p>
- </div>
- <Link
- href="/cua/examples/automation/form-filling"
- className="hidden items-center gap-1 text-sm font-medium text-fd-muted-foreground transition-colors hover:text-fd-foreground sm:inline-flex"
- >
- View all
- <ChevronRight className="h-4 w-4" />
- </Link>
- </div>
+ <section className="relative container mx-auto px-6 py-12 lg:px-8">
+ <div className="mb-8 flex items-center justify-between">
+ <div>
+ <h2
+ className="text-2xl font-bold text-[var(--ink-strong)] md:text-3xl"
+ style={{ fontFamily: "var(--font-urbanist)" }}
+ >
+ Featured Examples
+ </h2>
+ <p className="mt-2 text-[var(--ink-muted)]">
+ From form filling to VPN automation
+ </p>
+ </div>
+ <Link
+ href="/cua/examples/automation/form-filling"
+ className="hidden items-center gap-1 text-sm font-medium text-[var(--ink-muted)] transition-colors hover:text-[var(--ink-strong)] sm:inline-flex"
+ >
+ View all
+ <ChevronRight className="h-4 w-4" />
+ </Link>
+ </div>
- <div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
- {featuredExamples.map((example) => (
- <Link
- key={example.title}
- href={example.href}
- className="group relative overflow-hidden rounded-xl border border-fd-border bg-fd-card/50 backdrop-blur-sm transition-all duration-300 hover:border-fd-primary/30 hover:bg-fd-card"
- >
- {/* Gradient header */}
- <div className="relative aspect-[16/10] overflow-hidden bg-gradient-to-br from-fd-muted to-fd-accent">
- {/* Decorative elements */}
- <div className="absolute inset-0 flex items-center justify-center">
- <div
- className="h-20 w-20 rounded-xl border border-fd-border/50 bg-fd-background/80 backdrop-blur-sm transition-transform duration-300 group-hover:scale-105"
- style={{
- boxShadow: '0 8px 32px rgba(0, 0, 0, 0.1)',
- }}
- >
- <div className="flex h-full w-full items-center justify-center">
- <Code2 className="h-8 w-8 text-fd-muted-foreground" />
- </div>
- </div>
- </div>
- {/* Subtle gradient overlay */}
- <div className="absolute inset-0 bg-gradient-to-t from-fd-card/80 to-transparent" />
- </div>
+ <div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
+ {featuredExamples.map((example) => (
+ <Link
+ key={example.title}
+ href={example.href}
+ className="cds-card group relative overflow-hidden backdrop-blur-sm transition-all duration-300"
+ >
+ <div className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100">
+ <div className="absolute inset-0 bg-gradient-to-br from-[rgba(97,188,255,0.09)] to-[rgba(88,200,190,0.06)]" />
+ </div>
- <div className="p-4">
- <h3 className="font-semibold transition-colors group-hover:text-sky-500">
- {example.title}
- </h3>
- <p className="mt-1 line-clamp-2 text-sm text-fd-muted-foreground">
- {example.description}
- </p>
- </div>
- </Link>
- ))}
- </div>
+ <div className="relative aspect-[16/10] overflow-hidden bg-gradient-to-br from-[var(--bg-elev-2)] via-[rgba(97,188,255,0.08)] to-[var(--bg-elev-1)]">
+ <div className="absolute inset-0 flex items-center justify-center">
+ <div
+ className="h-20 w-20 rounded-2xl border border-white/10 bg-[rgba(7,8,10,0.82)] backdrop-blur-sm transition-transform duration-300 group-hover:scale-105"
+ style={{
+ boxShadow: "0 16px 40px rgba(0, 0, 0, 0.32)",
+ }}
+ >
+ <div className="flex h-full w-full items-center justify-center">
+ <Code2 className="h-8 w-8 text-[var(--brand-500)]" />
+ </div>
+ </div>
+ </div>
+ <div className="absolute inset-0 bg-gradient-to-t from-[rgba(10,12,16,0.88)] to-transparent" />
+ </div>
- {/* Mobile "View all" link */}
- <div className="mt-6 text-center sm:hidden">
- <Link
- href="/cua/examples/automation/form-filling"
- className="inline-flex items-center gap-1 text-sm font-medium text-fd-muted-foreground transition-colors hover:text-fd-foreground"
- >
- View all examples
- <ChevronRight className="h-4 w-4" />
- </Link>
- </div>
- </section>
+ <div className="relative p-4">
+ <h3 className="font-semibold text-[var(--ink-strong)] transition-colors group-hover:text-[var(--brand-500)]">
+ {example.title}
+ </h3>
+ <p className="mt-1 line-clamp-2 text-sm text-[var(--ink-muted)]">
+ {example.description}
+ </p>
+ </div>
+ </Link>
+ ))}
+ </div>
- {/* Quick links section */}
- <section className="relative container mx-auto px-6 py-12 lg:px-8">
- <div className="rounded-xl border border-fd-border bg-gradient-to-br from-fd-card/50 to-fd-card p-8 backdrop-blur-sm">
- <div className="mx-auto max-w-2xl text-center">
- <h2
- className="text-xl font-bold md:text-2xl"
- style={{ fontFamily: 'var(--font-urbanist)' }}
- >
- Ready to build?
- </h2>
- <p className="mt-2 text-fd-muted-foreground">
- Start building computer-use agents in minutes with our quickstart guide.
- </p>
- <div className="mt-6 flex flex-wrap items-center justify-center gap-3">
- <Link
- href="/cua/guide/get-started/what-is-cua"
- className="inline-flex items-center gap-2 rounded-xl bg-fd-foreground px-6 py-2.5 text-sm font-medium text-fd-background transition-colors hover:bg-fd-foreground/90"
- >
- Get Started
- <ArrowRight className="h-4 w-4" />
- </Link>
- <Link
- href="/cua/reference/computer-sdk"
- className="inline-flex items-center gap-2 rounded-xl border border-fd-border px-6 py-2.5 text-sm font-medium transition-colors hover:bg-fd-accent"
- >
- API Reference
- </Link>
- </div>
- </div>
- </div>
- </section>
- </div>
- );
+ {/* Mobile "View all" link */}
+ <div className="mt-6 text-center sm:hidden">
+ <Link
+ href="/cua/examples/automation/form-filling"
+ className="inline-flex items-center gap-1 text-sm font-medium text-[var(--ink-muted)] transition-colors hover:text-[var(--ink-strong)]"
+ >
+ View all examples
+ <ChevronRight className="h-4 w-4" />
+ </Link>
+ </div>
+ </section>
+
+ <section className="relative container mx-auto px-6 py-12 lg:px-8">
+ <div className="cds-card p-8 backdrop-blur-sm">
+ <div className="mx-auto max-w-2xl text-center">
+ <h2
+ className="text-xl font-bold text-[var(--ink-strong)] md:text-2xl"
+ style={{ fontFamily: "var(--font-urbanist)" }}
+ >
+ Ready to build?
+ </h2>
+ <p className="mt-2 text-[var(--ink-muted)]">
+ Go from zero to a running agent in under five minutes.
+ </p>
+ <div className="mt-6 flex flex-wrap items-center justify-center gap-3">
+ <Link
+ href="/cua/guide/get-started/what-is-cua"
+ className="cds-button-primary inline-flex items-center gap-2 rounded-[10px] px-6 py-3 text-[0.95rem] font-semibold"
+ >
+ Get started
+ </Link>
+ <Link
+ href="/cua/reference/computer-sdk"
+ className="cds-button-secondary inline-flex items-center gap-2 rounded-[10px] px-6 py-3 text-[0.95rem] font-semibold"
+ >
+ API Reference
+ </Link>
+ </div>
+ </div>
+ </div>
+ </section>
+ </div>
+ );
}
diff --git a/docs/src/app/favicon.ico b/docs/src/app/favicon.ico
index ba825d3b68..d91a037fa3 100644
Binary files a/docs/src/app/favicon.ico and b/docs/src/app/favicon.ico differ
diff --git a/docs/src/app/global.css b/docs/src/app/global.css
index 124bb67330..0ecb1f7069 100644
--- a/docs/src/app/global.css
+++ b/docs/src/app/global.css
@@ -2,45 +2,210 @@
@import 'fumadocs-ui/css/neutral.css';
@import 'fumadocs-ui/css/preset.css';
-/* Custom Sky + Emerald theme */
@theme {
- --color-fd-primary: hsl(199, 89%, 48%); /* sky-500 */
- --color-fd-primary-foreground: hsl(0, 0%, 100%);
- --color-fd-ring: hsl(199, 89%, 48%); /* sky-500 */
- --color-fd-muted: hsl(160, 84%, 95%); /* emerald-50 */
- --color-fd-accent: hsl(152, 76%, 92%); /* emerald-100 */
- --font-sans: var(--font-geist-sans);
+ --bg-base: #07080a;
+ --bg-elev-1: #0a0c10;
+ --bg-elev-2: #12161b;
+ --line-soft: rgba(255, 255, 255, 0.12);
+ --line-strong: rgba(255, 255, 255, 0.2);
+ --ink-strong: #f6f8fb;
+ --ink-body: rgba(224, 230, 238, 0.84);
+ --ink-muted: rgba(164, 173, 187, 0.82);
+ --brand-500: #61bcff;
+ --brand-400: #d8edff;
+ --brand-200: #ecf6ff;
+ --brand-glow: rgba(97, 188, 255, 0.34);
+ --accent-wattle: #4fd37e;
+ --accent-wattle-soft: #d5f7e3;
+ --accent-teal: #58c8be;
+ --accent-violet: #2d84c6;
+
+ --color-fd-background: #f5f8fc;
+ --color-fd-foreground: #09111b;
+ --color-fd-muted: #eef4fb;
+ --color-fd-muted-foreground: rgba(46, 61, 79, 0.72);
+ --color-fd-popover: #ffffff;
+ --color-fd-popover-foreground: #09111b;
+ --color-fd-card: #ffffff;
+ --color-fd-card-foreground: #09111b;
+ --color-fd-border: rgba(18, 27, 38, 0.12);
+ --color-fd-primary: var(--brand-500);
+ --color-fd-primary-foreground: #041018;
+ --color-fd-secondary: #eef3f8;
+ --color-fd-secondary-foreground: #09111b;
+ --color-fd-accent: #e7eef7;
+ --color-fd-accent-foreground: #09111b;
+ --color-fd-ring: var(--brand-400);
+ --font-sans: var(--font-urbanist);
--font-mono: var(--font-geist-mono);
--font-heading: var(--font-urbanist);
}
-/* Urbanist for headings */
-h1, h2, h3, h4 {
+.dark {
+ --color-fd-background: var(--bg-base);
+ --color-fd-foreground: var(--ink-strong);
+ --color-fd-muted: var(--bg-elev-1);
+ --color-fd-muted-foreground: var(--ink-muted);
+ --color-fd-popover: var(--bg-elev-1);
+ --color-fd-popover-foreground: var(--ink-strong);
+ --color-fd-card: var(--bg-elev-1);
+ --color-fd-card-foreground: var(--ink-strong);
+ --color-fd-border: var(--line-soft);
+ --color-fd-primary: var(--brand-500);
+ --color-fd-primary-foreground: #041018;
+ --color-fd-secondary: var(--bg-elev-2);
+ --color-fd-secondary-foreground: var(--ink-strong);
+ --color-fd-accent: var(--bg-elev-2);
+ --color-fd-accent-foreground: var(--ink-strong);
+ --color-fd-ring: var(--brand-400);
+ --color-fd-overlay: rgba(3, 6, 10, 0.72);
+}
+
+.dark #nd-sidebar {
+ --color-fd-muted: var(--bg-elev-1);
+ --color-fd-secondary: var(--bg-elev-2);
+ --color-fd-muted-foreground: var(--ink-muted);
+}
+
+h1,
+h2,
+h3,
+h4 {
font-family: var(--font-heading), var(--font-sans), sans-serif;
}
-.dark {
- --color-fd-primary: hsl(199, 89%, 48%); /* sky-500 */
- --color-fd-primary-foreground: hsl(0, 0%, 100%);
- --color-fd-ring: hsl(199, 89%, 48%); /* sky-500 */
- --color-fd-muted: hsl(199, 89%, 14%); /* sky-950 */
- --color-fd-accent: hsl(199, 89%, 20%); /* sky dark */
+html {
+ color-scheme: dark;
+}
+
+body {
+ background:
+ radial-gradient(circle at top, rgba(97, 188, 255, 0.08), transparent 34rem),
+ linear-gradient(180deg, rgba(97, 188, 255, 0.04), transparent 24rem),
+ var(--color-fd-background);
+ background-repeat: no-repeat;
+ color: var(--color-fd-foreground);
+}
+
+body,
+#nd-docs-layout,
+[data-radix-popper-content-wrapper] {
+ color: var(--color-fd-foreground);
}
.dark body {
- background-image: linear-gradient(rgba(14, 165, 233, 0.1), transparent 20rem, transparent);
+ background:
+ radial-gradient(circle at top, rgba(97, 188, 255, 0.1), transparent 32rem),
+ linear-gradient(180deg, rgba(97, 188, 255, 0.08), transparent 24rem),
+ var(--bg-base);
background-repeat: no-repeat;
}
-/* Fix TOC overflow on production builds */
-#nd-toc {
- overflow-y: auto;
- overflow-x: hidden;
+.dark body::after {
+ content: '';
+ position: fixed;
+ inset: 0;
+ pointer-events: none;
+ z-index: 9999;
+ opacity: 0.018;
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
+ background-size: 200px 200px;
}
+a,
+button {
+ transition:
+ color 160ms ease,
+ background-color 160ms ease,
+ border-color 160ms ease,
+ box-shadow 160ms ease,
+ opacity 160ms ease;
+}
+
+::selection {
+ background: rgba(97, 188, 255, 0.28);
+ color: var(--ink-strong);
+}
+
+.cds-header-link {
+ position: relative;
+}
+
+.cds-header-link::after {
+ content: '';
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: -0.85rem;
+ height: 2px;
+ border-radius: 999px;
+ background: linear-gradient(90deg, rgba(97, 188, 255, 0), var(--brand-500), rgba(88, 200, 190, 0.9));
+ opacity: 0;
+ transform: scaleX(0.4);
+ transform-origin: center;
+ transition:
+ opacity 160ms ease,
+ transform 160ms ease;
+}
+
+.cds-header-link:hover::after,
+.cds-header-link[data-active='true']::after {
+ opacity: 1;
+ transform: scaleX(1);
+}
+
+.cds-icon-button {
+ border: 1px solid transparent;
+ background: transparent;
+ color: var(--ink-muted);
+}
+
+.cds-icon-button:hover {
+ border-color: var(--line-soft);
+ background: var(--bg-elev-2);
+ color: var(--ink-strong);
+}
+
+.dark header {
+ border-color: rgba(255, 255, 255, 0.06);
+}
+
+.dark [data-search-full] kbd,
+.dark [data-search-full] [data-search-kbd] {
+ border-color: var(--line-soft);
+ background: rgba(255, 255, 255, 0.04);
+ color: var(--ink-muted);
+}
+
+.dark [data-radix-popper-content-wrapper] > * {
+ border-color: var(--line-soft) !important;
+ background: var(--bg-elev-1) !important;
+ color: var(--ink-strong) !important;
+ box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
+}
+
+.dark [data-radix-popper-content-wrapper] [data-highlighted],
+.dark [data-radix-popper-content-wrapper] [data-state='checked'],
+.dark [data-radix-popper-content-wrapper] [data-selected] {
+ background: rgba(97, 188, 255, 0.12) !important;
+ color: var(--ink-strong) !important;
+}
+
+.dark [data-radix-dialog-overlay] {
+ background: rgba(3, 6, 10, 0.82) !important;
+}
+
+.dark [data-radix-dialog-content] {
+ border-color: var(--line-soft) !important;
+ background: var(--bg-elev-1) !important;
+ box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
+}
+
+/* Fix TOC overflow on production builds */
+#nd-toc,
#nd-toc > div {
- overflow-y: auto;
overflow-x: hidden;
+ overflow-y: auto;
}
/* Push search dialog below the fixed header on mobile */
@@ -48,6 +213,273 @@ h1, h2, h3, h4 {
top: 4rem !important;
}
+/* Sidebar */
+.dark #nd-sidebar {
+ background:
+ linear-gradient(180deg, rgba(97, 188, 255, 0.06), transparent 12rem),
+ var(--bg-base);
+ border-color: var(--line-soft);
+}
+
+.dark #nd-sidebar [data-sidebar-body] {
+ background: transparent;
+}
+
+.dark #nd-sidebar a[aria-current='page'],
+.dark #nd-sidebar a[data-active='true'] {
+ background: rgba(97, 188, 255, 0.1);
+ color: var(--ink-strong);
+ box-shadow: inset 2px 0 0 var(--brand-500);
+}
+
+.dark #nd-sidebar a.bg-fd-primary\/10 {
+ background: rgba(97, 188, 255, 0.1) !important;
+ color: var(--ink-strong) !important;
+ box-shadow: inset 2px 0 0 var(--brand-500);
+}
+
+.dark #nd-sidebar a:not([aria-current='page']):hover,
+.dark #nd-sidebar button:hover {
+ background: var(--bg-elev-1);
+ color: var(--ink-strong);
+}
+
+.dark #nd-sidebar summary,
+.dark #nd-sidebar [data-sidebar-header],
+.dark #nd-sidebar [data-sidebar-group] > p {
+ color: var(--ink-muted);
+}
+
+.dark #nd-sidebar [role='tree'],
+.dark #nd-sidebar [data-sidebar] {
+ scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
+}
+
+.dark #nd-sidebar [role='tree']::-webkit-scrollbar,
+.dark #nd-sidebar [data-sidebar]::-webkit-scrollbar {
+ width: 6px;
+}
+
+.dark #nd-sidebar [role='tree']::-webkit-scrollbar-thumb,
+.dark #nd-sidebar [data-sidebar]::-webkit-scrollbar-thumb {
+ border-radius: 999px;
+ background: rgba(255, 255, 255, 0.16);
+}
+
+/* Docs content */
+.dark main,
+.dark article,
+.dark [data-page-root] {
+ color: var(--ink-body);
+}
+
+.dark .prose {
+ --tw-prose-body: var(--ink-body);
+ --tw-prose-headings: var(--ink-strong);
+ --tw-prose-lead: var(--ink-body);
+ --tw-prose-links: var(--brand-500);
+ --tw-prose-bold: var(--ink-strong);
+ --tw-prose-counters: var(--ink-muted);
+ --tw-prose-bullets: rgba(255, 255, 255, 0.26);
+ --tw-prose-hr: var(--line-soft);
+ --tw-prose-quotes: var(--ink-body);
+ --tw-prose-quote-borders: var(--brand-500);
+ --tw-prose-captions: var(--ink-muted);
+ --tw-prose-code: var(--brand-200);
+ --tw-prose-th-borders: var(--line-soft);
+ --tw-prose-td-borders: rgba(255, 255, 255, 0.08);
+ --tw-prose-kbd: var(--ink-strong);
+ --tw-prose-kbd-shadows: rgba(255, 255, 255, 0.12);
+}
+
+.dark .prose :where(h1, h2, h3, h4):not(:where(.not-prose, .not-prose *)) {
+ color: var(--ink-strong);
+ font-family: var(--font-heading), var(--font-sans), sans-serif;
+}
+
+.dark .prose :where(a:not([data-card])):not(:where(.not-prose, .not-prose *)) {
+ color: var(--brand-500);
+ text-decoration-color: rgba(97, 188, 255, 0.34);
+ text-decoration-thickness: 1px;
+}
+
+.dark .prose :where(a:not([data-card]):hover):not(:where(.not-prose, .not-prose *)) {
+ color: var(--brand-400);
+ text-decoration-color: var(--brand-400);
+}
+
+.dark .prose :where(code):not(:where(pre *, .not-prose, .not-prose *)) {
+ border: 1px solid var(--line-soft);
+ border-radius: 6px;
+ background: rgba(255, 255, 255, 0.03);
+ color: var(--brand-200);
+ padding-inline: 0.35rem;
+ padding-block: 0.16rem;
+}
+
+.dark .prose :where(pre):not(:where(.not-prose, .not-prose *)),
+.dark .shiki:not(.not-fumadocs-codeblock *) {
+ border: 1px solid var(--line-soft) !important;
+ border-radius: 10px;
+ background: var(--bg-elev-2) !important;
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
+}
+
+.dark .prose :where(pre code):not(:where(.not-prose, .not-prose *)) {
+ border: 0;
+ background: transparent;
+ padding: 0;
+}
+
+.dark .prose :where(blockquote):not(:where(.not-prose, .not-prose *)) {
+ border-inline-start-width: 3px;
+ border-inline-start-color: var(--brand-500);
+ background: rgba(97, 188, 255, 0.05);
+ color: var(--ink-body);
+ border-radius: 0 10px 10px 0;
+ padding: 1rem 1.25rem;
+}
+
+.dark .prose :where(table):not(:where(.not-prose, .not-prose *)) {
+ overflow: hidden;
+ border-radius: 10px;
+ border: 1px solid var(--line-soft);
+ background: rgba(255, 255, 255, 0.02);
+}
+
+.dark .prose :where(thead):not(:where(.not-prose, .not-prose *)) {
+ background: rgba(255, 255, 255, 0.03);
+}
+
+.dark .prose :where(tbody tr:nth-child(2n)):not(:where(.not-prose, .not-prose *)) {
+ background: rgba(255, 255, 255, 0.015);
+}
+
+.dark .prose :where(hr):not(:where(.not-prose, .not-prose *)) {
+ border-color: var(--line-soft);
+}
+
+.dark #nd-toc nav a {
+ color: var(--ink-muted);
+}
+
+.dark #nd-toc nav a[aria-current='true'],
+.dark #nd-toc nav a[data-active='true'] {
+ color: var(--brand-500);
+}
+
+.dark [data-breadcrumb] a,
+.dark nav[aria-label='Breadcrumb'] a {
+ color: var(--ink-muted);
+}
+
+.dark [data-breadcrumb] a:hover,
+.dark nav[aria-label='Breadcrumb'] a:hover {
+ color: var(--brand-500);
+}
+
+/* Landing surfaces */
+.cds-hero-shell {
+ position: relative;
+ overflow: hidden;
+ border: 1px solid var(--line-soft);
+ border-radius: 16px;
+ background:
+ radial-gradient(circle at top left, rgba(97, 188, 255, 0.16), transparent 30rem),
+ radial-gradient(circle at bottom right, rgba(88, 200, 190, 0.1), transparent 24rem),
+ var(--bg-elev-1);
+ box-shadow:
+ 0 32px 120px rgba(0, 0, 0, 0.35),
+ inset 0 1px 0 rgba(255, 255, 255, 0.04);
+}
+
+.cds-hero-grid {
+ position: absolute;
+ inset: 0;
+ background-image:
+ linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
+ linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
+ background-size: 40px 40px;
+ mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
+ opacity: 0.26;
+}
+
+.cds-eyebrow {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.625rem;
+ border: 1px solid rgba(97, 188, 255, 0.24);
+ border-radius: 999px;
+ background: rgba(97, 188, 255, 0.08);
+ color: var(--brand-400);
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+}
+
+.github-badge {
+ font-family: 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
+ font-size: 11px;
+ letter-spacing: 0.16em;
+ line-height: 1;
+}
+
+.cds-button-primary {
+ border: 1px solid color-mix(in srgb, var(--brand-500) 28%, transparent);
+ background: linear-gradient(
+ 145deg,
+ color-mix(in srgb, var(--brand-400) 92%, white) 0%,
+ color-mix(in srgb, var(--brand-500) 82%, var(--accent-wattle) 18%) 52%,
+ color-mix(in srgb, var(--accent-wattle) 74%, var(--brand-500) 26%) 100%
+ );
+ color: #08172a;
+ font-weight: 600;
+ box-shadow:
+ 0 10px 24px color-mix(in srgb, var(--brand-glow) 52%, transparent),
+ inset 0 1px 0 rgba(255, 255, 255, 0.24);
+}
+
+.cds-button-primary:hover {
+ background: linear-gradient(
+ 145deg,
+ color-mix(in srgb, var(--brand-400) 96%, white) 0%,
+ color-mix(in srgb, var(--brand-500) 80%, var(--accent-wattle) 20%) 54%,
+ color-mix(in srgb, var(--accent-wattle) 78%, var(--brand-500) 22%) 100%
+ );
+ border-color: color-mix(in srgb, var(--brand-500) 40%, transparent);
+ box-shadow:
+ 0 14px 28px color-mix(in srgb, var(--brand-glow) 62%, transparent),
+ inset 0 1px 0 rgba(255, 255, 255, 0.32);
+ transform: translate3d(0, -1px, 0);
+}
+
+.cds-button-secondary {
+ border: 1px solid rgba(255, 255, 255, 0.04);
+ background: rgba(12, 24, 39, 0.86);
+ color: var(--ink-body);
+}
+
+.cds-button-secondary:hover {
+ border-color: rgba(255, 255, 255, 0.1);
+ color: var(--ink-strong);
+ transform: translate3d(0, -1px, 0);
+}
+
+.cds-card {
+ border-radius: 16px;
+ border: 1px solid var(--line-soft);
+ background:
+ linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
+ var(--bg-elev-1);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
+}
+
+.cds-card:hover {
+ border-color: rgba(97, 188, 255, 0.34);
+ box-shadow:
+ 0 20px 44px rgba(0, 0, 0, 0.24),
+ inset 0 1px 0 rgba(255, 255, 255, 0.05);
+}
+
/* CopilotKit chat UI - consistent border radius */
.copilotKitCodeBlock {
border-radius: 0.75rem !important;
diff --git a/docs/src/app/layout.tsx b/docs/src/app/layout.tsx
index 4951b702da..e09f829c78 100644
--- a/docs/src/app/layout.tsx
+++ b/docs/src/app/layout.tsx
@@ -21,6 +21,8 @@ const geistMono = Geist_Mono({
const urbanist = Urbanist({
subsets: ['latin'],
+ weight: ['100', '300', '400', '500', '600', '700'],
+ style: ['normal', 'italic'],
variable: '--font-urbanist',
});
@@ -59,7 +61,10 @@ export default function Layout({ children }: { children: ReactNode }) {
</Suspense>
<AnalyticsTracker />
<CopilotKitProvider>
- <RootProvider search={{ options: { api: '/docs/api/search' } }}>
+ <RootProvider
+ search={{ options: { api: '/docs/api/search' } }}
+ theme={{ defaultTheme: 'dark' }}
+ >
{children}
</RootProvider>
<Footer />
diff --git a/docs/src/components/custom-header.tsx b/docs/src/components/custom-header.tsx
index 1729a590f6..ab248cc1b2 100644
--- a/docs/src/components/custom-header.tsx
+++ b/docs/src/components/custom-header.tsx
@@ -6,7 +6,6 @@ import Image from 'next/image';
import { usePathname } from 'next/navigation';
import { cn } from 'fumadocs-ui/utils/cn';
import { SearchToggle } from 'fumadocs-ui/components/layout/search-toggle';
-import { ThemeToggle } from 'fumadocs-ui/components/layout/theme-toggle';
import { ChevronsUpDown, Check, Menu } from 'lucide-react';
import { useSidebar } from 'fumadocs-ui/provider';
import LogoBlack from '@/assets/cuala-icon-black.svg';
@@ -154,24 +153,24 @@ export function CustomHeader() {
}, []);
return (
- <header className="fixed top-0 left-0 right-0 z-40 border-b border-fd-border bg-fd-background/80 backdrop-blur-sm">
+ <header className="fixed left-0 right-0 top-0 z-40 border-b border-white/10 bg-[#0b0d10]/92 backdrop-blur-xl">
<div className="container mx-auto flex h-14 items-center justify-between px-4">
{/* Left: Logo and Nav */}
<div className="flex items-center gap-4 md:gap-6">
{/* Hamburger Menu Button - visible on mobile only, opens native fumadocs sidebar */}
<button
onClick={() => setSidebarOpen(!sidebarOpen)}
- className="inline-flex md:hidden h-9 w-9 items-center justify-center rounded-md text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-foreground"
+ className="cds-icon-button inline-flex h-9 w-9 items-center justify-center rounded-xl md:hidden"
aria-label="Toggle sidebar"
>
<Menu className="h-5 w-5" />
</button>
- {/* Docs Switcher - wraps logo, name, and label */}
- <div className="relative" ref={dropdownRef}>
- <button
- onClick={() => setIsOpen(!isOpen)}
- className="flex items-center gap-2 rounded-lg px-2 py-1.5 transition-colors hover:bg-fd-accent"
+ {/* Docs Switcher - logo links home, chevron opens dropdown */}
+ <div className="relative flex items-center" ref={dropdownRef}>
+ <Link
+ href="/"
+ className="flex items-center gap-2 rounded-xl border border-transparent px-2 py-1.5 text-white transition-colors hover:border-white/10 hover:bg-white/5"
>
{/* Logo - fixed width container to prevent layout shift */}
{currentSite.logoBlack && currentSite.logoWhite && (
@@ -196,34 +195,39 @@ export function CustomHeader() {
/>
</div>
)}
- {/* Site name and label - whitespace-nowrap prevents layout shift */}
+ {/* Site name and label */}
<span
- className="whitespace-nowrap font-semibold"
+ className="whitespace-nowrap font-semibold text-white"
style={{ fontFamily: 'var(--font-urbanist)' }}
>
{currentSite.name}
</span>
- <span className="text-sky-500 font-medium">{currentSite.label}</span>
- {/* Up/down chevron */}
- <ChevronsUpDown className="h-4 w-4 text-fd-muted-foreground" />
+ <span className="font-medium text-[var(--brand-500)]">{currentSite.label}</span>
+ </Link>
+ <button
+ onClick={() => setIsOpen(!isOpen)}
+ className="ml-0.5 flex h-7 w-7 items-center justify-center rounded-lg border border-transparent text-[var(--ink-muted)] transition-colors hover:border-white/10 hover:bg-white/5 hover:text-white"
+ aria-label="Switch docs site"
+ >
+ <ChevronsUpDown className="h-4 w-4" />
</button>
{/* Dropdown menu */}
{isOpen && (
- <div className="absolute left-0 top-full mt-1 w-64 rounded-lg border border-fd-border bg-fd-popover p-1 shadow-lg">
+ <div className="absolute left-0 top-full mt-2 w-72 rounded-2xl border border-white/10 bg-[var(--bg-elev-1)] p-1.5 shadow-[0_24px_64px_rgba(0,0,0,0.45)]">
{docsSites.map((site, index) => {
const isActive = site.name === currentSite.name;
return (
<div key={site.name}>
- {index > 0 && <div className="mx-2 my-1 border-t border-fd-border" />}
+ {index > 0 && <div className="mx-2 my-1 border-t border-white/8" />}
<Link
href={site.href}
onClick={() => setIsOpen(false)}
className={cn(
- 'flex items-center gap-3 rounded-md px-3 py-2.5 transition-colors',
+ 'flex items-center gap-3 rounded-xl border px-3 py-2.5 transition-colors',
isActive
- ? 'bg-fd-accent text-fd-foreground'
- : 'text-fd-muted-foreground hover:bg-fd-accent hover:text-fd-foreground'
+ ? 'border-[rgba(97,188,255,0.22)] bg-[rgba(97,188,255,0.12)] text-[var(--ink-strong)]'
+ : 'border-transparent text-[var(--ink-muted)] hover:border-white/10 hover:bg-[var(--bg-elev-2)] hover:text-[var(--ink-strong)]'
)}
>
{/* Site logo in dropdown */}
@@ -256,16 +260,16 @@ export function CustomHeader() {
/>
</>
) : (
- <span className="text-sm font-medium text-fd-muted-foreground">
+ <span className="text-sm font-medium text-[var(--ink-muted)]">
{site.name.charAt(0)}
</span>
)}
</div>
<div className="flex-1">
- <div className="font-medium text-fd-foreground">{site.name}</div>
- <div className="text-xs text-fd-muted-foreground">{site.description}</div>
+ <div className="font-medium text-[var(--ink-strong)]">{site.name}</div>
+ <div className="text-xs text-[var(--ink-muted)]">{site.description}</div>
</div>
- {isActive && <Check className="h-4 w-4 text-sky-500" />}
+ {isActive && <Check className="h-4 w-4 text-[var(--brand-500)]" />}
</Link>
</div>
);
@@ -282,11 +286,12 @@ export function CustomHeader() {
<Link
key={tab.name}
href={tab.href}
+ data-active={isActive ? 'true' : undefined}
className={cn(
- 'text-sm font-medium transition-colors',
+ 'cds-header-link text-sm font-medium transition-colors',
isActive
- ? 'text-fd-foreground'
- : 'text-fd-muted-foreground hover:text-fd-foreground'
+ ? 'text-white'
+ : 'text-[var(--ink-muted)] hover:text-white'
)}
>
{tab.name}
@@ -298,26 +303,24 @@ export function CustomHeader() {
{/* Right: Search, Theme, Icons */}
<div className="flex items-center gap-2">
- <SearchToggle />
+ <SearchToggle className="cds-icon-button inline-flex h-9 items-center justify-center rounded-xl px-3" />
{/* MCP - hidden on mobile */}
<Link
href="/cua/vibe-coding-mcp"
- className="hidden sm:inline-flex h-9 w-9 items-center justify-center rounded-md text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-foreground"
+ className="cds-icon-button hidden h-9 w-9 items-center justify-center rounded-xl sm:inline-flex"
title="Vibe Coding MCP"
>
<Image src={McpBlack} alt="MCP" width={20} height={20} className="block dark:hidden" />
<Image src={McpWhite} alt="MCP" width={20} height={20} className="hidden dark:block" />
</Link>
- <ThemeToggle />
-
{/* Discord - hidden on mobile */}
<a
href="https://discord.com/invite/mVnXXpdE85"
target="_blank"
rel="noreferrer"
- className="hidden sm:inline-flex h-9 w-9 items-center justify-center rounded-md text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-foreground"
+ className="cds-icon-button hidden h-9 w-9 items-center justify-center rounded-xl sm:inline-flex"
>
<svg viewBox="0 0 24 24" fill="currentColor" className="h-5 w-5">
<path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z" />
@@ -329,7 +332,7 @@ export function CustomHeader() {
href="https://github.com/trycua/cua"
target="_blank"
rel="noreferrer"
- className="hidden sm:inline-flex h-9 w-9 items-center justify-center rounded-md text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-foreground"
+ className="cds-icon-button hidden h-9 w-9 items-center justify-center rounded-xl sm:inline-flex"
>
<svg viewBox="0 0 24 24" fill="currentColor" className="h-5 w-5">
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
diff --git a/docs/src/components/footer.tsx b/docs/src/components/footer.tsx
index 89d94d4fb2..2517e8a007 100644
--- a/docs/src/components/footer.tsx
+++ b/docs/src/components/footer.tsx
@@ -1,26 +1,155 @@
+import Link from 'next/link';
+import { Mail } from 'lucide-react';
+
+const linkClass = 'text-[var(--ink-muted)] hover:text-[var(--ink-strong)] transition-colors';
+
export function Footer() {
return (
- <footer className="mt-auto border-t border-fd-border py-6">
- <div className="container mx-auto px-4">
- <div className="flex flex-col md:flex-row justify-between items-center gap-4">
- <p className="text-sm text-fd-muted-foreground">
- © {new Date().getFullYear()} Cua AI, Inc.
- </p>
- <div className="flex gap-4">
- <a
- href="https://cua.ai/privacy-policy"
- className="text-sm text-fd-muted-foreground hover:text-fd-foreground transition-colors"
+ <footer
+ className="overflow-hidden rounded-t-2xl px-6 py-16 text-[var(--ink-strong)] md:px-12 lg:px-24"
+ style={{
+ background: 'var(--bg-elev-1)',
+ borderTop: '1px solid var(--line-soft)',
+ }}
+ >
+ <div className="relative mx-auto flex max-w-7xl flex-col gap-16">
+ <div className="flex flex-col items-start gap-16 lg:flex-row lg:justify-between">
+ {/* Left side - Brand */}
+ <div className="flex flex-col items-start gap-8">
+ <Link
+ href="/"
+ className="flex flex-shrink-0 items-center gap-3 font-medium text-4xl text-[var(--ink-strong)]"
>
- Privacy
- </a>
- <a
- href="https://cua.ai/cookie-policy"
- className="text-sm text-fd-muted-foreground hover:text-fd-foreground transition-colors"
- >
- Cookies
- </a>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src="/docs/img/cua-logo-accent.svg"
+ alt="Cua"
+ className="h-16 w-16"
+ />
+ <p className="mt-2">
+ Cua
+ </p>
+ </Link>
+ <p className="font-medium text-base">
+ GIVE EVERY AGENT A CLOUD DESKTOP
+ </p>
+ <div className="flex items-center gap-2 font-medium text-xs">
+ BACKED BY
+ <div className="flex items-center gap-1">
+ <svg
+ className="h-4 w-4"
+ viewBox="0 0 46.7 47"
+ fill="currentColor"
+ >
+ <path
+ d="M0,0v47h46.7V0H0z M31.8,13.5c-2.2,4.3-4.5,8.6-6.8,12.9c-0.1,0.2-0.1,0.3-0.1,0.5c0,3.1,0,6.2,0,9.2
+ c-1.1,0-2.2,0-3.3,0c0-3,0-6,0-9c0-0.3,0-0.7-0.2-1c-2.1-3.9-4.1-7.8-6.2-11.8c-0.5-0.9-1-1.8-1.4-2.8c0.2,0,0.4-0.1,0.6-0.1
+ c1,0,2,0,3,0.1c0.2,0,0.2,0.1,0.3,0.2c1.5,3.1,3,6.3,4.6,9.5c0.3,0.7,0.6,1.3,1,1.9c0.3-0.5,0.6-1,0.9-1.6
+ c1.7-3.4,3.4-6.7,5.1-10.1c1.1,0,2.2-0.1,3.4,0.1C32.5,12.4,32.1,12.9,31.8,13.5z"
+ />
+ </svg>
+ COMBINATOR
+ </div>
+ </div>
+
+ {/* Social Icons */}
+ <div className="flex items-center gap-8">
+ <a
+ href="https://linkedin.com/company/cua-ai"
+ target="_blank"
+ rel="noopener noreferrer"
+ className={linkClass}
+ aria-label="LinkedIn"
+ >
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src="/docs/img/logos/linkedin-white.svg"
+ alt="LinkedIn"
+ className="h-4 w-4"
+ />
+ </a>
+ <a
+ href="https://twitter.com/trycua"
+ target="_blank"
+ rel="noopener noreferrer"
+ className={linkClass}
+ aria-label="X"
+ >
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img src="/docs/img/logos/x-white.svg" alt="X" className="h-4 w-4" />
+ </a>
+ <a
+ href="https://discord.com/invite/cua-ai"
+ target="_blank"
+ rel="noopener noreferrer"
+ className={linkClass}
+ aria-label="Discord"
+ >
+ <svg
+ className="h-4 w-4"
+ fill="currentColor"
+ viewBox="0 0 640 512"
+ >
+ <path d="M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z" />
+ </svg>
+ </a>
+ <a
+ href="mailto:[email protected]"
+ target="_blank"
+ rel="noopener noreferrer"
+ className={linkClass}
+ aria-label="Contact"
+ >
+ <Mail className="h-4 w-4" />
+ </a>
+ </div>
+ </div>
+
+ {/* Columns wrapper */}
+ <div className="flex gap-16">
+ {/* Product Column */}
+ <div className="flex flex-col gap-4 font-medium text-sm">
+ Product
+ <a href="https://cua.ai/pricing" className={linkClass}>
+ Pricing
+ </a>
+ <a href="https://app.cua.ai" className={linkClass}>
+ Dashboard
+ </a>
+ </div>
+
+ {/* Resources Column */}
+ <div className="flex flex-col gap-4 font-medium text-sm">
+ Resources
+ <Link href="/cua/guide/get-started/what-is-cua" className={linkClass}>
+ Docs
+ </Link>
+ <a href="https://cua.ai/blog" className={linkClass}>
+ Blog
+ </a>
+ </div>
+
+ {/* Company Column */}
+ <div className="flex flex-col gap-4 font-medium text-sm">
+ Company
+ <a href="https://cua.ai/careers" className={linkClass}>
+ Careers
+ </a>
+ <a href="https://cua.ai/privacy-policy" className={linkClass}>
+ Privacy policy
+ </a>
+ <a href="https://cua.ai/cookie-policy" className={linkClass}>
+ Cookie policy
+ </a>
+ </div>
</div>
</div>
+
+ {/* Bottom bar */}
+ <div className="flex flex-col gap-4 text-[var(--ink-muted)] text-sm lg:flex-row lg:items-center lg:justify-between">
+ <p>&copy; {new Date().getFullYear()} Cua AI, Inc.</p>
+ <p>Made with 💖 in San Francisco.</p>
+ </div>
</div>
</footer>
);
diff --git a/docs/src/components/hero.tsx b/docs/src/components/hero.tsx
index 8f4695c8a6..758b5eec51 100644
--- a/docs/src/components/hero.tsx
+++ b/docs/src/components/hero.tsx
@@ -1,33 +1,13 @@
export function Hero({ children }: { children: React.ReactNode }) {
return (
- <div className="not-prose relative mb-12 overflow-hidden rounded-xl border border-fd-border bg-gradient-to-br from-fd-background via-fd-muted/30 to-fd-muted/50 p-8 shadow-lg md:p-12 lg:p-16">
- {/* Background Pattern */}
+ <div className="cds-hero-shell not-prose relative mb-12 p-8 md:p-12 lg:p-16">
+ <div className="cds-hero-grid pointer-events-none" />
<div className="pointer-events-none absolute inset-0">
- {/* Grid */}
- <svg
- className="absolute h-full w-full text-fd-foreground"
- xmlns="http://www.w3.org/2000/svg"
- >
- <defs>
- <pattern id="hero-grid" width="40" height="40" patternUnits="userSpaceOnUse">
- <path
- d="M 40 0 L 0 0 0 40"
- fill="none"
- stroke="currentColor"
- strokeWidth="0.5"
- opacity="0.1"
- />
- </pattern>
- </defs>
- <rect width="100%" height="100%" fill="url(#hero-grid)" />
- </svg>
-
- {/* Subtle glow effects */}
- <div className="absolute -right-20 -top-20 h-96 w-96 rounded-full bg-fd-primary/5 blur-3xl" />
- <div className="absolute -bottom-32 -left-20 h-96 w-96 rounded-full bg-fd-primary/5 blur-3xl" />
+ <div className="absolute -left-20 top-12 h-64 w-64 rounded-full bg-[rgba(97,188,255,0.16)] blur-3xl" />
+ <div className="absolute -right-16 top-0 h-72 w-72 rounded-full bg-[rgba(88,200,190,0.12)] blur-3xl" />
+ <div className="absolute bottom-0 left-1/3 h-64 w-64 rounded-full bg-[rgba(45,132,198,0.14)] blur-3xl" />
</div>
- {/* Content */}
<div className="relative z-10">{children}</div>
</div>
);
diff --git a/docs/src/providers/copilotkit-provider.tsx b/docs/src/providers/copilotkit-provider.tsx
index 6cf205ceff..866717b000 100644
--- a/docs/src/providers/copilotkit-provider.tsx
+++ b/docs/src/providers/copilotkit-provider.tsx
@@ -393,7 +393,7 @@ const customStyles = `
margin: 8px 0;
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
border: 1px solid #bae6fd;
- border-radius: 8px;
+ border-radius: 10px;
font-size: 13px;
color: #0369a1;
animation: fadeIn 0.2s ease-out;
@@ -486,7 +486,7 @@ const customStyles = `
padding: 0;
border: none;
background: transparent;
- border-radius: 6px;
+ border-radius: 10px;
cursor: pointer;
color: var(--copilot-kit-secondary-contrast-color, #666);
transition: background-color 0.15s ease, color 0.15s ease;
@@ -534,11 +534,11 @@ const customStyles = `
display: none !important;
}
- /* Fix corner radius consistency - all corners should match window's 0.75rem */
+ /* Fix corner radius consistency - match CDS panel radius (16px) */
@media (min-width: 640px) {
.copilotKitHeader {
- border-top-left-radius: 0.75rem;
- border-top-right-radius: 0.75rem;
+ border-top-left-radius: 16px;
+ border-top-right-radius: 16px;
}
}
@@ -552,9 +552,28 @@ const customStyles = `
min-height: 0 !important;
}
- /* Match chat input radius to window */
+ /* Match chat input radius to CDS button radius (10px) */
.copilotKitInput {
- border-radius: 0.75rem;
+ border-radius: 10px;
+ }
+
+ /* CDS panel radius for the popup window */
+ .copilotKitPopup > div,
+ [class*="copilotKitPopup"] > div {
+ border-radius: 16px !important;
+ }
+
+ /* Match icon container radius from landing cards (rounded-2xl = 16px) */
+ .copilotKitButton {
+ border-radius: 16px !important;
+ }
+
+ /* Scroll-to-bottom button */
+ .copilotKitMessages button[class*="scroll"],
+ .copilotKitMessages button[aria-label*="scroll"],
+ [class*="ScrollToBottom"],
+ [class*="scrollToBottom"] {
+ border-radius: 10px !important;
}
/* Hide chat on mobile devices */