@grove-dev/astro 0.2.19 → 0.3.1

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 (72) hide show
  1. package/LICENSE +21 -0
  2. package/dist/template-routes.test.d.ts +2 -0
  3. package/dist/template-routes.test.d.ts.map +1 -0
  4. package/dist/template-routes.test.js +63 -0
  5. package/dist/template-routes.test.js.map +1 -0
  6. package/dist/theme.test.js +19 -0
  7. package/dist/theme.test.js.map +1 -1
  8. package/package.json +4 -4
  9. package/src/components/CategoryGrid.astro +2 -11
  10. package/src/components/ContributorsGrid.astro +2 -11
  11. package/src/components/CurationGrid.astro +1 -1
  12. package/src/components/DecisionRow.astro +1 -1
  13. package/src/components/ExploreByCategory.astro +3 -3
  14. package/src/components/ExploreByStack.astro +3 -3
  15. package/src/components/FilterGroupMenu.astro +5 -5
  16. package/src/components/Hero.astro +8 -8
  17. package/src/components/Icon.astro +56 -53
  18. package/src/components/IndexRow.astro +5 -5
  19. package/src/components/ItemCard.astro +5 -16
  20. package/src/components/MinimalAbout.astro +2 -2
  21. package/src/components/OriginalCollection.astro +4 -4
  22. package/src/components/Pagination.astro +2 -2
  23. package/src/components/RecordSection.astro +1 -1
  24. package/src/components/RefinePanel.astro +1 -1
  25. package/src/components/SmartLensTabs.astro +3 -3
  26. package/src/components/StackGrid.astro +6 -15
  27. package/src/components/WhyThisExists.astro +3 -3
  28. package/src/layouts/Container.astro +4 -4
  29. package/src/layouts/Footer.astro +3 -3
  30. package/src/layouts/Header.astro +5 -5
  31. package/src/layouts/ThemeToggle.astro +1 -1
  32. package/src/styles.css +33 -339
  33. package/src/template-routes.test.ts +103 -0
  34. package/src/theme.test.ts +24 -0
  35. package/templates/default/.github/workflows/build.yml +1 -3
  36. package/templates/default/.github/workflows/cleanup-stale-records.yml +1 -3
  37. package/templates/default/.github/workflows/daily-refresh.yml +1 -3
  38. package/templates/default/.github/workflows/sync-contributors.yml +2 -4
  39. package/templates/default/.github/workflows/sync-github-metadata.yml +1 -3
  40. package/templates/default/.github/workflows/validate-data.yml +1 -3
  41. package/templates/default/grove.config.ts +1 -1
  42. package/templates/default/package.json +9 -4
  43. package/templates/default/public/icons/stacks/rag.svg +7 -0
  44. package/templates/default/public/llms-full.txt +63 -186
  45. package/templates/default/public/llms.txt +6 -107
  46. package/templates/default/public/sitemap.xml +10 -10
  47. package/templates/default/src/data/records.ts +80 -2
  48. package/templates/default/src/pages/404.astro +5 -5
  49. package/templates/default/src/pages/[slug]/[recordSlug].astro +36 -38
  50. package/templates/default/src/pages/[slug]/index.astro +223 -19
  51. package/templates/default/src/pages/about.astro +17 -10
  52. package/templates/default/src/pages/apps/[recordSlug].astro +2 -1
  53. package/templates/default/src/pages/contributors.astro +8 -17
  54. package/templates/default/src/pages/index.astro +11 -3
  55. package/templates/default/src/pages/sitemap.xml.ts +3 -3
  56. package/templates/default/src/pages/submit.astro +28 -36
  57. package/templates/default/tsconfig.json +9 -0
  58. package/templates/default/scripts/build-llms.mjs +0 -123
  59. package/templates/default/scripts/build-records-json.mjs +0 -27
  60. package/templates/default/scripts/build-sitemap.mjs +0 -20
  61. package/templates/default/scripts/cleanup-stale-records.mjs +0 -20
  62. package/templates/default/scripts/enrich-github-metadata.mjs +0 -99
  63. package/templates/default/scripts/fetch-icons.mjs +0 -137
  64. package/templates/default/scripts/migrate-legacy-to-schema-v1.mjs +0 -86
  65. package/templates/default/scripts/parse-legacy-readme.mjs +0 -59
  66. package/templates/default/scripts/refresh-records-activity.mjs +0 -24
  67. package/templates/default/scripts/repair-license-format.mjs +0 -72
  68. package/templates/default/scripts/report-cleanup-candidates.mjs +0 -21
  69. package/templates/default/scripts/seed-from-github.mjs +0 -62
  70. package/templates/default/scripts/sync-contributors.mjs +0 -145
  71. package/templates/default/scripts/sync-github-metadata.mjs +0 -28
  72. package/templates/default/scripts/validate-records.mjs +0 -27
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Turtuvshin Byambaa
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=template-routes.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-routes.test.d.ts","sourceRoot":"","sources":["../src/template-routes.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,63 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import { readFile, stat } from "node:fs/promises";
3
+ import { resolve } from "node:path";
4
+ const pagesDir = resolve(import.meta.dirname, "../templates/default/src/pages");
5
+ describe("default Astro route configuration", () => {
6
+ it("ships TypeScript settings that resolve package exports and Node built-ins", async () => {
7
+ const templateRoot = resolve(pagesDir, "../..");
8
+ const tsconfig = JSON.parse(await readFile(resolve(templateRoot, "tsconfig.json"), "utf8"));
9
+ const manifest = JSON.parse(await readFile(resolve(templateRoot, "package.json"), "utf8"));
10
+ expect(tsconfig.extends).toBe("astro/tsconfigs/base");
11
+ expect(tsconfig.compilerOptions?.moduleResolution).toBe("Bundler");
12
+ expect(tsconfig.compilerOptions?.types).toContain("node");
13
+ expect(manifest.devDependencies?.["@types/node"]).toMatch(/^\^/);
14
+ });
15
+ it("treats generated JSON as an untyped boundary before applying payload types", async () => {
16
+ const recordsModule = await readFile(resolve(pagesDir, "../data/records.ts"), "utf8");
17
+ expect(recordsModule).toContain("fullPayload as unknown as FullPayload");
18
+ });
19
+ it("derives the directory route from generated site config", async () => {
20
+ const listPage = await readFile(resolve(pagesDir, "[slug]/index.astro"), "utf8");
21
+ expect(listPage).toContain("siteConfig.blueprintConfig?.routeSlug");
22
+ });
23
+ it("does not generate the legacy apps alias when apps is canonical", async () => {
24
+ const aliasPage = await readFile(resolve(pagesDir, "apps/[recordSlug].astro"), "utf8");
25
+ expect(aliasPage).toContain('if (indexSlug() === "apps")');
26
+ expect(aliasPage).toContain("return []");
27
+ });
28
+ it("renders consumer-authored about Markdown through the default page", async () => {
29
+ const aboutPage = await readFile(resolve(pagesDir, "about.astro"), "utf8");
30
+ expect(aboutPage).toContain('getPageContentHtml("about")');
31
+ });
32
+ it("generates submission drafts accepted by the Grove record schema", async () => {
33
+ const submitPage = await readFile(resolve(pagesDir, "submit.astro"), "utf8");
34
+ expect(submitPage).toContain('" type: manual"');
35
+ expect(submitPage).not.toContain('" type: github"');
36
+ });
37
+ it("keeps generic maintenance behavior in Grove instead of consumer scripts", async () => {
38
+ const templateRoot = resolve(pagesDir, "../..");
39
+ const manifest = JSON.parse(await readFile(resolve(templateRoot, "package.json"), "utf8"));
40
+ const scriptsDirExists = await stat(resolve(templateRoot, "scripts"))
41
+ .then(() => true)
42
+ .catch(() => false);
43
+ expect(manifest.scripts?.["build:llms"]).toBe("grove llms");
44
+ expect(manifest.scripts?.["sync:contributors"]).toBe("grove sync contributors");
45
+ expect(scriptsDirExists).toBe(false);
46
+ });
47
+ it("hydrates static list pages with URL-driven search and pagination", async () => {
48
+ const listPage = await readFile(resolve(pagesDir, "[slug]/index.astro"), "utf8");
49
+ expect(listPage).toContain('id="grove-index-data"');
50
+ expect(listPage).toContain("function applyClientFilters()");
51
+ expect(listPage).toContain("const PAGE_SIZE = 20");
52
+ });
53
+ it("uses generated taxonomy names as display labels", async () => {
54
+ const recordsModule = await readFile(resolve(pagesDir, "../data/records.ts"), "utf8");
55
+ const homePage = await readFile(resolve(pagesDir, "index.astro"), "utf8");
56
+ const listPage = await readFile(resolve(pagesDir, "[slug]/index.astro"), "utf8");
57
+ expect(recordsModule).toContain("export function taxonomyLabel");
58
+ expect(recordsModule).toContain("?? prettySlug(id)");
59
+ expect(homePage).toContain('taxonomyLabel("categories"');
60
+ expect(listPage).toContain("labelFacetsWithTaxonomy");
61
+ });
62
+ });
63
+ //# sourceMappingURL=template-routes.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-routes.test.js","sourceRoot":"","sources":["../src/template-routes.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,gCAAgC,CAAC,CAAC;AAEhF,QAAQ,CAAC,mCAAmC,EAAE,GAAG,EAAE;IACjD,EAAE,CAAC,2EAA2E,EAAE,KAAK,IAAI,EAAE;QACzF,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAChD,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CACzB,MAAM,QAAQ,CAAC,OAAO,CAAC,YAAY,EAAE,eAAe,CAAC,EAAE,MAAM,CAAC,CAO/D,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CACzB,MAAM,QAAQ,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,CAAC,CAAC,CAAC"}
@@ -3,6 +3,12 @@ import { resolve } from "node:path";
3
3
  import { describe, expect, it } from "vitest";
