@publish.os/nextjs 0.0.1-alpha.6 → 0.0.1-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/README.md +3 -5
  2. package/compiler-assets/nextjs/defaults/app/globals.css +6 -0
  3. package/compiler-assets/nextjs/defaults/group/layout.tsx +23 -0
  4. package/compiler-assets/nextjs/defaults/group/leaf.tsx +48 -0
  5. package/compiler-assets/nextjs/defaults/group/page.tsx +50 -0
  6. package/compiler-assets/nextjs/defaults/project/next.config.mjs +45 -0
  7. package/compiler-assets/nextjs/defaults/project/postcss.config.mjs +5 -0
  8. package/compiler-assets/nextjs/defaults/project/tsconfig.json.template +41 -0
  9. package/compiler-assets/nextjs/defaults/root/css/animation.css +90 -0
  10. package/compiler-assets/nextjs/defaults/root/css/components/dialog.css +21 -0
  11. package/compiler-assets/nextjs/defaults/root/css/components/drawer.css +21 -0
  12. package/compiler-assets/nextjs/defaults/root/css/components/menu.css +23 -0
  13. package/compiler-assets/nextjs/defaults/root/css/components/navigation-menu.css +25 -0
  14. package/compiler-assets/nextjs/defaults/root/css/components/popover.css +17 -0
  15. package/compiler-assets/nextjs/defaults/root/css/components/select.css +23 -0
  16. package/compiler-assets/nextjs/defaults/root/css/components/toast.css +19 -0
  17. package/compiler-assets/nextjs/defaults/root/css/components/tooltip.css +15 -0
  18. package/compiler-assets/nextjs/defaults/root/css/layout.css +22 -0
  19. package/compiler-assets/nextjs/defaults/root/css/media.css +81 -0
  20. package/compiler-assets/nextjs/defaults/root/css/radius.css +49 -0
  21. package/compiler-assets/nextjs/defaults/root/css/scrollbar.css +43 -0
  22. package/compiler-assets/nextjs/defaults/root/css/shadow.css +145 -0
  23. package/compiler-assets/nextjs/defaults/root/css/typography.css +607 -0
  24. package/compiler-assets/nextjs/defaults/root/css/zindex.css +39 -0
  25. package/compiler-assets/nextjs/defaults/root/globals.css +191 -0
  26. package/compiler-assets/nextjs/defaults/root/layout.tsx +19 -0
  27. package/compiler-assets/nextjs/defaults/root/page.tsx +61 -0
  28. package/compiler-assets/nextjs/defaults/root/theme.css +50 -0
  29. package/compiler-assets/nextjs/defaults/source/_internal/logger.ts +21 -0
  30. package/compiler-assets/nextjs/shims/generated-group-layout.tsx +19 -0
  31. package/compiler-assets/nextjs/shims/generated-group-page.tsx +18 -0
  32. package/compiler-assets/nextjs/shims/generated-leaf-page.tsx +21 -0
  33. package/compiler-assets/nextjs/shims/global-layout.tsx +134 -0
  34. package/compiler-assets/nextjs/shims/markdown-route.ts +29 -0
  35. package/compiler-assets/nextjs/shims/og-image-route.ts +18 -0
  36. package/compiler-assets/nextjs/shims/powered-by-footer.tsx +40 -0
  37. package/compiler-assets/nextjs/shims/providers.tsx +13 -0
  38. package/compiler-assets/nextjs/shims/proxy.ts +317 -0
  39. package/compiler-assets/nextjs/shims/publish-os-theme-provider.tsx +77 -0
  40. package/compiler-assets/nextjs/shims/root-page.tsx +13 -0
  41. package/compiler-assets/nextjs/shims/theme-defaults.css +177 -0
  42. package/dist/button-CFdx-ohV.d.ts +20 -0
  43. package/dist/cache/tags.js +6 -14
  44. package/dist/compiler.d.ts +100 -0
  45. package/dist/compiler.js +13379 -0
  46. package/dist/config/createNextConfig.d.ts +2 -1
  47. package/dist/config/createNextConfig.js +16 -12
  48. package/dist/icons.d.ts +1 -0
  49. package/dist/icons.js +2 -0
  50. package/dist/index.d.ts +303 -15
  51. package/dist/index.js +30 -1198
  52. package/dist/kernel/components/blocks/AgentActions.d.ts +9 -3
  53. package/dist/kernel/components/blocks/AgentActions.js +114 -200
  54. package/dist/kernel/components/blocks/animated-icon-swap.js +4 -25
  55. package/dist/kernel/components/blocks/color-palette.js +88 -169
  56. package/dist/kernel/components/blocks/design-system-preview.d.ts +38 -6
  57. package/dist/kernel/components/blocks/design-system-preview.js +44 -52
  58. package/dist/kernel/components/blocks/link-playground.js +23 -71
  59. package/dist/kernel/components/blocks/logo-block.js +18 -47
  60. package/dist/kernel/components/blocks/nav-breadcrumb.d.ts +1 -1
  61. package/dist/kernel/components/blocks/nav-breadcrumb.js +28 -42
  62. package/dist/kernel/components/blocks/navbar.d.ts +1 -1
  63. package/dist/kernel/components/blocks/navbar.js +14 -41
  64. package/dist/kernel/components/blocks/navigation-progress-playground.js +56 -149
  65. package/dist/kernel/components/blocks/navigation-progress.js +53 -157
  66. package/dist/kernel/components/blocks/next-prev.d.ts +1 -1
  67. package/dist/kernel/components/blocks/next-prev.js +16 -42
  68. package/dist/kernel/components/blocks/page-list.d.ts +1 -1
  69. package/dist/kernel/components/blocks/page-list.js +11 -16
  70. package/dist/kernel/components/blocks/search.d.ts +13 -2
  71. package/dist/kernel/components/blocks/search.js +116 -247
  72. package/dist/kernel/components/blocks/sidebar-node.d.ts +2 -2
  73. package/dist/kernel/components/blocks/sidebar-node.js +56 -95
  74. package/dist/kernel/components/blocks/sidebar.d.ts +5 -23
  75. package/dist/kernel/components/blocks/sidebar.js +35 -103
  76. package/dist/kernel/components/blocks/theme-toggle.d.ts +7 -3
  77. package/dist/kernel/components/blocks/theme-toggle.js +2 -2
  78. package/dist/kernel/components/blocks/toc.js +42 -178
  79. package/dist/kernel/components/mdx/components/blockquote.js +3 -24
  80. package/dist/kernel/components/mdx/components/callout.d.ts +1 -1
  81. package/dist/kernel/components/mdx/components/callout.js +15 -47
  82. package/dist/kernel/components/mdx/components/code-block.js +2 -2
  83. package/dist/kernel/components/mdx/components/figure-caption.js +6 -24
  84. package/dist/kernel/components/mdx/components/figure.js +9 -36
  85. package/dist/kernel/components/mdx/components/footnotes.js +3 -24
  86. package/dist/kernel/components/mdx/components/heading-copy-link.js +13 -37
  87. package/dist/kernel/components/mdx/components/heading.d.ts +8 -3
  88. package/dist/kernel/components/mdx/components/heading.js +32 -116
  89. package/dist/kernel/components/mdx/components/hr.d.ts +5 -3
  90. package/dist/kernel/components/mdx/components/hr.js +2 -2
  91. package/dist/kernel/components/mdx/components/image-zoom.js +2 -3
  92. package/dist/kernel/components/mdx/components/image.js +22 -62
  93. package/dist/kernel/components/mdx/components/inline-code.js +3 -24
  94. package/dist/kernel/components/mdx/components/kbd.d.ts +9 -4
  95. package/dist/kernel/components/mdx/components/kbd.js +2 -2
  96. package/dist/kernel/components/mdx/components/link.d.ts +1 -2
  97. package/dist/kernel/components/mdx/components/link.js +2 -2
  98. package/dist/kernel/components/mdx/components/paragraph.js +13 -41
  99. package/dist/kernel/components/mdx/components/pre.js +3 -24
  100. package/dist/kernel/components/mdx/components/strikethrough.js +6 -24
  101. package/dist/kernel/components/mdx/components/table.js +2 -2
  102. package/dist/kernel/components/mdx/components/task-list.js +6 -28
  103. package/dist/kernel/components/mdx/components/video-player.js +53 -88
  104. package/dist/kernel/components/mdx/components/video.js +27 -75
  105. package/dist/kernel/components/mdx/error-boundary.d.ts +1 -1
  106. package/dist/kernel/components/mdx/error-boundary.js +12 -15
  107. package/dist/kernel/components/mdx/error-fallback.js +4 -4
  108. package/dist/kernel/components/mdx/mdx.d.ts +68 -11
  109. package/dist/kernel/components/mdx/mdx.js +29 -29
  110. package/dist/kernel/components/mdx/rehype-heading-ids.js +11 -67
  111. package/dist/kernel/components/mdx/types.d.ts +1 -1
  112. package/dist/kernel/components/ui/accordion.js +3 -26
  113. package/dist/kernel/components/ui/breadcrumb-trail.d.ts +23 -7
  114. package/dist/kernel/components/ui/breadcrumb-trail.js +32 -80
  115. package/dist/kernel/components/ui/breadcrumb.d.ts +1 -1
  116. package/dist/kernel/components/ui/breadcrumb.js +20 -54
  117. package/dist/kernel/components/ui/button-group.d.ts +4 -3
  118. package/dist/kernel/components/ui/button-group.js +7 -30
  119. package/dist/kernel/components/ui/button.js +13 -36
  120. package/dist/kernel/components/ui/card.d.ts +2 -2
  121. package/dist/kernel/components/ui/card.js +2 -23
  122. package/dist/kernel/components/ui/dialog.d.ts +9 -9
  123. package/dist/kernel/components/ui/dialog.js +15 -33
  124. package/dist/kernel/components/ui/drawer.d.ts +10 -10
  125. package/dist/kernel/components/ui/drawer.js +15 -33
  126. package/dist/kernel/components/ui/input.js +6 -30
  127. package/dist/kernel/components/ui/kbd.js +10 -31
  128. package/dist/kernel/components/ui/link.d.ts +1 -1
  129. package/dist/kernel/components/ui/link.js +53 -104
  130. package/dist/kernel/components/ui/menu.d.ts +21 -21
  131. package/dist/kernel/components/ui/menu.js +10 -32
  132. package/dist/kernel/components/ui/meta-key.d.ts +9 -4
  133. package/dist/kernel/components/ui/meta-key.js +2 -2
  134. package/dist/kernel/components/ui/navigation-menu.d.ts +14 -14
  135. package/dist/kernel/components/ui/navigation-menu.js +9 -30
  136. package/dist/kernel/components/ui/popover.d.ts +10 -10
  137. package/dist/kernel/components/ui/popover.js +19 -34
  138. package/dist/kernel/components/ui/progress.js +2 -25
  139. package/dist/kernel/components/ui/scroll-area.js +39 -118
  140. package/dist/kernel/components/ui/select.d.ts +15 -15
  141. package/dist/kernel/components/ui/select.js +19 -35
  142. package/dist/kernel/components/ui/separator.js +2 -25
  143. package/dist/kernel/components/ui/table.js +2 -23
  144. package/dist/kernel/components/ui/tabs.js +39 -99
  145. package/dist/kernel/components/ui/tag.d.ts +2 -2
  146. package/dist/kernel/components/ui/tag.js +4 -25
  147. package/dist/kernel/components/ui/text.d.ts +2 -2
  148. package/dist/kernel/components/ui/text.js +3 -25
  149. package/dist/kernel/components/ui/theme-toggle.d.ts +18 -4
  150. package/dist/kernel/components/ui/theme-toggle.js +18 -44
  151. package/dist/kernel/components/ui/toast.d.ts +10 -10
  152. package/dist/kernel/components/ui/toast.js +13 -35
  153. package/dist/kernel/components/ui/tooltip.d.ts +8 -8
  154. package/dist/kernel/components/ui/tooltip.js +8 -29
  155. package/dist/kernel/defaults.registry.d.ts +1 -1
  156. package/dist/kernel/defaults.registry.js +2 -2
  157. package/dist/kernel/framework-icons.d.ts +1 -0
  158. package/dist/kernel/framework-icons.js +39 -0
  159. package/dist/kernel/routes/agent/markdown.js +36 -65
  160. package/dist/kernel/routes/layouts/group.d.ts +1 -1
  161. package/dist/kernel/routes/layouts/group.js +20 -109
  162. package/dist/kernel/routes/metadata/feed.d.ts +1 -2
  163. package/dist/kernel/routes/metadata/feed.js +46 -127
  164. package/dist/kernel/routes/metadata/llms.d.ts +1 -2
  165. package/dist/kernel/routes/metadata/llms.js +40 -120
  166. package/dist/kernel/routes/metadata/og-image.d.ts +10 -0
  167. package/dist/kernel/routes/metadata/og-image.js +264 -198
  168. package/dist/kernel/routes/metadata/robots.d.ts +1 -2
  169. package/dist/kernel/routes/metadata/robots.js +21 -90
  170. package/dist/kernel/routes/metadata/sitemap.d.ts +1 -2
  171. package/dist/kernel/routes/metadata/sitemap.js +36 -102
  172. package/dist/kernel/routes/pages/group.d.ts +1 -1
  173. package/dist/kernel/routes/pages/group.js +42 -137
  174. package/dist/kernel/routes/pages/leaf.d.ts +1 -1
  175. package/dist/kernel/routes/pages/leaf.js +74 -213
  176. package/dist/kernel/routes/pages/root.d.ts +1 -1
  177. package/dist/kernel/routes/pages/root.js +37 -108
  178. package/dist/keyboard-shortcuts.js +69 -141
  179. package/dist/link-CYaCRDb6.d.ts +35 -0
  180. package/dist/resolvers/manifest-resolver.d.ts +3 -3
  181. package/dist/resolvers/manifest-resolver.js +15 -21
  182. package/dist/route-metadata-og-image-BeKKFHg7.d.ts +58 -0
  183. package/dist/search.d.ts +81 -4
  184. package/dist/search.js +124 -195
  185. package/dist/sidebar-types-Bgchdfd6.d.ts +25 -0
  186. package/dist/theme-scope.d.ts +15 -0
  187. package/dist/theme-scope.js +23 -0
  188. package/dist/types-B_b3C0U6.d.ts +63 -0
  189. package/dist/types-CIwwieNw.d.ts +127 -0
  190. package/dist/types-DHBm7-j6.d.ts +57 -0
  191. package/dist/types-sM2g9nW0.d.ts +12 -0
  192. package/dist/types.d.ts +0 -1
  193. package/dist/types.js +1 -1
  194. package/dist/utils/cn.d.ts +5 -9
  195. package/dist/utils/cn.js +13 -7
  196. package/dist/utils/heading-ids.js +20 -47
  197. package/dist/utils/pretty-date.js +7 -13
  198. package/init/seed/minimal/publish.os/assets/logo/publish-dev-logo.dark.png +0 -0
  199. package/init/seed/minimal/publish.os/assets/logo/publish-dev-logo.png +0 -0
  200. package/init/seed/minimal/publish.os/docs/content/get-started.mdx +54 -0
  201. package/init/seed/minimal/publish.os/docs/content/groups.mdx +31 -0
  202. package/init/seed/minimal/publish.os/docs/content/theme.mdx +64 -0
  203. package/init/seed/minimal/publish.os/publish.os.config.json +21 -0
  204. package/init/seed/minimal/publish.os/theme.css +47 -0
  205. package/init/seed/minimal/seed.json +13 -0
  206. package/package.json +469 -35
  207. package/release/{package.json → app/lucide/package.json} +11 -5
  208. package/release/app/lucide/pnpm-lock.yaml.template +2905 -0
  209. package/release/app/lucide/pnpm-workspace.yaml +11 -0
  210. package/release/app/phosphor/package.json +30 -0
  211. package/release/app/phosphor/pnpm-lock.yaml.template +2908 -0
  212. package/release/app/phosphor/pnpm-workspace.yaml +11 -0
  213. package/release/app/tabler/package.json +30 -0
  214. package/release/app/tabler/pnpm-lock.yaml.template +2911 -0
  215. package/release/app/tabler/pnpm-workspace.yaml +11 -0
  216. package/release/compiler/package.json +20 -0
  217. package/release/compiler/pnpm-lock.yaml.template +2432 -0
  218. package/release/compiler/pnpm-workspace.yaml +11 -0
  219. package/release/release.json +29 -5
  220. package/release/runtime-pnpm-lock.yaml +0 -1316
