@grove-dev/astro 0.2.18 → 0.2.20

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 (48) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +44 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/theme.test.d.ts +2 -0
  6. package/dist/theme.test.d.ts.map +1 -0
  7. package/dist/theme.test.js +55 -0
  8. package/dist/theme.test.js.map +1 -0
  9. package/package.json +1 -1
  10. package/src/components/CategoryGrid.astro +2 -11
  11. package/src/components/ContributorsGrid.astro +2 -11
  12. package/src/components/CurationGrid.astro +1 -1
  13. package/src/components/DecisionRow.astro +1 -1
  14. package/src/components/ExploreByCategory.astro +3 -3
  15. package/src/components/ExploreByStack.astro +3 -3
  16. package/src/components/FilterGroupMenu.astro +5 -5
  17. package/src/components/Hero.astro +11 -11
  18. package/src/components/Icon.astro +6 -33
  19. package/src/components/IndexRow.astro +5 -5
  20. package/src/components/ItemCard.astro +5 -16
  21. package/src/components/MinimalAbout.astro +2 -2
  22. package/src/components/OriginalCollection.astro +4 -4
  23. package/src/components/Pagination.astro +2 -2
  24. package/src/components/RecordSection.astro +1 -1
  25. package/src/components/RefinePanel.astro +1 -1
  26. package/src/components/SmartLensTabs.astro +3 -3
  27. package/src/components/StackGrid.astro +6 -15
  28. package/src/components/WhyThisExists.astro +3 -3
  29. package/src/index.ts +52 -1
  30. package/src/layouts/BaseLayout.astro +1 -1
  31. package/src/layouts/Container.astro +4 -4
  32. package/src/layouts/Footer.astro +3 -3
  33. package/src/layouts/Header.astro +5 -5
  34. package/src/layouts/ThemeToggle.astro +1 -1
  35. package/src/styles.css +217 -408
  36. package/src/theme.test.ts +67 -0
  37. package/templates/default/package.json +1 -1
  38. package/templates/default/public/icons/stacks/rag.svg +7 -0
  39. package/templates/default/public/llms-full.txt +1 -1
  40. package/templates/default/public/sitemap.xml +10 -10
  41. package/templates/default/src/pages/404.astro +5 -5
  42. package/templates/default/src/pages/[slug]/[recordSlug].astro +27 -31
  43. package/templates/default/src/pages/[slug]/index.astro +8 -37
  44. package/templates/default/src/pages/about.astro +9 -9
  45. package/templates/default/src/pages/contributors.astro +8 -17
  46. package/templates/default/src/pages/submit.astro +23 -31
  47. package/templates/default/src/styles/global.css +14 -39
  48. package/templates/default/tailwind.config.mjs +0 -130
package/dist/index.d.ts CHANGED
@@ -2,4 +2,5 @@ import type { AstroIntegration } from "astro";
2
2
  export * from "@grove-dev/core";
3
3
  export * from "./lib/index.js";
4
4
  export default function groveAstro(): AstroIntegration;
5
+ export declare const CONSUMER_GLOBAL_CSS_ID = "virtual:grove-consumer-global-css";
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE9C,cAAc,iBAAiB,CAAC;AAMhC,cAAc,gBAAgB,CAAC;AAW/B,MAAM,CAAC,OAAO,UAAU,UAAU,IAAI,gBAAgB,CAuBrD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE9C,cAAc,iBAAiB,CAAC;AAMhC,cAAc,gBAAgB,CAAC;AAkB/B,MAAM,CAAC,OAAO,UAAU,UAAU,IAAI,gBAAgB,CAuDrD;AAID,eAAO,MAAM,sBAAsB,sCAAiC,CAAC"}
package/dist/index.js CHANGED
@@ -16,7 +16,15 @@
16
16
  * - Re-exports the generic `lib/` helpers (search, lenses, scores,
17
17
  * repo, format, display, taxonomy-counts) under a single import
18
18
  * path so consumers can `import { ... } from "@grove-dev/astro"`.