4
4
  const astroTheme = readFileSync(resolve(import.meta.dirname, "styles.css"), "utf8");
5
5
  const scaffoldTheme = readFileSync(resolve(import.meta.dirname, "../templates/default/src/styles/global.css"), "utf8");
6
+ const tailwindMarkup = [
7
+ "components/ItemCard.astro",
8
+ "layouts/Header.astro",
9
+ "../templates/default/src/pages/submit.astro",
10
+ ].map((file) => readFileSync(resolve(import.meta.dirname, file), "utf8")).join("\n");
11
+ const iconMarkup = readFileSync(resolve(import.meta.dirname, "components/Icon.astro"), "utf8");
6
12
  describe("Astro theme contract", () => {
7
13
  it("keeps Starlight's light and dark foundation values", () => {
8
14
  expect(astroTheme).toContain("--grove-background: oklch(100% 0 0)");
@@ -37,5 +43,18 @@ describe("Astro theme contract", () => {
37
43
  expect(scaffoldTheme).not.toContain("font-family:");
38
44
  expect(scaffoldTheme).not.toContain("color-scheme:");
39
45
  });
46
+ it("styles components in HTML with Starlight-aligned Tailwind utilities", () => {
47
+ expect(tailwindMarkup).toContain("rounded-[calc(var(--radius)+0.25rem)]");
48
+ expect(tailwindMarkup).toContain("rounded-full");
49
+ expect(tailwindMarkup).toContain("min-h-5");
50
+ expect(tailwindMarkup).toContain("h-8");
51
+ expect(tailwindMarkup).toContain("focus-visible:ring-3");
52
+ expect(astroTheme).not.toContain(".grove-card");
53
+ expect(astroTheme).not.toContain(".grove-btn");
54
+ });
55
+ it("falls back to initials when a consumer has no matching icon asset", () => {
56
+ expect(iconMarkup).toContain("data-grove-icon-fallback-initials");
57
+ expect(iconMarkup).toContain("onerror=");
58
+ });
40
59
  });
41
60
  //# sourceMappingURL=theme.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.test.js","sourceRoot":"","sources":["../src/theme.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE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": "@grove-dev/astro",
3
- "version": "0.2.19",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "description": "Astro framework adapter for Grove. Components, layouts, design tokens, and a default template.",
6
6
  "license": "MIT",
@@ -43,9 +43,9 @@
43
43
  "./layouts/*": "./src/layouts/*.astro"
44
44
  },
45
45
  "dependencies": {
46
- "@grove-dev/core": "0.2.16",
47
- "@grove-dev/ui": "1.0.6",
48
- "astro": "^6.4.6"
46
+ "astro": "^6.4.6",
47
+ "@grove-dev/core": "0.3.1",
48
+ "@grove-dev/ui": "1.1.1"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "astro": "^6.0.0"
@@ -41,10 +41,10 @@ function buildHref(slug: string): string {
41
41
 
42
42
  <section
43
43
  id="categories"
44
- class:list={["grove-section scroll-mt-20 border-b border-ink-200 dark:border-ink-800", className]}
44
+ class:list={["py-12 sm:py-16 scroll-mt-20 border-b border-ink-200 dark:border-ink-800", className]}
45
45
  aria-labelledby={bare ? undefined : "grove-categorygrid-heading"}
46
46
  >
47
- <div class="grove-container mx-auto px-5 sm:px-7">
47
+ <div class="mx-auto w-full max-w-container px-5 sm:px-7">
48
48
  {!bare && (
49
49
  <header class="mb-6">
50
50
  <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
@@ -97,12 +97,3 @@ function buildHref(slug: string): string {
97
97
  </div>
98
98
  </div>
99
99
  </section>
100
-
101
- <style>
102
- .line-clamp-2 {
103
- display: -webkit-box;
104
- -webkit-line-clamp: 2;
105
- -webkit-box-orient: vertical;
106
- overflow: hidden;
107
- }
108
- </style>
@@ -56,10 +56,10 @@ const visible = contributors
56
56
  ---
57
57
 
58
58
  <section
59
- class:list={["grove-section", className]}
59
+ class:list={["py-12 sm:py-16", className]}
60
60
  aria-labelledby="grove-contributors-heading"
61
61
  >
62
- <div class="grove-container mx-auto px-5 sm:px-7">
62
+ <div class="mx-auto w-full max-w-container px-5 sm:px-7">
63
63
  <header class="mb-6 flex flex-wrap items-end justify-between gap-3">
64
64
  <div>
65
65
  <h2
@@ -138,12 +138,3 @@ const visible = contributors
138
138
  )}
139
139
  </div>
140
140
  </section>
141
-
142
- <style>
143
- .line-clamp-1 {
144
- display: -webkit-box;
145
- -webkit-line-clamp: 1;
146
- -webkit-box-orient: vertical;
147
- overflow: hidden;
148
- }
149
- </style>
@@ -26,7 +26,7 @@ const columns = [
26
26
  aria-label="Curation notes"
27
27
  >
28
28
  {columns.map((column) => (
29
- <div class="grove-card p-5">
29
+ <div class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors p-5">
30
30
  <h3 class="m-0 text-sm font-semibold uppercase tracking-wider text-ink-500 dark:text-ink-400">
31
31
  {column.title}
32
32
  </h3>
@@ -69,7 +69,7 @@ const cleanup = project?.health?.cleanupCandidate;
69
69
  </td>
70
70
  <td class="px-3 py-2 text-2xs">
71
71
  {cleanup ? (
72
- <span class="grove-badge grove-badge-stale">cleanup</span>
72
+ <span class="inline-flex min-h-5 items-center justify-center gap-1 rounded-full border border-transparent bg-secondary px-2 py-0.5 align-middle text-xs font-medium leading-none text-secondary-foreground !bg-amber-50 !text-amber-800 dark:!bg-amber-950/80 dark:!text-amber-300">cleanup</span>
73
73
  ) : (
74
74
  <span class="text-ink-400">—</span>
75
75
  )}
@@ -34,8 +34,8 @@ function buildHref(slug: string): string {
34
34
  }
35
35
  ---
36
36
 
37
- <section class:list={["grove-section-tight", className]}>
38
- <div class="grove-container-wide mx-auto px-5 sm:px-7">
37
+ <section class:list={["py-10 sm:py-12", className]}>
38
+ <div class="mx-auto w-full max-w-wide px-5 sm:px-7">
39
39
  <header class="mb-3 flex flex-col gap-1">
40
40
  <h2 class="m-0 text-[1.125rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
41
41
  {title}
@@ -51,7 +51,7 @@ function buildHref(slug: string): string {
51
51
  <li>
52
52
  <a
53
53
  href={buildHref(c.slug)}
54
- class="grove-badge inline-flex items-center gap-1.5 transition-colors hover:border-ink-400 dark:hover:border-ink-600"
54
+ class="inline-flex min-h-5 items-center justify-center gap-1 rounded-full border border-transparent bg-secondary px-2 py-0.5 align-middle text-xs font-medium leading-none text-secondary-foreground items-center gap-1.5 transition-colors hover:border-ink-400 dark:hover:border-ink-600"
55
55
  data-event="explore_category_click"
56
56
  data-event-source="explore_category"
57
57
  >
@@ -40,8 +40,8 @@ function buildHref(slug: string): string {
40
40
  }
41
41
  ---
42
42
 
43
- <section class:list={["grove-section-tight", className]}>
44
- <div class="grove-container-wide mx-auto px-5 sm:px-7">
43
+ <section class:list={["py-10 sm:py-12", className]}>
44
+ <div class="mx-auto w-full max-w-wide px-5 sm:px-7">
45
45
  <header class="mb-3 flex flex-col gap-1">
46
46
  <h2 class="m-0 text-[1.125rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
47
47
  {title}
@@ -57,7 +57,7 @@ function buildHref(slug: string): string {
57
57
  <li>
58
58
  <a
59
59
  href={buildHref(s.slug)}
60
- class="grove-badge inline-flex items-center gap-1.5 transition-colors hover:border-ink-400 dark:hover:border-ink-600"
60
+ class="inline-flex min-h-5 items-center justify-center gap-1 rounded-full border border-transparent bg-secondary px-2 py-0.5 align-middle text-xs font-medium leading-none text-secondary-foreground items-center gap-1.5 transition-colors hover:border-ink-400 dark:hover:border-ink-600"
61
61
  data-event="explore_stack_click"
62
62
  data-event-source="explore_stack"
63
63
  >
@@ -25,10 +25,10 @@ const group = Astro.props;
25
25
  <button
26
26
  type="button"
27
27
  class:list={[
28
- "grove-filter-trigger inline-flex h-9 items-center gap-1.5 rounded-md border px-3 text-[0.8125rem] font-medium transition-colors",
28
+ "grove-filter-trigger inline-flex h-9 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-[0.8125rem] font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35",
29
29
  group.active
30
- ? "border-ink-900 bg-ink-900 text-white dark:border-ink-100 dark:bg-ink-100 dark:text-ink-900"
31
- : "border-ink-200 bg-white text-ink-700 hover:border-ink-300 hover:bg-ink-50 dark:border-ink-800 dark:bg-ink-950 dark:text-ink-300 dark:hover:border-ink-700 dark:hover:bg-ink-900/60",
30
+ ? "bg-primary text-primary-foreground hover:bg-primary/90"
31
+ : "border-border bg-secondary text-foreground hover:bg-accent",
32
32
  ]}
33
33
  aria-haspopup="listbox"
34
34
  aria-expanded="false"
@@ -39,13 +39,13 @@ const group = Astro.props;
39
39
  <path d="M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z"/>
40
40
  </svg>
41
41
  </button>
42
- <div id={group.popoverId} class="grove-filter-popover absolute left-0 top-full z-40 mt-1 hidden w-72 max-w-[calc(100vw-2rem)] rounded-lg border border-ink-200 bg-white p-1.5 shadow-lg dark:border-ink-800 dark:bg-ink-950" role="listbox" hidden>
42
+ <div id={group.popoverId} class="rounded-[calc(var(--radius)+0.25rem)] border border-border bg-popover text-popover-foreground shadow-xl grove-filter-popover absolute left-0 top-full z-40 mt-1 hidden w-72 max-w-[calc(100vw-2rem)] p-1.5" role="listbox" hidden>
43
43
  <FilterOptions filterKey={group.filterKey} options={group.options} initial={group.initial} single={group.single} />
44
44
  <div class="mt-1 flex items-center justify-between border-t border-ink-100 px-2 pt-1.5 dark:border-ink-900">
45
45
  {group.active && (
46
46
  <button type="button" class="grove-filter-clear text-2xs font-medium text-ink-500 hover:text-ink-900 dark:text-ink-400 dark:hover:text-ink-100">Clear {group.label.toLowerCase()}</button>
47
47
  )}
48
- <button type="button" class="grove-filter-apply ml-auto rounded-md bg-ink-900 px-2.5 py-1 text-2xs font-medium text-white dark:bg-ink-100 dark:text-ink-900">Apply</button>
48
+ <button type="button" class="grove-filter-apply inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 bg-primary text-primary-foreground hover:bg-primary/90 ml-auto px-2.5 text-2xs">Apply</button>
49
49
  </div>
50
50
  </div>
51
51
  </div>
@@ -214,7 +214,7 @@ const trustStats: { value: string; label: string }[] = [
214
214
  </label>
215
215
  <a
216
216
  href={searchHref}
217
- class="inline-flex h-10 items-center justify-center gap-1.5 rounded-md border border-ink-200 bg-white px-3 text-[0.875rem] font-medium text-ink-700 transition-colors hover:border-ink-300 hover:bg-ink-50 dark:border-ink-800 dark:bg-ink-950 dark:text-ink-300 dark:hover:border-ink-700 dark:hover:bg-ink-900/40"
217
+ class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 border-border bg-secondary text-foreground hover:bg-accent h-10"
218
218
  aria-label={`Browse all ${itemsLabel} with filters`}
219
219
  >
220
220
  <svg viewBox="0 0 16 16" width="13" height="13" aria-hidden="true" fill="currentColor">
@@ -224,7 +224,7 @@ const trustStats: { value: string; label: string }[] = [
224
224
  </a>
225
225
  <button
226
226
  type="submit"
227
- class="grove-btn grove-btn-primary h-10 px-4 sm:px-5"
227
+ class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 sm:px-5"
228
228
  >
229
229
  Search
230
230
  </button>
@@ -256,12 +256,12 @@ const trustStats: { value: string; label: string }[] = [
256
256
  <a
257
257
  href={cta.href}
258
258
  class:list={[
259
- "grove-btn",
259
+ "inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35",
260
260
  cta.variant === "primary"
261
- ? "grove-btn-primary"
261
+ ? "bg-primary text-primary-foreground hover:bg-primary/90"
262
262
  : cta.variant === "ghost"
263
- ? "grove-btn-ghost"
264
- : "grove-btn-outline",
263
+ ? "bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground"
264
+ : "border-border bg-secondary text-foreground hover:bg-accent",
265
265
  ]}
266
266
  {...(cta.external
267
267
  ? { target: "_blank", rel: "noopener noreferrer" }
@@ -278,14 +278,14 @@ const trustStats: { value: string; label: string }[] = [
278
278
  {/* Help debug the type system when callers forget to pass ctas. */}
279
279
  {ctas.length === 0 && githubUrl && (
280
280
  <div class="mt-5 flex flex-wrap items-center gap-2">
281
- <a href={searchHref} class="grove-btn grove-btn-primary">
281
+ <a href={searchHref} class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 bg-primary text-primary-foreground hover:bg-primary/90">
282
282
  Browse {itemsLabel}
283
283
  </a>
284
284
  <a
285
285
  href={`${githubUrl}/blob/main/CONTRIBUTING.md`}
286
286
  target="_blank"
287
287
  rel="noopener noreferrer"
288
- class="grove-btn grove-btn-outline"
288
+ class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 border-border bg-secondary text-foreground hover:bg-accent"
289
289
  >
290
290
  Submit via GitHub
291
291
  </a>
@@ -135,69 +135,72 @@ const a11y: Record<string, string> = title
135
135
  {
136
136
  showFallback ? (
137
137
  <span
138
- class:list={["grove-icon grove-icon-fallback", className]}
138
+ class:list={[
139
+ "inline-flex shrink-0 select-none items-center justify-center rounded-sm bg-ink-100 align-middle font-semibold uppercase leading-none text-ink-700 dark:bg-ink-800 dark:text-ink-200",
140
+ className,
141
+ ]}
139
142
  style={`width:${size}px;height:${size}px;font-size:${Math.max(10, size - 6)}px;`}
140
143
  {...a11y}
141
144
  >
142
145
  {init || "·"}
143
146
  </span>
144
147
  ) : mode === "auto" ? (
145
- <img
146
- src={staticSrc}
147
- data-grove-icon
148
- data-grove-icon-light={`${baseUrl}-light.svg`}
149
- data-grove-icon-dark={`${baseUrl}-dark.svg`}
150
- data-grove-icon-fallback={staticSrc}
151
- width={size}
152
- height={size}
153
- alt=""
154
- class:list={["grove-icon grove-icon-themed", className]}
155
- {...a11y}
156
- />
148
+ <>
149
+ <img
150
+ src={staticSrc}
151
+ data-grove-icon
152
+ data-grove-icon-light={`${baseUrl}-light.svg`}
153
+ data-grove-icon-dark={`${baseUrl}-dark.svg`}
154
+ data-grove-icon-fallback={staticSrc}
155
+ width={size}
156
+ height={size}
157
+ alt=""
158
+ class:list={["inline-block shrink-0 align-middle", className]}
159
+ onerror="this.hidden=true;this.nextElementSibling.hidden=false"
160
+ {...a11y}
161
+ />
162
+ <span
163
+ hidden
164
+ data-grove-icon-fallback-initials
165
+ class:list={[
166
+ "inline-flex shrink-0 select-none items-center justify-center rounded-sm bg-ink-100 align-middle font-semibold uppercase leading-none text-ink-700 dark:bg-ink-800 dark:text-ink-200",
167
+ className,
168
+ ]}
169
+ style={`width:${size}px;height:${size}px;font-size:${Math.max(10, size - 6)}px;`}
170
+ {...a11y}
171
+ >
172
+ {init || "·"}
173
+ </span>
174
+ </>
157
175
  ) : (
158
- <img
159
- src={staticSrc}
160
- width={size}
161
- height={size}
162
- alt=""
163
- class:list={["grove-icon", className]}
164
- loading="lazy"
165
- decoding="async"
166
- {...a11y}
167
- />
176
+ <>
177
+ <img
178
+ src={staticSrc}
179
+ width={size}
180
+ height={size}
181
+ alt=""
182
+ class:list={["inline-block shrink-0 align-middle", className]}
183
+ loading="lazy"
184
+ decoding="async"
185
+ onerror="this.hidden=true;this.nextElementSibling.hidden=false"
186
+ {...a11y}
187
+ />
188
+ <span
189
+ hidden
190
+ data-grove-icon-fallback-initials
191
+ class:list={[
192
+ "inline-flex shrink-0 select-none items-center justify-center rounded-sm bg-ink-100 align-middle font-semibold uppercase leading-none text-ink-700 dark:bg-ink-800 dark:text-ink-200",
193
+ className,
194
+ ]}
195
+ style={`width:${size}px;height:${size}px;font-size:${Math.max(10, size - 6)}px;`}
196
+ {...a11y}
197
+ >
198
+ {init || "·"}
199
+ </span>
200
+ </>
168
201
  )
169
202
  }
170
203
 
171
- <style>
172
- .grove-icon {
173
- display: inline-block;
174
- vertical-align: middle;
175
- flex-shrink: 0;
176
- }
177
- .grove-icon-themed {
178
- /* Theme-aware: dark/light variants selected by the inline script
179
- below based on `data-resolved-theme` set by BaseLayout's
180
- THEME_INIT. Default to the light variant so the markup looks
181
- correct even before the script runs. */
182
- }
183
- .grove-icon-fallback {
184
- display: inline-flex;
185
- align-items: center;
186
- justify-content: center;
187
- border-radius: 0.25rem;
188
- background: var(--color-ink-100, oklch(97% 0 0));
189
- color: var(--color-ink-700, oklch(37.1% 0 0));
190
- font-weight: 600;
191
- line-height: 1;
192
- text-transform: uppercase;
193
- user-select: none;
194
- }
195
- :global(.dark) .grove-icon-fallback {
196
- background: var(--color-ink-800, oklch(26.9% 0 0));
197
- color: var(--color-ink-200, oklch(92.2% 0 0));
198
- }
199
- </style>
200
-
201
204
  {mode === "auto" && (
202
205
  <script is:inline>
203
206
  // Theme-aware icon swap. Runs after THEME_INIT (BaseLayout) so
@@ -32,7 +32,7 @@ const status = project?.health?.status;
32
32
  const curated = Boolean(item.curation?.reviewed || (project && (project.bestFor.length || project.whyListed.length || project.caveats.length)));
33
33
  ---
34
34
 
35
- <article class={`group relative flex flex-col gap-3 rounded-lg border border-ink-200 bg-white p-4 transition-colors hover:border-ink-300 hover:shadow-[0_1px_2px_rgba(0,0,0,0.04),0_4px_12px_-2px_rgba(0,0,0,0.06)] dark:border-ink-800 dark:bg-ink-950 dark:hover:border-ink-700 ${className}`}>
35
+ <article class={`rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors hover:bg-secondary group relative flex flex-col gap-3 p-4 ${className}`}>
36
36
  <header class="flex items-start gap-3">
37
37
  <a href={detailHref} class="relative z-10 flex shrink-0" aria-label={`Open ${name} details`}>
38
38
  {avatar ? (
@@ -76,13 +76,13 @@ const curated = Boolean(item.curation?.reviewed || (project && (project.bestFor.
76
76
 
77
77
  {showChips && (platforms.length > 0 || stacks.length > 0) && (
78
78
  <div class="flex flex-col gap-1.5">
79
- <div class="flex flex-wrap gap-1.5">{platforms.slice(0, 4).map((platform) => <span class="inline-flex items-center gap-1 rounded-md border border-ink-200 bg-white px-1.5 py-0.5 text-2xs font-medium text-ink-700 dark:border-ink-800 dark:bg-ink-950 dark:text-ink-300"><Icon name={platform} category="platform" size={11} />{platform}</span>)}</div>
80
- <div class="flex flex-wrap gap-1.5">{stacks.slice(0, 4).map((stack) => <span class="inline-flex items-center gap-1 rounded-md border border-ink-200 bg-ink-50 px-1.5 py-0.5 text-2xs font-medium text-ink-700 dark:border-ink-800 dark:bg-ink-900/60 dark:text-ink-300"><Icon name={stack} category="stack" size={11} />{stack}</span>)}</div>
79
+ <div class="flex flex-wrap gap-1.5">{platforms.slice(0, 4).map((platform) => <span class="inline-flex min-h-5 items-center justify-center gap-1 rounded-full border border-transparent bg-secondary px-2 py-0.5 align-middle text-xs font-medium leading-none text-secondary-foreground"><Icon name={platform} category="platform" size={11} />{platform}</span>)}</div>
80
+ <div class="flex flex-wrap gap-1.5">{stacks.slice(0, 4).map((stack) => <span class="inline-flex min-h-5 items-center justify-center gap-1 rounded-full border border-transparent bg-secondary px-2 py-0.5 align-middle text-xs font-medium leading-none text-secondary-foreground !bg-muted !text-muted-foreground"><Icon name={stack} category="stack" size={11} />{stack}</span>)}</div>
81
81
  </div>
82
82
  )}
83
83
 
84
84
  <footer class="relative z-10 mt-1 flex items-center gap-2 border-t border-ink-100 pt-2 text-2xs dark:border-ink-900">
85
- <a href={detailHref} class="inline-flex items-center gap-1 rounded-md border border-ink-200 bg-white px-2 py-1 font-medium text-ink-700 hover:bg-ink-50 dark:border-ink-800 dark:bg-ink-950 dark:text-ink-300">View details →</a>
86
- {repoHref && <a href={repoHref} target="_blank" rel="noopener noreferrer" class="inline-flex items-center gap-1 rounded-md border border-ink-200 bg-white px-2 py-1 font-medium text-ink-700 hover:bg-ink-50 dark:border-ink-800 dark:bg-ink-950 dark:text-ink-300">GitHub</a>}
85
+ <a href={detailHref} class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 border-border bg-secondary text-foreground hover:bg-accent px-2 text-2xs">View details →</a>
86
+ {repoHref && <a href={repoHref} target="_blank" rel="noopener noreferrer" class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 border-border bg-secondary text-foreground hover:bg-accent px-2 text-2xs">GitHub</a>}
87
87
  </footer>
88
88
  </article>
@@ -150,7 +150,7 @@ const category = (item as { category?: string }).category;
150
150
  ---
151
151
 
152
152
  <article
153
- class={`card card-hover group relative flex h-full flex-col gap-3 p-4 ${className}`}
153
+ class={`rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors hover:bg-secondary group relative flex h-full flex-col gap-3 p-4 ${className}`}
154
154
  >
155
155
  {/* Top row: logo + name + (optional) status + curated mark. */}
156
156
  <header class="relative z-10 flex items-start gap-3">
@@ -297,26 +297,26 @@ const category = (item as { category?: string }).category;
297
297
  {visiblePlatforms.length > 0 && (
298
298
  <div class="flex flex-wrap items-center gap-1.5">
299
299
  {visiblePlatforms.map((p) => (
300
- <span class="chip">
300
+ <span class="inline-flex min-h-5 items-center justify-center gap-1 rounded-full border border-transparent bg-secondary px-2 py-0.5 align-middle text-xs font-medium leading-none text-secondary-foreground">
301
301
  <Icon name={p} category="platform" size={11} />
302
302
  <span>{p}</span>
303
303
  </span>
304
304
  ))}
305
305
  {platformOverflow > 0 && (
306
- <span class="chip text-ink-400 dark:text-ink-500">+{platformOverflow}</span>
306
+ <span class="inline-flex min-h-5 items-center justify-center gap-1 rounded-full border border-transparent bg-secondary px-2 py-0.5 align-middle text-xs font-medium leading-none text-secondary-foreground text-ink-400 dark:text-ink-500">+{platformOverflow}</span>
307
307
  )}
308
308
  </div>
309
309
  )}
310
310
  {visibleStacks.length > 0 && (
311
311
  <div class="flex flex-wrap items-center gap-1.5">
312
312
  {visibleStacks.map((s) => (
313
- <span class="chip chip-stack">
313
+ <span class="inline-flex min-h-5 items-center justify-center gap-1 rounded-full border border-transparent bg-secondary px-2 py-0.5 align-middle text-xs font-medium leading-none text-secondary-foreground !bg-muted !text-muted-foreground">
314
314
  <Icon name={s} category="stack" size={11} />
315
315
  <span>{s}</span>
316
316
  </span>
317
317
  ))}
318
318
  {stackOverflow > 0 && (
319
- <span class="chip chip-stack text-ink-400 dark:text-ink-500">+{stackOverflow}</span>
319
+ <span class="inline-flex min-h-5 items-center justify-center gap-1 rounded-full border border-transparent bg-secondary px-2 py-0.5 align-middle text-xs font-medium leading-none text-secondary-foreground !bg-muted !text-muted-foreground text-ink-400 dark:text-ink-500">+{stackOverflow}</span>
320
320
  )}
321
321
  </div>
322
322
  )}
@@ -350,14 +350,3 @@ const category = (item as { category?: string }).category;
350
350
  </a>
351
351
  </footer>
352
352
  </article>
353
-
354
- <style>
355
- @reference "../styles.css";
356
-
357
- .chip {
358
- @apply inline-flex items-center gap-1 rounded-md border border-ink-200 bg-white px-1.5 py-0.5 text-2xs font-medium text-ink-700 transition-colors dark:border-ink-200 dark:bg-ink-950 dark:text-ink-300;
359
- }
360
- .chip-stack {
361
- @apply bg-ink-50 dark:bg-ink-900/60;
362
- }
363
- </style>
@@ -45,8 +45,8 @@ const defaultPoints: AboutPoint[] = [
45
45
  const items = points && points.length > 0 ? points : defaultPoints;
46
46
  ---
47
47
 
48
- <section class:list={["grove-section", className]}>
49
- <div class="grove-container-narrow mx-auto px-5 sm:px-7">
48
+ <section class:list={["py-12 sm:py-16", className]}>
49
+ <div class="mx-auto w-full max-w-narrow px-5 sm:px-7">
50
50
  <header class="mb-6 flex flex-col gap-2">
51
51
  <h2 class="m-0 text-[1.5rem] sm:text-[1.625rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
52
52
  {title}
@@ -51,10 +51,10 @@ const hasStats =
51
51
  stats.contributors !== undefined;
52
52
  ---
53
53
 
54
- <section class:list={["grove-section", className]}>
55
- <div class="grove-container mx-auto px-5 sm:px-7">
54
+ <section class:list={["py-12 sm:py-16", className]}>
55
+ <div class="mx-auto w-full max-w-container px-5 sm:px-7">
56
56
  <div
57
- class="grove-card flex flex-col gap-4 p-6 sm:flex-row sm:items-center sm:justify-between"
57
+ class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors flex flex-col gap-4 p-6 sm:flex-row sm:items-center sm:justify-between"
58
58
  >
59
59
  <div class="flex flex-col gap-2">
60
60
  <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
@@ -104,7 +104,7 @@ const hasStats =
104
104
  href={repoUrl}
105
105
  target="_blank"
106
106
  rel="noopener noreferrer"
107
- class="grove-btn grove-btn-primary"
107
+ class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 bg-primary text-primary-foreground hover:bg-primary/90"
108
108
  data-event="original_collection_click"
109
109
  data-event-source="original_collection"
110
110
  >