@meith/theme-default 0.25.0 → 0.25.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meith/theme-default",
3
- "version": "0.25.0",
3
+ "version": "0.25.1",
4
4
  "description": "Meith's default theme — every slot and every token, and the reference for what a complete theme fills.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -20,8 +20,8 @@
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@meith/theme-kit": "^0.25.0",
24
- "@meith/ui": "^0.25.0"
23
+ "@meith/theme-kit": "^0.25.1",
24
+ "@meith/ui": "^0.25.1"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": "^19.2.0"
@@ -5,14 +5,14 @@ import { Card, CardRows, cn, Empty, EmptyDescription } from '@meith/ui'
5
5
  import { LINK, NUMERIC, pageAt, Stamp } from '../shared'
6
6
 
7
7
  const TAB =
8
- 'inline-flex h-9 items-center rounded-full px-3.5 text-sm font-medium whitespace-nowrap transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring'
8
+ 'inline-flex h-8 items-center gap-1.5 rounded-md px-3 text-sm whitespace-nowrap transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring'
9
9
 
10
10
  function Tabs({ label, tabs }: { label: string; tabs: readonly TabModel[] }) {
11
11
  if (tabs.length === 0) return null
12
12
 
13
13
  return (
14
- <nav aria-label={label} className="flex items-center gap-x-3">
15
- <ul className="-my-1.5 flex min-w-0 flex-1 items-center gap-1 overflow-x-auto py-1.5">
14
+ <nav aria-label={label} className="flex flex-wrap items-center gap-x-3 gap-y-2">
15
+ <ul className="inline-flex max-w-full items-center gap-1 overflow-x-auto rounded-lg border border-border bg-surface p-1">
16
16
  {tabs.map((tab) => (
17
17
  <li key={tab.href} className="shrink-0">
18
18
  <a
@@ -21,8 +21,8 @@ function Tabs({ label, tabs }: { label: string; tabs: readonly TabModel[] }) {
21
21
  className={cn(
22
22
  TAB,
23
23
  tab.isCurrent
24
- ? 'bg-primary font-semibold text-primary-foreground'
25
- : 'text-muted-foreground hover:bg-accent hover:text-foreground',
24
+ ? 'bg-card font-semibold text-foreground shadow-sm'
25
+ : 'font-medium text-muted-foreground hover:text-foreground',
26
26
  )}
27
27
  >
28
28
  {tab.label}
@@ -115,9 +115,11 @@ export function SearchResults({
115
115
  </CardContent>
116
116
  </Card>
117
117
 
118
- <a href={newSearchHref} className={`text-sm font-medium text-foreground ${LINK}`}>
119
- {c('startNewSearch')}
120
- </a>
118
+ <div>
119
+ <a href={newSearchHref} className={buttonVariants({ variant: 'outline' })}>
120
+ {c('startNewSearch')}
121
+ </a>
122
+ </div>
121
123
  </main>
122
124
  )
123
125
  }
@@ -147,18 +149,19 @@ function Refine({
147
149
 
148
150
  <nav
149
151
  aria-label={sortsLabel}
150
- className="flex items-center rounded-md border border-border p-0.5"
152
+ className="inline-flex items-center gap-1 rounded-lg border border-border bg-surface p-1"
151
153
  >
152
154
  {sorts.map((sort) => (
153
155
  <a
154
156
  key={sort.label}
155
157
  href={sort.href}
156
158
  {...(sort.isCurrent ? { 'aria-current': 'true' as const } : {})}
157
- className={`rounded px-2.5 py-1 text-xs font-medium ${
159
+ className={cn(
160
+ 'rounded-md px-2.5 py-1 text-xs whitespace-nowrap transition-colors',
158
161
  sort.isCurrent
159
- ? 'bg-secondary text-foreground'
160
- : 'text-muted-foreground hover:bg-muted hover:text-foreground'
161
- }`}
162
+ ? 'bg-card font-semibold text-foreground shadow-sm'
163
+ : 'font-medium text-muted-foreground hover:text-foreground',
164
+ )}
162
165
  >
163
166
  {sort.label}
164
167
  </a>
package/src/theme.ts CHANGED
@@ -70,7 +70,7 @@ import { WhoIsOnline } from './slots/who-is-online'
70
70
  export const defaultTheme = defineTheme({
71
71
  key: 'default',
72
72
  title: 'Default',
73
- version: '0.25.0',
73
+ version: '0.25.1',
74
74
  slots: {
75
75
  Shell,
76
76
  Header,