19
+ *
20
+ * Also auto-loads the consumer's `src/styles/global.css` when it
21
+ * exists. Without this hook the scaffold's global.css (which the
22
+ * CLI generates for theme overrides) sits on disk unused, and any
23
+ * custom theme tokens silently degrade to the package defaults —
24
+ * which is the classic "I changed the brand color in global.css
25
+ * and nothing happened" surprise.
19
26
  */
27
+ import { existsSync } from "node:fs";
20
28
  import { fileURLToPath } from "node:url";
21
29
  import { dirname, resolve } from "node:path";
22
30
  export * from "@grove-dev/core";
@@ -33,16 +41,24 @@ const here = dirname(fileURLToPath(import.meta.url));
33
41
  const srcRoot = resolve(here, "..", "src");
34
42
  const componentsDir = resolve(srcRoot, "components");
35
43
  const layoutsDir = resolve(srcRoot, "layouts");
44
+ // Virtual module id used to inject the consumer's `src/styles/global.css`.
45
+ // Resolved by the inline Vite plugin below to the absolute file path
46
+ // when the file exists, or to an empty module when it doesn't.
47
+ const CONSUMER_GLOBAL_CSS_VIRTUAL_ID = "virtual:grove-consumer-global-css";
48
+ const CONSUMER_GLOBAL_CSS_EMPTY_ID = "\0virtual:grove-consumer-global-css:empty";
36
49
  export default function groveAstro() {
37
50
  return {
38
51
  name: "@grove-dev/astro",
39
52
  hooks: {
40
- "astro:config:setup": ({ updateConfig }) => {
53
+ "astro:config:setup": ({ config, updateConfig, injectScript }) => {
41
54
  // Alias the components/layouts source directories so
42
55
  // consumer builds can import from
43
56
  // @grove-dev/astro/components/ItemCard.astro
44
57
  // without us shipping a glob-shaped `exports` map that
45
58
  // Vite/Rollup does not expand reliably.
59
+ const consumerRoot = fileURLToPath(config.root);
60
+ const globalCssPath = resolve(consumerRoot, "src/styles/global.css");
61
+ const globalCssExists = existsSync(globalCssPath);
46
62
  updateConfig({
47
63
  vite: {
48
64
  resolve: {
@@ -51,10 +67,37 @@ export default function groveAstro() {
51
67
  "@grove-dev/astro/layouts": layoutsDir,
52
68
  },
53
69
  },
70
+ plugins: [
71
+ {
72
+ name: "grove:consumer-global-css-resolver",
73
+ resolveId(id) {
74
+ if (id === CONSUMER_GLOBAL_CSS_VIRTUAL_ID) {
75
+ return globalCssExists
76
+ ? globalCssPath
77
+ : CONSUMER_GLOBAL_CSS_EMPTY_ID;
78
+ }
79
+ return null;
80
+ },
81
+ load(id) {
82
+ if (id === CONSUMER_GLOBAL_CSS_EMPTY_ID) {
83
+ return "";
84
+ }
85
+ return null;
86
+ },
87
+ },
88
+ ],
54
89
  },
55
90
  });
91
+ // Always inject the virtual module so the build is symmetric
92
+ // regardless of whether the consumer has a global.css yet.
93
+ // Vite's CSS pipeline (with @tailwindcss/vite) handles the
94
+ // resulting import as a stylesheet — no JS bundle weight.
95
+ injectScript("page-ssr", `import "${CONSUMER_GLOBAL_CSS_VIRTUAL_ID}";`);
56
96
  },
57
97
  },
58
98
  };
59
99
  }
100
+ // Re-export the virtual module id so consumers (and tests) can
101
+ // reason about it without copy-pasting the literal string.
102
+ export const CONSUMER_GLOBAL_CSS_ID = CONSUMER_GLOBAL_CSS_VIRTUAL_ID;
60
103
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAG7C,cAAc,iBAAiB,CAAC;AAEhC,+DAA+D;AAC/D,mEAAmE;AACnE,iEAAiE;AACjE,mCAAmC;AACnC,cAAc,gBAAgB,CAAC;AAE/B,MAAM,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AACrD,+DAA+D;AAC/D,0DAA0D;AAC1D,8DAA8D;AAC9D,sCAAsC;AACtC,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;AACrD,MAAM,UAAU,GAAG,O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AAW,8BAA8B,IAAI,CAC9C,CAAC;YACJ,CAAC;SACF;KACF,CAAC;AACJ,CAAC;AAED,+DAA+D;AAC/D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,sBAAsB,GAAG,8BAA8B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=theme.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.test.d.ts","sourceRoot":"","sources":["../src/theme.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,55 @@
1
+ import { readFileSync } from "node:fs";
2
+ import { resolve } from "node:path";
3
+ import { describe, expect, it } from "vitest";
4
+ const astroTheme = readFileSync(resolve(import.meta.dirname, "styles.css"), "utf8");
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
+ describe("Astro theme contract", () => {
12
+ it("keeps Starlight's light and dark foundation values", () => {
13
+ expect(astroTheme).toContain("--grove-background: oklch(100% 0 0)");
14
+ expect(astroTheme).toContain("--grove-foreground: var(--color-ink-950)");
15
+ expect(astroTheme).toContain("--grove-background: var(--color-ink-950)");
16
+ expect(astroTheme).toContain("--grove-foreground: var(--color-ink-50)");
17
+ expect(astroTheme).toContain("--color-ink-50: oklch(98.5% 0 0)");
18
+ expect(astroTheme).toContain("--color-ink-950: oklch(14.5% 0 0)");
19
+ });
20
+ it("exposes runtime semantic colors to Tailwind", () => {
21
+ for (const token of [
22
+ "background",
23
+ "foreground",
24
+ "primary",
25
+ "secondary",
26
+ "muted",
27
+ "accent",
28
+ "border",
29
+ "card",
30
+ "popover",
31
+ ]) {
32
+ expect(astroTheme).toContain(`--color-${token}: var(--grove-${token})`);
33
+ }
34
+ });
35
+ it("uses the same system and mono font stacks as the docs", () => {
36
+ expect(astroTheme).toContain('--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,');
37
+ expect(astroTheme).toContain("--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,");
38
+ expect(astroTheme).toContain("font-family: var(--font-sans)");
39
+ });
40
+ it("does not duplicate package-owned foundation tokens in the scaffold", () => {
41
+ expect(scaffoldTheme).not.toContain("--color-ink-");
42
+ expect(scaffoldTheme).not.toContain("font-family:");
43
+ expect(scaffoldTheme).not.toContain("color-scheme:");
44
+ });
45
+ it("styles components in HTML with Starlight-aligned Tailwind utilities", () => {
46
+ expect(tailwindMarkup).toContain("rounded-[calc(var(--radius)+0.25rem)]");
47
+ expect(tailwindMarkup).toContain("rounded-full");
48
+ expect(tailwindMarkup).toContain("min-h-5");
49
+ expect(tailwindMarkup).toContain("h-8");
50
+ expect(tailwindMarkup).toContain("focus-visible:ring-3");
51
+ expect(astroTheme).not.toContain(".grove-card");
52
+ expect(astroTheme).not.toContain(".grove-btn");
53
+ });
54
+ });
55
+ //# sourceMappingURL=theme.test.js.map
@@ -0,0 +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,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,EAAE,MAAM,CAAC,CAAC;AACpF,MAAM,aAAa,GAAG,YAAY,CAChC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,4CAA4C,CAAC,EAC1E,MAAM,CACP,CAAC;AACF,MAAM,cAAc,GAAG;IACrB,2BAA2B;IAC3B,sBAAsB;IACtB,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F,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,+BAA+B,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oEAAoE,EAAE,GAAG,EAAE;QAC5E,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QACpD,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QACpD,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qEAAqE,EAAE,GAAG,EAAE;QAC7E,MAAM,CAAC,cAAc,CAAC,CAAC,SAAS,CAAC,uCAAuC,CAAC,CAAC;QAC1E,MAAM,CAAC,cAAc,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QACjD,MAAM,CAAC,cAAc,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QAC5C,MAAM,CAAC,cAAc,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxC,MAAM,CAAC,cAAc,CAAC,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;QACzD,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QAChD,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grove-dev/astro",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "type": "module",
5
5
  "description": "Astro framework adapter for Grove. Components, layouts, design tokens, and a default template.",
6
6
  "license": "MIT",
@@ -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>
@@ -114,9 +114,9 @@ const trustStats: { value: string; label: string }[] = [
114
114
  class="pointer-events-none absolute inset-0 opacity-60 dark:opacity-40"
115
115
  style="
116
116
  background-image:
117
- radial-gradient(60% 50% at 15% 20%, rgba(31, 111, 235, 0.12), transparent 60%),
118
- radial-gradient(50% 40% at 85% 10%, rgba(110, 231, 183, 0.10), transparent 60%),
119
- radial-gradient(40% 40% at 50% 90%, rgba(251, 146, 60, 0.08), transparent 60%);
117
+ radial-gradient(60% 50% at 15% 20%, color-mix(in oklab, var(--color-ink-300) 34%, transparent), transparent 60%),
118
+ radial-gradient(50% 40% at 85% 10%, color-mix(in oklab, var(--color-ink-200) 28%, transparent), transparent 60%),
119
+ radial-gradient(40% 40% at 50% 90%, color-mix(in oklab, var(--color-ink-400) 18%, transparent), transparent 60%);
120
120
  "
121
121
  ></div>
122
122
 
@@ -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,7 +135,10 @@ 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
  >
@@ -151,7 +154,7 @@ const a11y: Record<string, string> = title
151
154
  width={size}
152
155
  height={size}
153
156
  alt=""
154
- class:list={["grove-icon grove-icon-themed", className]}
157
+ class:list={["inline-block shrink-0 align-middle", className]}
155
158
  {...a11y}
156
159
  />
157
160
  ) : (
@@ -160,7 +163,7 @@ const a11y: Record<string, string> = title
160
163
  width={size}
161
164
  height={size}
162
165
  alt=""
163
- class:list={["grove-icon", className]}
166
+ class:list={["inline-block shrink-0 align-middle", className]}
164
167
  loading="lazy"
165
168
  decoding="async"
166
169
  {...a11y}
@@ -168,36 +171,6 @@ const a11y: Record<string, string> = title
168
171
  )
169
172
  }
