@grove-dev/starlight 0.1.9
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/LICENSE +21 -0
- package/README.md +200 -0
- package/components/custom/ContainerSection.astro +58 -0
- package/components/custom/LinkButton.astro +141 -0
- package/components/custom/dropdown/Dropdown.astro +616 -0
- package/components/custom/dropdown/DropdownContent.astro +179 -0
- package/components/custom/dropdown/DropdownItem.astro +72 -0
- package/components/custom/dropdown/DropdownLabel.astro +31 -0
- package/components/custom/dropdown/DropdownSeparator.astro +18 -0
- package/components/custom/dropdown/DropdownShortcut.astro +24 -0
- package/components/custom/dropdown/DropdownTrigger.astro +54 -0
- package/components/custom/dropdown/index.ts +29 -0
- package/components/overrides/ContentPanel.astro +1 -0
- package/components/overrides/Footer.astro +54 -0
- package/components/overrides/Header.astro +93 -0
- package/components/overrides/Hero.astro +260 -0
- package/components/overrides/MarkdownContent.astro +17 -0
- package/components/overrides/PageFrame.astro +121 -0
- package/components/overrides/PageSidebar.astro +20 -0
- package/components/overrides/PageTitle.astro +130 -0
- package/components/overrides/Pagination.astro +101 -0
- package/components/overrides/Search.astro +549 -0
- package/components/overrides/Sidebar.astro +111 -0
- package/components/overrides/SiteTitle.astro +65 -0
- package/components/overrides/SocialIcons.astro +47 -0
- package/components/overrides/TableOfContents.astro +36 -0
- package/components/overrides/ThemeSelect.astro +156 -0
- package/components/overrides/TwoColumnContent.astro +75 -0
- package/components/overrides/parts/Drawer.astro +232 -0
- package/components/overrides/parts/MobileMenuToggle.astro +42 -0
- package/components/overrides/parts/NavBar.astro +110 -0
- package/components/overrides/parts/SidebarSublist.astro +115 -0
- package/components/overrides/parts/toc/TableOfContentsList.astro +71 -0
- package/components/overrides/parts/toc/starlight-toc.ts +119 -0
- package/core/config/constants.ts +1 -0
- package/core/config/expresive-code.ts +63 -0
- package/core/config/override.ts +48 -0
- package/core/config/schemas.ts +57 -0
- package/core/config/vite.ts +20 -0
- package/core/plugin.ts +56 -0
- package/global.d.ts +5 -0
- package/index.ts +3 -0
- package/package.json +54 -0
- package/schema.ts +24 -0
- package/styles/base.css +897 -0
- package/styles/layers.css +1 -0
- package/styles/theme.css +67 -0
- package/user-components.ts +3 -0
- package/virtual.d.ts +51 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer starlight, lucode;
|
package/styles/theme.css
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@layer lucode {
|
|
2
|
+
:root[data-theme='dark'] {
|
|
3
|
+
/* starlight gray scale */
|
|
4
|
+
--foreground: oklch(98.5% 0 0); /* neutral-50 */
|
|
5
|
+
--gray-1: oklch(98.5% 0 0); /* neutral-50 */
|
|
6
|
+
--gray-2: oklch(87% 0 0); /* neutral-300 */
|
|
7
|
+
--gray-3: oklch(70.8% 0 0); /* neutral-400 */
|
|
8
|
+
--gray-4: oklch(55.6% 0 0); /* neutral-500 */
|
|
9
|
+
--gray-5: oklch(37.1% 0 0); /* neutral-700 */
|
|
10
|
+
--gray-6: oklch(26.9% 0 0); /* neutral-800 */
|
|
11
|
+
--gray-7: oklch(20.5% 0 0); /* neutral-900 */
|
|
12
|
+
--background: oklch(14.5% 0 0); /* neutral-950 */
|
|
13
|
+
|
|
14
|
+
/* colors */
|
|
15
|
+
--orange-low: oklch(40.8% 0.123 38.172);
|
|
16
|
+
--orange: oklch(83.7% 0.128 66.29);
|
|
17
|
+
--orange-high: oklch(90.1% 0.076 70.697);
|
|
18
|
+
--green-low: oklch(26.6% 0.065 152.934);
|
|
19
|
+
--green: oklch(79.2% 0.209 151.711);
|
|
20
|
+
--green-high: oklch(87.1% 0.15 154.449);
|
|
21
|
+
--blue-low: oklch(29.3% 0.066 243.157);
|
|
22
|
+
--blue: oklch(70.7% 0.165 254.624);
|
|
23
|
+
--blue-high: oklch(82.8% 0.111 230.318);
|
|
24
|
+
--purple-low: oklch(29.1% 0.149 302.717);
|
|
25
|
+
--purple: oklch(71.4% 0.203 305.504);
|
|
26
|
+
--purple-high: oklch(82.7% 0.119 306.383);
|
|
27
|
+
--red-low: oklch(25.8% 0.092 26.042);
|
|
28
|
+
--red: oklch(70.4% 0.191 22.216);
|
|
29
|
+
--red-high: oklch(80.8% 0.114 19.571);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:root[data-theme='light'] {
|
|
33
|
+
/* starlight gray scale */
|
|
34
|
+
--foreground: oklch(14.5% 0 0); /* neutral-950 */
|
|
35
|
+
--gray-1: oklch(20.5% 0 0); /* neutral-900 */
|
|
36
|
+
--gray-2: oklch(26.9% 0 0); /* neutral-800 */
|
|
37
|
+
--gray-3: oklch(37.1% 0 0); /* neutral-700 */
|
|
38
|
+
--gray-4: oklch(55.6% 0 0); /* neutral-500 */
|
|
39
|
+
--gray-5: oklch(70.8% 0 0); /* neutral-400 */
|
|
40
|
+
--gray-6: oklch(87% 0 0); /* neutral-300 */
|
|
41
|
+
--gray-7: oklch(97% 0 0); /* neutral-100 */
|
|
42
|
+
--background: oklch(100% 0 0); /* white */
|
|
43
|
+
|
|
44
|
+
/* colors */
|
|
45
|
+
--orange-low: oklch(98% 0.016 73.684);
|
|
46
|
+
--orange: oklch(70.5% 0.213 47.604);
|
|
47
|
+
--orange-high: oklch(55.3% 0.195 38.402);
|
|
48
|
+
--green-low: oklch(98.2% 0.018 155.826);
|
|
49
|
+
--green: oklch(72.3% 0.219 149.579);
|
|
50
|
+
--green-high: oklch(52.7% 0.154 150.069);
|
|
51
|
+
--blue-low: oklch(97% 0.014 254.604);
|
|
52
|
+
--blue: oklch(68.5% 0.169 237.323);
|
|
53
|
+
--blue-high: oklch(48.8% 0.243 264.376);
|
|
54
|
+
--purple-low: oklch(97.7% 0.014 308.299);
|
|
55
|
+
--purple: oklch(62.7% 0.265 303.9);
|
|
56
|
+
--purple-high: oklch(49.6% 0.265 301.924);
|
|
57
|
+
--red-low: oklch(97.1% 0.013 17.38);
|
|
58
|
+
--red: oklch(63.7% 0.237 25.331);
|
|
59
|
+
--red-high: oklch(50.5% 0.213 27.518);
|
|
60
|
+
|
|
61
|
+
/* light overrides */
|
|
62
|
+
--accent: var(--gray-7);
|
|
63
|
+
--secondary: var(--gray-7);
|
|
64
|
+
--muted-foreground: var(--gray-4);
|
|
65
|
+
--popover-background: var(--background);
|
|
66
|
+
}
|
|
67
|
+
}
|
package/virtual.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare module 'virtual:lucode-starlight-config' {
|
|
2
|
+
const LucodeStarlightConfig: import('./core/config/schemas').LucodeStarlightConfig;
|
|
3
|
+
export default LucodeStarlightConfig;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module 'virtual:starlight/user-config' {
|
|
7
|
+
const Config: import('@astrojs/starlight/types').StarlightConfig;
|
|
8
|
+
export default Config;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare module 'virtual:starlight/user-images' {
|
|
12
|
+
type ImageMetadata = import('astro').ImageMetadata;
|
|
13
|
+
export const logos: {
|
|
14
|
+
dark?: ImageMetadata;
|
|
15
|
+
light?: ImageMetadata;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare module 'virtual:starlight/pagefind-config' {
|
|
20
|
+
export const pagefindUserConfig: Partial<
|
|
21
|
+
Extract<import('@astrojs/starlight/types').StarlightConfig['pagefind'], object>
|
|
22
|
+
>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare module 'virtual:starlight/project-context' {
|
|
26
|
+
const ProjectContext: {
|
|
27
|
+
root: string;
|
|
28
|
+
srcDir: string;
|
|
29
|
+
trailingSlash: import('astro').AstroConfig['trailingSlash'];
|
|
30
|
+
build: {
|
|
31
|
+
format: import('astro').AstroConfig['build']['format'];
|
|
32
|
+
};
|
|
33
|
+
legacyCollections: boolean;
|
|
34
|
+
};
|
|
35
|
+
export default ProjectContext;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare module 'virtual:starlight/components/LastUpdated' {
|
|
39
|
+
const LastUpdated: typeof import('@astrojs/starlight/components/LastUpdated.astro').default;
|
|
40
|
+
export default LastUpdated;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare module 'virtual:starlight/components/Pagination' {
|
|
44
|
+
const Pagination: typeof import('@astrojs/starlight/components/Pagination.astro').default;
|
|
45
|
+
export default Pagination;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare module 'virtual:starlight/components/EditLink' {
|
|
49
|
+
const EditLink: typeof import('@astrojs/starlight/components/EditLink.astro').default;
|
|
50
|
+
export default EditLink;
|
|
51
|
+
}
|