styles.css 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. @import "tailwindcss";
  2. @import "fumadocs-ui/css/neutral.css";
  3. @import "fumadocs-ui/css/preset.css";
  4. :root {
  5. --site-background: #f7f7f5;
  6. --site-foreground: #171717;
  7. --site-border: #d8d8d2;
  8. --site-accent: #3b7dd8;
  9. --fd-layout-width: 90rem;
  10. }
  11. * {
  12. box-sizing: border-box;
  13. }
  14. html,
  15. body {
  16. min-height: 100%;
  17. }
  18. body {
  19. margin: 0;
  20. }
  21. /* Fumadocs 16.11 stretches top layout tabs across the main grid row. */
  22. #nd-docs-layout > div:has(> a[href="/docs/build"], > a[href="/docs/api"]) {
  23. align-self: start;
  24. height: 3rem;
  25. }
  26. .home {
  27. min-height: 100vh;
  28. display: grid;
  29. align-content: center;
  30. justify-items: start;
  31. gap: 1.5rem;
  32. padding: clamp(1.5rem, 7vw, 7rem);
  33. color: var(--site-foreground);
  34. background: var(--site-background);
  35. }
  36. .home-kicker,
  37. .home-copy,
  38. .home h1 {
  39. margin: 0;
  40. }
  41. .home-kicker {
  42. font:
  43. 600 0.75rem/1.2 ui-monospace,
  44. monospace;
  45. letter-spacing: 0.12em;
  46. text-transform: uppercase;
  47. }
  48. .home h1 {
  49. max-width: 13ch;
  50. font:
  51. 500 clamp(3rem, 9vw, 8rem) / 0.92 ui-monospace,
  52. monospace;
  53. letter-spacing: -0.07em;
  54. }
  55. .home-copy {
  56. max-width: 42rem;
  57. font:
  58. 400 clamp(1rem, 2vw, 1.25rem) / 1.5 ui-monospace,
  59. monospace;
  60. }
  61. .home-link {
  62. display: inline-block;
  63. padding: 0.8rem 1rem;
  64. color: var(--site-background);
  65. background: var(--site-foreground);
  66. font:
  67. 500 0.875rem/1 ui-monospace,
  68. monospace;
  69. text-decoration: none;
  70. }
  71. .home-link:hover {
  72. background: var(--site-accent);
  73. }