170
173
 
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, #f4f4f5);
189
- color: var(--color-ink-700, #3f3f46);
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, #27272a);
197
- color: var(--color-ink-200, #e4e4e7);
198
- }
199
- </style>
200
-
201
174
  {mode === "auto" && (
202
175
  <script is:inline>
203
176
  // 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
  >
@@ -23,7 +23,7 @@ function pageList(active: number, count: number): Array<number | "ellipsis"> {
23
23
 
24
24
  const pages = pageList(current, total);
25
25
  const linkClass =
26
- "grove-btn grove-btn-outline min-w-9 px-2 py-1.5 text-2xs";
26
+ "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 min-w-9 px-2 py-1.5 text-2xs";
27
27
  ---
28
28
 
29
29
  {total > 1 && (
@@ -45,7 +45,7 @@ const linkClass =
45
45
  href={hrefFor(page)}
46
46
  class:list={[
47
47
  linkClass,
48
- page === current && "grove-btn-primary",
48
+ page === current && "bg-primary text-primary-foreground hover:bg-primary/90",
49
49
  ]}
50
50
  aria-current={page === current ? "page" : undefined}
51
51
  >
@@ -68,7 +68,7 @@ const visible = items.slice(0, 6);
68
68
 
69
69
  <section
70
70
  id={id}
71
- class={`grove-section scroll-mt-20 ${className}`}
71
+ class={`py-12 sm:py-16 scroll-mt-20 ${className}`}
72
72
  >
73
73
  <Container>
74
74
  <div class="mb-6 flex flex-wrap items-end justify-between gap-3">