@@ -0,0 +1,607 @@
1
+ @theme inline {
2
+ --color-typography-body-foreground: var(--typography-body-foreground);
3
+ --color-typography-heading-foreground: var(--typography-heading-foreground);
4
+ --color-typography-lead-foreground: var(--typography-lead-foreground);
5
+ --color-typography-link-foreground: var(--typography-link-foreground);
6
+ --color-typography-strong-foreground: var(--typography-strong-foreground);
7
+ --color-typography-counter-foreground: var(--typography-counter-foreground);
8
+ --color-typography-bullet-foreground: var(--typography-bullet-foreground);
9
+ --color-typography-rule-stroke: var(--typography-rule-stroke);
10
+ --color-typography-quote-foreground: var(--typography-quote-foreground);
11
+ --color-typography-quote-stroke: var(--typography-quote-stroke);
12
+ --color-typography-caption-foreground: var(--typography-caption-foreground);
13
+ --color-typography-code-foreground: var(--typography-code-foreground);
14
+ --color-typography-code-surface: var(--typography-code-surface);
15
+ --color-typography-code-stroke: var(--typography-code-stroke);
16
+ --color-typography-variable-foreground: var(--typography-variable-foreground);
17
+ --color-typography-table-heading-stroke: var(
18
+ --typography-table-heading-stroke
19
+ );
20
+ --color-typography-table-cell-stroke: var(--typography-table-cell-stroke);
21
+ --color-typography-pre-foreground: var(--typography-pre-foreground);
22
+ --color-typography-pre-surface: var(--typography-pre-surface);
23
+ --color-typography-pre-stroke: var(--typography-pre-stroke);
24
+ }
25
+
26
+ :root {
27
+ --kbd-shadow:
28
+ inset 0 -0.05em 0.5em color-mix(in oklab, var(--stroke-4) 80%, transparent),
29
+ inset 0 0.05em color-mix(in oklab, var(--neutral-100) 95%, transparent),
30
+ inset 0 0.25em 0.5em color-mix(in oklab, var(--surface-3) 70%, transparent),
31
+ inset 0 -0.075em color-mix(in oklab, var(--stroke-1) 58%, var(--stroke-2)),
32
+ 0 0 0 0.065em color-mix(in oklab, var(--stroke-2) 82%, transparent),
33
+ 0 0.08em 0.17em color-mix(in oklab, var(--stroke-1) 45%, transparent);
34
+ --kbd-shadow-active:
35
+ inset 0 0.05em color-mix(in oklab, var(--foreground-4) 45%, transparent),
36
+ 0 0 0 0.065em color-mix(in oklab, var(--stroke-1) 64%, transparent);
37
+ }
38
+
39
+ .dark {
40
+ --kbd-shadow:
41
+ inset 0 -0.05em 0.5em color-mix(in oklab, var(--stroke-3) 55%, transparent),
42
+ inset 0 0.05em color-mix(in oklab, var(--foreground-4) 55%, transparent),
43
+ inset 0 0.25em 0.5em color-mix(in oklab, var(--surface-2) 65%, transparent),
44
+ inset 0 -0.1em color-mix(in oklab, black 75%, transparent),
45
+ 0 0 0 0.075em var(--stroke-2),
46
+ 0 0.08em 0.17em color-mix(in oklab, black 85%, transparent);
47
+ }
48
+
49
+ @layer components {
50
+ code,
51
+ kbd,
52
+ pre,
53
+ samp {
54
+ font-family: var(--font-mono);
55
+ }
56
+
57
+ .markdown-prose {
58
+ max-width: var(--layout-content-max-width);
59
+ color: var(--typography-body-foreground);
60
+ font-size: var(--typography-base-size);
61
+ line-height: var(--typography-line-height);
62
+
63
+ & :where(p):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
64
+ margin-block: 0.375rem;
65
+ color: var(--typography-body-foreground);
66
+ }
67
+
68
+ &
69
+ :where(.lead):not(.not-markdown-prose):not(
70
+ :where(.not-markdown-prose *)
71
+ ) {
72
+ margin-block: 1.5em;
73
+ color: var(--typography-lead-foreground);
74
+ font-size: 1.25em;
75
+ line-height: 1.6;
76
+ }
77
+
78
+ & :where(a):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
79
+ color: color-mix(
80
+ in oklch,
81
+ var(--typography-link-foreground) 90%,
82
+ transparent
83
+ );
84
+ font-weight: 500;
85
+ overflow-wrap: break-word;
86
+ text-decoration-color: color-mix(in oklch, currentColor 18%, transparent);
87
+ text-decoration-line: underline;
88
+ text-decoration-skip-ink: auto;
89
+ text-decoration-thickness: 1px;
90
+ text-underline-offset: 0.16em;
91
+ border-radius: 0.2em;
92
+ transition:
93
+ color 100ms ease-out,
94
+ text-decoration-color 100ms ease-out;
95
+ word-break: break-word;
96
+
97
+ &:hover {
98
+ color: var(--typography-link-foreground);
99
+ text-decoration-color: color-mix(
100
+ in oklch,
101
+ currentColor 38%,
102
+ transparent
103
+ );
104
+ }
105
+
106
+ &:active {
107
+ color: var(--typography-link-foreground);
108
+ text-decoration-color: color-mix(
109
+ in oklch,
110
+ currentColor 38%,
111
+ transparent
112
+ );
113
+ }
114
+
115
+ &:focus-visible {
116
+ outline: 2px solid var(--focus-stroke);
117
+ outline-offset: 0;
118
+ }
119
+ }
120
+
121
+ &
122
+ :where(strong):not(.not-markdown-prose):not(
123
+ :where(.not-markdown-prose *)
124
+ ) {
125
+ color: var(--typography-strong-foreground);
126
+ font-weight: 600;
127
+ }
128
+
129
+ & :where(del):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
130
+ color: var(--typography-caption-foreground);
131
+ }
132
+
133
+ &
134
+ :where(a strong, blockquote strong, thead th strong):not(
135
+ .not-markdown-prose
136
+ ):not(:where(.not-markdown-prose *)) {
137
+ color: inherit;
138
+ }
139
+
140
+ & :where(h1):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
141
+ margin-block: 1.5em 0.375rem;
142
+ color: var(--typography-heading-foreground);
143
+ font-size: 2.25rem;
144
+ font-weight: 600;
145
+ line-height: 1.111;
146
+ overflow-wrap: anywhere;
147
+ text-wrap: balance;
148
+ }
149
+
150
+ & :where(h2):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
151
+ margin-block: 1.25em 0.375rem;
152
+ color: var(--typography-heading-foreground);
153
+ font-size: 1.5rem;
154
+ font-weight: 600;
155
+ line-height: 1.333;
156
+ overflow-wrap: anywhere;
157
+ text-wrap: balance;
158
+ }
159
+
160
+ & :where(h3):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
161
+ margin-block: 1em 0.375rem;
162
+ color: var(--typography-heading-foreground);
163
+ font-size: 1.25rem;
164
+ font-weight: 600;
165
+ line-height: 1.45;
166
+ overflow-wrap: anywhere;
167
+ text-wrap: balance;
168
+ }
169
+
170
+ & :where(h4):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
171
+ margin-block: 0.875em 0.375rem;
172
+ color: var(--typography-heading-foreground);
173
+ font-size: 1rem;
174
+ font-weight: 600;
175
+ line-height: 1.5;
176
+ overflow-wrap: anywhere;
177
+ text-wrap: balance;
178
+ }
179
+
180
+ &
181
+ :where(h5, h6):not(.not-markdown-prose):not(
182
+ :where(.not-markdown-prose *)
183
+ ) {
184
+ margin-block: 0.875em 0.375rem;
185
+ color: var(--typography-heading-foreground);
186
+ font-size: 0.875rem;
187
+ font-weight: 600;
188
+ line-height: 1.5;
189
+ overflow-wrap: anywhere;
190
+ text-wrap: balance;
191
+ }
192
+
193
+ &
194
+ :where(h1, h2, h3, h4, h5, h6)
195
+ strong:not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
196
+ color: inherit;
197
+ font-weight: 700;
198
+ }
199
+
200
+ &
201
+ :where(ul, ol):not(.not-markdown-prose):not(
202
+ :where(.not-markdown-prose *)
203
+ ) {
204
+ margin-block: 0.375rem;
205
+ padding-inline-start: 1.625em;
206
+ color: var(--typography-body-foreground);
207
+ }
208
+
209
+ & :where(ul):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
210
+ list-style-type: disc;
211
+ }
212
+
213
+ & :where(ol):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
214
+ list-style-type: decimal;
215
+ }
216
+
217
+ &
218
+ :where(ol[type="A"]):not(.not-markdown-prose):not(
219
+ :where(.not-markdown-prose *)
220
+ ) {
221
+ list-style-type: upper-alpha;
222
+ }
223
+
224
+ &
225
+ :where(ol[type="a"]):not(.not-markdown-prose):not(
226
+ :where(.not-markdown-prose *)
227
+ ) {
228
+ list-style-type: lower-alpha;
229
+ }
230
+
231
+ &
232
+ :where(ol[type="I"]):not(.not-markdown-prose):not(
233
+ :where(.not-markdown-prose *)
234
+ ) {
235
+ list-style-type: upper-roman;
236
+ }
237
+
238
+ &
239
+ :where(ol[type="i"]):not(.not-markdown-prose):not(
240
+ :where(.not-markdown-prose *)
241
+ ) {
242
+ list-style-type: lower-roman;
243
+ }
244
+
245
+ & :where(li):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
246
+ margin-block: 0.5em;
247
+ }
248
+
249
+ &
250
+ :where(ol > li, ul > li):not(.not-markdown-prose):not(
251
+ :where(.not-markdown-prose *)
252
+ ) {
253
+ padding-inline-start: 0.375em;
254
+ }
255
+
256
+ &
257
+ :where(li > input[type="checkbox"]):not(.not-markdown-prose):not(
258
+ :where(.not-markdown-prose *)
259
+ ) {
260
+ margin-inline-end: 0.5em;
261
+ vertical-align: middle;
262
+ }
263
+
264
+ &
265
+ :where(ol > li):not(.not-markdown-prose):not(
266
+ :where(.not-markdown-prose *)
267
+ )::marker {
268
+ color: var(--typography-counter-foreground);
269
+ font-weight: 400;
270
+ }
271
+
272
+ &
273
+ :where(ul > li):not(.not-markdown-prose):not(
274
+ :where(.not-markdown-prose *)
275
+ )::marker {
276
+ color: var(--typography-bullet-foreground);
277
+ }
278
+
279
+ &
280
+ :where(ul ul, ul ol, ol ul, ol ol):not(.not-markdown-prose):not(
281
+ :where(.not-markdown-prose *)
282
+ ) {
283
+ margin-block: 0.75em;
284
+ }
285
+
286
+ & > ul > li p:not(.not-markdown-prose):not(:where(.not-markdown-prose *)),
287
+ & > ol > li p:not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
288
+ margin-block: 0.75em;
289
+ }
290
+
291
+ &
292
+ > ul
293
+ > li
294
+ > p:first-child:not(.not-markdown-prose):not(
295
+ :where(.not-markdown-prose *)
296
+ ),
297
+ &
298
+ > ol
299
+ > li
300
+ > p:first-child:not(.not-markdown-prose):not(
301
+ :where(.not-markdown-prose *)
302
+ ) {
303
+ margin-top: 1.25em;
304
+ }
305
+
306
+ &
307
+ > ul
308
+ > li
309
+ > p:last-child:not(.not-markdown-prose):not(
310
+ :where(.not-markdown-prose *)
311
+ ),
312
+ &
313
+ > ol
314
+ > li
315
+ > p:last-child:not(.not-markdown-prose):not(
316
+ :where(.not-markdown-prose *)
317
+ ) {
318
+ margin-bottom: 1.25em;
319
+ }
320
+
321
+ & :where(dl):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
322
+ margin-block: 1.25em;
323
+ }
324
+
325
+ & :where(dt):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
326
+ margin-top: 1.25em;
327
+ color: var(--typography-heading-foreground);
328
+ font-weight: 600;
329
+ }
330
+
331
+ & :where(dd):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
332
+ margin-top: 0.5em;
333
+ padding-inline-start: 1.625em;
334
+ }
335
+
336
+ & :where(code):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
337
+ box-sizing: border-box;
338
+ height: fit-content;
339
+ border: 1px solid var(--stroke-2);
340
+ border-radius: var(--radius-inline-code);
341
+ background-color: var(--surface-2);
342
+ color: var(--foreground-1);
343
+ font-family: var(--font-mono);
344
+ font-size: 0.95em;
345
+ font-weight: 400;
346
+ line-height: 1.25;
347
+ padding: 0.15em 0.35em;
348
+ }
349
+
350
+ & :where(code):not(:where(pre code))::before,
351
+ & :where(code):not(:where(pre code))::after {
352
+ content: none;
353
+ }
354
+
355
+ &
356
+ :where(
357
+ a code,
358
+ h1 code,
359
+ h2 code,
360
+ h3 code,
361
+ h4 code,
362
+ h5 code,
363
+ h6 code,
364
+ blockquote code,
365
+ thead th code
366
+ ):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
367
+ color: inherit;
368
+ }
369
+
370
+ &
371
+ :where(a code):not(.not-markdown-prose):not(
372
+ :where(.not-markdown-prose *)
373
+ ) {
374
+ color: var(--accent-1);
375
+ }
376
+
377
+ & :where(pre):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
378
+ margin-block: 1.714em;
379
+ border: 1px solid var(--typography-pre-stroke);
380
+ border-radius: var(--radius-codeblock);
381
+ background-color: var(--typography-pre-surface);
382
+ color: var(--typography-pre-foreground);
383
+ font-size: 0.875em;
384
+ font-weight: 400;
385
+ line-height: 1.714;
386
+ overflow-x: auto;
387
+ padding: 0.857em 1.143em;
388
+ }
389
+
390
+ &
391
+ :where(pre)
392
+ :where(code):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
393
+ border: 0;
394
+ border-radius: 0;
395
+ background-color: transparent;
396
+ color: inherit;
397
+ font: inherit;
398
+ padding: 0;
399
+ }
400
+
401
+ & :where(pre) :where(code)::before,
402
+ & :where(pre) :where(code)::after {
403
+ content: none;
404
+ }
405
+
406
+ & :where(kbd):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
407
+ position: relative;
408
+ top: -0.03em;
409
+ display: inline-flex;
410
+ align-items: center;
411
+ justify-content: center;
412
+ box-sizing: border-box;
413
+ height: fit-content;
414
+ min-width: 1.75em;
415
+ flex-shrink: 0;
416
+ user-select: none;
417
+ border-radius: max(var(--radius-kbd), 1px);
418
+ background-color: var(--surface-1);
419
+ box-shadow: var(--kbd-shadow);
420
+ color: var(--foreground-1);
421
+ font-family: var(--font-main);
422
+ font-size: 0.875rem;
423
+ font-weight: 400;
424
+ line-height: 1.7em;
425
+ padding: 0.05em 0.5em 0.1em;
426
+ vertical-align: text-top;
427
+ white-space: nowrap;
428
+ word-spacing: -0.1em;
429
+ transition-duration: 150ms;
430
+ transition-property: background-color, box-shadow;
431
+ }
432
+
433
+ &
434
+ :where(kbd):not(.not-markdown-prose):not(
435
+ :where(.not-markdown-prose *)
436
+ ):hover {
437
+ background-color: var(--surface-page);
438
+ box-shadow:
439
+ var(--kbd-shadow),
440
+ 0 0 0 0.05em color-mix(in oklab, var(--stroke-2) 50%, transparent);
441
+ }
442
+
443
+ &
444
+ :where(kbd):not(.not-markdown-prose):not(
445
+ :where(.not-markdown-prose *)
446
+ ):focus-visible {
447
+ outline: 2px solid var(--focus-stroke);
448
+ }
449
+
450
+ &
451
+ :where(kbd):not(.not-markdown-prose):not(
452
+ :where(.not-markdown-prose *)
453
+ ):active {
454
+ padding-top: 0.1em;
455
+ padding-bottom: 0.05em;
456
+ background-color: var(--surface-2);
457
+ box-shadow: var(--kbd-shadow-active);
458
+ }
459
+
460
+ &
461
+ :where(blockquote):not(.not-markdown-prose):not(
462
+ :where(.not-markdown-prose *)
463
+ ) {
464
+ margin-block: 0.375rem;
465
+ border-inline-start: 0.25rem solid var(--typography-quote-stroke);
466
+ color: var(--typography-quote-foreground);
467
+ font-style: italic;
468
+ font-weight: 500;
469
+ padding-inline-start: 1.25em;
470
+ quotes: "\201C" "\201D" "\2018" "\2019";
471
+ }
472
+
473
+ &
474
+ :where(blockquote p:first-of-type):not(.not-markdown-prose):not(
475
+ :where(.not-markdown-prose *)
476
+ )::before {
477
+ content: open-quote;
478
+ }
479
+
480
+ &
481
+ :where(blockquote p:last-of-type):not(.not-markdown-prose):not(
482
+ :where(.not-markdown-prose *)
483
+ )::after {
484
+ content: close-quote;
485
+ }
486
+
487
+ & :where(hr):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
488
+ height: 1px;
489
+ margin-block: 1.25em;
490
+ border: 0;
491
+ background-color: var(--typography-rule-stroke);
492
+ }
493
+
494
+ &
495
+ :where(table):not(.not-markdown-prose):not(
496
+ :where(.not-markdown-prose *)
497
+ ) {
498
+ width: 100%;
499
+ margin-block: 2em;
500
+ color: var(--typography-body-foreground);
501
+ font-size: 0.875em;
502
+ line-height: 1.714;
503
+ table-layout: auto;
504
+ text-align: left;
505
+ }
506
+
507
+ &
508
+ :where(thead):not(.not-markdown-prose):not(
509
+ :where(.not-markdown-prose *)
510
+ ) {
511
+ border-bottom: 1px solid var(--typography-table-heading-stroke);
512
+ }
513
+
514
+ &
515
+ :where(tbody tr):not(.not-markdown-prose):not(
516
+ :where(.not-markdown-prose *)
517
+ ) {
518
+ border-bottom: 1px solid var(--typography-table-cell-stroke);
519
+ }
520
+
521
+ &
522
+ :where(tbody tr:last-child):not(.not-markdown-prose):not(
523
+ :where(.not-markdown-prose *)
524
+ ) {
525
+ border-bottom: 0;
526
+ }
527
+
528
+ & :where(th):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
529
+ border: 1px solid var(--typography-table-heading-stroke);
530
+ color: var(--typography-heading-foreground);
531
+ font-weight: 600;
532
+ padding: 0.571em;
533
+ vertical-align: bottom;
534
+ }
535
+
536
+ & :where(td):not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
537
+ border: 1px solid var(--typography-table-cell-stroke);
538
+ padding: 0.571em;
539
+ vertical-align: baseline;
540
+ }
541
+
542
+ &
543
+ :where(img, picture, video):not(.not-markdown-prose):not(
544
+ :where(.not-markdown-prose *)
545
+ ) {
546
+ margin-block: 2em;
547
+ }
548
+
549
+ &
550
+ :where(picture):not(.not-markdown-prose):not(
551
+ :where(.not-markdown-prose *)
552
+ ) {
553
+ display: block;
554
+ }
555
+
556
+ &
557
+ :where(picture > img):not(.not-markdown-prose):not(
558
+ :where(.not-markdown-prose *)
559
+ ) {
560
+ margin-block: 0;
561
+ }
562
+
563
+ &
564
+ :where(figure):not(.not-markdown-prose):not(
565
+ :where(.not-markdown-prose *)
566
+ ) {
567
+ margin-block: 2em;
568
+ }
569
+
570
+ &
571
+ :where(figure > *):not(.not-markdown-prose):not(
572
+ :where(.not-markdown-prose *)
573
+ ) {
574
+ margin-block: 0;
575
+ }
576
+
577
+ &
578
+ :where(figcaption):not(.not-markdown-prose):not(
579
+ :where(.not-markdown-prose *)
580
+ ) {
581
+ margin-top: 0.857em;
582
+ color: var(--typography-caption-foreground);
583
+ font-size: 0.875em;
584
+ line-height: 1.43;
585
+ }
586
+
587
+ &
588
+ > :first-child:not(.not-markdown-prose):not(
589
+ :where(.not-markdown-prose *)
590
+ ) {
591
+ margin-top: 0;
592
+ }
593
+
594
+ &
595
+ > :last-child:not(.not-markdown-prose):not(
596
+ :where(.not-markdown-prose *)
597
+ ) {
598
+ margin-bottom: 0;
599
+ }
600
+
601
+ &
602
+ :where(hr, h2, h3, h4, h5, h6)
603
+ + *:not(.not-markdown-prose):not(:where(.not-markdown-prose *)) {
604
+ margin-top: 0;
605
+ }
606
+ }
607
+ }
@@ -0,0 +1,39 @@
1
+ :root {
2
+ --z-content: 10;
3
+ --z-nav: 100;
4
+ --z-overlay: 110;
5
+ --z-modal: 120;
6
+ --z-search: 125;
7
+ --z-toast: 130;
8
+ --z-progress: 140;
9
+ }
10
+
11
+ @layer utilities {
12
+ .z-content {
13
+ z-index: var(--z-content);
14
+ }
15
+
16
+ .z-nav {
17
+ z-index: var(--z-nav);
18
+ }
19
+
20
+ .z-overlay {
21
+ z-index: var(--z-overlay);
22
+ }
23
+
24
+ .z-modal {
25
+ z-index: var(--z-modal);
26
+ }
27
+
28
+ .z-search {
29
+ z-index: var(--z-search);
30
+ }
31
+
32
+ .z-toast {
33
+ z-index: var(--z-toast);
34
+ }
35
+
36
+ .z-progress {
37
+ z-index: var(--z-progress);
38
+ }
39
+ }