Skip to content

Open source CapCut alternative.

TypeScript

fix(site): keep light and dark surfaces readable

taejscb7962830ace
diff --git a/site/public/donkey-icon.svg b/site/public/donkey-icon.svg
new file mode 100644
index 00000000..0122d871
--- /dev/null
+++ b/site/public/donkey-icon.svg
@@ -0,0 +1,6 @@
+<svg width="264" height="318" viewBox="0 0 264 318" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M131.573 117.915C135.64 118.613 140.239 120.632 142.439 122.665C143.502 123.637 144.412 125.018 145.262 126.915C146.173 128.964 146.567 129.54 148.206 131.346C148.905 132.105 149.481 132.788 149.481 132.864C149.481 132.925 149.254 133.304 148.965 133.699C148.07 134.943 146.856 136.931 146.067 138.479C145.217 140.164 145.323 140.088 143.335 140.376C142.667 140.483 141.377 140.756 140.451 141.014C135.822 142.228 133.349 143.837 128.022 149.027C126.261 150.742 124.334 152.533 123.757 153.003C120.434 155.674 116.837 157.495 110.554 159.666C107.7 160.652 105.014 161.806 100.871 163.824C99.0499 164.704 97.5323 165.433 97.5019 165.433C97.3046 165.433 97.5171 164.856 98.3973 162.913C100.37 158.603 101.493 155.356 101.903 152.76C102.085 151.698 102.116 150.12 102.085 145.931C102.055 139.83 102.146 138.859 103.117 135.323C104.665 129.692 108.034 124.881 112.527 121.907C115.805 119.736 119.386 118.34 123.302 117.688C125.017 117.399 129.327 117.521 131.573 117.915ZM212.281 153.428C214.345 153.883 216.242 154.566 218.23 155.568C220.477 156.706 221.903 157.708 223.724 159.484C225.955 161.654 227.018 163.323 228.11 166.374C228.915 168.605 229.416 169.561 230.736 171.306C231.904 172.854 234.181 175.161 235.577 176.178C236.002 176.511 237.292 177.301 238.415 177.953C241.435 179.699 242.862 180.67 243.605 181.505C244.577 182.597 245.639 184.479 246.565 186.786C248.553 191.749 249.858 193.904 251.831 195.467C253.774 197.015 255.261 197.379 257.765 196.939L259.131 196.696L259.617 197.242C260.33 198.047 260.391 198.608 259.905 199.944C258.964 202.524 256.384 205.18 254.821 205.195C254.411 205.195 253.273 204.649 252.256 203.95C251.861 203.692 250.526 202.478 249.297 201.264C246.808 198.806 246.823 198.821 246.201 200.05C245.229 201.978 245.366 205.787 246.489 208.003C247.142 209.308 248.158 210.689 248.993 211.402C250.541 212.738 252.681 213.466 254.047 213.117C254.791 212.935 254.851 213.011 255.185 214.316C255.428 215.272 255.428 215.348 255.17 215.834C254.988 216.152 254.866 216.835 254.806 217.64C254.73 218.839 254.669 218.99 254.092 219.855C253.743 220.356 253.045 221.161 252.529 221.631C251.649 222.451 249.782 223.558 249.281 223.558C249.13 223.558 248.993 223.316 248.887 222.906C248.052 219.43 246.671 216.35 243.879 211.721C240.494 206.075 239.766 204.74 238.81 202.433C237.247 198.608 235.881 192.856 235.608 188.804C235.562 188.015 235.486 187.256 235.456 187.135C235.41 187.014 235.441 186.816 235.516 186.695C235.623 186.528 235.866 186.528 237.064 186.74C239.538 187.15 241.799 187.439 241.891 187.347C242.027 187.211 240.373 185.739 239.174 184.934C237.929 184.1 235.122 182.688 232.269 181.444C229.947 180.427 229.006 180.063 224.453 178.484C222.571 177.832 220.461 177.073 219.748 176.815C218.352 176.314 217.578 176.284 216.713 176.739C216.106 177.058 215.863 177.589 215.666 178.97C215.453 180.548 215.013 181.611 214.103 182.825C212.16 185.435 203.889 192.796 199.943 195.436C197.439 197.121 194.798 198.32 192.051 199.048C189.972 199.61 187.179 199.64 185.374 199.14C182.49 198.335 179.121 196.256 175.463 193.008C174.173 191.855 174.128 191.976 174.902 194.374C176.404 198.927 179.804 202.812 184.235 205.043C187.164 206.515 189.046 207.001 192.355 207.122C196.225 207.274 200.58 206.272 204.906 204.224C206.165 203.632 206.347 203.692 205.74 204.497C204.89 205.62 202.326 209.976 201.43 211.797C199.882 214.969 199.366 216.972 199.351 219.992C199.336 222.117 199.488 222.951 200.186 224.666C200.884 226.412 201.552 227.368 203.221 229.052C204.83 230.661 204.83 230.661 207.47 231.966C210.232 233.317 211.325 234.106 212.145 235.29C212.858 236.352 212.995 236.944 212.767 238.158L212.57 239.205L213.055 240.177C213.662 241.36 213.617 241.74 212.752 242.559C211.614 243.637 210.445 243.546 207.334 242.134C206.105 241.588 204.632 240.966 204.041 240.753C203.464 240.541 202.538 240.146 201.992 239.873C201.005 239.372 200.444 239.038 194.783 235.548C192.097 233.894 186.572 230.6 184.463 229.401C184.053 229.174 181.686 227.777 179.227 226.305C167.556 219.37 162.821 216.759 160.408 215.97C158.42 215.302 156.129 215.409 154.034 216.259C152.319 216.957 151.363 217.609 149.876 219.081C146.309 222.602 144.336 227.064 143.304 233.954C142.895 236.716 142.94 243.576 143.395 247.461C144.458 256.719 146.583 265.005 149.421 271.137C151.029 274.582 153.791 279.028 154.231 278.861C154.717 278.679 156.235 275.28 156.978 272.715C157.176 272.017 157.403 271.425 157.479 271.41C157.555 271.379 157.995 272.169 158.45 273.14C159.589 275.644 162.321 280.364 163.793 282.428C167.283 287.284 171.275 291.245 176.222 294.751C177.831 295.904 178.15 296.178 177.983 296.345C177.345 296.967 167.465 301.869 166.843 301.869C166.312 301.869 164.87 300.806 162.654 298.773C161.516 297.726 160.53 296.861 160.484 296.861C160.165 296.861 160.955 299.759 161.865 301.914C162.427 303.265 162.396 303.386 161.501 303.386C160.196 303.386 157.889 302.112 156.569 300.64C155.339 299.289 154.778 298.044 153.579 294.129C152.987 292.171 152.259 289.773 151.955 288.817C150.422 283.763 148.829 280.151 144.989 272.958C143.016 269.27 141.119 265.081 140.208 262.41C139.161 259.375 138.129 255.824 137.704 253.835C137.507 252.925 137.173 251.407 136.961 250.497C136.46 248.311 135.595 243.303 135.261 240.632C134.897 237.673 134.897 231.921 135.261 229.401C136.005 224.393 137.674 219.734 140.133 215.849C141.483 213.709 142.652 212.328 144.716 210.4C147.797 207.502 148.768 205.893 149.132 203.025C149.466 200.293 150.073 198.745 151.53 196.848C152.866 195.103 154.338 193.873 158.041 191.339C160.469 189.669 163.231 186.407 164.506 183.705C165.963 180.594 166.858 178.909 167.526 178.029C168.998 176.087 175.22 170.168 179.379 166.783C189.061 158.907 197.651 154.217 204.283 153.216C206.363 152.912 210.43 153.003 212.281 153.428ZM61.2454 206.971C63.2487 208.321 65.8742 209.277 68.2873 209.52C69.122 209.611 69.3496 209.702 69.8808 210.173C70.2299 210.476 70.7003 210.886 70.928 211.083C71.4743 211.539 71.3074 211.751 70.0629 212.161C68.6819 212.631 67.058 212.722 65.8742 212.419C63.2487 211.751 61.7766 210.537 60.5473 208.048C60.1375 207.183 59.7885 206.439 59.7885 206.379C59.7885 206.106 60.2741 206.303 61.2454 206.971ZM62.4444 221.221C65.0699 221.95 64.8726 221.874 64.6905 222.056C64.5842 222.162 63.9165 222.208 62.7934 222.162C61.4124 222.117 60.9267 222.026 60.2741 221.752C59.4394 221.373 58.4226 220.371 58.4226 219.901C58.4226 219.673 58.5744 219.719 59.4546 220.159C60.0161 220.432 61.3668 220.918 62.4444 221.221ZM185.495 237.323C186.436 237.794 187.513 238.78 187.893 239.524C188.075 239.888 188.181 240.404 188.181 240.996C188.181 241.74 188.09 242.058 187.65 242.863C187.346 243.379 186.269 245.534 185.237 247.628C184.19 249.707 183.249 251.513 183.112 251.62C182.915 251.787 182.702 251.696 181.731 251.043C179.986 249.859 179.925 249.965 181.23 251.893C184.827 257.235 188.894 261.53 194.024 265.445C196.103 267.024 196.483 267.464 197.302 269.179C198.41 271.516 198.198 272.912 196.559 273.823C195.451 274.46 194.403 274.445 192.84 273.792C190.503 272.821 189.198 271.713 187.407 269.194C186.815 268.39 186.269 267.722 186.163 267.707C186.056 267.707 185.131 267.707 184.099 267.722C182.384 267.737 182.156 267.707 181.443 267.358C180.32 266.811 178.286 265.142 177.482 264.125C176.404 262.759 175.919 261.166 176.389 260.543C176.571 260.285 176.617 260.285 177.284 260.543C177.679 260.68 178.043 260.756 178.089 260.71C178.15 260.665 177.937 260.285 177.618 259.876C176.996 259.071 175.782 256.628 175.312 255.201C175.145 254.7 174.826 253.532 174.598 252.621C174.386 251.696 174.037 250.709 173.839 250.39C173.339 249.632 172.094 249.055 170.956 249.055C169.833 249.055 169.605 248.918 169.241 247.962C169.074 247.522 168.588 246.262 168.163 245.17C167.389 243.166 167.192 242.104 167.587 241.816C167.678 241.74 168.573 241.421 169.575 241.102C171.7 240.404 172.216 240.435 173.855 241.239C175.205 241.892 176.48 243.212 176.92 244.38C177.087 244.821 177.284 245.2 177.376 245.23C177.467 245.261 178.119 244.092 178.817 242.65C180.805 238.583 181.67 237.415 183.021 236.99C183.841 236.747 184.524 236.838 185.495 237.323ZM163.99 241.618L166.084 243.728L166.433 245.291C166.615 246.141 166.919 247.249 167.086 247.765C167.238 248.266 167.541 249.313 167.754 250.102C168.194 251.771 168.376 252.014 168.968 251.787C170.045 251.377 171.548 251.832 172.109 252.743C172.701 253.714 173.187 255.581 173.217 256.962C173.232 258.115 173.187 258.373 172.792 259.193L172.352 260.118L173.081 261.302C174.492 263.579 175.949 265.385 178.225 267.646C181.352 270.772 182.687 271.804 186.739 274.248C194.98 279.226 203.236 281.563 209.732 280.774C213.966 280.258 217.335 278.285 218.686 275.568C218.959 275.007 219.262 274.551 219.354 274.551C219.46 274.551 219.778 275.007 220.052 275.568C220.492 276.448 220.568 276.767 220.583 277.662C220.583 279.074 220.158 279.924 218.762 281.305C216.637 283.429 213.162 284.689 208.563 285.023C206.681 285.144 203.358 285.038 201.885 284.795C195.845 283.779 190.655 282.064 185.859 279.468C180.441 276.524 176.693 273.519 173.141 269.239C168.922 264.155 165.69 258.358 163.61 252.166C162.32 248.281 161.759 245.549 161.638 242.301C161.531 239.691 161.546 239.494 161.759 239.494C161.835 239.494 162.836 240.45 163.99 241.618ZM195.299 241.709C196.316 242.225 198.152 243.925 198.516 244.73C198.698 245.109 198.805 245.701 198.805 246.278C198.805 247.158 198.714 247.416 197.302 250.375C192.992 259.451 192.855 259.678 191.672 259.678C190.989 259.678 190.306 259.253 188.014 257.387C185.677 255.49 184.903 254.685 184.706 253.987C184.326 252.576 184.357 252.47 186.937 248.129C189.638 243.561 190.367 242.529 191.338 241.967C192.886 241.057 193.827 240.996 195.299 241.709ZM206.211 247.401C208.032 248.235 209.428 250.041 209.428 251.589C209.428 252.348 208.366 255.08 206.438 259.284C203.585 265.506 203.525 265.612 202.326 265.87C201.278 266.113 200.732 265.916 197.515 264.171C195.223 262.926 194.813 262.562 194.57 261.682C194.252 260.574 194.358 259.86 194.935 259.056C195.223 258.646 196.528 256.415 197.833 254.093C201.172 248.175 201.582 247.643 203.282 247.052C204.223 246.718 204.921 246.809 206.211 247.401ZM216.227 253.016C217.881 253.835 218.595 255.05 218.58 257.022C218.564 258.115 218.458 258.586 217.472 261.575C215.347 268.025 214.679 269.3 213.253 269.68C211.947 270.044 206.787 268.708 205.938 267.798C205.649 267.494 205.558 267.191 205.513 266.432C205.452 265.506 205.482 265.385 206.059 264.429C206.393 263.852 207.106 262.501 207.653 261.424C208.7 259.314 210.824 255.399 211.462 254.382C212.615 252.576 214.345 252.075 216.227 253.016Z" fill="#e9e7e0"/>
+<path d="M57.2844 0.297878C55.9944 0.874583 54.325 3.19656 53.0957 6.12561C52.3065 7.99232 52.352 7.93161 51.5932 8.17443C50.5157 8.53867 49.7113 9.47961 49.2712 10.8758C48.9222 11.9989 48.4062 14.3057 48.133 16.0207C48.0419 16.567 47.9509 16.7643 47.7839 16.7188C47.6625 16.6884 47.4652 16.6429 47.3286 16.5974C47.0403 16.5215 46.7216 18.2516 45.902 24.4436C45.5985 26.6593 44.9156 31.5765 44.3844 35.3858C42.7453 46.8895 42.4873 49.7579 42.4873 56.5266C42.4873 64.6611 43.1703 71.4298 44.6272 77.7888C45.4619 81.4007 45.6896 82.2962 46.2208 84.0718C48.74 92.4492 52.3369 100.72 56.48 107.61C61.0633 115.244 66.1171 120.601 72.5367 124.623C77.0745 127.461 80.6864 130.739 82.8111 133.972C84.1922 136.066 84.8448 137.493 85.376 139.602C85.8161 141.317 85.8313 141.94 85.4518 142.744C84.8751 143.973 83.3727 144.929 81.0355 145.521C80.4133 145.688 79.8821 145.885 79.8669 145.961C79.7759 146.219 81.4756 147.949 82.4469 148.587C83.4789 149.255 85.0117 149.801 86.3321 149.938C86.924 149.998 87.1971 150.104 87.2275 150.256C87.2427 150.393 86.8784 150.894 86.3928 151.379C84.8144 152.988 82.7049 153.686 79.8062 153.565C77.8181 153.489 77.8333 153.458 78.7894 155.31C79.9124 157.465 81.8854 159.241 83.8887 159.908C84.4502 160.106 84.9207 160.349 84.951 160.47C85.0117 160.743 83.5093 162.655 82.7656 163.247C81.3694 164.355 79.275 165.281 78.1672 165.281C77.3628 165.281 77.5753 165.767 78.9563 167.148C80.2463 168.438 81.6577 169.318 82.9781 169.667C83.3271 169.773 83.6155 169.94 83.6155 170.061C83.6155 170.168 83.2209 170.608 82.7504 171.018C81.9157 171.761 81.8854 171.792 82.1434 172.08C82.6138 172.611 82.4773 173.233 81.7336 173.84C80.9444 174.493 80.6561 174.508 79.9731 174.007C79.3661 173.567 79.1992 173.552 78.5617 173.886C77.6056 174.372 75.9969 174.69 74.4034 174.69C72.5367 174.69 72.5671 174.645 73.4776 176.42C74.7221 178.788 77.0137 180.639 79.2902 181.095C79.791 181.201 80.2463 181.353 80.2919 181.413C80.3526 181.489 80.3374 181.778 80.2615 182.036C80.2008 182.294 79.958 183.523 79.7455 184.783C78.3948 192.69 76.7102 198.062 75.0408 199.777C73.083 201.795 69.0158 202.099 65.6314 200.49C65.1002 200.232 64.5994 200.035 64.5084 200.035C64.2352 200.035 64.3111 201.613 64.6601 203.085C64.8422 203.875 65.2672 205.028 65.6921 205.878C66.1019 206.667 66.3751 207.365 66.3144 207.396C66.1171 207.517 63.6281 206.743 62.7024 206.272C61.7007 205.772 59.6215 204.254 58.969 203.541C58.711 203.283 58.4378 203.07 58.3467 203.07C58.2253 203.07 58.0887 203.601 57.9673 204.436C57.7093 206.257 57.8459 209.293 58.2557 210.856C58.6047 212.206 59.5305 214.24 60.259 215.302C61.5186 217.154 63.8558 219.157 65.5859 219.901C66.2537 220.189 66.5724 220.462 66.4206 220.614C66.3447 220.69 65.7832 220.599 63.5826 220.189C60.9571 219.704 58.544 218.611 56.5559 217.002C55.964 216.532 55.8578 216.759 56.0096 218.171C56.5407 222.936 59.3635 226.897 63.4308 228.582C63.8861 228.764 64.3262 228.976 64.4021 229.052C64.8119 229.401 61.9587 231.496 60.3804 232.042C59.1511 232.452 58.4378 232.437 57.163 231.981C55.7667 231.496 54.6285 230.798 53.4751 229.735C52.9439 229.25 52.4583 228.885 52.3824 228.931C52.1396 229.067 52.0333 231.314 52.2003 232.573C52.2761 233.241 52.3065 233.833 52.2306 233.909C52.0789 234.061 50.03 233.545 48.8463 233.044C47.8295 232.604 45.8262 231.526 44.8852 230.889C44.0505 230.327 43.9443 230.494 44.0505 232.194C44.2782 235.973 46.2359 239.463 49.4989 241.922C50.9862 243.045 51.8816 243.515 53.5661 244.062C54.2794 244.289 54.8561 244.563 54.8561 244.669C54.8561 244.881 53.1867 245.473 51.6539 245.792C48.0571 246.536 45.0522 246.141 41.7589 244.487C40.9545 244.077 40.2412 243.804 40.1805 243.864C39.9832 244.062 40.4385 246.141 40.9394 247.416C41.7437 249.495 43.2613 251.407 45.1281 252.682C45.4619 252.91 46.3118 253.395 47.0099 253.76C47.6929 254.124 48.2544 254.473 48.2544 254.549C48.2544 254.746 45.4316 256.795 44.0809 257.584C42.9882 258.206 41.0001 259.011 39.1485 259.557C38.7691 259.663 38.4656 259.815 38.4656 259.906C38.4656 260.452 42.5481 262.698 43.5649 262.714C43.6863 262.714 43.9139 262.805 44.0505 262.911C44.2933 263.078 44.263 263.23 43.6408 264.838C42.6846 267.388 40.6965 271.698 39.2396 274.415C35.142 282.064 30.1641 288.483 22.7428 295.722C18.2809 300.078 14.1226 303.493 6.71649 308.911C4.56144 310.504 2.16356 312.25 1.38956 312.826C0.0236811 313.843 -0.35573 314.298 0.342386 314.101C0.888738 313.949 7.18696 312.69 9.4179 312.28C31.7728 308.182 57.254 307.105 86.4231 309.002C91.0975 309.32 93.723 309.503 96.5155 309.761C97.3957 309.836 98.9589 309.973 100.006 310.064C106.319 310.626 114.272 311.506 120.798 312.356L124.364 312.826L124.698 312.401C124.88 312.158 126.003 310.702 127.187 309.154C130.754 304.54 134.29 301.186 137.34 299.577C140.982 297.635 145.171 297.134 148.54 298.211C151.758 299.258 153.761 300.336 155.248 301.854C156.462 303.068 158.223 304.145 159.027 304.145C159.649 304.145 159.923 304.418 160.454 305.663C161.805 308.729 164.445 311.825 167.42 313.828C171.548 316.62 177.558 317.683 182.991 316.59C186.709 315.846 189.547 314.587 195.375 311.066C201.4 307.439 203.813 306.209 212.767 302.248C219.308 299.365 221.873 297.862 224.514 295.343C226.836 293.142 228.338 290.684 229.112 287.815C229.461 286.541 229.522 286.009 229.507 284.264C229.507 281.957 229.355 280.971 228.672 278.922C227.534 275.477 225.485 272.427 222.313 269.422L221.129 268.299L221.812 266.842C222.434 265.521 224.271 261.196 225.212 258.889C225.409 258.419 225.637 257.994 225.728 257.963C225.834 257.918 226.456 258.237 227.109 258.646C230.478 260.741 232.709 261.53 235.304 261.545C239.614 261.575 243.029 259.436 245.093 255.414C246.322 253.031 246.959 250.83 247.369 247.613C247.885 243.606 248.234 242.741 250.192 240.556C251.103 239.539 251.664 238.75 252.089 237.87C252.423 237.202 252.802 236.595 252.924 236.549C253.06 236.504 253.592 236.458 254.123 236.458C256.718 236.458 259.829 235.108 261.316 233.317C261.999 232.513 262.925 230.494 263.153 229.371C263.426 228.005 263.274 225.015 262.849 223.558C262.409 222.086 261.013 218.99 260.117 217.503C259.237 216.046 259.055 215.53 259.07 214.468C259.085 212.586 259.389 211.539 260.391 210.021C262.455 206.88 263.153 204.755 263.153 201.553C263.153 197.561 261.407 195.027 258.691 195.027C258.175 195.027 257.371 195.087 256.9 195.178C255.914 195.33 254.821 195.118 253.698 194.556C253 194.192 251.634 192.856 250.966 191.885C250.374 191.035 249.464 188.88 248.507 186.073C246.944 181.535 246.292 180.093 244.744 177.832C243.621 176.178 242.968 175.616 241.147 174.721C239.811 174.053 239.705 173.962 239.584 173.446C239.447 172.884 239.174 172.596 237.414 171.124C236.336 170.228 235.395 168.164 233.71 162.944C232.936 160.516 232.542 159.65 231.722 158.421C230.098 155.993 228.52 154.718 226.38 154.096C225.712 153.899 224.832 153.519 224.422 153.261C224.013 152.988 222.844 152.381 221.827 151.926L219.976 151.076L219.794 149.27C219.429 145.476 218.2 142.607 215.939 140.179C214.391 138.525 212.949 137.569 210.946 136.901C210.141 136.643 209.398 136.552 207 136.461C202.159 136.248 201.127 135.823 197.515 132.515C195.951 131.088 195.102 130.633 192.582 129.905C190.67 129.358 188.561 128.357 186.997 127.249C186.436 126.839 184.994 125.549 183.78 124.38C179.91 120.601 178.863 120.177 172.716 119.752C168.057 119.433 165.143 118.325 162.229 115.791C159.437 113.332 158.329 112.649 155.916 111.814C153.609 111.01 152.972 110.631 151.287 109.037C149.345 107.201 148.555 106.806 146.749 106.73C146.036 106.7 144.701 106.776 143.775 106.912C141.787 107.186 141.149 107.11 138.706 106.32C134.821 105.076 132.726 105.288 128.507 107.398C127.612 107.838 126.61 108.384 126.261 108.597C125.927 108.809 125.502 108.976 125.305 108.976C124.926 108.976 122.24 107.535 120.783 106.533C119.371 105.577 117.671 103.892 116.837 102.617C116.427 101.98 115.425 100.174 114.621 98.5805C112.952 95.272 110.979 91.918 109.689 90.2031C108.156 88.1694 106.244 86.1358 101.524 81.5222C93.981 74.1616 91.4465 70.9745 88.4113 65.0557C87.1364 62.5668 86.499 60.7304 86.0589 58.1353C85.7098 56.1623 85.1787 54.4777 84.5716 53.4457C84.3591 53.0663 83.5548 52.1254 82.8263 51.3514L81.4604 49.9552L81.339 47.709C81.1114 44.0515 80.5499 42.6401 78.5314 40.6065C77.5146 39.5897 77.1352 39.0888 76.6647 38.072C75.4354 35.5224 73.5232 29.558 71.7931 22.9563C69.7746 15.2922 68.0748 10.0563 66.6482 7.21833C65.1002 4.12234 62.7479 1.40574 60.775 0.464797C59.6215 -0.0815551 58.2708 -0.157415 57.2844 0.297878ZM131.573 117.915C135.64 118.613 140.239 120.632 142.439 122.665C143.502 123.637 144.412 125.018 145.262 126.915C146.173 128.964 146.567 129.54 148.206 131.346C148.905 132.105 149.481 132.788 149.481 132.864C149.481 132.925 149.254 133.304 148.965 133.699C148.07 134.943 146.856 136.931 146.067 138.479C145.217 140.164 145.323 140.088 143.335 140.376C142.667 140.483 141.377 140.756 140.451 141.014C135.822 142.228 133.349 143.837 128.022 149.027C126.261 150.742 124.334 152.533 123.757 153.003C120.434 155.674 116.837 157.495 110.554 159.666C107.7 160.652 105.014 161.806 100.871 163.824C99.0499 164.704 97.5323 165.433 97.5019 165.433C97.3046 165.433 97.5171 164.856 98.3973 162.913C100.37 158.603 101.493 155.356 101.903 152.76C102.085 151.698 102.116 150.12 102.085 145.931C102.055 139.83 102.146 138.859 103.117 135.323C104.665 129.692 108.034 124.881 112.527 121.907C115.805 119.736 119.386 118.34 123.302 117.688C125.017 117.399 129.327 117.521 131.573 117.915ZM212.281 153.428C214.345 153.883 216.242 154.566 218.23 155.568C220.477 156.706 221.903 157.708 223.724 159.484C225.955 161.654 227.018 163.323 228.11 166.374C228.915 168.605 229.416 169.561 230.736 171.306C231.904 172.854 234.181 175.161 235.577 176.178C236.002 176.511 237.292 177.301 238.415 177.953C241.435 179.699 242.862 180.67 243.605 181.505C244.577 182.597 245.639 184.479 246.565 186.786C248.553 191.749 249.858 193.904 251.831 195.467C253.774 197.015 255.261 197.379 257.765 196.939L259.131 196.696L259.617 197.242C260.33 198.047 260.391 198.608 259.905 199.944C258.964 202.524 256.384 205.18 254.821 205.195C254.411 205.195 253.273 204.649 252.256 203.95C251.861 203.692 250.526 202.478 249.297 201.264C246.808 198.806 246.823 198.821 246.201 200.05C245.229 201.978 245.366 205.787 246.489 208.003C247.142 209.308 248.158 210.689 248.993 211.402C250.541 212.738 252.681 213.466 254.047 213.117C254.791 212.935 254.851 213.011 255.185 214.316C255.428 215.272 255.428 215.348 255.17 215.834C254.988 216.152 254.866 216.835 254.806 217.64C254.73 218.839 254.669 218.99 254.092 219.855C253.743 220.356 253.045 221.161 252.529 221.631C251.649 222.451 249.782 223.558 249.281 223.558C249.13 223.558 248.993 223.316 248.887 222.906C248.052 219.43 246.671 216.35 243.879 211.721C240.494 206.075 239.766 204.74 238.81 202.433C237.247 198.608 235.881 192.856 235.608 188.804C235.562 188.015 235.486 187.256 235.456 187.135C235.41 187.014 235.441 186.816 235.516 186.695C235.623 186.528 235.866 186.528 237.064 186.74C239.538 187.15 241.799 187.439 241.891 187.347C242.027 187.211 240.373 185.739 239.174 184.934C237.929 184.1 235.122 182.688 232.269 181.444C229.947 180.427 229.006 180.063 224.453 178.484C222.571 177.832 220.461 177.073 219.748 176.815C218.352 176.314 217.578 176.284 216.713 176.739C216.106 177.058 215.863 177.589 215.666 178.97C215.453 180.548 215.013 181.611 214.103 182.825C212.16 185.435 203.889 192.796 199.943 195.436C197.439 197.121 194.798 198.32 192.051 199.048C189.972 199.61 187.179 199.64 185.374 199.14C182.49 198.335 179.121 196.256 175.463 193.008C174.173 191.855 174.128 191.976 174.902 194.374C176.404 198.927 179.804 202.812 184.235 205.043C187.164 206.515 189.046 207.001 192.355 207.122C196.225 207.274 200.58 206.272 204.906 204.224C206.165 203.632 206.347 203.692 205.74 204.497C204.89 205.62 202.326 209.976 201.43 211.797C199.882 214.969 199.366 216.972 199.351 219.992C199.336 222.117 199.488 222.951 200.186 224.666C200.884 226.412 201.552 227.368 203.221 229.052C204.83 230.661 204.83 230.661 207.47 231.966C210.232 233.317 211.325 234.106 212.145 235.29C212.858 236.352 212.995 236.944 212.767 238.158L212.57 239.205L213.055 240.177C213.662 241.36 213.617 241.74 212.752 242.559C211.614 243.637 210.445 243.546 207.334 242.134C206.105 241.588 204.632 240.966 204.041 240.753C203.464 240.541 202.538 240.146 201.992 239.873C201.005 239.372 200.444 239.038 194.783 235.548C192.097 233.894 186.572 230.6 184.463 229.401C184.053 229.174 181.686 227.777 179.227 226.305C167.556 219.37 162.821 216.759 160.408 215.97C158.42 215.302 156.129 215.409 154.034 216.259C152.319 216.957 151.363 217.609 149.876 219.081C146.309 222.602 144.336 227.064 143.304 233.954C142.895 236.716 142.94 243.576 143.395 247.461C144.458 256.719 146.583 265.005 149.421 271.137C151.029 274.582 153.791 279.028 154.231 278.861C154.717 278.679 156.235 275.28 156.978 272.715C157.176 272.017 157.403 271.425 157.479 271.41C157.555 271.379 157.995 272.169 158.45 273.14C159.589 275.644 162.321 280.364 163.793 282.428C167.283 287.284 171.275 291.245 176.222 294.751C177.831 295.904 178.15 296.178 177.983 296.345C177.345 296.967 167.465 301.869 166.843 301.869C166.312 301.869 164.87 300.806 162.654 298.773C161.516 297.726 160.53 296.861 160.484 296.861C160.165 296.861 160.955 299.759 161.865 301.914C162.427 303.265 162.396 303.386 161.501 303.386C160.196 303.386 157.889 302.112 156.569 300.64C155.339 299.289 154.778 298.044 153.579 294.129C152.987 292.171 152.259 289.773 151.955 288.817C150.422 283.763 148.829 280.151 144.989 272.958C143.016 269.27 141.119 265.081 140.208 262.41C139.161 259.375 138.129 255.824 137.704 253.835C137.507 252.925 137.173 251.407 136.961 250.497C136.46 248.311 135.595 243.303 135.261 240.632C134.897 237.673 134.897 231.921 135.261 229.401C136.005 224.393 137.674 219.734 140.133 215.849C141.483 213.709 142.652 212.328 144.716 210.4C147.797 207.502 148.768 205.893 149.132 203.025C149.466 200.293 150.073 198.745 151.53 196.848C152.866 195.103 154.338 193.873 158.041 191.339C160.469 189.669 163.231 186.407 164.506 183.705C165.963 180.594 166.858 178.909 167.526 178.029C168.998 176.087 175.22 170.168 179.379 166.783C189.061 158.907 197.651 154.217 204.283 153.216C206.363 152.912 210.43 153.003 212.281 153.428ZM61.2454 206.971C63.2487 208.321 65.8742 209.277 68.2873 209.52C69.122 209.611 69.3496 209.702 69.8808 210.173C70.2299 210.476 70.7003 210.886 70.928 211.083C71.4743 211.539 71.3074 211.751 70.0629 212.161C68.6819 212.631 67.058 212.722 65.8742 212.419C63.2487 211.751 61.7766 210.537 60.5473 208.048C60.1375 207.183 59.7885 206.439 59.7885 206.379C59.7885 206.106 60.2741 206.303 61.2454 206.971ZM62.4444 221.221C65.0699 221.95 64.8726 221.874 64.6905 222.056C64.5842 222.162 63.9165 222.208 62.7934 222.162C61.4124 222.117 60.9267 222.026 60.2741 221.752C59.4394 221.373 58.4226 220.371 58.4226 219.901C58.4226 219.673 58.5744 219.719 59.4546 220.159C60.0161 220.432 61.3668 220.918 62.4444 221.221ZM185.495 237.323C186.436 237.794 187.513 238.78 187.893 239.524C188.075 239.888 188.181 240.404 188.181 240.996C188.181 241.74 188.09 242.058 187.65 242.863C187.346 243.379 186.269 245.534 185.237 247.628C184.19 249.707 183.249 251.513 183.112 251.62C182.915 251.787 182.702 251.696 181.731 251.043C179.986 249.859 179.925 249.965 181.23 251.893C184.827 257.235 188.894 261.53 194.024 265.445C196.103 267.024 196.483 267.464 197.302 269.179C198.41 271.516 198.198 272.912 196.559 273.823C195.451 274.46 194.403 274.445 192.84 273.792C190.503 272.821 189.198 271.713 187.407 269.194C186.815 268.39 186.269 267.722 186.163 267.707C186.056 267.707 185.131 267.707 184.099 267.722C182.384 267.737 182.156 267.707 181.443 267.358C180.32 266.811 178.286 265.142 177.482 264.125C176.404 262.759 175.919 261.166 176.389 260.543C176.571 260.285 176.617 260.285 177.284 260.543C177.679 260.68 178.043 260.756 178.089 260.71C178.15 260.665 177.937 260.285 177.618 259.876C176.996 259.071 175.782 256.628 175.312 255.201C175.145 254.7 174.826 253.532 174.598 252.621C174.386 251.696 174.037 250.709 173.839 250.39C173.339 249.632 172.094 249.055 170.956 249.055C169.833 249.055 169.605 248.918 169.241 247.962C169.074 247.522 168.588 246.262 168.163 245.17C167.389 243.166 167.192 242.104 167.587 241.816C167.678 241.74 168.573 241.421 169.575 241.102C171.7 240.404 172.216 240.435 173.855 241.239C175.205 241.892 176.48 243.212 176.92 244.38C177.087 244.821 177.284 245.2 177.376 245.23C177.467 245.261 178.119 244.092 178.817 242.65C180.805 238.583 181.67 237.415 183.021 236.99C183.841 236.747 184.524 236.838 185.495 237.323ZM163.99 241.618L166.084 243.728L166.433 245.291C166.615 246.141 166.919 247.249 167.086 247.765C167.238 248.266 167.541 249.313 167.754 250.102C168.194 251.771 168.376 252.014 168.968 251.787C170.045 251.377 171.548 251.832 172.109 252.743C172.701 253.714 173.187 255.581 173.217 256.962C173.232 258.115 173.187 258.373 172.792 259.193L172.352 260.118L173.081 261.302C174.492 263.579 175.949 265.385 178.225 267.646C181.352 270.772 182.687 271.804 186.739 274.248C194.98 279.226 203.236 281.563 209.732 280.774C213.966 280.258 217.335 278.285 218.686 275.568C218.959 275.007 219.262 274.551 219.354 274.551C219.46 274.551 219.778 275.007 220.052 275.568C220.492 276.448 220.568 276.767 220.583 277.662C220.583 279.074 220.158 279.924 218.762 281.305C216.637 283.429 213.162 284.689 208.563 285.023C206.681 285.144 203.358 285.038 201.885 284.795C195.845 283.779 190.655 282.064 185.859 279.468C180.441 276.524 176.693 273.519 173.141 269.239C168.922 264.155 165.69 258.358 163.61 252.166C162.32 248.281 161.759 245.549 161.638 242.301C161.531 239.691 161.546 239.494 161.759 239.494C161.835 239.494 162.836 240.45 163.99 241.618ZM195.299 241.709C196.316 242.225 198.152 243.925 198.516 244.73C198.698 245.109 198.805 245.701 198.805 246.278C198.805 247.158 198.714 247.416 197.302 250.375C192.992 259.451 192.855 259.678 191.672 259.678C190.989 259.678 190.306 259.253 188.014 257.387C185.677 255.49 184.903 254.685 184.706 253.987C184.326 252.576 184.357 252.47 186.937 248.129C189.638 243.561 190.367 242.529 191.338 241.967C192.886 241.057 193.827 240.996 195.299 241.709ZM206.211 247.401C208.032 248.235 209.428 250.041 209.428 251.589C209.428 252.348 208.366 255.08 206.438 259.284C203.585 265.506 203.525 265.612 202.326 265.87C201.278 266.113 200.732 265.916 197.515 264.171C195.223 262.926 194.813 262.562 194.57 261.682C194.252 260.574 194.358 259.86 194.935 259.056C195.223 258.646 196.528 256.415 197.833 254.093C201.172 248.175 201.582 247.643 203.282 247.052C204.223 246.718 204.921 246.809 206.211 247.401ZM216.227 253.016C217.881 253.835 218.595 255.05 218.58 257.022C218.564 258.115 218.458 258.586 217.472 261.575C215.347 268.025 214.679 269.3 213.253 269.68C211.947 270.044 206.787 268.708 205.938 267.798C205.649 267.494 205.558 267.191 205.513 266.432C205.452 265.506 205.482 265.385 206.059 264.429C206.393 263.852 207.106 262.501 207.653 261.424C208.7 259.314 210.824 255.399 211.462 254.382C212.615 252.576 214.345 252.075 216.227 253.016Z" fill="#051020"/>
+<path d="M125.639 125.291C119.872 126.126 113.528 130.406 109.765 135.991C108.019 138.571 106.896 141.575 106.365 145.096C106.061 147.1 106.046 147.479 106.198 149.315C106.471 152.533 107.018 153.337 108.93 153.322C110.554 153.322 112.253 152.654 114.727 151.046C116.123 150.15 117.14 149.3 119.508 147.085C123.56 143.29 127.991 139.967 131.543 138.039C136.02 135.626 136.338 135.384 137.128 133.836C137.674 132.758 137.598 131.544 136.93 130.724C136.384 130.026 135.838 129.753 134.927 129.662C133.425 129.51 132.954 129.192 132.241 127.78C131.467 126.232 130.435 125.549 128.386 125.215C127.248 125.048 127.339 125.033 125.639 125.291ZM123.317 130.284C125.852 130.74 128.234 132.242 129.676 134.321L130.071 134.898L129.706 135.49C129.494 135.808 129.251 136.324 129.145 136.628C129.054 136.947 128.917 137.205 128.841 137.205C128.781 137.205 128.523 136.886 128.295 136.476C127.627 135.323 126.368 133.684 125.609 133.001C123.241 130.831 119.766 130.573 116.048 132.303C114.287 133.137 114.242 132.652 116.002 131.68C117.201 131.013 118.476 130.573 119.887 130.315C121.405 130.041 121.86 130.026 123.317 130.284ZM123.605 134.776C125.062 135.156 126.732 135.9 127.187 136.385C127.627 136.856 127.415 136.84 126.049 136.309C124.304 135.611 123.241 135.384 121.663 135.384C119.66 135.384 117.869 135.96 116.199 137.159C115.274 137.812 115.091 137.69 115.881 136.962C117.11 135.808 118.536 135.05 120.115 134.701C121.405 134.412 122.255 134.427 123.605 134.776ZM120.449 138.419C121.754 139.208 121.784 141.181 120.525 142.137C119.902 142.607 118.521 142.562 117.99 142.061C117.125 141.257 116.928 140.285 117.444 139.329C118.036 138.191 119.417 137.781 120.449 138.419ZM112.527 143.928C112.527 145.779 112.527 145.81 113.088 146.933C113.422 147.601 113.589 148.117 113.513 148.192C113.346 148.359 111.449 147.919 111.13 147.646C110.963 147.509 110.933 147.282 110.994 146.751C111.191 145.248 112.223 142.061 112.496 142.061C112.527 142.061 112.542 142.896 112.527 143.928Z" fill="#051020"/>
+<path d="M183.567 176.754C180.745 177.316 179.197 178.151 178.605 179.471C178.225 180.29 178.256 180.989 178.696 181.945C179.728 184.145 182.414 186.634 185.54 188.228C187.984 189.487 190.139 190.019 192.734 190.019C197.181 190.019 202.037 187.848 205.649 184.252C207.258 182.658 208.199 181.353 208.851 179.85C209.565 178.151 209.307 177.149 208.047 176.815C207.121 176.557 205.664 176.845 200.246 178.333C196.483 179.365 195.83 179.471 193.872 179.456C191.823 179.441 190.67 179.152 189.517 178.378C189.168 178.135 188.561 177.726 188.181 177.468C187.377 176.906 186.087 176.512 185.237 176.527C184.888 176.527 184.144 176.633 183.567 176.754Z" fill="#051020"/>
+</svg>
diff --git a/site/public/donkey-silhouette.svg b/site/public/donkey-silhouette.svg
new file mode 100644
index 00000000..8d4d05bc
--- /dev/null
+++ b/site/public/donkey-silhouette.svg
@@ -0,0 +1 @@
+<svg viewBox="0 0 264 318" xmlns="http://www.w3.org/2000/svg"><path d="M57.2844 0.297878C55.9944 0.874583 54.325 3.19656 53.0957 6.12561C52.3065 7.99232 52.352 7.93161 51.5932 8.17443C50.5157 8.53867 49.7113 9.47961 49.2712 10.8758C48.9222 11.9989 48.4062 14.3057 48.133 16.0207C48.0419 16.567 47.9509 16.7643 47.7839 16.7188C47.6625 16.6884 47.4652 16.6429 47.3286 16.5974C47.0403 16.5215 46.7216 18.2516 45.902 24.4436C45.5985 26.6593 44.9156 31.5765 44.3844 35.3858C42.7453 46.8895 42.4873 49.7579 42.4873 56.5266C42.4873 64.6611 43.1703 71.4298 44.6272 77.7888C45.4619 81.4007 45.6896 82.2962 46.2208 84.0718C48.74 92.4492 52.3369 100.72 56.48 107.61C61.0633 115.244 66.1171 120.601 72.5367 124.623C77.0745 127.461 80.6864 130.739 82.8111 133.972C84.1922 136.066 84.8448 137.493 85.376 139.602C85.8161 141.317 85.8313 141.94 85.4518 142.744C84.8751 143.973 83.3727 144.929 81.0355 145.521C80.4133 145.688 79.8821 145.885 79.8669 145.961C79.7759 146.219 81.4756 147.949 82.4469 148.587C83.4789 149.255 85.0117 149.801 86.3321 149.938C86.924 149.998 87.1971 150.104 87.2275 150.256C87.2427 150.393 86.8784 150.894 86.3928 151.379C84.8144 152.988 82.7049 153.686 79.8062 153.565C77.8181 153.489 77.8333 153.458 78.7894 155.31C79.9124 157.465 81.8854 159.241 83.8887 159.908C84.4502 160.106 84.9207 160.349 84.951 160.47C85.0117 160.743 83.5093 162.655 82.7656 163.247C81.3694 164.355 79.275 165.281 78.1672 165.281C77.3628 165.281 77.5753 165.767 78.9563 167.148C80.2463 168.438 81.6577 169.318 82.9781 169.667C83.3271 169.773 83.6155 169.94 83.6155 170.061C83.6155 170.168 83.2209 170.608 82.7504 171.018C81.9157 171.761 81.8854 171.792 82.1434 172.08C82.6138 172.611 82.4773 173.233 81.7336 173.84C80.9444 174.493 80.6561 174.508 79.9731 174.007C79.3661 173.567 79.1992 173.552 78.5617 173.886C77.6056 174.372 75.9969 174.69 74.4034 174.69C72.5367 174.69 72.5671 174.645 73.4776 176.42C74.7221 178.788 77.0137 180.639 79.2902 181.095C79.791 181.201 80.2463 181.353 80.2919 181.413C80.3526 181.489 80.3374 181.778 80.2615 182.036C80.2008 182.294 79.958 183.523 79.7455 184.783C78.3948 192.69 76.7102 198.062 75.0408 199.777C73.083 201.795 69.0158 202.099 65.6314 200.49C65.1002 200.232 64.5994 200.035 64.5084 200.035C64.2352 200.035 64.3111 201.613 64.6601 203.085C64.8422 203.875 65.2672 205.028 65.6921 205.878C66.1019 206.667 66.3751 207.365 66.3144 207.396C66.1171 207.517 63.6281 206.743 62.7024 206.272C61.7007 205.772 59.6215 204.254 58.969 203.541C58.711 203.283 58.4378 203.07 58.3467 203.07C58.2253 203.07 58.0887 203.601 57.9673 204.436C57.7093 206.257 57.8459 209.293 58.2557 210.856C58.6047 212.206 59.5305 214.24 60.259 215.302C61.5186 217.154 63.8558 219.157 65.5859 219.901C66.2537 220.189 66.5724 220.462 66.4206 220.614C66.3447 220.69 65.7832 220.599 63.5826 220.189C60.9571 219.704 58.544 218.611 56.5559 217.002C55.964 216.532 55.8578 216.759 56.0096 218.171C56.5407 222.936 59.3635 226.897 63.4308 228.582C63.8861 228.764 64.3262 228.976 64.4021 229.052C64.8119 229.401 61.9587 231.496 60.3804 232.042C59.1511 232.452 58.4378 232.437 57.163 231.981C55.7667 231.496 54.6285 230.798 53.4751 229.735C52.9439 229.25 52.4583 228.885 52.3824 228.931C52.1396 229.067 52.0333 231.314 52.2003 232.573C52.2761 233.241 52.3065 233.833 52.2306 233.909C52.0789 234.061 50.03 233.545 48.8463 233.044C47.8295 232.604 45.8262 231.526 44.8852 230.889C44.0505 230.327 43.9443 230.494 44.0505 232.194C44.2782 235.973 46.2359 239.463 49.4989 241.922C50.9862 243.045 51.8816 243.515 53.5661 244.062C54.2794 244.289 54.8561 244.563 54.8561 244.669C54.8561 244.881 53.1867 245.473 51.6539 245.792C48.0571 246.536 45.0522 246.141 41.7589 244.487C40.9545 244.077 40.2412 243.804 40.1805 243.864C39.9832 244.062 40.4385 246.141 40.9394 247.416C41.7437 249.495 43.2613 251.407 45.1281 252.682C45.4619 252.91 46.3118 253.395 47.0099 253.76C47.6929 254.124 48.2544 254.473 48.2544 254.549C48.2544 254.746 45.4316 256.795 44.0809 257.584C42.9882 258.206 41.0001 259.011 39.1485 259.557C38.7691 259.663 38.4656 259.815 38.4656 259.906C38.4656 260.452 42.5481 262.698 43.5649 262.714C43.6863 262.714 43.9139 262.805 44.0505 262.911C44.2933 263.078 44.263 263.23 43.6408 264.838C42.6846 267.388 40.6965 271.698 39.2396 274.415C35.142 282.064 30.1641 288.483 22.7428 295.722C18.2809 300.078 14.1226 303.493 6.71649 308.911C4.56144 310.504 2.16356 312.25 1.38956 312.826C0.0236811 313.843 -0.35573 314.298 0.342386 314.101C0.888738 313.949 7.18696 312.69 9.4179 312.28C31.7728 308.182 57.254 307.105 86.4231 309.002C91.0975 309.32 93.723 309.503 96.5155 309.761C97.3957 309.836 98.9589 309.973 100.006 310.064C106.319 310.626 114.272 311.506 120.798 312.356L124.364 312.826L124.698 312.401C124.88 312.158 126.003 310.702 127.187 309.154C130.754 304.54 134.29 301.186 137.34 299.577C140.982 297.635 145.171 297.134 148.54 298.211C151.758 299.258 153.761 300.336 155.248 301.854C156.462 303.068 158.223 304.145 159.027 304.145C159.649 304.145 159.923 304.418 160.454 305.663C161.805 308.729 164.445 311.825 167.42 313.828C171.548 316.62 177.558 317.683 182.991 316.59C186.709 315.846 189.547 314.587 195.375 311.066C201.4 307.439 203.813 306.209 212.767 302.248C219.308 299.365 221.873 297.862 224.514 295.343C226.836 293.142 228.338 290.684 229.112 287.815C229.461 286.541 229.522 286.009 229.507 284.264C229.507 281.957 229.355 280.971 228.672 278.922C227.534 275.477 225.485 272.427 222.313 269.422L221.129 268.299L221.812 266.842C222.434 265.521 224.271 261.196 225.212 258.889C225.409 258.419 225.637 257.994 225.728 257.963C225.834 257.918 226.456 258.237 227.109 258.646C230.478 260.741 232.709 261.53 235.304 261.545C239.614 261.575 243.029 259.436 245.093 255.414C246.322 253.031 246.959 250.83 247.369 247.613C247.885 243.606 248.234 242.741 250.192 240.556C251.103 239.539 251.664 238.75 252.089 237.87C252.423 237.202 252.802 236.595 252.924 236.549C253.06 236.504 253.592 236.458 254.123 236.458C256.718 236.458 259.829 235.108 261.316 233.317C261.999 232.513 262.925 230.494 263.153 229.371C263.426 228.005 263.274 225.015 262.849 223.558C262.409 222.086 261.013 218.99 260.117 217.503C259.237 216.046 259.055 215.53 259.07 214.468C259.085 212.586 259.389 211.539 260.391 210.021C262.455 206.88 263.153 204.755 263.153 201.553C263.153 197.561 261.407 195.027 258.691 195.027C258.175 195.027 257.371 195.087 256.9 195.178C255.914 195.33 254.821 195.118 253.698 194.556C253 194.192 251.634 192.856 250.966 191.885C250.374 191.035 249.464 188.88 248.507 186.073C246.944 181.535 246.292 180.093 244.744 177.832C243.621 176.178 242.968 175.616 241.147 174.721C239.811 174.053 239.705 173.962 239.584 173.446C239.447 172.884 239.174 172.596 237.414 171.124C236.336 170.228 235.395 168.164 233.71 162.944C232.936 160.516 232.542 159.65 231.722 158.421C230.098 155.993 228.52 154.718 226.38 154.096C225.712 153.899 224.832 153.519 224.422 153.261C224.013 152.988 222.844 152.381 221.827 151.926L219.976 151.076L219.794 149.27C219.429 145.476 218.2 142.607 215.939 140.179C214.391 138.525 212.949 137.569 210.946 136.901C210.141 136.643 209.398 136.552 207 136.461C202.159 136.248 201.127 135.823 197.515 132.515C195.951 131.088 195.102 130.633 192.582 129.905C190.67 129.358 188.561 128.357 186.997 127.249C186.436 126.839 184.994 125.549 183.78 124.38C179.91 120.601 178.863 120.177 172.716 119.752C168.057 119.433 165.143 118.325 162.229 115.791C159.437 113.332 158.329 112.649 155.916 111.814C153.609 111.01 152.972 110.631 151.287 109.037C149.345 107.201 148.555 106.806 146.749 106.73C146.036 106.7 144.701 106.776 143.775 106.912C141.787 107.186 141.149 107.11 138.706 106.32C134.821 105.076 132.726 105.288 128.507 107.398C127.612 107.838 126.61 108.384 126.261 108.597C125.927 108.809 125.502 108.976 125.305 108.976C124.926 108.976 122.24 107.535 120.783 106.533C119.371 105.577 117.671 103.892 116.837 102.617C116.427 101.98 115.425 100.174 114.621 98.5805C112.952 95.272 110.979 91.918 109.689 90.2031C108.156 88.1694 106.244 86.1358 101.524 81.5222C93.981 74.1616 91.4465 70.9745 88.4113 65.0557C87.1364 62.5668 86.499 60.7304 86.0589 58.1353C85.7098 56.1623 85.1787 54.4777 84.5716 53.4457C84.3591 53.0663 83.5548 52.1254 82.8263 51.3514L81.4604 49.9552L81.339 47.709C81.1114 44.0515 80.5499 42.6401 78.5314 40.6065C77.5146 39.5897 77.1352 39.0888 76.6647 38.072C75.4354 35.5224 73.5232 29.558 71.7931 22.9563C69.7746 15.2922 68.0748 10.0563 66.6482 7.21833C65.1002 4.12234 62.7479 1.40574 60.775 0.464797C59.6215 -0.0815551 58.2708 -0.157415 57.2844 0.297878Z" fill="currentColor"/></svg>
diff --git a/site/src/app/_components/landing/AuthScreen.tsx b/site/src/app/_components/landing/AuthScreen.tsx
index da3ad336..ea6ccd12 100644
--- a/site/src/app/_components/landing/AuthScreen.tsx
+++ b/site/src/app/_components/landing/AuthScreen.tsx
@@ -117,22 +117,22 @@ export function AuthScreen({ mode, method = "google", callbackURL, authError, fo
style={{ width: googleButtonWidth }}
/>
</button>}
- <p className="mt-[18px] text-sm leading-normal text-[#555]">
+ <p className="mt-[18px] text-sm leading-normal text-foreground/70">
{screenCopy.alternateLead}{" "}
<Link
href={alternateHref}
- className="font-semibold text-ink underline underline-offset-[3px]"
+ className="font-semibold text-foreground underline underline-offset-[3px]"
>
{screenCopy.alternateLabel}
</Link>
</p>
- <p className="mt-[18px] text-xs leading-normal text-[#555]">
+ <p className="mt-[18px] text-xs leading-normal text-foreground/70">
By continuing, you agree to the{" "}
- <Link href="/terms" className="font-semibold text-ink">
+ <Link href="/terms" className="font-semibold text-foreground">
Terms of Use
</Link>{" "}
and{" "}
- <Link href="/privacy" className="font-semibold text-ink">
+ <Link href="/privacy" className="font-semibold text-foreground">
Privacy Policy
</Link>
.
@@ -140,7 +140,7 @@ export function AuthScreen({ mode, method = "google", callbackURL, authError, fo
{statusMessage ? (
<div
role="status"
- className="mt-[14px] text-[13px] font-semibold leading-[1.4] text-[#4a403d]"
+ className="mt-[14px] text-[13px] font-semibold leading-[1.4] text-foreground"
>
{statusMessage}
</div>
@@ -153,7 +153,7 @@ export function AuthScreen({ mode, method = "google", callbackURL, authError, fo
// under hydration; the app it leads into is marked the same way.
<main
translate="no"
- className="min-h-screen w-full bg-background font-system text-ink antialiased"
+ className="min-h-screen w-full bg-background font-system text-foreground antialiased"
>
{/* Auth serves same-host on donkeycut.com, so the chrome is Cut's. */}
<TopNav
diff --git a/site/src/app/_components/landing/EmailAuthForm.tsx b/site/src/app/_components/landing/EmailAuthForm.tsx
index 446be8fa..ef471292 100644
--- a/site/src/app/_components/landing/EmailAuthForm.tsx
+++ b/site/src/app/_components/landing/EmailAuthForm.tsx
@@ -42,20 +42,20 @@ export function EmailAuthForm({ mode, callbackURL }: Props) {
{signingUp ? <label className="flex flex-col gap-1 text-sm">
Name
<input name="name" autoComplete="name" required disabled={pending}
- className="rounded-lg border border-ink/30 bg-white px-3 py-2 outline-none focus:border-ink focus:ring-1 focus:ring-inset focus:ring-ink" />
+ className="rounded-lg border border-input bg-card text-card-foreground px-3 py-2 outline-none focus:border-foreground focus:ring-1 focus:ring-inset focus:ring-foreground" />
</label> : null}
<label className="flex flex-col gap-1 text-sm">
Email
<input name="email" type="email" autoComplete="username" required disabled={pending}
- className="rounded-lg border border-ink/30 bg-white px-3 py-2 outline-none focus:border-ink focus:ring-1 focus:ring-inset focus:ring-ink" />
+ className="rounded-lg border border-input bg-card text-card-foreground px-3 py-2 outline-none focus:border-foreground focus:ring-1 focus:ring-inset focus:ring-foreground" />
</label>
<label className="flex flex-col gap-1 text-sm">
Password
<input name="password" type="password" autoComplete={signingUp ? "new-password" : "current-password"} required disabled={pending}
- className="rounded-lg border border-ink/30 bg-white px-3 py-2 outline-none focus:border-ink focus:ring-1 focus:ring-inset focus:ring-ink" />
+ className="rounded-lg border border-input bg-card text-card-foreground px-3 py-2 outline-none focus:border-foreground focus:ring-1 focus:ring-inset focus:ring-foreground" />
</label>
<button type="submit" disabled={pending}
- className="rounded-lg bg-ink px-4 py-2 text-background disabled:opacity-60">
+ className="rounded-lg bg-primary px-4 py-2 text-primary-foreground disabled:opacity-60">
{pending ? "Please wait…" : signingUp ? "Create account" : "Sign in"}
</button>
{error ? <p role="alert" className="text-sm">{error}</p> : null}
diff --git a/site/src/app/_components/landing/Footer.tsx b/site/src/app/_components/landing/Footer.tsx
index 0845a5a1..4f6a3a6f 100644
--- a/site/src/app/_components/landing/Footer.tsx
+++ b/site/src/app/_components/landing/Footer.tsx
@@ -40,14 +40,14 @@ export async function Footer() {
];
return (
- <footer className="w-full border-t-2 border-ink py-16 md:py-[80px]">
+ <footer className="w-full border-t-2 border-foreground py-16 md:py-[80px]">
<div className="mx-auto flex max-w-[1400px] flex-col gap-12 px-6 md:flex-row md:flex-wrap md:gap-x-24 md:px-12">
<div className="min-w-[240px] max-w-sm flex-1">
<div className="mb-6 flex flex-wrap items-center gap-4">
<Link
href="/"
aria-label="Donkey home"
- className="text-[40px] font-semibold text-ink no-underline md:text-[48px]"
+ className="text-[40px] font-semibold text-foreground no-underline md:text-[48px]"
>
Donkey
</Link>
@@ -59,14 +59,14 @@ export async function Footer() {
aria-label={link.label}
href={link.href}
key={link.label}
- className="flex h-10 w-10 items-center justify-center rounded-lg border-2 border-ink bg-white text-ink no-underline"
+ className="flex h-10 w-10 items-center justify-center rounded-lg border-2 border-foreground bg-card text-foreground no-underline"
>
<Icon size={18} />
</a>
);
})}
</div>
- <p className="text-[15px] font-semibold text-ink">
+ <p className="text-[15px] font-semibold text-foreground">
Need help? Email us at{" "}
<a
href="mailto:[email protected]"
@@ -75,14 +75,14 @@ export async function Footer() {
</a>
</p>
- <p className="mt-6 text-[13px] text-[#666]">
+ <p className="mt-6 text-[13px] text-foreground/70">
2026 Donkey, Inc.
</p>
</div>
<div className="flex flex-1 flex-col gap-10 sm:flex-row sm:flex-wrap sm:gap-x-16 sm:gap-y-12 md:gap-x-20">
{linkGroups.map((group) => (
<div key={group.title} className="flex min-w-[140px] flex-col gap-4">
- <div className="text-[15px] font-semibold text-ink">
+ <div className="text-[15px] font-semibold text-foreground">
{group.title}
</div>
<div className="flex flex-col gap-3">
@@ -90,7 +90,7 @@ export async function Footer() {
<Link
key={link.href}
href={link.href}
- className="text-[15px] text-[#666] no-underline transition-colors hover:text-ink"
+ className="text-[15px] text-foreground/70 no-underline transition-colors hover:text-foreground"
>
{link.label}
</Link>
diff --git a/site/src/app/_components/landing/LandingPrimitives.tsx b/site/src/app/_components/landing/LandingPrimitives.tsx
index cf523d10..fe35c6e1 100644
--- a/site/src/app/_components/landing/LandingPrimitives.tsx
+++ b/site/src/app/_components/landing/LandingPrimitives.tsx
@@ -79,6 +79,7 @@ export function TapedCard({
borderRadius: 16,
border: `2px solid ${BLACK}`,
background: CARD[color],
+ color: BLACK,
...(fill ? { height: "100%" } : null),
}}
>
diff --git a/site/src/app/_components/landing/TopNav.tsx b/site/src/app/_components/landing/TopNav.tsx
index 5449f896..05e8f555 100644
--- a/site/src/app/_components/landing/TopNav.tsx
+++ b/site/src/app/_components/landing/TopNav.tsx
@@ -1,6 +1,6 @@
"use client";
-import Image from "next/image";
+import { DonkeyMark } from "@/components/DonkeyMark";
import Link from "next/link";
import { useEffect, useState } from "react";
@@ -8,8 +8,6 @@ import { PillButton } from "@/app/_components/landing/LandingPrimitives";
import { authClient } from "@/lib/auth-client";
import { cn } from "@/lib/utils";
-const NAV_ICON_SIZE = 59;
-
type Props = {
homeHref?: string;
// Wordmark next to the logo.
@@ -56,24 +54,16 @@ export function TopNav({
className={cn(
"mx-auto flex w-full max-w-[1400px] items-center justify-between rounded-[24px] px-4 py-2 transition-all duration-300 md:px-12 md:py-2.5",
scrolled
- ? "border border-ink/10 bg-cream/95 shadow-[0_18px_50px_rgba(15,14,13,0.10)] backdrop-blur-md"
+ ? "border border-foreground/10 bg-card/95 shadow-[0_18px_50px_rgba(15,14,13,0.10)] backdrop-blur-md"
: "border border-transparent bg-transparent shadow-none",
)}
>
<Link
href={homeHref}
- className="flex items-center gap-1 text-ink no-underline md:gap-3"
+ className="flex items-center gap-1 text-foreground no-underline md:gap-3"
>
<div className="flex h-[44px] w-[44px] items-center justify-center overflow-hidden rounded-[10px] md:h-[59px] md:w-[59px]">
- <Image
- src="/donkey-logo.svg"
- alt=""
- width={NAV_ICON_SIZE}
- height={NAV_ICON_SIZE}
- sizes={`${NAV_ICON_SIZE}px`}
- className="block h-full w-full object-contain"
- unoptimized
- />
+ <DonkeyMark alt="" />
</div>
<span className="whitespace-nowrap text-lg font-semibold md:text-2xl">
{wordmark}
@@ -91,7 +81,7 @@ export function TopNav({
full-page navigation the sign-in route needs. */}
<a
href={signedOutAuth.logInHref}
- className="hidden whitespace-nowrap text-sm font-semibold text-ink no-underline sm:inline"
+ className="hidden whitespace-nowrap text-sm font-semibold text-foreground no-underline sm:inline"
>
Log in
</a>
@@ -106,7 +96,7 @@ export function TopNav({
) : authToggle ? (
<Link
href={authToggle.href}
- className="whitespace-nowrap text-sm font-semibold text-ink no-underline"
+ className="whitespace-nowrap text-sm font-semibold text-foreground no-underline"
>
{authToggle.label}
</Link>
diff --git a/site/src/app/cut/_components/landing/CutFooter.tsx b/site/src/app/cut/_components/landing/CutFooter.tsx
index ed2462f9..b198fafb 100644
--- a/site/src/app/cut/_components/landing/CutFooter.tsx
+++ b/site/src/app/cut/_components/landing/CutFooter.tsx
@@ -32,17 +32,17 @@ export async function CutFooter() {
];
return (
- <footer className="w-full border-t-2 border-ink py-16 md:py-[80px]">
+ <footer className="w-full border-t-2 border-foreground py-16 md:py-[80px]">
<div className="mx-auto flex max-w-[1400px] flex-col gap-12 px-6 md:flex-row md:flex-wrap md:gap-x-24 md:px-12">
<div className="min-w-[240px] max-w-sm flex-1">
<Link
href="/"
aria-label="Donkey Cut home"
- className="text-[40px] font-semibold text-ink no-underline md:text-[48px]"
+ className="text-[40px] font-semibold text-foreground no-underline md:text-[48px]"
>
Donkey Cut
</Link>
- <p className="mt-6 text-[15px] font-semibold text-ink">
+ <p className="mt-6 text-[15px] font-semibold text-foreground">
Need help? Join us on{" "}
<a
href={DISCORD_URL}
@@ -51,14 +51,14 @@ export async function CutFooter() {
Discord
</a>
</p>
- <p className="mt-6 text-[13px] text-[#666]">
+ <p className="mt-6 text-[13px] text-foreground/70">
2026 Donkey, Inc.
</p>
</div>
<div className="flex flex-1 flex-col gap-10 sm:flex-row sm:flex-wrap sm:gap-x-16 sm:gap-y-12 md:gap-x-20">
{linkGroups.map((group) => (
<div key={group.title} className="flex min-w-[140px] flex-col gap-4">
- <div className="text-[15px] font-semibold text-ink">
+ <div className="text-[15px] font-semibold text-foreground">
{group.title}
</div>
<div className="flex flex-col gap-3">
@@ -66,7 +66,7 @@ export async function CutFooter() {
<Link
key={link.href}
href={link.href}
- className="text-[15px] text-[#666] no-underline transition-colors hover:text-ink"
+ className="text-[15px] text-foreground/70 no-underline transition-colors hover:text-foreground"
>
{link.label}
</Link>
diff --git a/site/src/app/cut/_components/landing/CutHero.tsx b/site/src/app/cut/_components/landing/CutHero.tsx
index 4aa67773..fda0826f 100644
--- a/site/src/app/cut/_components/landing/CutHero.tsx
+++ b/site/src/app/cut/_components/landing/CutHero.tsx
@@ -17,7 +17,7 @@ export function CutHero() {
Finally, a video editor{" "}
<span className="italic">that&apos;s easy.</span>
</h1>
- <p className="mt-6 max-w-[720px] text-[17px] leading-[1.55] text-[#454545]">
+ <p className="mt-6 max-w-[720px] text-[17px] leading-[1.55] text-foreground/70">
Edit with chat, generate images and video, and keep your files on
your own computer. Use your existing Claude or Codex subscription if
you already have one.
diff --git a/site/src/app/cut/_components/landing/CutLanding.tsx b/site/src/app/cut/_components/landing/CutLanding.tsx
index 0ce5e856..2b2d185d 100644
--- a/site/src/app/cut/_components/landing/CutLanding.tsx
+++ b/site/src/app/cut/_components/landing/CutLanding.tsx
@@ -1,4 +1,3 @@
-import { BG, BLACK } from "@/app/_components/landing/theme";
import { CutFinalCTA } from "@/app/cut/_components/landing/CutFinalCTA";
import { CutFooter } from "@/app/cut/_components/landing/CutFooter";
import { CutHero } from "@/app/cut/_components/landing/CutHero";
@@ -14,15 +13,7 @@ import { CutWorksWith } from "@/app/cut/_components/landing/CutWorksWith";
// when signed out, "Go to App" when signed in.
export function CutLanding() {
return (
- <main
- style={{
- minHeight: "100vh",
- background: BG,
- color: BLACK,
- fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
- WebkitFontSmoothing: "antialiased",
- }}
- >
+ <main className="min-h-screen bg-background font-system text-foreground antialiased">
<CutTopNav />
<CutHero />
<CutWorksWith />
diff --git a/site/src/app/cut/_components/landing/CutLocal.tsx b/site/src/app/cut/_components/landing/CutLocal.tsx
index eb190e76..a77ca27c 100644
--- a/site/src/app/cut/_components/landing/CutLocal.tsx
+++ b/site/src/app/cut/_components/landing/CutLocal.tsx
@@ -19,7 +19,7 @@ export function CutLocal() {
<Headline size="lg">
Run Donkey Cut <span className="italic">on your Mac.</span>
</Headline>
- <p className="mt-6 max-w-[560px] text-[17px] leading-[1.55] text-[#454545]">
+ <p className="mt-6 max-w-[560px] text-[17px] leading-[1.55] text-foreground/70">
Edit videos locally on your Mac. The app uses your own storage and
transcribes audio on device.
</p>
diff --git a/site/src/app/cut/_components/landing/CutOpenSource.tsx b/site/src/app/cut/_components/landing/CutOpenSource.tsx
index e7f9aaf5..054c5281 100644
--- a/site/src/app/cut/_components/landing/CutOpenSource.tsx
+++ b/site/src/app/cut/_components/landing/CutOpenSource.tsx
@@ -12,7 +12,7 @@ export function CutOpenSource() {
<Headline size="lg">
Donkey Cut is <span className="italic">open source.</span>
</Headline>
- <p className="mt-6 max-w-[900px] text-[17px] leading-[1.55] text-[#454545]">
+ <p className="mt-6 max-w-[900px] text-[17px] leading-[1.55] text-foreground/70">
The editor and its render engine are built in the open. Read the
source, run it yourself, contribute and make it better.
</p>
diff --git a/site/src/app/cut/_components/landing/CutPricing.tsx b/site/src/app/cut/_components/landing/CutPricing.tsx
index d63d9675..1a4f56f2 100644
--- a/site/src/app/cut/_components/landing/CutPricing.tsx
+++ b/site/src/app/cut/_components/landing/CutPricing.tsx
@@ -31,7 +31,7 @@ export function CutPricing() {
<Headline size="lg">
Simple <span style={{ fontStyle: "italic" }}>pricing</span>
</Headline>
- <p className="mt-6 max-w-[900px] text-[17px] leading-[1.55] text-[#454545]">
+ <p className="mt-6 max-w-[900px] text-[17px] leading-[1.55] text-foreground/70">
The editor is free. Pay only for AI generated media.
</p>
<div
@@ -47,7 +47,7 @@ export function CutPricing() {
<PricingPlanCard key={plan.name} plan={plan} />
))}
</div>
- <p className="mt-6 text-[15px] leading-[1.55] text-[#454545]">
+ <p className="mt-6 text-[15px] leading-[1.55] text-foreground/70">
* Buy credits for AI generated content at any time.
</p>
</section>
diff --git a/site/src/app/cut/_components/landing/CutWorksWith.tsx b/site/src/app/cut/_components/landing/CutWorksWith.tsx
index 56381faf..3683c0d0 100644
--- a/site/src/app/cut/_components/landing/CutWorksWith.tsx
+++ b/site/src/app/cut/_components/landing/CutWorksWith.tsx
@@ -18,14 +18,14 @@ export function CutWorksWith() {
<div className="mt-12 flex items-center justify-center gap-x-6 md:gap-x-24">
{PROVIDERS.map((provider) => (
<div key={provider.name} className="flex items-center gap-2 md:gap-4">
- <img src={provider.logo} alt="" className="size-9 md:size-12" />
+ <img src={provider.logo} alt="" className="size-9 dark:rounded-md dark:bg-cream md:size-12" />
<span className="text-[clamp(20px,6vw,44px)] font-semibold tracking-tight">
{provider.name}
</span>
</div>
))}
</div>
- <p className="mx-auto mt-12 max-w-[720px] text-[17px] leading-[1.55] text-[#454545]">
+ <p className="mx-auto mt-12 max-w-[720px] text-[17px] leading-[1.55] text-foreground/70">
The assistant uses the Claude and Codex apps already signed in on your
Mac. If you have a subscription, you’re done — no setup, no API keys.
</p>
diff --git a/site/src/app/cut/app/layout.tsx b/site/src/app/cut/app/layout.tsx
index 1f827bd0..69507f7c 100644
--- a/site/src/app/cut/app/layout.tsx
+++ b/site/src/app/cut/app/layout.tsx
@@ -8,10 +8,10 @@ import { CutOnboarding } from "@/cut/components/onboarding/CutOnboarding";
import { RequireSession } from "@/cut/components/RequireSession";
import { AppLoading, AppLoadingOverlay, SessionGate } from "@/cut/components/SessionGate";
-// The Cut app (projects home, library, editor) renders on the white product
+// The Cut app (projects home, library, editor) uses the product theme
// surface. The `app-surface` class on this wrapper is what repoints the
// --background token (see globals.css) for the whole document, so the cream
-// landing background is gone from the first painted frame — including the
+// landing background gives way to the product from the first frame, including the
// browser's overscroll area — with no script to run. font-system matches the
// /app system font stack. RequireSession binds the account and redirects
// signed-out visitors to sign-in with their target URL as the callback.
@@ -36,7 +36,7 @@ export default function CutAppLayout({ children }: { children: ReactNode }) {
// around a canvas, so the page keeps its own words and stays standing.
<div
translate="no"
- className="app-surface min-h-screen bg-white font-system text-foreground antialiased"
+ className="app-surface min-h-screen bg-background font-system text-foreground antialiased"
>
<NoSessionReplay />
<NoTranslate />
diff --git a/site/src/app/cut/blog/[slug]/page.tsx b/site/src/app/cut/blog/[slug]/page.tsx
index 0feeb650..df1a59a7 100644
--- a/site/src/app/cut/blog/[slug]/page.tsx
+++ b/site/src/app/cut/blog/[slug]/page.tsx
@@ -100,8 +100,8 @@ function BackLink({ large }: { large?: boolean }) {
href="/blog"
className={
large
- ? "inline-flex items-center gap-2 text-base font-semibold text-ink no-underline transition-colors hover:text-coral"
- : "mb-6 inline-flex items-center gap-2 text-sm text-[#666] no-underline transition-colors hover:text-ink md:mb-8"
+ ? "inline-flex items-center gap-2 text-base font-semibold text-foreground no-underline transition-colors hover:text-coral"
+ : "mb-6 inline-flex items-center gap-2 text-sm text-foreground/70 no-underline transition-colors hover:text-foreground md:mb-8"
}
>
<ArrowLeft className="size-4" />
@@ -128,7 +128,7 @@ async function Post({ params }: Params) {
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(article) }} />
{faq ? <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(faq) }} /> : null}
{post.status !== "PUBLISHED" ? (
- <div className="mb-6 flex flex-wrap items-center justify-between gap-3 rounded-2xl border-2 border-ink bg-coral px-4 py-3 text-sm font-semibold text-ink">
+ <div className="mb-6 flex flex-wrap items-center justify-between gap-3 rounded-2xl border-2 border-foreground bg-coral px-4 py-3 text-sm font-semibold text-ink">
<span>Draft preview. Only you can see this page.</span>
<a href="/api/blog/preview/exit" className="underline underline-offset-2">
Exit preview
@@ -152,8 +152,8 @@ async function Post({ params }: Params) {
))}
</div>
) : null}
- <h1 className="mb-4 text-3xl font-semibold leading-tight text-balance text-ink md:text-5xl">{post.title}</h1>
- <div className="flex flex-wrap items-center gap-2 text-sm text-[#666]">
+ <h1 className="mb-4 text-3xl font-semibold leading-tight text-balance text-foreground md:text-5xl">{post.title}</h1>
+ <div className="flex flex-wrap items-center gap-2 text-sm text-foreground/70">
{post.publishedAt ? <time dateTime={post.publishedAt}>{formatBlogDate(post.publishedAt)}</time> : null}
{revised ? (
<>
@@ -162,7 +162,7 @@ async function Post({ params }: Params) {
</>
) : null}
</div>
- {post.summary ? <p className="mt-5 max-w-[60ch] text-lg leading-8 text-[#454545]">{post.summary}</p> : null}
+ {post.summary ? <p className="mt-5 max-w-[60ch] text-lg leading-8 text-foreground/70">{post.summary}</p> : null}
</header>
<PostArticle slug={slug} />
</div>
@@ -180,12 +180,12 @@ async function Post({ params }: Params) {
function PostSkeleton() {
return (
<div aria-hidden className="animate-pulse" {...{ [BLOG_SKELETON_ATTR]: "" }}>
- <div className="mb-8 h-60 rounded-2xl border-2 border-ink/10 bg-cream" />
+ <div className="mb-8 h-60 rounded-2xl border-2 border-foreground/10 bg-card" />
<div className="max-w-[72ch] space-y-4">
- <div className="h-10 w-3/4 rounded-lg bg-ink/10" />
- <div className="h-4 w-1/3 rounded bg-ink/10" />
- <div className="h-4 w-full rounded bg-ink/10" />
- <div className="h-4 w-5/6 rounded bg-ink/10" />
+ <div className="h-10 w-3/4 rounded-lg bg-foreground/10" />
+ <div className="h-4 w-1/3 rounded bg-foreground/10" />
+ <div className="h-4 w-full rounded bg-foreground/10" />
+ <div className="h-4 w-5/6 rounded bg-foreground/10" />
</div>
</div>
);
diff --git a/site/src/app/cut/blog/_components/BlogCta.tsx b/site/src/app/cut/blog/_components/BlogCta.tsx
index 747020dc..f25a0cd7 100644
--- a/site/src/app/cut/blog/_components/BlogCta.tsx
+++ b/site/src/app/cut/blog/_components/BlogCta.tsx
@@ -27,9 +27,9 @@ export function BlogCTA({
}: BlogCtaProps) {
if (variant === "banner") {
return (
- <div className="not-prose my-10 rounded-2xl border-2 border-ink bg-cream p-8 text-center md:p-10">
- <h2 className="mb-3 text-2xl font-semibold text-ink md:text-3xl">{title}</h2>
- <p className="mx-auto mb-6 max-w-2xl text-base leading-relaxed text-[#454545] md:text-lg">{description}</p>
+ <div className="not-prose my-10 rounded-2xl border-2 border-foreground bg-card p-8 text-center md:p-10">
+ <h2 className="mb-3 text-2xl font-semibold text-foreground md:text-3xl">{title}</h2>
+ <p className="mx-auto mb-6 max-w-2xl text-base leading-relaxed text-foreground/70 md:text-lg">{description}</p>
<PillButton href={buttonHref} size="lg">
{buttonText}
</PillButton>
@@ -37,9 +37,9 @@ export function BlogCTA({
);
}
return (
- <div className="not-prose my-8 rounded-2xl border-2 border-ink bg-cream p-6 md:p-8">
- <h3 className="mb-2 text-lg font-semibold text-ink">{title}</h3>
- <p className="mb-4 text-base leading-relaxed text-[#454545]">{description}</p>
+ <div className="not-prose my-8 rounded-2xl border-2 border-foreground bg-card p-6 md:p-8">
+ <h3 className="mb-2 text-lg font-semibold text-foreground">{title}</h3>
+ <p className="mb-4 text-base leading-relaxed text-foreground/70">{description}</p>
<PillButton href={buttonHref}>{buttonText}</PillButton>
</div>
);
diff --git a/site/src/app/cut/blog/_components/BlogGrid.tsx b/site/src/app/cut/blog/_components/BlogGrid.tsx
index 6e411002..4677405e 100644
--- a/site/src/app/cut/blog/_components/BlogGrid.tsx
+++ b/site/src/app/cut/blog/_components/BlogGrid.tsx
@@ -23,7 +23,7 @@ function TagPills({ tags }: { tags: string[] }) {
function FeaturedCard({ post }: { post: BlogPostCard }) {
return (
<Link href={blogPath(post.slug)} className="group grid gap-6 no-underline lg:grid-cols-2 lg:gap-8">
- <div className="relative aspect-[2/1] overflow-hidden rounded-2xl border-2 border-ink bg-cream">
+ <div className="relative aspect-[2/1] overflow-hidden rounded-2xl border-2 border-foreground bg-card">
{post.thumbnailUrl ? (
// eslint-disable-next-line @next/next/no-img-element -- pre-encoded AVIF from the media host, not Next-optimizable
<img
@@ -36,14 +36,14 @@ function FeaturedCard({ post }: { post: BlogPostCard }) {
) : null}
</div>
<div className="flex flex-col justify-center gap-4">
- <div className="flex flex-wrap items-center gap-x-4 gap-y-2 text-sm text-[#666]">
+ <div className="flex flex-wrap items-center gap-x-4 gap-y-2 text-sm text-foreground/70">
{post.publishedAt ? <time dateTime={post.publishedAt}>{formatBlogDate(post.publishedAt)}</time> : null}
<TagPills tags={post.tags} />
</div>
- <h3 className="text-2xl font-semibold leading-tight text-balance text-ink transition-colors group-hover:text-coral md:text-3xl">
+ <h3 className="text-2xl font-semibold leading-tight text-balance text-foreground transition-colors group-hover:text-coral md:text-3xl">
{post.title}
</h3>
- <p className="text-base leading-relaxed text-[#454545]">{post.excerpt}</p>
+ <p className="text-base leading-relaxed text-foreground/70">{post.excerpt}</p>
</div>
</Link>
);
@@ -53,9 +53,9 @@ function PostCard({ post }: { post: BlogPostCard }) {
return (
<Link
href={blogPath(post.slug)}
- className="group flex flex-col overflow-hidden rounded-2xl border-2 border-ink bg-cream no-underline transition-transform duration-300 hover:-translate-y-1"
+ className="group flex flex-col overflow-hidden rounded-2xl border-2 border-foreground bg-card no-underline transition-transform duration-300 hover:-translate-y-1"
>
- <div className="relative aspect-[16/10] overflow-hidden border-b-2 border-ink bg-white">
+ <div className="relative aspect-[16/10] overflow-hidden border-b-2 border-foreground bg-card">
{post.thumbnailUrl ? (
// eslint-disable-next-line @next/next/no-img-element -- pre-encoded AVIF from the media host, not Next-optimizable
<img
@@ -69,12 +69,12 @@ function PostCard({ post }: { post: BlogPostCard }) {
</div>
<div className="flex flex-1 flex-col p-6">
{post.publishedAt ? (
- <time dateTime={post.publishedAt} className="text-sm text-[#666]">
+ <time dateTime={post.publishedAt} className="text-sm text-foreground/70">
{formatBlogDate(post.publishedAt)}
</time>
) : null}
- <h3 className="my-2 text-xl font-semibold leading-[1.3] text-ink">{post.title}</h3>
- <p className="line-clamp-3 text-[15px] leading-[1.6] text-[#454545]">{post.excerpt}</p>
+ <h3 className="my-2 text-xl font-semibold leading-[1.3] text-foreground">{post.title}</h3>
+ <p className="line-clamp-3 text-[15px] leading-[1.6] text-foreground/70">{post.excerpt}</p>
</div>
</Link>
);
@@ -88,11 +88,11 @@ export function BlogGrid({ posts, featured }: { posts: BlogPostCard[]; featured:
{featured ? <FeaturedCard post={featured} /> : null}
<section>
<div className="mb-8 flex items-center gap-4">
- <h2 className="text-sm font-bold tracking-[0.05em] whitespace-nowrap text-ink uppercase">Latest posts</h2>
- <div className="h-0.5 w-full bg-ink/15" />
+ <h2 className="text-sm font-bold tracking-[0.05em] whitespace-nowrap text-foreground uppercase">Latest posts</h2>
+ <div className="h-0.5 w-full bg-foreground/15" />
</div>
{posts.length === 0 ? (
- <p className="text-[#666]">Nothing here yet.</p>
+ <p className="text-foreground/70">Nothing here yet.</p>
) : (
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-y-8 lg:grid-cols-3">
{posts.map((post) => (
@@ -109,7 +109,7 @@ export function BlogGridSkeleton() {
return (
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-y-8 lg:grid-cols-3" aria-hidden {...{ [BLOG_SKELETON_ATTR]: "" }}>
{Array.from({ length: 6 }, (_, i) => (
- <div key={i} className="aspect-[4/5] animate-pulse rounded-2xl border-2 border-ink/10 bg-cream" />
+ <div key={i} className="aspect-[4/5] animate-pulse rounded-2xl border-2 border-foreground/10 bg-card" />
))}
</div>
);
diff --git a/site/src/app/cut/blog/_components/BlogHeaderImage.tsx b/site/src/app/cut/blog/_components/BlogHeaderImage.tsx
index d452a9e7..8d8c2f59 100644
--- a/site/src/app/cut/blog/_components/BlogHeaderImage.tsx
+++ b/site/src/app/cut/blog/_components/BlogHeaderImage.tsx
@@ -2,7 +2,7 @@
// focus the CMS set so the subject stays in frame on every width.
export function BlogHeaderImage({ src, alt, focus }: { src: string; alt: string; focus: string | null }) {
return (
- <div className="relative mb-6 h-60 w-full overflow-hidden rounded-2xl border-2 border-ink bg-cream md:mb-8">
+ <div className="relative mb-6 h-60 w-full overflow-hidden rounded-2xl border-2 border-foreground bg-card md:mb-8">
{/* eslint-disable-next-line @next/next/no-img-element -- pre-encoded AVIF from the media host, not Next-optimizable */}
<img
src={src}
diff --git a/site/src/app/cut/blog/_components/BlogIndex.tsx b/site/src/app/cut/blog/_components/BlogIndex.tsx
index 2808eee4..812c1eb6 100644
--- a/site/src/app/cut/blog/_components/BlogIndex.tsx
+++ b/site/src/app/cut/blog/_components/BlogIndex.tsx
@@ -12,8 +12,8 @@ export const BLOG_INDEX_DESCRIPTION =
export function BlogHeading() {
return (
<div className="mb-8 max-w-[72ch] md:mb-12">
- <h1 className="text-4xl font-semibold tracking-tight text-ink lg:text-5xl">Blog</h1>
- <p className="mt-4 text-lg text-[#454545]">Notes on editing video, and on building the editor.</p>
+ <h1 className="text-4xl font-semibold tracking-tight text-foreground lg:text-5xl">Blog</h1>
+ <p className="mt-4 text-lg text-foreground/70">Notes on editing video, and on building the editor.</p>
</div>
);
}
@@ -27,7 +27,7 @@ export async function BlogIndex({ page }: { page: number }) {
const slice = posts.slice((page - 1) * BLOG_PAGE_SIZE, page * BLOG_PAGE_SIZE);
return (
<>
- {featured ? <hr className="mb-8 border-ink/15 md:mb-12" /> : null}
+ {featured ? <hr className="mb-8 border-foreground/15 md:mb-12" /> : null}
<BlogGrid posts={slice} featured={featured} />
<BlogPagination current={page} total={total} />
</>
diff --git a/site/src/app/cut/blog/_components/BlogPagination.tsx b/site/src/app/cut/blog/_components/BlogPagination.tsx
index e08a4420..e58ef3d0 100644
--- a/site/src/app/cut/blog/_components/BlogPagination.tsx
+++ b/site/src/app/cut/blog/_components/BlogPagination.tsx
@@ -25,7 +25,7 @@ function PageLink({ page, active, children }: { page: number; active?: boolean;
<Link
href={blogPageHref(page)}
aria-current={active ? "page" : undefined}
- className={cn(link, active ? "border-ink bg-ink text-white" : "border-transparent text-ink hover:border-ink")}
+ className={cn(link, active ? "border-foreground bg-ink text-white" : "border-transparent text-foreground hover:border-foreground")}
>
{children}
</Link>
@@ -44,7 +44,7 @@ export function BlogPagination({ current, total }: { current: number; total: num
) : null}
{pageTokens(current, total).map((token, i) =>
token === "ellipsis" ? (
- <span key={`e${i}`} className="px-2 text-[#666]">
+ <span key={`e${i}`} className="px-2 text-foreground/70">
…
</span>
) : (
diff --git a/site/src/app/cut/blog/_components/BlogShell.tsx b/site/src/app/cut/blog/_components/BlogShell.tsx
index 31b4c6c5..1a45b759 100644
--- a/site/src/app/cut/blog/_components/BlogShell.tsx
+++ b/site/src/app/cut/blog/_components/BlogShell.tsx
@@ -7,7 +7,7 @@ import { CutTopNav } from "@/app/cut/_components/landing/CutTopNav";
// landing's column between them so every page on the host lines up.
export function BlogShell({ children }: { children: ReactNode }) {
return (
- <main className="min-h-screen bg-background font-system text-ink antialiased">
+ <main className="min-h-screen bg-background font-system text-foreground antialiased">
<CutTopNav />
<div className="mx-auto max-w-[1400px] px-6 pt-4 pb-20 md:px-12 md:pt-10 md:pb-28">{children}</div>
<CutFooter />
diff --git a/site/src/app/cut/blog/_components/BlogVideo.tsx b/site/src/app/cut/blog/_components/BlogVideo.tsx
index eeeffd42..9d337018 100644
--- a/site/src/app/cut/blog/_components/BlogVideo.tsx
+++ b/site/src/app/cut/blog/_components/BlogVideo.tsx
@@ -14,13 +14,13 @@ export function BlogVideo({ src, title }: { src: string; title?: string }) {
}
if (source.kind === "file") {
return (
- <div className="not-prose my-6 overflow-hidden rounded-2xl border-2 border-ink bg-ink">
+ <div className="not-prose my-6 overflow-hidden rounded-2xl border-2 border-foreground bg-ink">
<video src={source.src} controls preload="metadata" playsInline className="block aspect-video w-full" />
</div>
);
}
return (
- <div className="not-prose relative my-6 aspect-video w-full overflow-hidden rounded-2xl border-2 border-ink bg-ink">
+ <div className="not-prose relative my-6 aspect-video w-full overflow-hidden rounded-2xl border-2 border-foreground bg-ink">
<iframe
src={source.embedSrc}
title={title ?? (source.kind === "youtube" ? "YouTube video" : "Vimeo video")}
diff --git a/site/src/app/cut/blog/_components/HeadingWithAnchor.tsx b/site/src/app/cut/blog/_components/HeadingWithAnchor.tsx
index 9854b3f6..00436c74 100644
--- a/site/src/app/cut/blog/_components/HeadingWithAnchor.tsx
+++ b/site/src/app/cut/blog/_components/HeadingWithAnchor.tsx
@@ -44,7 +44,7 @@ export function HeadingWithAnchor({
aria-label="Copy link to section"
title="Copy link to section"
>
- <Link2 className="size-4 text-[#666] hover:text-ink" />
+ <Link2 className="size-4 text-foreground/70 hover:text-foreground" />
</button>
) : null}
</Tag>
diff --git a/site/src/app/cut/blog/_components/TableOfContents.tsx b/site/src/app/cut/blog/_components/TableOfContents.tsx
index a6652218..d7193dc4 100644
--- a/site/src/app/cut/blog/_components/TableOfContents.tsx
+++ b/site/src/app/cut/blog/_components/TableOfContents.tsx
@@ -44,15 +44,15 @@ export function TableOfContents({ headings }: { headings: BlogHeading[] }) {
aria-label="On this page"
className="sticky top-24 max-h-[calc(100vh-8rem)] w-full overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
>
- <h3 className="mb-4 text-sm font-semibold text-ink">Overview</h3>
+ <h3 className="mb-4 text-sm font-semibold text-foreground">Overview</h3>
<ul className="space-y-2">
{headings.map((heading) => (
- <li key={heading.id} className={cn(heading.level === 3 && "pl-3", heading.id === "faqs" && "mt-3 border-t border-ink/15 pt-3")}>
+ <li key={heading.id} className={cn(heading.level === 3 && "pl-3", heading.id === "faqs" && "mt-3 border-t border-foreground/15 pt-3")}>
<a
href={`#${heading.id}`}
className={cn(
"block text-sm no-underline",
- activeId === heading.id ? "font-medium text-ink" : "text-[#666] hover:text-ink",
+ activeId === heading.id ? "font-medium text-foreground" : "text-foreground/70 hover:text-foreground",
)}
onClick={(event) => {
event.preventDefault();
diff --git a/site/src/app/cut/blog/_components/mdxComponents.tsx b/site/src/app/cut/blog/_components/mdxComponents.tsx
index ea4dd39b..468373a1 100644
--- a/site/src/app/cut/blog/_components/mdxComponents.tsx
+++ b/site/src/app/cut/blog/_components/mdxComponents.tsx
@@ -10,7 +10,7 @@ import { HeadingWithAnchor } from "@/app/cut/blog/_components/HeadingWithAnchor"
// is a component here: anchored headings, same-tab internal links, and the
// blocks an article can place by name.
export const BLOG_ARTICLE_CLASS =
- "prose prose-neutral max-w-none prose-headings:font-semibold prose-headings:text-ink prose-headings:tracking-normal prose-h2:mt-10 prose-h2:text-2xl prose-h3:mt-8 prose-h3:text-xl prose-p:leading-[1.7] prose-a:font-semibold prose-a:text-ink prose-strong:text-ink prose-blockquote:border-l-coral prose-blockquote:text-[#454545] prose-code:rounded prose-code:bg-ink/5 prose-code:px-1.5 prose-code:py-0.5 prose-code:font-normal prose-code:before:content-none prose-code:after:content-none prose-pre:rounded-2xl prose-pre:border-2 prose-pre:border-ink prose-pre:bg-ink prose-img:rounded-2xl prose-img:border-2 prose-img:border-ink prose-hr:border-ink/15 prose-th:text-ink";
+ "prose prose-neutral dark:prose-invert max-w-none prose-headings:font-semibold prose-headings:text-foreground prose-headings:tracking-normal prose-h2:mt-10 prose-h2:text-2xl prose-h3:mt-8 prose-h3:text-xl prose-p:leading-[1.7] prose-a:font-semibold prose-a:text-foreground prose-strong:text-foreground prose-blockquote:border-l-coral prose-blockquote:text-foreground/70 prose-code:rounded prose-code:bg-foreground/5 prose-code:px-1.5 prose-code:py-0.5 prose-code:font-normal prose-code:before:content-none prose-code:after:content-none prose-pre:rounded-2xl prose-pre:border-2 prose-pre:border-foreground prose-pre:bg-ink prose-img:rounded-2xl prose-img:border-2 prose-img:border-foreground prose-hr:border-foreground/15 prose-th:text-foreground";
function Anchor({ href, children, ...props }: ComponentPropsWithoutRef<"a">) {
if (href && href.startsWith("/") && !href.startsWith("//")) {
diff --git a/site/src/app/cut/s/[token]/SharedProjectView.tsx b/site/src/app/cut/s/[token]/SharedProjectView.tsx
index e8b27fbd..ed49080d 100644
--- a/site/src/app/cut/s/[token]/SharedProjectView.tsx
+++ b/site/src/app/cut/s/[token]/SharedProjectView.tsx
@@ -134,7 +134,7 @@ export function SharedProjectView() {
// inside — the preview's zoom pill, the panel chrome — resolves against the
// cream landing token and the viewer sees a beige editor on a white page.
return (
- <div className="app-surface h-[100dvh] bg-white font-system text-foreground antialiased">
+ <div className="app-surface h-[100dvh] bg-background font-system text-foreground antialiased">
<Suspense>
<SharedProject />
</Suspense>
diff --git a/site/src/app/darkMode.test.ts b/site/src/app/darkMode.test.ts
new file mode 100644
index 00000000..ee928322
--- /dev/null
+++ b/site/src/app/darkMode.test.ts
@@ -0,0 +1,68 @@
+import { describe, expect, test } from "bun:test";
+import { readFileSync } from "node:fs";
+import postcss from "postcss";
+import { createElement } from "react";
+import { renderToStaticMarkup } from "react-dom/server";
+import { EmailAuthForm } from "./_components/landing/EmailAuthForm";
+import { MentionTextarea } from "@/cut/components/AssetRefs";
+import { AiChatSlide } from "@/cut/components/onboarding/slides/AiChat";
+import { TopNav } from "./_components/landing/TopNav";
+
+const css = postcss.parse(readFileSync(new URL("./globals.css", import.meta.url), "utf8"));
+
+// Theme declarations must reach a cold page before any client code runs.
+describe("dark theme", () => {
+ test("the navigation mark carries its supported dark artwork", () => {
+ const html = renderToStaticMarkup(createElement(TopNav));
+ expect(html.includes("/donkey-icon.svg")).toBe(true);
+ });
+
+ test("onboarding copy has a scrim matching the dark surface", () => {
+ const html = renderToStaticMarkup(createElement(AiChatSlide));
+ expect(html.includes("dark:from-background")).toBe(true);
+ expect(html.includes("dark:via-background/85")).toBe(true);
+ });
+
+ test("generation prompt hints use the theme's readable text color", () => {
+ const html = renderToStaticMarkup(createElement(MentionTextarea, {
+ value: "", candidates: [], onChange: () => {}, placeholder: "Describe a shot",
+ }));
+ expect(html.match(/<textarea[^>]+class="([^"]+)"/)?.[1]).toContain("placeholder:text-muted-foreground");
+ });
+
+ test("email auth actions use a paired foreground and surface", () => {
+ for (const mode of ["sign-in", "sign-up"] as const) {
+ const html = renderToStaticMarkup(createElement(EmailAuthForm, { mode }));
+ const button = html.match(/<button[^>]+class="([^"]+)"/)?.[1];
+ expect(button).toContain("bg-primary");
+ expect(button).toContain("text-primary-foreground");
+ }
+ });
+
+ test("system dark mode supplies foreground and surface tokens", () => {
+ const tokens = new Map<string, string>();
+ css.walkAtRules("media", (media) => {
+ if (media.params !== "(prefers-color-scheme: dark)") {
+ return;
+ }
+ media.walkDecls((declaration) => {
+ tokens.set(declaration.prop, declaration.value);
+ });
+ });
+ expect(tokens.get("--foreground")).toBe("oklch(0.985 0 0)");
+ expect(tokens.get("--background")).toBe("oklch(0.145 0 0)");
+ expect(tokens.get("--card")).toBe("oklch(0.205 0 0)");
+ });
+
+ test("the product surface respects the selected theme", () => {
+ const overrides: string[] = [];
+ css.walkRules((rule) => {
+ if (rule.selector.includes("html:has(.app-surface)")) {
+ rule.walkDecls("--background", (declaration) => {
+ overrides.push(declaration.value);
+ });
+ }
+ });
+ expect(overrides).toEqual(["var(--app-background)"]);
+ });
+});
diff --git a/site/src/app/darkModeContrast.test.tsx b/site/src/app/darkModeContrast.test.tsx
new file mode 100644
index 00000000..360842a2
--- /dev/null
+++ b/site/src/app/darkModeContrast.test.tsx
@@ -0,0 +1,124 @@
+import { expect, test } from "bun:test";
+import { readFileSync } from "node:fs";
+import { parseHTML } from "linkedom";
+import postcss from "postcss";
+import { renderToStaticMarkup } from "react-dom/server";
+import ts from "typescript";
+import { EmailAuthForm } from "./_components/landing/EmailAuthForm";
+import { EditorMock } from "@/cut/components/editor-mock/EditorMock";
+import { CreditsSlide } from "@/cut/components/onboarding/slides/Credits";
+
+type Theme = "light" | "dark";
+type Color = [number, number, number, number];
+const css = postcss.parse(readFileSync(new URL("./globals.css", import.meta.url), "utf8"));
+const tokens: Record<Theme, Map<string, string>> = { light: new Map(), dark: new Map() };
+const colors = new Map([["white", "#ffffff"], ["black", "#000000"]]);
+css.walkAtRules("theme", (rule) => {
+ rule.walkDecls((decl) => { colors.set(decl.prop.replace("--color-", ""), decl.value); });
+});
+css.walkRules((rule) => {
+ const theme = rule.selector === ":root" ? "light" : rule.selector === ".dark" ? "dark" : null;
+ if (theme) { rule.walkDecls((decl) => { tokens[theme].set(decl.prop, decl.value); }); }
+});
+
+// Sample the actual components' color utilities against the repository palette.
+// These guards supplement browser checks; they do not implement a CSS cascade.
+function colorOf(name: string, theme: Theme): Color | null {
+ const [key, opacity = "100"] = name.split("/");
+ let value = colors.get(key) ?? (key.startsWith("[#") ? key.slice(1, -1) : "");
+ while (value.startsWith("var(")) {
+ const token = value.slice(4, -1);
+ value = tokens[theme].get(token) ?? tokens.light.get(token) ?? "";
+ }
+ if (value.startsWith("#")) {
+ const hex = value.length === 4 ? value.slice(1).split("").map((c) => c + c).join("") : value.slice(1);
+ return [0, 2, 4].map((i) => parseInt(hex.slice(i, i + 2), 16) / 255).concat(Number(opacity) / 100) as Color;
+ }
+ const neutral = value.match(/^oklch\(([\d.]+) 0 0\)$/);
+ if (!neutral) { return null; }
+ const linear = Number(neutral[1]) ** 3;
+ const channel = linear <= 0.0031308 ? 12.92 * linear : 1.055 * linear ** (1 / 2.4) - 0.055;
+ return [channel, channel, channel, Number(opacity) / 100];
+}
+
+function over(color: Color, background: Color): Color {
+ return [0, 1, 2].map((i) => color[i] * color[3] + background[i] * (1 - color[3])).concat(1) as Color;
+}
+
+function paint(element: Pick<Element, "className">, prefix: string, theme: Theme, state = ""): Color {
+ const classes = element.className.split(/\s+/);
+ const pick = (start: string) => classes.filter((c) => c.startsWith(start)).map((c) => colorOf(c.slice(start.length), theme)).filter((c): c is Color => c !== null).at(-1);
+ const result = (state ? pick(state + prefix) : null) ?? pick(prefix);
+ if (!result) { throw new Error(`Missing color for ${state}${prefix}: ${element.className}`); }
+ return result;
+}
+
+function contrast(a: Color, b: Color): number {
+ const luminance = (color: Color) => color.slice(0, 3).map((c) => c <= 0.04045 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4).reduce((sum, c, i) => sum + c * [0.2126, 0.7152, 0.0722][i], 0);
+ const [low, high] = [luminance(a), luminance(b)].sort((x, y) => x - y);
+ return (high + 0.05) / (low + 0.05);
+}
+
+const pageColor = (theme: Theme) => colorOf("background", theme)!;
+
+test("auth input focus stays distinguishable on its card in both themes", () => {
+ for (const theme of ["light", "dark"] as const) {
+ for (const mode of ["sign-in", "sign-up"] as const) {
+ const { document } = parseHTML(renderToStaticMarkup(<EmailAuthForm mode={mode} />));
+ for (const input of document.querySelectorAll("input")) {
+ const background = over(paint(input, "bg-", theme), pageColor(theme));
+ expect(contrast(over(paint(input, "border-", theme, "focus:"), background), background)).toBeGreaterThanOrEqual(3);
+ }
+ }
+ }
+});
+
+test("showcase labels remain readable in resting, selected and hover states", () => {
+ const { document } = parseHTML(renderToStaticMarkup(<EditorMock />));
+ const buttons = document.querySelectorAll("button[aria-pressed]");
+ expect(buttons.length).toBeGreaterThan(1);
+ for (const theme of ["light", "dark"] as const) {
+ for (const button of buttons) {
+ for (const state of ["", "hover:"]) {
+ const background = over(paint(button, "bg-", theme, state), pageColor(theme));
+ expect(contrast(over(paint(button, "text-", theme, state), background), background)).toBeGreaterThanOrEqual(4.5);
+ }
+ }
+ }
+});
+
+test("credit expiry text remains readable against both onboarding surfaces", () => {
+ const { document } = parseHTML(renderToStaticMarkup(<CreditsSlide credits="5" expiresAt="2026-11-01T00:00:00Z" />));
+ const expiry = Array.from(document.querySelectorAll("p")).find((p) => p.textContent?.startsWith("Expires "))!;
+ expect(expiry).toBeDefined();
+ for (const theme of ["light", "dark"] as const) {
+ const background = theme === "light" ? colorOf("cream", theme)! : pageColor(theme);
+ expect(contrast(over(paint(expiry, "text-", theme), background), background)).toBeGreaterThanOrEqual(4.5);
+ }
+});
+
+test("article loading bars remain visible against both blog surfaces", () => {
+ // Inspect the private fallback without executing its server data reads.
+ const text = readFileSync(new URL("./cut/blog/[slug]/page.tsx", import.meta.url), "utf8");
+ const source = ts.createSourceFile("page.tsx", text, ts.ScriptTarget.Latest, true, ts.ScriptKind.TSX);
+ const node = source.statements.find((s) => ts.isFunctionDeclaration(s) && s.name?.text === "PostSkeleton")!;
+ const bars: { className: string }[] = [];
+ function visit(child: ts.Node): void {
+ if (ts.isJsxAttribute(child) && child.name.getText(source) === "className" && child.initializer && ts.isStringLiteral(child.initializer)) {
+ const classes = child.initializer.text;
+ if (classes.split(/\s+/).some((c) => c === "h-4" || c === "h-10")) {
+ bars.push({ className: classes });
+ }
+ }
+ child.forEachChild(visit);
+ }
+ node.forEachChild(visit);
+ expect(bars.length).toBe(4);
+ for (const theme of ["light", "dark"] as const) {
+ const background = pageColor(theme);
+ for (const bar of bars) {
+ // A visibility regression guard for decoration, separate from text AA.
+ expect(contrast(over(paint(bar, "bg-", theme), background), background)).toBeGreaterThan(1.2);
+ }
+ }
+});
diff --git a/site/src/app/globals.css b/site/src/app/globals.css
index fab435cb..5f1e11bf 100644
--- a/site/src/app/globals.css
+++ b/site/src/app/globals.css
@@ -4,7 +4,13 @@
@plugin "@tailwindcss/typography";
-@custom-variant dark (&:is(.dark *));
+/* Explicit themes and the system preference share the same utilities. */
+@custom-variant dark {
+ &:where(.dark, .dark *) { @slot; }
+ @media (prefers-color-scheme: dark) {
+ &:where(:root:not(.light), :root:not(.light) *) { @slot; }
+ }
+}
@theme inline {
--color-background: var(--background);
@@ -43,6 +49,8 @@
}
:root {
+ color-scheme: light;
+ --app-background: oklch(1 0 0);
--background: #F5EFE0;
--foreground: oklch(0.145 0 0);
--card: oklch(1 0 0);
@@ -70,6 +78,8 @@
}
.dark {
+ color-scheme: dark;
+ --app-background: oklch(0.145 0 0);
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.205 0 0);
@@ -93,18 +103,40 @@
--ring: oklch(0.556 0 0);
}
-/* App theme: the signed-in /app surface renders on white; the cream is the
- landing theme. The app layout marks its wrapper `.app-surface`, and this rule
- repoints the token on the document as soon as that element parses — no script,
- so the first painted frame is already the product surface and a session replay
- shows the same colors the visitor saw. Defined unlayered (like :root, the
- landing theme) so it wins the cascade — an @layer base rule would lose to the
- unlayered :root no matter its specificity. This one token flows everywhere
- keyed to bg-background: the html/overscroll area, body, and every shadcn
- component (e.g. the outline button variant). CSS variables inherit from html,
- so portaled dialogs pick it up too. */
+/* CSS selects the system theme before the first paint. */
+@media (prefers-color-scheme: dark) {
+ :root:not(.light) {
+ color-scheme: dark;
+ --app-background: oklch(0.145 0 0);
+ --background: oklch(0.145 0 0);
+ --foreground: oklch(0.985 0 0);
+ --card: oklch(0.205 0 0);
+ --card-foreground: oklch(0.985 0 0);
+ --popover: oklch(0.205 0 0);
+ --popover-foreground: oklch(0.985 0 0);
+ --primary: oklch(0.922 0 0);
+ --primary-foreground: oklch(0.205 0 0);
+ --secondary: oklch(0.269 0 0);
+ --secondary-foreground: oklch(0.985 0 0);
+ --muted: oklch(0.269 0 0);
+ --muted-foreground: oklch(0.708 0 0);
+ --accent: oklch(0.269 0 0);
+ --accent-foreground: oklch(0.985 0 0);
+ --skeleton: oklch(0.3 0 0);
+ --skeleton-pulse: oklch(0.26 0 0);
+ --skeleton-highlight: oklch(0.38 0 0);
+ --destructive: oklch(0.704 0.191 22.216);
+ --border: oklch(1 0 0 / 10%);
+ --input: oklch(1 0 0 / 15%);
+ --ring: oklch(0.556 0 0);
+ }
+}
+
+/* Product pages use a white surface in light mode and the dark page surface
+ in dark mode. Repointing the document token covers overscroll and portaled
+ dialogs as soon as the app wrapper parses. */
html:has(.app-surface) {
- --background: oklch(1 0 0);
+ --background: var(--app-background);
}
@layer base {
@@ -114,6 +146,12 @@ html:has(.app-surface) {
body {
@apply bg-background text-foreground;
}
+ /* Form hints stay legible on the page's selected surface. */
+ input::placeholder,
+ textarea::placeholder {
+ @apply text-muted-foreground;
+ opacity: 1;
+ }
h1,
h2,
h3,
diff --git a/site/src/app/install/_components/InstallInstructions.tsx b/site/src/app/install/_components/InstallInstructions.tsx
index b52329fb..b3bd2c8b 100644
--- a/site/src/app/install/_components/InstallInstructions.tsx
+++ b/site/src/app/install/_components/InstallInstructions.tsx
@@ -6,7 +6,6 @@ import {
PillButton,
} from "@/app/_components/landing/LandingPrimitives";
import { DONKEY_DOWNLOAD_URL } from "@/app/_components/landing/data";
-import { BG, BLACK } from "@/app/_components/landing/theme";
type InstallStep = {
body: string;
@@ -42,13 +41,7 @@ const installSteps = [
export function InstallInstructions() {
return (
- <section
- style={{
- background: BG,
- color: BLACK,
- padding: "clamp(44px, 7vw, 88px) clamp(20px, 4vw, 48px) clamp(80px, 9vw, 128px)",
- }}
- >
+ <section className="bg-background px-[clamp(20px,4vw,48px)] pt-[clamp(44px,7vw,88px)] pb-[clamp(80px,9vw,128px)] text-foreground">
<div style={{ margin: "0 auto", maxWidth: 1280 }}>
<Headline>
Install Donkey
@@ -56,8 +49,8 @@ export function InstallInstructions() {
<span style={{ fontStyle: "italic" }}>on your Mac.</span>
</Headline>
<p
+ className="text-foreground/70"
style={{
- color: "#454545",
fontSize: "clamp(16px, 1.8vw, 18px)",
lineHeight: 1.6,
margin: "24px 0 32px",
diff --git a/site/src/app/install/page.tsx b/site/src/app/install/page.tsx
index e7b7596c..ce3348f6 100644
--- a/site/src/app/install/page.tsx
+++ b/site/src/app/install/page.tsx
@@ -1,6 +1,5 @@
import type { Metadata } from "next";
-import { BG, BLACK } from "@/app/_components/landing/theme";
import { CutFooter } from "@/app/cut/_components/landing/CutFooter";
import { CutTopNav } from "@/app/cut/_components/landing/CutTopNav";
import { InstallInstructions } from "@/app/install/_components/InstallInstructions";
@@ -18,15 +17,7 @@ export const instant = true;
// header and footer.
export default function InstallPage() {
return (
- <main
- style={{
- minHeight: "100vh",
- background: BG,
- color: BLACK,
- fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
- WebkitFontSmoothing: "antialiased",
- }}
- >
+ <main className="min-h-screen bg-background font-system text-foreground antialiased">
<CutTopNav />
<InstallInstructions />
<CutFooter />
diff --git a/site/src/app/legal/LegalPageShell.tsx b/site/src/app/legal/LegalPageShell.tsx
index 0052896f..8a7cbdf5 100644
--- a/site/src/app/legal/LegalPageShell.tsx
+++ b/site/src/app/legal/LegalPageShell.tsx
@@ -9,10 +9,10 @@ type Props = {
export function LegalPageShell({ children }: Props) {
return (
- <main className="min-h-screen bg-[#F5EFE0] text-[#0F0E0D] antialiased [font-family:-apple-system,BlinkMacSystemFont,'Segoe_UI',sans-serif]">
+ <main className="min-h-screen bg-background text-foreground antialiased [font-family:-apple-system,BlinkMacSystemFont,'Segoe_UI',sans-serif]">
<TopNav wordmark="Donkey Cut" />
<section className="mx-auto box-border w-full max-w-5xl px-6 py-12 md:px-10 md:py-20">
- <article className="prose prose-neutral max-w-none prose-headings:font-semibold prose-headings:tracking-normal prose-h1:text-5xl prose-h1:leading-none prose-h2:mt-12 prose-h2:border-t prose-h2:border-black/15 prose-h2:pt-8 prose-a:font-semibold prose-a:text-black prose-strong:text-black md:prose-h1:text-7xl">
+ <article className="prose prose-neutral dark:prose-invert max-w-none prose-headings:font-semibold prose-headings:tracking-normal prose-h1:text-5xl prose-h1:leading-none prose-h2:mt-12 prose-h2:border-t prose-h2:border-foreground/15 prose-h2:pt-8 prose-a:font-semibold prose-a:text-foreground prose-strong:text-foreground md:prose-h1:text-7xl">
{children}
</article>
</section>
diff --git a/site/src/components/DonkeyMark.tsx b/site/src/components/DonkeyMark.tsx
new file mode 100644
index 00000000..a7cbd896
--- /dev/null
+++ b/site/src/components/DonkeyMark.tsx
@@ -0,0 +1,23 @@
+import "./donkey-mark.css";
+
+type Props = {
+ alt?: string;
+ context?: "navigation" | "toolbar";
+};
+
+const LIGHTS = ["a-wide", "b-wide", "c-wide", "a", "b", "c"];
+
+/** The original mark in light mode, with the guide's backlight in dark mode. */
+export function DonkeyMark({ alt = "", context = "navigation" }: Props) {
+ return (
+ <span className={`donkey-mark ${context === "toolbar" ? "donkey-mark--toolbar" : ""}`}>
+ <span aria-hidden className="donkey-mark__stage hidden dark:block" />
+ {LIGHTS.map((light) => (
+ <span key={light} aria-hidden className={`donkey-mark__glow donkey-mark__glow--${light} hidden dark:block`} />
+ ))}
+ <span aria-hidden className="donkey-mark__vignette hidden dark:block" />
+ <img src="/donkey-logo.svg" alt={alt} width={264} height={318} className="relative block h-full w-full object-contain dark:hidden" />
+ <img src="/donkey-icon.svg" alt={alt} width={264} height={318} className="relative hidden h-full w-full object-contain dark:block" />
+ </span>
+ );
+}
diff --git a/site/src/components/donkey-mark.css b/site/src/components/donkey-mark.css
new file mode 100644
index 00000000..7894961a
--- /dev/null
+++ b/site/src/components/donkey-mark.css
@@ -0,0 +1,61 @@
+/* The backlit-icon guide's geometry scales with the fitted artwork. */
+.donkey-mark {
+ position: relative;
+ display: block;
+ width: 100%;
+ height: 100%;
+ container-type: size;
+ isolation: isolate;
+ --donkey-bloom-strength: 1;
+}
+
+.donkey-mark--toolbar {
+ --donkey-bloom-strength: 0.5;
+}
+
+.donkey-mark__stage,
+.donkey-mark__vignette,
+.donkey-mark__glow {
+ position: absolute;
+ inset: 0;
+ pointer-events: none;
+}
+
+.donkey-mark__stage {
+ background: #000000;
+}
+
+.donkey-mark__vignette {
+ background: radial-gradient(circle at 50% 50%, transparent 25%, rgb(0 0 0 / 0.37) 100%);
+}
+
+.donkey-mark__glow {
+ --s: min(100cqw, calc(100cqh * 264 / 318));
+ --halo: calc(var(--s) * 0.030);
+ --bloom: calc(var(--s) * 0.088);
+ background: #ffffff;
+ mask: url(/donkey-silhouette.svg) center / contain no-repeat;
+ -webkit-mask: url(/donkey-silhouette.svg) center / contain no-repeat;
+}
+
+.donkey-mark__glow--a,
+.donkey-mark__glow--a-wide {
+ translate: calc(var(--s) * -0.0297) calc(var(--s) * 0.0043);
+}
+
+.donkey-mark__glow--b,
+.donkey-mark__glow--b-wide {
+ translate: calc(var(--s) * -0.0095) calc(var(--s) * -0.0285);
+}
+
+.donkey-mark__glow--c,
+.donkey-mark__glow--c-wide {
+ translate: calc(var(--s) * 0.0190) calc(var(--s) * 0.0232);
+}
+
+.donkey-mark__glow--a { filter: blur(var(--halo)); opacity: 0.80; }
+.donkey-mark__glow--b { filter: blur(var(--halo)); opacity: 0.62; }
+.donkey-mark__glow--c { filter: blur(var(--halo)); opacity: 0.35; }
+.donkey-mark__glow--a-wide { filter: blur(var(--bloom)); opacity: calc(0.192 * var(--donkey-bloom-strength)); }
+.donkey-mark__glow--b-wide { filter: blur(var(--bloom)); opacity: calc(0.149 * var(--donkey-bloom-strength)); }
+.donkey-mark__glow--c-wide { filter: blur(var(--bloom)); opacity: calc(0.084 * var(--donkey-bloom-strength)); }
diff --git a/site/src/cut/components/AppSidebar.tsx b/site/src/cut/components/AppSidebar.tsx
index c06bb1a1..9f9db705 100644
--- a/site/src/cut/components/AppSidebar.tsx
+++ b/site/src/cut/components/AppSidebar.tsx
@@ -1,5 +1,6 @@
"use client";
+import { DonkeyMark } from "@/components/DonkeyMark";
import { useState } from "react";
import { useQueryClient } from "@tanstack/react-query";
import Link from "next/link";
@@ -87,13 +88,7 @@ export function AppSidebar() {
<aside className="flex w-60 shrink-0 flex-col border-r border-border bg-card px-3 py-4">
<div className="mb-5 flex items-center gap-2.5 px-2">
<span className="grid size-9 shrink-0 place-items-center p-0.5">
- <img
- src="/donkey-logo.svg"
- alt="Donkey Cut"
- width={36}
- height={36}
- className="block h-full w-full object-contain"
- />
+ <DonkeyMark alt="Donkey Cut" />
</span>
<span className="text-[17px] font-semibold tracking-tight">Donkey Cut</span>
</div>
diff --git a/site/src/cut/components/AssetRefs.tsx b/site/src/cut/components/AssetRefs.tsx
index 4a8911f8..117889b2 100644
--- a/site/src/cut/components/AssetRefs.tsx
+++ b/site/src/cut/components/AssetRefs.tsx
@@ -1615,7 +1615,7 @@ export function MentionTextarea({
// While a pill is picked whole, the pill's ring is the selection
// highlight — the browser's own selection paint would spill out
// around the cover as a bare blue rectangle.
- className={cn(className, "relative block bg-transparent", anyPicked && "selection:bg-transparent")}
+ className={cn(className, "relative block bg-transparent placeholder:text-muted-foreground", anyPicked && "selection:bg-transparent")}
rows={rows}
placeholder={placeholder}
value={value}
diff --git a/site/src/cut/components/NoteBodyEditor.tsx b/site/src/cut/components/NoteBodyEditor.tsx
index cadb9cbc..548850d2 100644
--- a/site/src/cut/components/NoteBodyEditor.tsx
+++ b/site/src/cut/components/NoteBodyEditor.tsx
@@ -1,6 +1,6 @@
"use client";
-import { useEffect, useRef, useState, type ReactNode } from "react";
+import { useEffect, useRef, useState, type ReactNode, type CSSProperties } from "react";
import { EditorContent, useEditor, useEditorState, type Editor } from "@tiptap/react";
import { BubbleMenu } from "@tiptap/react/menus";
import StarterKit from "@tiptap/starter-kit";
@@ -142,7 +142,7 @@ export default function NoteBodyEditor({
"[&_li[data-checked=true]>div]:line-through [&_li[data-checked=true]>div]:opacity-50",
"[&_input[type=checkbox]]:size-4 [&_input[type=checkbox]]:cursor-pointer [&_input[type=checkbox]]:accent-current",
"[&_blockquote]:border-l-[3px] [&_blockquote]:border-current [&_blockquote]:pl-4",
- "[&_.is-editor-empty:first-child]:before:pointer-events-none [&_.is-editor-empty:first-child]:before:float-left [&_.is-editor-empty:first-child]:before:h-0 [&_.is-editor-empty:first-child]:before:opacity-40 [&_.is-editor-empty:first-child]:before:content-[attr(data-placeholder)]",
+ "[&_.is-editor-empty:first-child]:before:pointer-events-none [&_.is-editor-empty:first-child]:before:float-left [&_.is-editor-empty:first-child]:before:h-0 [&_.is-editor-empty:first-child]:before:opacity-70 [&_.is-editor-empty:first-child]:before:content-[attr(data-placeholder)]",
)}
style={{ color: ink }}
>
@@ -183,7 +183,7 @@ function Toolbar({ editor }: { editor: Editor }) {
<BubbleMenu
editor={editor}
options={{ placement: "top-start", offset: 8, onHide: () => setPanel(null) }}
- className="z-[60] flex items-center gap-0.5 rounded-lg border border-black/10 bg-white p-1 text-sm text-neutral-800 shadow-lg"
+ className="z-[60] flex items-center gap-0.5 rounded-lg border border-border bg-popover p-1 text-sm text-popover-foreground shadow-lg"
onMouseDown={keep}
>
<Menu
@@ -222,14 +222,14 @@ function Toolbar({ editor }: { editor: Editor }) {
open={panel === "color"}
onToggle={() => setPanel(panel === "color" ? null : "color")}
label="Text color"
- trigger={<><span className="font-semibold" style={{ color: color?.paper }}>A</span><ChevronDown className="size-3.5 opacity-50" /></>}
+ trigger={<><span className="font-semibold text-(--note-menu-color) dark:text-(--note-menu-color-dark)" style={{ "--note-menu-color": color?.paper, "--note-menu-color-dark": color?.dark } as CSSProperties}>A</span><ChevronDown className="size-3.5 opacity-50" /></>}
>
<MenuItem checked={!color} onPick={() => { editor.chain().focus().unsetMark("textColor").run(); setPanel(null); }}>
<span className="w-4 text-center font-semibold">A</span> Default
</MenuItem>
{NOTE_TEXT_COLORS.map((c) => (
<MenuItem key={c.id} checked={c.id === state.color} onPick={() => { editor.chain().focus().setMark("textColor", { color: c.id }).run(); setPanel(null); }}>
- <span className="w-4 text-center font-semibold" style={{ color: c.paper }}>A</span> {c.name}
+ <span className="w-4 text-center font-semibold text-(--note-menu-color) dark:text-(--note-menu-color-dark)" style={{ "--note-menu-color": c.paper, "--note-menu-color-dark": c.dark } as CSSProperties}>A</span> {c.name}
</MenuItem>
))}
</Menu>
@@ -237,7 +237,7 @@ function Toolbar({ editor }: { editor: Editor }) {
);
}
-const Divider = () => <div className="mx-0.5 h-5 w-px bg-black/10" />;
+const Divider = () => <div className="mx-0.5 h-5 w-px bg-foreground/10" />;
function Toggle({ label, on, onPress, children }: { label: string; on: boolean; onPress: () => void; children: ReactNode }) {
return (
@@ -245,7 +245,7 @@ function Toggle({ label, on, onPress, children }: { label: string; on: boolean;
type="button"
aria-label={label}
aria-pressed={on}
- className={cn("grid size-7 cursor-pointer place-items-center rounded-md hover:bg-black/5", on && "bg-black/10 hover:bg-black/10")}
+ className={cn("grid size-7 cursor-pointer place-items-center rounded-md hover:bg-foreground/5", on && "bg-foreground/10 hover:bg-foreground/10")}
onClick={onPress}
>
{children}
@@ -263,13 +263,13 @@ function Menu({ open, onToggle, label, trigger, fit = "label", children }: { ope
type="button"
aria-label={label}
aria-expanded={open}
- className={cn("flex h-7 cursor-pointer items-center gap-1 rounded-md hover:bg-black/5", fit === "icon" ? "px-1" : "px-2", open && "bg-black/5")}
+ className={cn("flex h-7 cursor-pointer items-center gap-1 rounded-md hover:bg-foreground/5", fit === "icon" ? "px-1" : "px-2", open && "bg-foreground/5")}
onClick={onToggle}
>
{trigger}
</button>
{open && (
- <div role="menu" className="absolute top-full left-0 mt-1.5 w-44 rounded-lg border border-black/10 bg-white p-1 shadow-lg">
+ <div role="menu" className="absolute top-full left-0 mt-1.5 w-44 rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-lg">
{children}
</div>
)}
@@ -283,7 +283,7 @@ function MenuItem({ checked, onPick, children }: { checked: boolean; onPick: ()
type="button"
role="menuitemradio"
aria-checked={checked}
- className="flex w-full cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-left hover:bg-black/5"
+ className="flex w-full cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-left hover:bg-foreground/5"
onClick={onPick}
>
<span className="flex min-w-0 flex-1 items-center gap-2">{children}</span>
diff --git a/site/src/cut/components/NoteComposer.tsx b/site/src/cut/components/NoteComposer.tsx
index 611ce086..2a470e59 100644
--- a/site/src/cut/components/NoteComposer.tsx
+++ b/site/src/cut/components/NoteComposer.tsx
@@ -273,7 +273,7 @@ export function NoteComposer({
rows={1}
value={draft.title}
placeholder="Untitled"
- className="resize-none overflow-hidden bg-transparent text-4xl leading-tight font-semibold tracking-tight outline-none placeholder:opacity-30"
+ className="resize-none overflow-hidden bg-transparent text-4xl leading-tight font-semibold tracking-tight outline-none placeholder:text-current placeholder:opacity-60"
style={{ color: NOTE_INK }}
onChange={(e) => onChange({ ...draft, title: e.target.value.replace(/\n/g, "") })}
onKeyDown={(e) => {
@@ -301,7 +301,7 @@ export function NoteComposer({
<PopoverTrigger
render={
<button
- className="flex cursor-pointer items-center gap-1 rounded-full px-2.5 py-1 text-xs font-medium opacity-50 hover:bg-black/10 hover:opacity-80"
+ className="flex cursor-pointer items-center gap-1 rounded-full px-2.5 py-1 text-xs font-medium opacity-70 hover:bg-black/10 hover:opacity-80"
aria-label="Add label"
/>
}
diff --git a/site/src/cut/components/ShareDialog.tsx b/site/src/cut/components/ShareDialog.tsx
index 59210b51..c10b0826 100644
--- a/site/src/cut/components/ShareDialog.tsx
+++ b/site/src/cut/components/ShareDialog.tsx
@@ -236,7 +236,7 @@ export function ShareDialog(props: ShareResource & { onClose: () => void }) {
<button
disabled={busy}
aria-label={`Remove ${email}`}
- className="grid size-4 place-items-center rounded-full text-muted-foreground hover:bg-black/10 hover:text-foreground"
+ className="grid size-4 place-items-center rounded-full text-muted-foreground hover:bg-foreground/10 hover:text-foreground"
onClick={() => removeEmail(email)}
>
<X className="size-2.5" />
diff --git a/site/src/cut/components/TopBar.tsx b/site/src/cut/components/TopBar.tsx
index 96826bf4..7a8aff69 100644
--- a/site/src/cut/components/TopBar.tsx
+++ b/site/src/cut/components/TopBar.tsx
@@ -1,5 +1,6 @@
"use client";
+import { DonkeyMark } from "@/components/DonkeyMark";
import { useEffect, useRef, useState } from "react";
import Link from "next/link";
import { useQueryClient } from "@tanstack/react-query";
@@ -469,13 +470,7 @@ export function TopBar({
// carries the project name alone.
const logo = chatgpt ? null : (
<span className="grid size-[22px] shrink-0 place-items-center">
- <img
- src="/donkey-logo.svg"
- alt="Donkey"
- width={22}
- height={22}
- className="block h-full w-full object-contain"
- />
+ <DonkeyMark alt="Donkey" context="toolbar" />
</span>
);
diff --git a/site/src/cut/components/ViewerTopBar.tsx b/site/src/cut/components/ViewerTopBar.tsx
index 2431a22d..5d4cffde 100644
--- a/site/src/cut/components/ViewerTopBar.tsx
+++ b/site/src/cut/components/ViewerTopBar.tsx
@@ -1,5 +1,6 @@
"use client";
+import { DonkeyMark } from "@/components/DonkeyMark";
import { useState } from "react";
import { Copy, Loader2, Sparkles } from "lucide-react";
import { authHrefFor } from "@/app/_components/landing/useAppEntryHref";
@@ -70,13 +71,7 @@ export function ViewerTopBar({ chatStatus }: { chatStatus: ChatStatus }) {
<header className="relative flex items-center justify-between border-b border-border bg-card pr-3 pl-3">
<div className="flex min-w-0 items-center gap-1">
<span className="grid size-[22px] shrink-0 place-items-center">
- <img
- src="/donkey-logo.svg"
- alt="Donkey"
- width={22}
- height={22}
- className="block h-full w-full object-contain"
- />
+ <DonkeyMark alt="Donkey" context="toolbar" />
</span>
<span className="ml-1.5 max-w-64 truncate px-2 py-1 text-sm font-medium tracking-tight">
{projectName}
diff --git a/site/src/cut/components/editor-mock/EditorMock.tsx b/site/src/cut/components/editor-mock/EditorMock.tsx
index ca531f7e..a3f577ab 100644
--- a/site/src/cut/components/editor-mock/EditorMock.tsx
+++ b/site/src/cut/components/editor-mock/EditorMock.tsx
@@ -173,14 +173,14 @@ export function EditorMock({
onClick={() => setActive(i)}
aria-pressed={i === active}
className={cn(
- "flex items-center gap-1.5 rounded-full border border-ink px-2.5 py-3 text-xs font-medium transition-colors",
- i === active ? "bg-ink text-white" : "bg-white text-ink hover:bg-ink/5",
+ "flex items-center gap-1.5 rounded-full border border-border px-2.5 py-3 text-xs font-medium transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foreground",
+ i === active ? "bg-primary text-primary-foreground" : "bg-card text-card-foreground hover:bg-accent hover:text-accent-foreground",
)}
>
<span
className={cn(
"size-1.5 rounded-full",
- i === active ? "bg-coral" : "bg-ink/25",
+ i === active ? "bg-coral" : "bg-foreground/25",
)}
/>
{p.switcherLabel}
diff --git a/site/src/cut/components/editor-mock/MockAiPanel.tsx b/site/src/cut/components/editor-mock/MockAiPanel.tsx
index cf212197..18b9e5ea 100644
--- a/site/src/cut/components/editor-mock/MockAiPanel.tsx
+++ b/site/src/cut/components/editor-mock/MockAiPanel.tsx
@@ -52,7 +52,7 @@ export function MockAiPanel({ project }: { project: MockProject }) {
{/* The real composer is bg-background, which the app surface paints
white; on the cream landing that token stays cream, so the mock
pins white directly. */}
- <div className="rounded-xl border border-input bg-white">
+ <div className="rounded-xl border border-input bg-background">
<div className="min-h-9 px-3 pt-2 text-[12.5px] leading-relaxed text-muted-foreground/70">
Ask about your video, or tell me what to change… @ references media
</div>
diff --git a/site/src/cut/components/editor-mock/MockTopBar.tsx b/site/src/cut/components/editor-mock/MockTopBar.tsx
index e28c10d2..60cb5459 100644
--- a/site/src/cut/components/editor-mock/MockTopBar.tsx
+++ b/site/src/cut/components/editor-mock/MockTopBar.tsx
@@ -1,5 +1,6 @@
"use client";
+import { DonkeyMark } from "@/components/DonkeyMark";
import {
Check,
ChevronDown,
@@ -35,13 +36,7 @@ export function MockTopBar({ project }: { project: MockProject }) {
<ChevronLeft className="size-4" />
</span>
<span className="grid size-[22px] shrink-0 place-items-center">
- <img
- src="/donkey-logo.svg"
- alt=""
- width={22}
- height={22}
- className="block h-full w-full object-contain"
- />
+ <DonkeyMark alt="" context="toolbar" />
</span>
<span className="ml-1.5 max-w-64 truncate rounded-md px-2 py-1 text-sm font-medium tracking-tight">
{project.name}
diff --git a/site/src/cut/components/onboarding/CutOnboarding.tsx b/site/src/cut/components/onboarding/CutOnboarding.tsx
index fc9703b2..4b3f6095 100644
--- a/site/src/cut/components/onboarding/CutOnboarding.tsx
+++ b/site/src/cut/components/onboarding/CutOnboarding.tsx
@@ -1,5 +1,6 @@
"use client";
+import { DonkeyMark } from "@/components/DonkeyMark";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { ArrowLeft, ArrowRight } from "lucide-react";
@@ -245,13 +246,7 @@ export function CutOnboarding() {
const lockup = (
<span className="flex items-center gap-0">
<span className="flex size-[59px] shrink-0 items-center justify-center overflow-hidden rounded-[10px]">
- <img
- src="/donkey-logo.svg"
- alt=""
- width={59}
- height={59}
- className="block h-full w-full object-contain"
- />
+ <DonkeyMark alt="" />
</span>
<span className="text-2xl font-semibold">Donkey Cut</span>
</span>
@@ -268,7 +263,7 @@ export function CutOnboarding() {
if (!run) {
const waiting = isPending && !skipWait;
return waiting ? (
- <div className="fixed inset-0 z-[80] flex flex-col bg-cream font-system text-ink antialiased">
+ <div className="fixed inset-0 z-[80] flex flex-col bg-cream font-system text-foreground antialiased dark:bg-background">
<div className="flex shrink-0 items-center justify-between px-6 py-2 md:px-10 md:py-2.5">
{lockup}
</div>
@@ -295,7 +290,7 @@ export function CutOnboarding() {
role="dialog"
aria-modal="true"
aria-label="Welcome to Donkey Cut"
- className="fixed inset-0 z-[80] flex flex-col bg-cream font-system text-ink antialiased"
+ className="fixed inset-0 z-[80] flex flex-col bg-cream font-system text-foreground antialiased dark:bg-background"
>
<div className="flex shrink-0 items-center justify-between px-6 py-2 md:px-10 md:py-2.5">
{lockup}
@@ -307,7 +302,7 @@ export function CutOnboarding() {
<Button
variant="ghost"
onClick={() => finish(true)}
- className="text-[#454545]"
+ className="text-foreground/70"
>
Skip
</Button>
@@ -346,7 +341,7 @@ export function CutOnboarding() {
<Button
variant="ghost"
onClick={back}
- className={cn("gap-1.5 text-[#454545]", step === 0 && "invisible")}
+ className={cn("gap-1.5 text-foreground/70", step === 0 && "invisible")}
>
<ArrowLeft className="size-4" /> Back
</Button>
@@ -357,7 +352,7 @@ export function CutOnboarding() {
key={i}
className={cn(
"size-1.5 rounded-full transition-colors",
- i === step ? "bg-coral" : "bg-ink/20",
+ i === step ? "bg-coral" : "bg-foreground/20",
)}
/>
))}
@@ -371,7 +366,7 @@ export function CutOnboarding() {
onClick={advance}
disabled={slide === "referral" && !referrals.length}
className={cn(
- "gap-1.5 rounded-full bg-ink px-5 text-white hover:bg-ink/90",
+ "gap-1.5 rounded-full bg-primary px-5 text-primary-foreground hover:bg-primary/90",
last && !done && "invisible",
)}
>
diff --git a/site/src/cut/components/onboarding/slides/AiChat.tsx b/site/src/cut/components/onboarding/slides/AiChat.tsx
index c8057ac8..9e62ee87 100644
--- a/site/src/cut/components/onboarding/slides/AiChat.tsx
+++ b/site/src/cut/components/onboarding/slides/AiChat.tsx
@@ -7,7 +7,7 @@ import { ONBOARDING_PROJECT } from "@/cut/components/editor-mock/mockData";
// column. The editor is the layout — the slide is exactly as tall as the mock,
// so there's no dead band above or below it — and the copy is laid over its
// left side. Two things keep that legible, and both are needed: the mock's own
-// left half dissolves into the cream, and a cream scrim under the copy holds
+// left half dissolves into the surface, and a themed scrim under the copy holds
// the contrast wherever the mock's edge lands at a given window size.
export function AiChatSlide() {
return (
@@ -30,7 +30,7 @@ export function AiChatSlide() {
frame="flat"
/>
</div>
- <div className="pointer-events-none absolute inset-y-0 left-0 w-[64%] bg-gradient-to-r from-cream via-cream/85 to-transparent" />
+ <div className="pointer-events-none absolute inset-y-0 left-0 w-[64%] bg-gradient-to-r from-cream via-cream/85 to-transparent dark:from-background dark:via-background/85" />
<div className="absolute top-[15%] left-0 z-10 w-[48%] min-w-[320px]">
<Copy />
</div>
@@ -59,12 +59,12 @@ function Copy() {
<h2 className="text-[clamp(26px,3.2vw,38px)] leading-[1.05] font-semibold tracking-[-0.02em]">
Chat with your editor.
</h2>
- <p className="mt-5 text-[16.5px] leading-[1.55] text-[#454545]">
+ <p className="mt-5 text-[16.5px] leading-[1.55] text-foreground/70">
The AI has access to your entire project. Ask it to trim clips, generate
missing shots, write subtitles, add voiceovers, rearrange your timeline,
or answer questions about your footage.
</p>
- <p className="mt-4 text-[16.5px] leading-[1.55] text-[#454545]">
+ <p className="mt-4 text-[16.5px] leading-[1.55] text-foreground/70">
Works out of the box with Gemini, or use your own Claude or Codex
subscription.
</p>
diff --git a/site/src/cut/components/onboarding/slides/Credits.tsx b/site/src/cut/components/onboarding/slides/Credits.tsx
index a50d756c..ead0ae0f 100644
--- a/site/src/cut/components/onboarding/slides/Credits.tsx
+++ b/site/src/cut/components/onboarding/slides/Credits.tsx
@@ -50,12 +50,12 @@ export function CreditsSlide({
</h2>
{/* Ragged right on a narrow measure: the line breaks stay put instead
of the last line floating in the middle of the slide. */}
- <p className="mx-auto mt-4 max-w-[460px] text-left text-[16px] leading-[1.55] text-[#454545]">
+ <p className="mx-auto mt-4 max-w-[460px] text-left text-[16px] leading-[1.55] text-foreground/70">
Already in your account — nothing to claim. Spend them on generated
video, audio and images.
</p>
{expiresAt !== null && (
- <p className="mt-3 text-[13px] leading-[1.5] text-[#8a8a8a]">
+ <p className="mt-3 text-[13px] leading-[1.5] text-foreground/70">
Expires {formatCreditExpiry(new Date(expiresAt))}.
</p>
)}
diff --git a/site/src/cut/components/onboarding/slides/Modes.tsx b/site/src/cut/components/onboarding/slides/Modes.tsx
index 22b33c00..245e40ec 100644
--- a/site/src/cut/components/onboarding/slides/Modes.tsx
+++ b/site/src/cut/components/onboarding/slides/Modes.tsx
@@ -11,7 +11,7 @@ export function ModesSlide() {
<h2 className="text-center text-[clamp(24px,3vw,32px)] leading-[1.1] font-semibold tracking-[-0.02em] text-balance">
Works in the cloud or on your Mac
</h2>
- <p className="mx-auto mt-3 max-w-[560px] text-center text-[16px] leading-[1.5] text-[#454545] italic">
+ <p className="mx-auto mt-3 max-w-[560px] text-center text-[16px] leading-[1.5] text-foreground/70 italic">
Same editor. Choose what works for you.
</p>
@@ -36,7 +36,7 @@ export function ModesSlide() {
/>
</div>
- <p className="mt-7 text-center text-[15px] leading-[1.5] text-[#454545] md:mt-9">
+ <p className="mt-7 text-center text-[15px] leading-[1.5] text-foreground/70 md:mt-9">
Automatically switches between cloud and local when available.
</p>
</div>
diff --git a/site/src/cut/components/onboarding/slides/Plans.tsx b/site/src/cut/components/onboarding/slides/Plans.tsx
index ca0d2a7a..de444237 100644
--- a/site/src/cut/components/onboarding/slides/Plans.tsx
+++ b/site/src/cut/components/onboarding/slides/Plans.tsx
@@ -27,7 +27,7 @@ export function PlansSlide({ onSkipPro }: { onSkipPro: () => void }) {
<h2 className="text-center text-[clamp(24px,3vw,32px)] leading-[1.1] font-semibold tracking-[-0.02em]">
Simple pricing
</h2>
- <p className="mt-3 text-center text-[16px] text-[#454545]">
+ <p className="mt-3 text-center text-[16px] text-foreground/70">
The editor is free. Pay only for AI generated media.
</p>
@@ -85,7 +85,7 @@ export function PlansSlide({ onSkipPro }: { onSkipPro: () => void }) {
<button
type="button"
onClick={onSkipPro}
- className="text-[15px] text-[#454545] underline-offset-4 transition-colors hover:text-ink hover:underline"
+ className="text-[15px] text-foreground/70 underline-offset-4 transition-colors hover:text-foreground hover:underline"
>
Continue with free
</button>
diff --git a/site/src/cut/components/onboarding/slides/Referral.tsx b/site/src/cut/components/onboarding/slides/Referral.tsx
index 2fb80bac..e39f1504 100644
--- a/site/src/cut/components/onboarding/slides/Referral.tsx
+++ b/site/src/cut/components/onboarding/slides/Referral.tsx
@@ -48,7 +48,7 @@ export function ReferralSlide({
<h2 className="text-center text-[clamp(24px,3vw,32px)] leading-[1.1] font-semibold tracking-[-0.02em]">
How did you hear about us?
</h2>
- <p className="mt-3 text-center text-[16px] text-[#454545]">
+ <p className="mt-3 text-center text-[16px] text-foreground/70">
Pick as many as apply — it tells us where to show up next.
</p>
<div className="mt-8 flex flex-col gap-2">
@@ -63,10 +63,10 @@ export function ReferralSlide({
className={cn(
// Selection is a border and a check, not a filled row: the
// brand marks keep their own colors and stay legible.
- "relative z-[1] flex w-full items-center gap-3 rounded-xl border bg-white px-4 py-3.5 text-left text-[15px] font-medium transition-colors",
+ "relative z-[1] flex w-full items-center gap-3 rounded-xl border bg-card px-4 py-3.5 text-left text-[15px] font-medium transition-colors",
active
- ? "border-ink ring-1 ring-ink"
- : "border-ink/15 hover:border-ink/40",
+ ? "border-foreground ring-1 ring-foreground"
+ : "border-foreground/15 hover:border-foreground/40",
)}
>
<span className="grid size-5 shrink-0 place-items-center">
@@ -97,7 +97,7 @@ export function ReferralSlide({
placeholder="Tell us where"
maxLength={REFERRAL_OTHER_MAX_LENGTH}
tabIndex={active ? 0 : -1}
- className="w-full rounded-b-xl border border-t-0 border-ink bg-white px-4 pt-6 pb-3 text-[15px] outline-none placeholder:text-ink/40"
+ className="w-full rounded-b-xl border border-t-0 border-foreground bg-card px-4 pt-6 pb-3 text-[15px] outline-none placeholder:text-muted-foreground"
/>
</div>
</div>
@@ -112,6 +112,6 @@ export function ReferralSlide({
function BrandMark({ src }: { src: string }) {
return (
- <img src={src} alt="" width={18} height={18} className="block size-[18px]" />
+ <img src={src} alt="" width={18} height={18} className="block size-[18px] dark:rounded-sm dark:bg-cream" />
);
}
diff --git a/site/src/cut/components/onboarding/slides/Welcome.tsx b/site/src/cut/components/onboarding/slides/Welcome.tsx
index f5d68b86..66f7752e 100644
--- a/site/src/cut/components/onboarding/slides/Welcome.tsx
+++ b/site/src/cut/components/onboarding/slides/Welcome.tsx
@@ -12,7 +12,7 @@ export function WelcomeSlide() {
<h2 className="text-[clamp(22px,3.1vw,34px)] leading-[1.1] font-semibold tracking-[-0.02em]">
Edit videos by chatting.
</h2>
- <p className="mt-4 text-[17px] leading-[1.55] text-[#454545]">
+ <p className="mt-4 text-[17px] leading-[1.55] text-foreground/70">
Trim clips, add captions, generate images, or create new
scenes&mdash;all from chat.
</p>