Skip to content

Commit 344a097

Browse files
committed
finish theme components
1 parent 5a59841 commit 344a097

28 files changed

Lines changed: 4819 additions & 2802 deletions

eslint.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default tseslint.config(
4040
rules: {
4141
quotes: ["error", "double"],
4242
semi: "warn",
43+
"@typescript-eslint/no-empty-object-type": ["off"],
4344
"@typescript-eslint/no-unused-vars": [
4445
"error",
4546
{

osmium/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ export default defineConfig({
2121
}),
2222
plugins: [solidBase.plugin({ ... })],
2323
})
24-
````
24+
```
2525

2626
More information in the [SolidBase docs for consuming a theme.](https://solidbase.dev/guide/customization/custom-themes#consuming-a-theme)

osmium/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { fileURLToPath } from "node:url";
55
export interface OsmiumThemeConfig {
66
sidebar?: SidebarConfig;
77
reportPagePath?: string;
8+
missingPagePath?: string;
9+
discord?: string;
10+
github?: string;
811
fonts?: { [K in keyof typeof allFonts]?: false } | false;
912
}
1013

osmium/src/ui/callout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function Callout(props: CalloutProps) {
107107
>
108108
<span class="text-xl font-semibold">{mergedProps.title}</span>
109109
</Show>
110-
<div class="prose pr-7 dark:prose-invert [&>*:first-child]:mt-1">
110+
<div class="prose dark:prose-invert pr-7 [&>*:first-child]:mt-1">
111111
{mergedProps.children}
112112
</div>
113113
</div>

osmium/src/ui/docs-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const DocsLayout = (props: DocsLayoutProps) => {
5050
</Show>
5151
</span>
5252
</Show>
53-
<span class="-mt-[15px] block text-sm xl:hidden">
53+
<span class="-mt-3.75 block text-sm xl:hidden">
5454
<EditPageLink />
5555
</span>
5656
<span class="text-sm xl:hidden">

osmium/src/ui/edit-page-link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const EditPageLink: Component = () => {
1414
href={editLink()}
1515
target="_blank"
1616
>
17-
<Icon aria-hidden="true" class="mr-1 w-[16px]" path={pencilSquare} />
17+
<Icon aria-hidden="true" class="mr-1 w-3.75" path={pencilSquare} />
1818
Edit this page
1919
</a>
2020
)}

osmium/src/ui/eraser-link/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const EraserLink = (
5555
fallback={
5656
<a
5757
href={linkUrl}
58-
class="dark:text-solid-darklink text-solid-lightlink break-normal font-semibold leading-normal transition duration-100 ease-in hover:underline"
58+
class="dark:text-solid-darklink text-solid-lightlink leading-normal font-semibold break-normal transition duration-100 ease-in hover:underline"
5959
rel="noopener noreferrer"
6060
>
6161
{props.children}
@@ -101,7 +101,7 @@ export default function EraserOrAnchor(props: ParentProps<{ href: string }>) {
101101
fallback={
102102
<a
103103
{...props}
104-
class="dark:text-solid-darklink text-solid-lightlink break-normal font-semibold leading-normal transition duration-100 ease-in hover:underline"
104+
class="dark:text-solid-darklink text-solid-lightlink leading-normal font-semibold break-normal transition duration-100 ease-in hover:underline"
105105
rel="noopener noreferrer"
106106
>
107107
{props.children}

osmium/src/ui/layout.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,27 @@ export const Layout: ParentComponent<{ isError?: boolean }> = (props) => {
1616
<Show when={frontmatter()?.hero}>
1717
<Hero />
1818
</Show>
19-
<div class="custom-scrollbar relative mx-auto flex max-w-8xl flex-auto justify-center pt-10">
19+
<div class="custom-scrollbar max-w-8xl relative mx-auto flex flex-auto justify-center pt-10">
2020
<Show when={!props.isError}>
2121
<div class="hidden md:relative lg:block lg:flex-none">
2222
<div class="absolute inset-y-0 right-0 w-[50vw] dark:hidden" />
23-
<div class="absolute bottom-0 right-0 top-16 hidden h-12 w-px bg-linear-to-t from-slate-800 dark:block" />
24-
<div class="absolute bottom-0 right-0 top-28 hidden w-px bg-slate-800 dark:block" />
25-
<div class="sticky top-19 h-[calc(100vh-7rem)] w-64 pl-0.5 pr-2 xl:w-72">
23+
<div class="absolute top-16 right-0 bottom-0 hidden h-12 w-px bg-linear-to-t from-slate-800 dark:block" />
24+
<div class="absolute top-28 right-0 bottom-0 hidden w-px bg-slate-800 dark:block" />
25+
<div class="sticky top-19 h-[calc(100vh-7rem)] w-64 pr-2 pl-0.5 xl:w-72">
2626
<MainNavigation />
2727
</div>
2828
</div>
2929
</Show>
3030
<main
31-
class="prose prose-slate w-full flex-auto px-4 pt-2 dark:prose-invert md:max-w-2xl md:pb-16 lg:max-w-none dark:text-slate-300"
31+
class="prose prose-slate dark:prose-invert w-full flex-auto px-4 pt-2 md:max-w-2xl md:pb-16 lg:max-w-none dark:text-slate-300"
3232
aria-live="polite"
3333
>
3434
<Show when={!props.isError} fallback={<>{props.children}</>}>
3535
<DocsLayout>{props.children}</DocsLayout>
3636
</Show>
3737
</main>
3838
<Show when={!props.isError}>
39-
<div class="prose prose-slate hidden w-56 shrink-0 pr-4 dark:prose-invert xl:block 2xl:w-72 dark:text-slate-300">
39+
<div class="prose prose-slate dark:prose-invert hidden w-56 shrink-0 pr-4 xl:block 2xl:w-72 dark:text-slate-300">
4040
<div class="custom-scrollbar sticky top-19 h-[calc(100vh-7rem)] overflow-y-auto">
4141
<SidePanel />
4242
</div>

osmium/src/ui/layout/contribute.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ export const Contribute: Component = () => {
1010
</span>
1111
<ol
1212
role="list"
13-
class="mt-1.5 flex list-none flex-col p-0 pl-2.5 text-sm prose-a:text-slate-600 prose-li:my-1"
13+
class="prose-a:text-slate-600 prose-li:my-1 mt-1.5 flex list-none flex-col p-0 pl-2.5 text-sm"
1414
>
1515
<li class="pl-0">
16-
<span class="[&>a>svg]:w-[15px] [&>a]:gap-x-1">
16+
<span class="[&>a]:gap-x-1 [&>a>svg]:w-3.75">
1717
<EditPageLink />
1818
</span>
1919
</li>
2020
<li class="pl-0">
21-
<span class="[&>a>svg]:w-[15px] [&>a]:gap-x-1">
21+
<span class="[&>a]:gap-x-1 [&>a>svg]:w-3.75">
2222
<PageIssueLink />
2323
</span>
2424
</li>

osmium/src/ui/layout/hero-code-snippet.code

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)