@publish.os/nextjs 0.0.1-alpha.5 → 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.
- package/README.md +3 -5
- package/compiler-assets/nextjs/defaults/app/globals.css +6 -0
- package/compiler-assets/nextjs/defaults/group/layout.tsx +23 -0
- package/compiler-assets/nextjs/defaults/group/leaf.tsx +48 -0
- package/compiler-assets/nextjs/defaults/group/page.tsx +50 -0
- package/compiler-assets/nextjs/defaults/project/next.config.mjs +45 -0
- package/compiler-assets/nextjs/defaults/project/postcss.config.mjs +5 -0
- package/compiler-assets/nextjs/defaults/project/tsconfig.json.template +41 -0
- package/compiler-assets/nextjs/defaults/root/css/animation.css +90 -0
- package/compiler-assets/nextjs/defaults/root/css/components/dialog.css +21 -0
- package/compiler-assets/nextjs/defaults/root/css/components/drawer.css +21 -0
- package/compiler-assets/nextjs/defaults/root/css/components/menu.css +23 -0
- package/compiler-assets/nextjs/defaults/root/css/components/navigation-menu.css +25 -0
- package/compiler-assets/nextjs/defaults/root/css/components/popover.css +17 -0
- package/compiler-assets/nextjs/defaults/root/css/components/select.css +23 -0
- package/compiler-assets/nextjs/defaults/root/css/components/toast.css +19 -0
- package/compiler-assets/nextjs/defaults/root/css/components/tooltip.css +15 -0
- package/compiler-assets/nextjs/defaults/root/css/layout.css +22 -0
- package/compiler-assets/nextjs/defaults/root/css/media.css +81 -0
- package/compiler-assets/nextjs/defaults/root/css/radius.css +49 -0
- package/compiler-assets/nextjs/defaults/root/css/scrollbar.css +43 -0
- package/compiler-assets/nextjs/defaults/root/css/shadow.css +145 -0
- package/compiler-assets/nextjs/defaults/root/css/typography.css +607 -0
- package/compiler-assets/nextjs/defaults/root/css/zindex.css +39 -0
- package/compiler-assets/nextjs/defaults/root/globals.css +191 -0
- package/compiler-assets/nextjs/defaults/root/layout.tsx +19 -0
- package/compiler-assets/nextjs/defaults/root/page.tsx +61 -0
- package/compiler-assets/nextjs/defaults/root/theme.css +50 -0
- package/compiler-assets/nextjs/defaults/source/_internal/logger.ts +21 -0
- package/compiler-assets/nextjs/shims/generated-group-layout.tsx +19 -0
- package/compiler-assets/nextjs/shims/generated-group-page.tsx +18 -0
- package/compiler-assets/nextjs/shims/generated-leaf-page.tsx +21 -0
- package/compiler-assets/nextjs/shims/global-layout.tsx +134 -0
- package/compiler-assets/nextjs/shims/markdown-route.ts +29 -0
- package/compiler-assets/nextjs/shims/og-image-route.ts +18 -0
- package/compiler-assets/nextjs/shims/powered-by-footer.tsx +40 -0
- package/compiler-assets/nextjs/shims/providers.tsx +13 -0
- package/compiler-assets/nextjs/shims/proxy.ts +317 -0
- package/compiler-assets/nextjs/shims/publish-os-theme-provider.tsx +77 -0
- package/compiler-assets/nextjs/shims/root-page.tsx +13 -0
- package/compiler-assets/nextjs/shims/theme-defaults.css +177 -0
- package/dist/{kernel/components/ui/button.d.cts → button-CFdx-ohV.d.ts} +1 -3
- package/dist/cache/tags.js +6 -14
- package/dist/compiler.d.ts +100 -0
- package/dist/compiler.js +13379 -0
- package/dist/config/createNextConfig.d.ts +2 -1
- package/dist/config/createNextConfig.js +16 -12
- package/dist/icons.d.ts +1 -0
- package/dist/icons.js +2 -0
- package/dist/index.d.ts +303 -15
- package/dist/index.js +30 -1196
- package/dist/kernel/components/blocks/AgentActions.d.ts +9 -3
- package/dist/kernel/components/blocks/AgentActions.js +114 -200
- package/dist/kernel/components/blocks/animated-icon-swap.js +4 -25
- package/dist/kernel/components/blocks/color-palette.js +107 -157
- package/dist/kernel/components/blocks/design-system-preview.d.ts +38 -6
- package/dist/kernel/components/blocks/design-system-preview.js +44 -52
- package/dist/kernel/components/blocks/link-playground.js +23 -71
- package/dist/kernel/components/blocks/logo-block.js +19 -48
- package/dist/kernel/components/blocks/nav-breadcrumb.d.ts +1 -1
- package/dist/kernel/components/blocks/nav-breadcrumb.js +28 -52
- package/dist/kernel/components/blocks/navbar.d.ts +1 -1
- package/dist/kernel/components/blocks/navbar.js +14 -41
- package/dist/kernel/components/blocks/navigation-progress-playground.js +56 -149
- package/dist/kernel/components/blocks/navigation-progress.js +53 -157
- package/dist/kernel/components/blocks/next-prev.d.ts +1 -1
- package/dist/kernel/components/blocks/next-prev.js +16 -42
- package/dist/kernel/components/blocks/page-list.d.ts +1 -1
- package/dist/kernel/components/blocks/page-list.js +11 -16
- package/dist/kernel/components/blocks/search.d.ts +13 -2
- package/dist/kernel/components/blocks/search.js +116 -247
- package/dist/kernel/components/blocks/sidebar-node.d.ts +2 -2
- package/dist/kernel/components/blocks/sidebar-node.js +56 -95
- package/dist/kernel/components/blocks/sidebar.d.ts +5 -23
- package/dist/kernel/components/blocks/sidebar.js +35 -103
- package/dist/kernel/components/blocks/theme-toggle.d.ts +7 -3
- package/dist/kernel/components/blocks/theme-toggle.js +2 -2
- package/dist/kernel/components/blocks/toc.js +42 -178
- package/dist/kernel/components/mdx/components/blockquote.js +3 -24
- package/dist/kernel/components/mdx/components/callout.d.ts +1 -1
- package/dist/kernel/components/mdx/components/callout.js +15 -47
- package/dist/kernel/components/mdx/components/code-block.js +2 -2
- package/dist/kernel/components/mdx/components/figure-caption.js +6 -24
- package/dist/kernel/components/mdx/components/figure.js +9 -36
- package/dist/kernel/components/mdx/components/footnotes.js +3 -24
- package/dist/kernel/components/mdx/components/heading-copy-link.js +13 -37
- package/dist/kernel/components/mdx/components/heading.d.ts +8 -3
- package/dist/kernel/components/mdx/components/heading.js +32 -116
- package/dist/kernel/components/mdx/components/hr.d.ts +5 -3
- package/dist/kernel/components/mdx/components/hr.js +2 -2
- package/dist/kernel/components/mdx/components/image-zoom.js +2 -3
- package/dist/kernel/components/mdx/components/image.js +23 -63
- package/dist/kernel/components/mdx/components/inline-code.js +3 -24
- package/dist/kernel/components/mdx/components/kbd.d.ts +9 -4
- package/dist/kernel/components/mdx/components/kbd.js +2 -2
- package/dist/kernel/components/mdx/components/link.d.ts +1 -2
- package/dist/kernel/components/mdx/components/link.js +2 -2
- package/dist/kernel/components/mdx/components/paragraph.js +13 -41
- package/dist/kernel/components/mdx/components/pre.js +3 -24
- package/dist/kernel/components/mdx/components/strikethrough.js +6 -24
- package/dist/kernel/components/mdx/components/table.js +2 -2
- package/dist/kernel/components/mdx/components/task-list.js +6 -28
- package/dist/kernel/components/mdx/components/video-player.js +53 -88
- package/dist/kernel/components/mdx/components/video.js +27 -75
- package/dist/kernel/components/mdx/error-boundary.d.ts +1 -1
- package/dist/kernel/components/mdx/error-boundary.js +12 -15
- package/dist/kernel/components/mdx/error-fallback.js +4 -4
- package/dist/kernel/components/mdx/mdx.d.ts +68 -11
- package/dist/kernel/components/mdx/mdx.js +29 -29
- package/dist/kernel/components/mdx/rehype-heading-ids.js +11 -67
- package/dist/kernel/components/mdx/types.d.ts +1 -1
- package/dist/kernel/components/ui/accordion.js +3 -26
- package/dist/kernel/components/ui/breadcrumb-trail.d.ts +26 -8
- package/dist/kernel/components/ui/breadcrumb-trail.js +32 -79
- package/dist/kernel/components/ui/breadcrumb.d.ts +2 -6
- package/dist/kernel/components/ui/breadcrumb.js +21 -70
- package/dist/kernel/components/ui/button-group.d.ts +4 -3
- package/dist/kernel/components/ui/button-group.js +7 -30
- package/dist/kernel/components/ui/button.js +13 -36
- package/dist/kernel/components/ui/card.d.ts +2 -2
- package/dist/kernel/components/ui/card.js +2 -23
- package/dist/kernel/components/ui/dialog.d.ts +9 -9
- package/dist/kernel/components/ui/dialog.js +15 -33
- package/dist/kernel/components/ui/drawer.d.ts +10 -10
- package/dist/kernel/components/ui/drawer.js +15 -33
- package/dist/kernel/components/ui/input.js +6 -30
- package/dist/kernel/components/ui/kbd.js +10 -31
- package/dist/kernel/components/ui/link.d.ts +1 -1
- package/dist/kernel/components/ui/link.js +53 -104
- package/dist/kernel/components/ui/menu.d.ts +21 -21
- package/dist/kernel/components/ui/menu.js +14 -36
- package/dist/kernel/components/ui/meta-key.d.ts +9 -4
- package/dist/kernel/components/ui/meta-key.js +2 -2
- package/dist/kernel/components/ui/navigation-menu.d.ts +14 -14
- package/dist/kernel/components/ui/navigation-menu.js +9 -30
- package/dist/kernel/components/ui/popover.d.ts +10 -10
- package/dist/kernel/components/ui/popover.js +13 -34
- package/dist/kernel/components/ui/progress.js +2 -25
- package/dist/kernel/components/ui/scroll-area.js +39 -118
- package/dist/kernel/components/ui/select.d.ts +15 -15
- package/dist/kernel/components/ui/select.js +19 -35
- package/dist/kernel/components/ui/separator.js +2 -25
- package/dist/kernel/components/ui/table.js +2 -23
- package/dist/kernel/components/ui/tabs.js +39 -99
- package/dist/kernel/components/ui/tag.d.ts +2 -2
- package/dist/kernel/components/ui/tag.js +4 -25
- package/dist/kernel/components/ui/text.d.ts +2 -2
- package/dist/kernel/components/ui/text.js +112 -131
- package/dist/kernel/components/ui/theme-toggle.d.ts +18 -4
- package/dist/kernel/components/ui/theme-toggle.js +18 -44
- package/dist/kernel/components/ui/toast.d.ts +10 -10
- package/dist/kernel/components/ui/toast.js +13 -35
- package/dist/kernel/components/ui/tooltip.d.ts +8 -8
- package/dist/kernel/components/ui/tooltip.js +9 -30
- package/dist/kernel/defaults.registry.d.ts +61 -70
- package/dist/kernel/defaults.registry.js +61 -69
- package/dist/kernel/framework-icons.d.ts +1 -0
- package/dist/kernel/framework-icons.js +39 -0
- package/dist/kernel/routes/agent/markdown.js +36 -65
- package/dist/kernel/routes/layouts/group.d.ts +1 -1
- package/dist/kernel/routes/layouts/group.js +20 -109
- package/dist/kernel/routes/metadata/feed.d.ts +1 -2
- package/dist/kernel/routes/metadata/feed.js +46 -127
- package/dist/kernel/routes/metadata/llms.d.ts +1 -2
- package/dist/kernel/routes/metadata/llms.js +42 -120
- package/dist/kernel/routes/metadata/og-image.d.ts +11 -1
- package/dist/kernel/routes/metadata/og-image.js +264 -198
- package/dist/kernel/routes/metadata/robots.d.ts +1 -2
- package/dist/kernel/routes/metadata/robots.js +21 -90
- package/dist/kernel/routes/metadata/sitemap.d.ts +1 -2
- package/dist/kernel/routes/metadata/sitemap.js +36 -102
- package/dist/kernel/routes/pages/group.d.ts +1 -1
- package/dist/kernel/routes/pages/group.js +42 -137
- package/dist/kernel/routes/pages/leaf.d.ts +1 -1
- package/dist/kernel/routes/pages/leaf.js +74 -213
- package/dist/kernel/routes/pages/root.d.ts +1 -1
- package/dist/kernel/routes/pages/root.js +37 -108
- package/dist/keyboard-shortcuts.js +69 -141
- package/dist/{kernel/components/ui/link.d.cts → link-CYaCRDb6.d.ts} +9 -5
- package/dist/resolvers/manifest-resolver.d.ts +3 -3
- package/dist/resolvers/manifest-resolver.js +15 -21
- package/dist/{kernel/routes/metadata/og-image.d.cts → route-metadata-og-image-BeKKFHg7.d.ts} +12 -16
- package/dist/search.d.ts +81 -4
- package/dist/search.js +124 -195
- package/dist/{kernel/components/blocks/sidebar.d.cts → sidebar-types-Bgchdfd6.d.ts} +2 -10
- package/dist/theme-scope.d.ts +15 -0
- package/dist/theme-scope.js +23 -0
- package/dist/types-B_b3C0U6.d.ts +63 -0
- package/dist/types-CIwwieNw.d.ts +127 -0
- package/dist/types-DHBm7-j6.d.ts +57 -0
- package/dist/types-sM2g9nW0.d.ts +12 -0
- package/dist/types.d.ts +0 -1
- package/dist/types.js +1 -1
- package/dist/utils/cn.d.ts +5 -9
- package/dist/utils/cn.js +13 -7
- package/dist/utils/heading-ids.js +20 -47
- package/dist/utils/pretty-date.js +7 -13
- package/init/seed/minimal/publish.os/assets/logo/publish-dev-logo.dark.png +0 -0
- package/init/seed/minimal/publish.os/assets/logo/publish-dev-logo.png +0 -0
- package/init/seed/minimal/publish.os/docs/content/get-started.mdx +54 -0
- package/init/seed/minimal/publish.os/docs/content/groups.mdx +31 -0
- package/init/seed/minimal/publish.os/docs/content/theme.mdx +64 -0
- package/init/seed/minimal/publish.os/publish.os.config.json +21 -0
- package/init/seed/minimal/publish.os/theme.css +47 -0
- package/init/seed/minimal/seed.json +13 -0
- package/package.json +470 -40
- package/release/{package.json → app/lucide/package.json} +14 -7
- package/release/app/lucide/pnpm-lock.yaml.template +2905 -0
- package/release/app/lucide/pnpm-workspace.yaml +11 -0
- package/release/app/phosphor/package.json +30 -0
- package/release/app/phosphor/pnpm-lock.yaml.template +2908 -0
- package/release/app/phosphor/pnpm-workspace.yaml +11 -0
- package/release/app/tabler/package.json +30 -0
- package/release/app/tabler/pnpm-lock.yaml.template +2911 -0
- package/release/app/tabler/pnpm-workspace.yaml +11 -0
- package/release/compiler/package.json +20 -0
- package/release/compiler/pnpm-lock.yaml.template +2432 -0
- package/release/compiler/pnpm-workspace.yaml +11 -0
- package/release/release.json +31 -7
- package/dist/cache/tags.cjs +0 -79
- package/dist/cache/tags.d.cts +0 -13
- package/dist/config/createNextConfig.cjs +0 -52
- package/dist/config/createNextConfig.d.cts +0 -8
- package/dist/config.cjs +0 -78
- package/dist/config.d.cts +0 -101
- package/dist/config.d.ts +0 -101
- package/dist/config.js +0 -48
- package/dist/index.cjs +0 -1266
- package/dist/index.d.cts +0 -18
- package/dist/kernel/components/blocks/AgentActions.cjs +0 -425
- package/dist/kernel/components/blocks/AgentActions.d.cts +0 -52
- package/dist/kernel/components/blocks/animated-icon-swap.cjs +0 -101
- package/dist/kernel/components/blocks/animated-icon-swap.d.cts +0 -16
- package/dist/kernel/components/blocks/color-palette.cjs +0 -413
- package/dist/kernel/components/blocks/color-palette.d.cts +0 -7
- package/dist/kernel/components/blocks/design-system-preview.cjs +0 -593
- package/dist/kernel/components/blocks/design-system-preview.d.cts +0 -29
- package/dist/kernel/components/blocks/link-playground.cjs +0 -816
- package/dist/kernel/components/blocks/link-playground.d.cts +0 -5
- package/dist/kernel/components/blocks/logo-block.cjs +0 -156
- package/dist/kernel/components/blocks/logo-block.d.cts +0 -21
- package/dist/kernel/components/blocks/nav-breadcrumb.cjs +0 -122
- package/dist/kernel/components/blocks/nav-breadcrumb.d.cts +0 -11
- package/dist/kernel/components/blocks/navbar.cjs +0 -154
- package/dist/kernel/components/blocks/navbar.d.cts +0 -16
- package/dist/kernel/components/blocks/navigation-progress-playground.cjs +0 -735
- package/dist/kernel/components/blocks/navigation-progress-playground.d.cts +0 -5
- package/dist/kernel/components/blocks/navigation-progress.cjs +0 -270
- package/dist/kernel/components/blocks/navigation-progress.d.cts +0 -16
- package/dist/kernel/components/blocks/next-prev.cjs +0 -142
- package/dist/kernel/components/blocks/next-prev.d.cts +0 -11
- package/dist/kernel/components/blocks/page-list.cjs +0 -59
- package/dist/kernel/components/blocks/page-list.d.cts +0 -11
- package/dist/kernel/components/blocks/search.cjs +0 -717
- package/dist/kernel/components/blocks/search.d.cts +0 -77
- package/dist/kernel/components/blocks/sidebar-node.cjs +0 -309
- package/dist/kernel/components/blocks/sidebar-node.d.cts +0 -8
- package/dist/kernel/components/blocks/sidebar.cjs +0 -317
- package/dist/kernel/components/blocks/theme-toggle.cjs +0 -31
- package/dist/kernel/components/blocks/theme-toggle.d.cts +0 -6
- package/dist/kernel/components/blocks/toc.cjs +0 -356
- package/dist/kernel/components/blocks/toc.d.cts +0 -10
- package/dist/kernel/components/mdx/components/blockquote.cjs +0 -66
- package/dist/kernel/components/mdx/components/blockquote.d.cts +0 -6
- package/dist/kernel/components/mdx/components/callout.cjs +0 -137
- package/dist/kernel/components/mdx/components/callout.d.cts +0 -18
- package/dist/kernel/components/mdx/components/code-block.cjs +0 -39
- package/dist/kernel/components/mdx/components/code-block.d.cts +0 -9
- package/dist/kernel/components/mdx/components/figure-caption.cjs +0 -63
- package/dist/kernel/components/mdx/components/figure-caption.d.cts +0 -6
- package/dist/kernel/components/mdx/components/figure.cjs +0 -78
- package/dist/kernel/components/mdx/components/figure.d.cts +0 -10
- package/dist/kernel/components/mdx/components/footnotes.cjs +0 -66
- package/dist/kernel/components/mdx/components/footnotes.d.cts +0 -6
- package/dist/kernel/components/mdx/components/heading-copy-link.cjs +0 -108
- package/dist/kernel/components/mdx/components/heading-copy-link.d.cts +0 -23
- package/dist/kernel/components/mdx/components/heading.cjs +0 -166
- package/dist/kernel/components/mdx/components/heading.d.cts +0 -8
- package/dist/kernel/components/mdx/components/hr.cjs +0 -34
- package/dist/kernel/components/mdx/components/hr.d.cts +0 -9
- package/dist/kernel/components/mdx/components/image-zoom.cjs +0 -49
- package/dist/kernel/components/mdx/components/image-zoom.d.cts +0 -10
- package/dist/kernel/components/mdx/components/image.cjs +0 -192
- package/dist/kernel/components/mdx/components/image.d.cts +0 -21
- package/dist/kernel/components/mdx/components/inline-code.cjs +0 -66
- package/dist/kernel/components/mdx/components/inline-code.d.cts +0 -6
- package/dist/kernel/components/mdx/components/kbd.cjs +0 -34
- package/dist/kernel/components/mdx/components/kbd.d.cts +0 -10
- package/dist/kernel/components/mdx/components/link.cjs +0 -49
- package/dist/kernel/components/mdx/components/link.d.cts +0 -11
- package/dist/kernel/components/mdx/components/paragraph.cjs +0 -87
- package/dist/kernel/components/mdx/components/paragraph.d.cts +0 -5
- package/dist/kernel/components/mdx/components/pre.cjs +0 -66
- package/dist/kernel/components/mdx/components/pre.d.cts +0 -6
- package/dist/kernel/components/mdx/components/strikethrough.cjs +0 -63
- package/dist/kernel/components/mdx/components/strikethrough.d.cts +0 -6
- package/dist/kernel/components/mdx/components/table.cjs +0 -59
- package/dist/kernel/components/mdx/components/table.d.cts +0 -10
- package/dist/kernel/components/mdx/components/task-list.cjs +0 -88
- package/dist/kernel/components/mdx/components/task-list.d.cts +0 -8
- package/dist/kernel/components/mdx/components/video-player.cjs +0 -173
- package/dist/kernel/components/mdx/components/video-player.d.cts +0 -18
- package/dist/kernel/components/mdx/components/video.cjs +0 -185
- package/dist/kernel/components/mdx/components/video.d.cts +0 -15
- package/dist/kernel/components/mdx/error-boundary.cjs +0 -62
- package/dist/kernel/components/mdx/error-boundary.d.cts +0 -8
- package/dist/kernel/components/mdx/error-fallback.cjs +0 -58
- package/dist/kernel/components/mdx/error-fallback.d.cts +0 -9
- package/dist/kernel/components/mdx/mdx.cjs +0 -141
- package/dist/kernel/components/mdx/mdx.d.cts +0 -22
- package/dist/kernel/components/mdx/rehype-heading-ids.cjs +0 -113
- package/dist/kernel/components/mdx/rehype-heading-ids.d.cts +0 -10
- package/dist/kernel/components/mdx/types.cjs +0 -18
- package/dist/kernel/components/mdx/types.d.cts +0 -18
- package/dist/kernel/components/ui/accordion.cjs +0 -104
- package/dist/kernel/components/ui/accordion.d.cts +0 -16
- package/dist/kernel/components/ui/breadcrumb-trail.cjs +0 -238
- package/dist/kernel/components/ui/breadcrumb-trail.d.cts +0 -13
- package/dist/kernel/components/ui/breadcrumb.cjs +0 -399
- package/dist/kernel/components/ui/breadcrumb.d.cts +0 -52
- package/dist/kernel/components/ui/button-group.cjs +0 -143
- package/dist/kernel/components/ui/button-group.d.cts +0 -19
- package/dist/kernel/components/ui/button.cjs +0 -139
- package/dist/kernel/components/ui/card.cjs +0 -133
- package/dist/kernel/components/ui/card.d.cts +0 -17
- package/dist/kernel/components/ui/dialog.cjs +0 -149
- package/dist/kernel/components/ui/dialog.d.cts +0 -22
- package/dist/kernel/components/ui/drawer.cjs +0 -163
- package/dist/kernel/components/ui/drawer.d.cts +0 -24
- package/dist/kernel/components/ui/input.cjs +0 -96
- package/dist/kernel/components/ui/input.d.cts +0 -18
- package/dist/kernel/components/ui/kbd.cjs +0 -105
- package/dist/kernel/components/ui/kbd.d.cts +0 -13
- package/dist/kernel/components/ui/link.cjs +0 -253
- package/dist/kernel/components/ui/menu.cjs +0 -301
- package/dist/kernel/components/ui/menu.d.cts +0 -70
- package/dist/kernel/components/ui/meta-key.cjs +0 -34
- package/dist/kernel/components/ui/meta-key.d.cts +0 -12
- package/dist/kernel/components/ui/navigation-menu.cjs +0 -253
- package/dist/kernel/components/ui/navigation-menu.d.cts +0 -47
- package/dist/kernel/components/ui/popover.cjs +0 -168
- package/dist/kernel/components/ui/popover.d.cts +0 -24
- package/dist/kernel/components/ui/progress.cjs +0 -112
- package/dist/kernel/components/ui/progress.d.cts +0 -16
- package/dist/kernel/components/ui/scroll-area.cjs +0 -413
- package/dist/kernel/components/ui/scroll-area.d.cts +0 -58
- package/dist/kernel/components/ui/select.cjs +0 -244
- package/dist/kernel/components/ui/select.d.cts +0 -40
- package/dist/kernel/components/ui/separator.cjs +0 -73
- package/dist/kernel/components/ui/separator.d.cts +0 -8
- package/dist/kernel/components/ui/table.cjs +0 -131
- package/dist/kernel/components/ui/table.d.cts +0 -11
- package/dist/kernel/components/ui/tabs.cjs +0 -450
- package/dist/kernel/components/ui/tabs.d.cts +0 -82
- package/dist/kernel/components/ui/tag.cjs +0 -104
- package/dist/kernel/components/ui/tag.d.cts +0 -14
- package/dist/kernel/components/ui/text.cjs +0 -184
- package/dist/kernel/components/ui/text.d.cts +0 -17
- package/dist/kernel/components/ui/theme-toggle.cjs +0 -108
- package/dist/kernel/components/ui/theme-toggle.d.cts +0 -10
- package/dist/kernel/components/ui/toast.cjs +0 -154
- package/dist/kernel/components/ui/toast.d.cts +0 -26
- package/dist/kernel/components/ui/tooltip.cjs +0 -127
- package/dist/kernel/components/ui/tooltip.d.cts +0 -20
- package/dist/kernel/defaults.registry.cjs +0 -541
- package/dist/kernel/defaults.registry.d.cts +0 -469
- package/dist/kernel/routes/agent/markdown.cjs +0 -202
- package/dist/kernel/routes/agent/markdown.d.cts +0 -58
- package/dist/kernel/routes/layouts/group.cjs +0 -181
- package/dist/kernel/routes/layouts/group.d.cts +0 -20
- package/dist/kernel/routes/metadata/feed.cjs +0 -293
- package/dist/kernel/routes/metadata/feed.d.cts +0 -20
- package/dist/kernel/routes/metadata/llms.cjs +0 -239
- package/dist/kernel/routes/metadata/llms.d.cts +0 -26
- package/dist/kernel/routes/metadata/og-image.cjs +0 -630
- package/dist/kernel/routes/metadata/robots.cjs +0 -148
- package/dist/kernel/routes/metadata/robots.d.cts +0 -6
- package/dist/kernel/routes/metadata/sitemap.cjs +0 -192
- package/dist/kernel/routes/metadata/sitemap.d.cts +0 -8
- package/dist/kernel/routes/pages/group.cjs +0 -263
- package/dist/kernel/routes/pages/group.d.cts +0 -17
- package/dist/kernel/routes/pages/leaf.cjs +0 -421
- package/dist/kernel/routes/pages/leaf.d.cts +0 -36
- package/dist/kernel/routes/pages/root.cjs +0 -229
- package/dist/kernel/routes/pages/root.d.cts +0 -16
- package/dist/keyboard-shortcuts.cjs +0 -345
- package/dist/keyboard-shortcuts.d.cts +0 -34
- package/dist/resolvers/manifest-resolver.cjs +0 -111
- package/dist/resolvers/manifest-resolver.d.cts +0 -13
- package/dist/search.cjs +0 -411
- package/dist/search.d.cts +0 -20
- package/dist/types.cjs +0 -30
- package/dist/types.d.cts +0 -269
- package/dist/utils/cn.cjs +0 -49
- package/dist/utils/cn.d.cts +0 -15
- package/dist/utils/heading-ids.cjs +0 -119
- package/dist/utils/heading-ids.d.cts +0 -15
- package/dist/utils/pretty-date.cjs +0 -55
- package/dist/utils/pretty-date.d.cts +0 -6
- package/release/pnpm-lock.yaml +0 -1215
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
type OgImageMetadata = string | {
|
|
2
|
+
src: string;
|
|
3
|
+
alt?: string;
|
|
4
|
+
};
|
|
5
|
+
type OgMetadata = {
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
image?: OgImageMetadata;
|
|
9
|
+
};
|
|
10
|
+
type Author = {
|
|
11
|
+
id?: string;
|
|
12
|
+
name: string;
|
|
13
|
+
handle?: string;
|
|
14
|
+
avatar?: string;
|
|
15
|
+
url?: string;
|
|
16
|
+
};
|
|
17
|
+
type PageStatus = "published" | "draft" | "archived";
|
|
18
|
+
type PageNode = {
|
|
19
|
+
type: "page";
|
|
20
|
+
fileID: string;
|
|
21
|
+
title: string;
|
|
22
|
+
path: string;
|
|
23
|
+
group: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
status: PageStatus;
|
|
26
|
+
publishedAt?: string;
|
|
27
|
+
updatedAt?: string;
|
|
28
|
+
authors: Author[];
|
|
29
|
+
tags?: string[];
|
|
30
|
+
og?: OgMetadata;
|
|
31
|
+
meta: Record<string, unknown>;
|
|
32
|
+
};
|
|
33
|
+
type SectionNode = {
|
|
34
|
+
type: "section";
|
|
35
|
+
id: string;
|
|
36
|
+
title: string;
|
|
37
|
+
path?: string;
|
|
38
|
+
group?: string;
|
|
39
|
+
children: TreeNode[];
|
|
40
|
+
};
|
|
41
|
+
type FolderNode = {
|
|
42
|
+
type: "folder";
|
|
43
|
+
id: string;
|
|
44
|
+
title: string;
|
|
45
|
+
path?: string;
|
|
46
|
+
group?: string;
|
|
47
|
+
children: TreeNode[];
|
|
48
|
+
};
|
|
49
|
+
type LinkNode = {
|
|
50
|
+
type: "link";
|
|
51
|
+
id: string;
|
|
52
|
+
title: string;
|
|
53
|
+
href: string;
|
|
54
|
+
};
|
|
55
|
+
type TreeNode = PageNode | SectionNode | FolderNode | LinkNode;
|
|
56
|
+
|
|
57
|
+
export type { TreeNode as T };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MDXComponents as MDXComponents$1 } from 'mdx/types.js';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type MDXComponents = MDXComponents$1;
|
|
5
|
+
type MdxErrorBoundaryProps = {
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
pageId?: string;
|
|
8
|
+
slug?: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type { MdxErrorBoundaryProps as M, MDXComponents as a };
|
package/dist/types.d.ts
CHANGED
package/dist/types.js
CHANGED
package/dist/utils/cn.d.ts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CnFunction } from 'cn';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Shared class merging for PublishOS runtime and project components.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* cn("bg-surface-2", "bg-accent-1", "rounded-lg")
|
|
11
|
-
* // Result: "bg-accent-1 rounded-lg"
|
|
6
|
+
* Custom z-index classes conflict with each other and standard z-index classes,
|
|
7
|
+
* so the last one passed to `cn()` wins.
|
|
12
8
|
*/
|
|
13
|
-
declare
|
|
9
|
+
declare const cn: CnFunction;
|
|
14
10
|
|
|
15
11
|
export { cn };
|
package/dist/utils/cn.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
// src/utils/cn.ts
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
var twMerge = extendTailwindMerge({
|
|
1
|
+
// src/components/utils/cn.ts
|
|
2
|
+
import { createCn } from "cn/config";
|
|
3
|
+
var cn = createCn({
|
|
5
4
|
extend: {
|
|
6
5
|
classGroups: {
|
|
6
|
+
shadow: [
|
|
7
|
+
"border-shadow-1",
|
|
8
|
+
"border-shadow-1-hover",
|
|
9
|
+
"border-shadow-2",
|
|
10
|
+
"border-shadow-2-hover",
|
|
11
|
+
"border-shadow-3",
|
|
12
|
+
"border-shadow-3-hover",
|
|
13
|
+
"border-shadow-4",
|
|
14
|
+
"border-shadow-4-hover"
|
|
15
|
+
],
|
|
7
16
|
z: [
|
|
8
17
|
"z-content",
|
|
9
18
|
"z-nav",
|
|
@@ -16,9 +25,6 @@ var twMerge = extendTailwindMerge({
|
|
|
16
25
|
}
|
|
17
26
|
}
|
|
18
27
|
});
|
|
19
|
-
function cn(...inputs) {
|
|
20
|
-
return twMerge(clsx(inputs));
|
|
21
|
-
}
|
|
22
28
|
export {
|
|
23
29
|
cn
|
|
24
30
|
};
|
|
@@ -1,82 +1,55 @@
|
|
|
1
|
-
// src/
|
|
1
|
+
// src/components/mdx/heading-ids.ts
|
|
2
2
|
import { isValidElement } from "react";
|
|
3
|
-
var SELF_CLOSING_TAG_RE = new RegExp("<[^>]+/>", "g");
|
|
4
|
-
var PAIRED_TAG_RE = /<\/?\w[^>]*>/g;
|
|
5
|
-
var MDX_BOLD_RE = /\*\*(.*?)\*\*/g;
|
|
6
|
-
var MDX_ITALIC_RE = /\*(.*?)\*/g;
|
|
7
|
-
var MDX_UNDERLINE_BOLD_RE = /__(.*?)__/g;
|
|
8
|
-
var MDX_UNDERLINE_ITALIC_RE = /_(.*?)_/g;
|
|
9
|
-
var MDX_STRIKETHROUGH_RE = /~~(.*?)~~/g;
|
|
10
|
-
var MDX_INLINE_CODE_RE = /`(.*?)`/g;
|
|
11
|
-
var MDX_LINK_RE = /\[(.*?)\]\(.*?\)/g;
|
|
12
|
-
var NON_ALPHANUMERIC_RE = /[^a-z0-9]+/g;
|
|
13
|
-
var LEADING_TRAILING_HYPHEN_RE = /^-+|-+$/g;
|
|
14
|
-
var LEADING_DIGIT_RE = /^(\d)/;
|
|
15
|
-
var HEADING_RE = /^(#{1,6})[ \t]+(.+?)\s*#*\s*$/gm;
|
|
16
|
-
var FENCED_CODE_RE = /```[\s\S]*?```|~~~[\s\S]*?~~~/g;
|
|
3
|
+
var SELF_CLOSING_TAG_RE = new RegExp("<[^>]+/>", "g"), PAIRED_TAG_RE = /<\/?\w[^>]*>/g, MDX_BOLD_RE = /\*\*(.*?)\*\*/g, MDX_ITALIC_RE = /\*(.*?)\*/g, MDX_UNDERLINE_BOLD_RE = /__(.*?)__/g, MDX_UNDERLINE_ITALIC_RE = /_(.*?)_/g, MDX_STRIKETHROUGH_RE = /~~(.*?)~~/g, MDX_INLINE_CODE_RE = /`(.*?)`/g, MDX_LINK_RE = /\[(.*?)\]\(.*?\)/g, NON_ALPHANUMERIC_RE = /[^a-z0-9]+/g, LEADING_TRAILING_HYPHEN_RE = /^-+|-+$/g, LEADING_DIGIT_RE = /^(\d)/, HEADING_RE = /^(#{1,6})[ \t]+(.+?)\s*#*\s*$/gm, FENCED_CODE_RE = /```[\s\S]*?```|~~~[\s\S]*?~~~/g;
|
|
17
4
|
function extractText(node) {
|
|
18
|
-
if (typeof node
|
|
19
|
-
if (typeof node
|
|
20
|
-
if (node == null || typeof node
|
|
21
|
-
if (Array.isArray(node))
|
|
5
|
+
if (typeof node == "string") return node;
|
|
6
|
+
if (typeof node == "number") return String(node);
|
|
7
|
+
if (node == null || typeof node == "boolean") return "";
|
|
8
|
+
if (Array.isArray(node))
|
|
22
9
|
return node.map(extractText).join("");
|
|
23
|
-
}
|
|
24
10
|
if (isValidElement(node)) {
|
|
25
|
-
|
|
11
|
+
let element = node;
|
|
26
12
|
return element.props.children === void 0 ? "" : extractText(element.props.children);
|
|
27
13
|
}
|
|
28
14
|
return "";
|
|
29
15
|
}
|
|
30
16
|
function cleanHeadingText(input) {
|
|
31
|
-
|
|
32
|
-
return text.replace(SELF_CLOSING_TAG_RE, "").replace(PAIRED_TAG_RE, "").replace(MDX_BOLD_RE, "$1").replace(MDX_ITALIC_RE, "$1").replace(MDX_UNDERLINE_BOLD_RE, "$1").replace(MDX_UNDERLINE_ITALIC_RE, "$1").replace(MDX_STRIKETHROUGH_RE, "$1").replace(MDX_INLINE_CODE_RE, "$1").replace(MDX_LINK_RE, "$1").trim();
|
|
17
|
+
return (typeof input == "string" ? input : extractText(input)).replace(SELF_CLOSING_TAG_RE, "").replace(PAIRED_TAG_RE, "").replace(MDX_BOLD_RE, "$1").replace(MDX_ITALIC_RE, "$1").replace(MDX_UNDERLINE_BOLD_RE, "$1").replace(MDX_UNDERLINE_ITALIC_RE, "$1").replace(MDX_STRIKETHROUGH_RE, "$1").replace(MDX_INLINE_CODE_RE, "$1").replace(MDX_LINK_RE, "$1").trim();
|
|
33
18
|
}
|
|
34
19
|
function slugify(text) {
|
|
35
20
|
return text.toLowerCase().replace(NON_ALPHANUMERIC_RE, "-").replace(LEADING_TRAILING_HYPHEN_RE, "").replace(LEADING_DIGIT_RE, "id-$1");
|
|
36
21
|
}
|
|
37
22
|
function headingToHTMLId(input) {
|
|
38
23
|
try {
|
|
39
|
-
|
|
40
|
-
return id || "empty-heading";
|
|
24
|
+
return slugify(cleanHeadingText(input)) || "empty-heading";
|
|
41
25
|
} catch {
|
|
42
26
|
return "empty-heading";
|
|
43
27
|
}
|
|
44
28
|
}
|
|
45
29
|
function createHeadingIdGenerator() {
|
|
46
|
-
|
|
30
|
+
let usedIds = /* @__PURE__ */ new Map();
|
|
47
31
|
return (input) => {
|
|
48
|
-
|
|
32
|
+
let baseId = headingToHTMLId(input);
|
|
49
33
|
if (baseId === "empty-heading") return baseId;
|
|
50
|
-
|
|
51
|
-
usedIds.set(baseId, count + 1)
|
|
52
|
-
return count === 0 ? baseId : `${baseId}-${count}`;
|
|
34
|
+
let count = usedIds.get(baseId) ?? 0;
|
|
35
|
+
return usedIds.set(baseId, count + 1), count === 0 ? baseId : `${baseId}-${count}`;
|
|
53
36
|
};
|
|
54
37
|
}
|
|
55
38
|
function extractMdxHeadings(content = "", levels) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
const searchableContent = content.replace(FENCED_CODE_RE, "");
|
|
60
|
-
HEADING_RE.lastIndex = 0;
|
|
61
|
-
while (true) {
|
|
62
|
-
const match = HEADING_RE.exec(searchableContent);
|
|
39
|
+
let [minDepth, maxDepth] = levels, headingId = createHeadingIdGenerator(), headings = [], searchableContent = content.replace(FENCED_CODE_RE, "");
|
|
40
|
+
for (HEADING_RE.lastIndex = 0; ; ) {
|
|
41
|
+
let match = HEADING_RE.exec(searchableContent);
|
|
63
42
|
if (!match) break;
|
|
64
|
-
|
|
65
|
-
const rawText = match[2];
|
|
43
|
+
let marker = match[1], rawText = match[2];
|
|
66
44
|
if (!marker || !rawText) continue;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const id = headingId(rawText);
|
|
70
|
-
if (!text || id === "empty-heading") continue;
|
|
71
|
-
if (level < minDepth || level > maxDepth) continue;
|
|
72
|
-
headings.push({ id, level, text });
|
|
45
|
+
let level = marker.length, text = cleanHeadingText(rawText), id = headingId(rawText);
|
|
46
|
+
!text || id === "empty-heading" || level < minDepth || level > maxDepth || headings.push({ id, level, text });
|
|
73
47
|
}
|
|
74
48
|
return headings;
|
|
75
49
|
}
|
|
76
50
|
function urlIdToText(urlId) {
|
|
77
51
|
try {
|
|
78
|
-
|
|
79
|
-
return urlId.replace(/^id-/, "").replace(/-/g, " ").replace(/\b\w/g, (char) => char.toUpperCase());
|
|
52
|
+
return typeof urlId != "string" ? "" : urlId.replace(/^id-/, "").replace(/-/g, " ").replace(/\b\w/g, (char) => char.toUpperCase());
|
|
80
53
|
} catch {
|
|
81
54
|
return "";
|
|
82
55
|
}
|
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
// src/utils/pretty-date.ts
|
|
1
|
+
// src/components/utils/pretty-date.ts
|
|
2
2
|
var defaultDateOptions = {
|
|
3
3
|
day: "numeric",
|
|
4
4
|
month: "short",
|
|
5
5
|
year: "numeric"
|
|
6
6
|
};
|
|
7
7
|
function parseDate(value) {
|
|
8
|
-
|
|
9
|
-
if (typeof value === "string" && /^\d{4}-\d{2}-\d{2}$/.test(value)) {
|
|
10
|
-
return /* @__PURE__ */ new Date(`${value}T00:00:00`);
|
|
11
|
-
}
|
|
12
|
-
return new Date(value);
|
|
8
|
+
return value instanceof Date ? value : typeof value == "string" && /^\d{4}-\d{2}-\d{2}$/.test(value) ? /* @__PURE__ */ new Date(`${value}T00:00:00`) : new Date(value);
|
|
13
9
|
}
|
|
14
10
|
function prettyDate(value, options = {}) {
|
|
15
|
-
if (typeof value
|
|
11
|
+
if (typeof value != "string" && typeof value != "number" && !(value instanceof Date))
|
|
16
12
|
return null;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
const { locale = "en", ...dateOptions } = options;
|
|
13
|
+
let date = parseDate(value);
|
|
14
|
+
if (Number.isNaN(date.getTime()))
|
|
15
|
+
return typeof value == "string" ? value : null;
|
|
16
|
+
let { locale = "en", ...dateOptions } = options;
|
|
23
17
|
return new Intl.DateTimeFormat(locale, {
|
|
24
18
|
...defaultDateOptions,
|
|
25
19
|
...dateOptions
|
|
Binary file
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Get started
|
|
3
|
+
description: Preview your site and make your first change.
|
|
4
|
+
order: 1
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
A publishOS site starts with a folder. The `publish.os/` folder contains your content, theme, and configuration.
|
|
8
|
+
|
|
9
|
+
These guides are examples you can edit. The theme controls their appearance. Your words stay in MDX files.
|
|
10
|
+
|
|
11
|
+
Local previews and builds do not require an account.
|
|
12
|
+
|
|
13
|
+
## Preview the site
|
|
14
|
+
|
|
15
|
+
From your project directory, run this command:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx --package @publish.os/cli@latest publishos dev
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Open the address that the CLI shows. To stop the preview, press `Ctrl+C`.
|
|
22
|
+
|
|
23
|
+
## Make one change
|
|
24
|
+
|
|
25
|
+
Open this page, `publish.os/docs/content/get-started.mdx`. Replace this paragraph with a description of your project. Save the file.
|
|
26
|
+
|
|
27
|
+
## Write in MDX
|
|
28
|
+
|
|
29
|
+
Use Markdown for normal text. You can use **bold text**, _italic text_, and `code`.
|
|
30
|
+
|
|
31
|
+
You can also use MDX components to add interactive elements to your pages.
|
|
32
|
+
|
|
33
|
+
<Callout title="A short note">
|
|
34
|
+
A short notice or piece of information.
|
|
35
|
+
</Callout>
|
|
36
|
+
|
|
37
|
+
```text
|
|
38
|
+
Code blocks can show quick examples.
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
You can show a keyboard shortcut such as <kbd>Ctrl</kbd>+<kbd>Enter</kbd>.
|
|
42
|
+
|
|
43
|
+
## Create a new page
|
|
44
|
+
|
|
45
|
+
Create `publish.os/docs/content/hello-world.mdx` with this content:
|
|
46
|
+
|
|
47
|
+
```mdx
|
|
48
|
+
---
|
|
49
|
+
title: Hello World
|
|
50
|
+
description: Add a page to your site.
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
Each MDX file contains one page.
|
|
54
|
+
```
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Groups
|
|
3
|
+
description: Give each group one purpose and each page a clear name.
|
|
4
|
+
order: 2
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
A content group keeps related pages together. This site has one group, `docs`.
|
|
8
|
+
|
|
9
|
+
## Add a group
|
|
10
|
+
|
|
11
|
+
Create `publish.os/blog/content/first-post.mdx`:
|
|
12
|
+
|
|
13
|
+
```mdx
|
|
14
|
+
---
|
|
15
|
+
title: A small beginning
|
|
16
|
+
description: Why this project exists.
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
This project starts with one problem and one useful solution.
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The `blog` folder creates a separate content group. Its pages can share a layout and theme without changes to the docs group.
|
|
23
|
+
|
|
24
|
+
## Choose clear names
|
|
25
|
+
|
|
26
|
+
| Folder | Purpose |
|
|
27
|
+
| ------ | ---------------------- |
|
|
28
|
+
| `docs` | Explain how to use it |
|
|
29
|
+
| `blog` | Explain what you learn |
|
|
30
|
+
|
|
31
|
+
Use short file names with hyphens between words. Link to the page that answers the next question, such as [how to change the theme](/docs/theme).
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Themes
|
|
3
|
+
description: Change shared CSS values to give every page a consistent appearance.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The theme gives your content a common appearance. The `publish.os/theme.css` file defines shared values for colors, spacing, and page width.
|
|
7
|
+
|
|
8
|
+
You can define only a base radius and an accent color. You can also change each token to match your brand.
|
|
9
|
+
|
|
10
|
+
You can also write custom CSS or create custom components.
|
|
11
|
+
|
|
12
|
+
## Configure the basic theme
|
|
13
|
+
|
|
14
|
+
### Radii
|
|
15
|
+
|
|
16
|
+
In `publish.os/theme.css`, set the base radius:
|
|
17
|
+
|
|
18
|
+
```css
|
|
19
|
+
--theme-radius: var(--theme-radius-md);
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Replace `--theme-radius-md` with `--theme-radius-lg`. Save the file. The preview now uses larger corner radii.
|
|
23
|
+
|
|
24
|
+
You can use `xs`, `sm`, `md`, `lg`, `xl`, or `none`. You can also use a custom value such as `5px`.
|
|
25
|
+
|
|
26
|
+
### Color palette
|
|
27
|
+
|
|
28
|
+
The neutral color palette changes the complete design system. Define the palette with a neutral scale.
|
|
29
|
+
|
|
30
|
+
Low values usually define surfaces. Higher values add contrast for borders, text, and emphasized elements.
|
|
31
|
+
|
|
32
|
+
```css
|
|
33
|
+
--gray-100: #ffffff;
|
|
34
|
+
--gray-200: #fafafa;
|
|
35
|
+
--gray-300: #f5f5f5;
|
|
36
|
+
--gray-400: #eeeeee;
|
|
37
|
+
--gray-500: #e5e5e5;
|
|
38
|
+
--gray-600: #d4d4d4;
|
|
39
|
+
--gray-700: #a3a3a3;
|
|
40
|
+
--gray-800: #737373;
|
|
41
|
+
--gray-900: #525252;
|
|
42
|
+
--gray-1000: #404040;
|
|
43
|
+
--gray-1100: #262626;
|
|
44
|
+
--gray-1200: #000000;
|
|
45
|
+
|
|
46
|
+
--neutral-100: var(--gray-100);
|
|
47
|
+
--neutral-200: var(--gray-200);
|
|
48
|
+
--neutral-300: var(--gray-300);
|
|
49
|
+
--neutral-400: var(--gray-400);
|
|
50
|
+
--neutral-500: var(--gray-500);
|
|
51
|
+
--neutral-600: var(--gray-600);
|
|
52
|
+
--neutral-700: var(--gray-700);
|
|
53
|
+
--neutral-800: var(--gray-800);
|
|
54
|
+
--neutral-900: var(--gray-900);
|
|
55
|
+
--neutral-1000: var(--gray-1000);
|
|
56
|
+
--neutral-1100: var(--gray-1100);
|
|
57
|
+
--neutral-1200: var(--gray-1200);
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Set the accent to your brand color or a color from the palette:
|
|
61
|
+
|
|
62
|
+
```css
|
|
63
|
+
--accent: #ed940f;
|
|
64
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"runtime": "@publish.os/nextjs@0.0.1-alpha.7",
|
|
4
|
+
"site": {
|
|
5
|
+
"name": "publishOS guides",
|
|
6
|
+
"description": "Write pages, organize content, and build your site."
|
|
7
|
+
},
|
|
8
|
+
"fonts": {
|
|
9
|
+
"main": {
|
|
10
|
+
"family": "Work Sans",
|
|
11
|
+
"weight": "100 900"
|
|
12
|
+
},
|
|
13
|
+
"mono": {
|
|
14
|
+
"family": "DM Mono",
|
|
15
|
+
"weight": ["300", "400", "500"]
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"icons": {
|
|
19
|
+
"family": "phosphor"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* Delete this file to use the same PublishOS fallback theme. */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--gray-100: #ffffff;
|
|
5
|
+
--gray-200: #fafafa;
|
|
6
|
+
--gray-300: #f5f5f5;
|
|
7
|
+
--gray-400: #eeeeee;
|
|
8
|
+
--gray-500: #e5e5e5;
|
|
9
|
+
--gray-600: #d4d4d4;
|
|
10
|
+
--gray-700: #a3a3a3;
|
|
11
|
+
--gray-800: #737373;
|
|
12
|
+
--gray-900: #525252;
|
|
13
|
+
--gray-1000: #404040;
|
|
14
|
+
--gray-1100: #262626;
|
|
15
|
+
--gray-1200: #000000;
|
|
16
|
+
|
|
17
|
+
--neutral-100: var(--gray-100);
|
|
18
|
+
--neutral-200: var(--gray-200);
|
|
19
|
+
--neutral-300: var(--gray-300);
|
|
20
|
+
--neutral-400: var(--gray-400);
|
|
21
|
+
--neutral-500: var(--gray-500);
|
|
22
|
+
--neutral-600: var(--gray-600);
|
|
23
|
+
--neutral-700: var(--gray-700);
|
|
24
|
+
--neutral-800: var(--gray-800);
|
|
25
|
+
--neutral-900: var(--gray-900);
|
|
26
|
+
--neutral-1000: var(--gray-1000);
|
|
27
|
+
--neutral-1100: var(--gray-1100);
|
|
28
|
+
--neutral-1200: var(--gray-1200);
|
|
29
|
+
|
|
30
|
+
--accent: var(--gray-1200);
|
|
31
|
+
--theme-radius: var(--theme-radius-md);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.dark {
|
|
35
|
+
--gray-100: #000000;
|
|
36
|
+
--gray-200: #0a0a0a;
|
|
37
|
+
--gray-300: #171717;
|
|
38
|
+
--gray-400: #262626;
|
|
39
|
+
--gray-500: #404040;
|
|
40
|
+
--gray-600: #525252;
|
|
41
|
+
--gray-700: #737373;
|
|
42
|
+
--gray-800: #a3a3a3;
|
|
43
|
+
--gray-900: #d4d4d4;
|
|
44
|
+
--gray-1000: #e5e5e5;
|
|
45
|
+
--gray-1100: #f5f5f5;
|
|
46
|
+
--gray-1200: #ffffff;
|
|
47
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Minimal",
|
|
3
|
+
"description": "A minimal docs theme with three short guides.",
|
|
4
|
+
"files": [
|
|
5
|
+
"publish.os.config.json",
|
|
6
|
+
"theme.css",
|
|
7
|
+
"assets/logo/publish-dev-logo.dark.png",
|
|
8
|
+
"assets/logo/publish-dev-logo.png",
|
|
9
|
+
"docs/content/get-started.mdx",
|
|
10
|
+
"docs/content/groups.mdx",
|
|
11
|
+
"docs/content/theme.mdx"
|
|
12
|
+
]
|
|
13
|
+
}
|