@meith/theme-clubhouse 0.3.2

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/src/theme.ts ADDED
@@ -0,0 +1,59 @@
1
+ import { defaultTheme } from '@meith/theme-default'
2
+ import { defineTheme } from '@meith/theme-kit'
3
+
4
+ import { Announcement } from './slots/announcement'
5
+ import { BoardIndex } from './slots/board-index'
6
+ import { BoardStats } from './slots/board-stats'
7
+ import { CategoryBlock } from './slots/category-block'
8
+ import { Footer } from './slots/footer'
9
+ import { ForumDisplay } from './slots/forum-display'
10
+ import { ForumRow } from './slots/forum-row'
11
+ import { Header } from './slots/header'
12
+ import { LatestPosts } from './slots/latest-posts'
13
+ import { LatestThreads } from './slots/latest-threads'
14
+ import { MemberProfile } from './slots/member-profile'
15
+ import { Navigation } from './slots/navigation'
16
+ import { Notice } from './slots/notice'
17
+ import { Pagination } from './slots/pagination'
18
+ import { PostActions } from './slots/post-actions'
19
+ import { PostBit } from './slots/post-bit'
20
+ import { Shell } from './slots/shell'
21
+ import { SubforumList } from './slots/subforum-list'
22
+ import { ThreadRow } from './slots/thread-row'
23
+ import { ThreadView } from './slots/thread-view'
24
+ import { UserPanel } from './slots/user-panel'
25
+ import { WhoIsOnline } from './slots/who-is-online'
26
+
27
+ export const clubhouseTheme = defineTheme({
28
+ key: 'clubhouse',
29
+ title: 'Clubhouse',
30
+ extends: defaultTheme,
31
+ slots: {
32
+ Shell,
33
+ Header,
34
+ UserPanel,
35
+ Navigation,
36
+ Footer,
37
+ Notice,
38
+ Announcement,
39
+
40
+ BoardIndex,
41
+ CategoryBlock,
42
+ ForumRow,
43
+ BoardStats,
44
+ WhoIsOnline,
45
+ LatestThreads,
46
+ LatestPosts,
47
+
48
+ ForumDisplay,
49
+ ThreadRow,
50
+ SubforumList,
51
+ Pagination,
52
+
53
+ ThreadView,
54
+ PostBit,
55
+ PostActions,
56
+
57
+ MemberProfile,
58
+ },
59
+ })
package/src/tokens.ts ADDED
@@ -0,0 +1,104 @@
1
+ import type { TokenName } from '@meith/theme-default'
2
+
3
+ export const LIGHT_TOKENS: Record<TokenName, string> = {
4
+ background: 'oklch(0.963 0 0)',
5
+ foreground: 'oklch(0.209 0 0)',
6
+ surface: 'oklch(0.933 0 0)',
7
+ card: 'oklch(0.998 0 0)',
8
+ 'card-foreground': 'oklch(0.209 0 0)',
9
+ primary: 'oklch(0.468 0.185 22)',
10
+ 'primary-foreground': 'oklch(0.985 0.005 84)',
11
+ 'primary-hover': 'oklch(0.398 0.158 22)',
12
+ secondary: 'oklch(0.812 0.124 82)',
13
+ 'secondary-foreground': 'oklch(0.276 0.052 62)',
14
+ muted: 'oklch(0.951 0 0)',
15
+ 'muted-foreground': 'oklch(0.483 0 0)',
16
+ accent: 'oklch(0.941 0 0)',
17
+ 'accent-foreground': 'oklch(0.209 0 0)',
18
+ destructive: 'oklch(0.503 0.191 27)',
19
+ 'destructive-foreground': 'oklch(0.981 0.006 84)',
20
+ border: 'oklch(0.889 0 0)',
21
+ input: 'oklch(0.616 0 0)',
22
+ ring: 'oklch(0.468 0.185 22)',
23
+ 'shadow-tint': 'oklch(0.209 0 0 / 10%)',
24
+ radius: '0.375rem',
25
+ 'density-unit': '0.25rem',
26
+ 'font-mono-stack': 'ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace',
27
+ 'font-sans-stack':
28
+ 'var(--font-inter), ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif',
29
+ 'font-heading-stack':
30
+ '"Archivo Narrow", "Roboto Condensed", "Oswald", "Arial Narrow", var(--font-sans-stack)',
31
+ elevation: '0 1px 0 var(--shadow-tint), 0 10px 24px -18px var(--shadow-tint)',
32
+ 'forum-unread': 'oklch(0.239 0 0)',
33
+ 'forum-read': 'oklch(0.551 0 0)',
34
+ 'forum-locked': 'oklch(0.541 0.128 34)',
35
+ 'thread-pinned': 'oklch(0.532 0.117 66)',
36
+ 'thread-locked': 'oklch(0.541 0.128 34)',
37
+ 'thread-moved': 'oklch(0.551 0 0)',
38
+ 'thread-unapproved': 'oklch(0.528 0.104 88)',
39
+ 'thread-deleted': 'oklch(0.478 0.169 26)',
40
+ 'post-highlight': 'oklch(0.951 0.048 86)',
41
+ 'post-own': 'oklch(0.971 0 0)',
42
+ 'post-unapproved': 'oklch(0.948 0.041 84)',
43
+ 'moderation-pending': 'oklch(0.532 0.117 66)',
44
+ 'moderation-approved': 'oklch(0.508 0.116 152)',
45
+ 'moderation-rejected': 'oklch(0.541 0.128 34)',
46
+ 'group-admin': 'oklch(0.495 0.171 24)',
47
+ 'group-supermod': 'oklch(0.486 0.156 302)',
48
+ 'group-mod': 'oklch(0.478 0.131 248)',
49
+ 'group-banned': 'oklch(0.551 0 0)',
50
+ }
51
+
52
+ export const DARK_TOKENS: Record<TokenName, string> = {
53
+ background: 'oklch(0.169 0 0)',
54
+ foreground: 'oklch(0.951 0 0)',
55
+ surface: 'oklch(0.206 0 0)',
56
+ card: 'oklch(0.231 0 0)',
57
+ 'card-foreground': 'oklch(0.951 0 0)',
58
+ primary: 'oklch(0.468 0.185 22)',
59
+ 'primary-foreground': 'oklch(0.985 0.005 84)',
60
+ 'primary-hover': 'oklch(0.538 0.196 22)',
61
+ secondary: 'oklch(0.812 0.124 82)',
62
+ 'secondary-foreground': 'oklch(0.276 0.052 62)',
63
+ muted: 'oklch(0.261 0 0)',
64
+ 'muted-foreground': 'oklch(0.716 0 0)',
65
+ accent: 'oklch(0.296 0 0)',
66
+ 'accent-foreground': 'oklch(0.951 0 0)',
67
+ destructive: 'oklch(0.668 0.181 26)',
68
+ 'destructive-foreground': 'oklch(0.186 0.043 24)',
69
+ border: 'oklch(0.338 0 0)',
70
+ input: 'oklch(0.543 0 0)',
71
+ 'shadow-tint': 'oklch(0 0 0 / 50%)',
72
+ ring: 'oklch(0.741 0.161 22)',
73
+ radius: '0.375rem',
74
+ 'density-unit': '0.25rem',
75
+ 'font-mono-stack': 'ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace',
76
+ 'font-sans-stack':
77
+ 'var(--font-inter), ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif',
78
+ 'font-heading-stack':
79
+ '"Archivo Narrow", "Roboto Condensed", "Oswald", "Arial Narrow", var(--font-sans-stack)',
80
+ elevation: '0 1px 0 var(--shadow-tint), 0 10px 24px -18px var(--shadow-tint)',
81
+ 'forum-unread': 'oklch(0.963 0 0)',
82
+ 'forum-read': 'oklch(0.643 0 0)',
83
+ 'forum-locked': 'oklch(0.724 0.126 36)',
84
+ 'thread-pinned': 'oklch(0.796 0.124 76)',
85
+ 'thread-locked': 'oklch(0.724 0.126 36)',
86
+ 'thread-moved': 'oklch(0.643 0 0)',
87
+ 'thread-unapproved': 'oklch(0.806 0.114 88)',
88
+ 'thread-deleted': 'oklch(0.678 0.154 26)',
89
+ 'post-highlight': 'oklch(0.312 0.049 84)',
90
+ 'post-own': 'oklch(0.253 0 0)',
91
+ 'post-unapproved': 'oklch(0.298 0.044 82)',
92
+ 'moderation-pending': 'oklch(0.796 0.124 76)',
93
+ 'moderation-approved': 'oklch(0.741 0.132 154)',
94
+ 'moderation-rejected': 'oklch(0.724 0.126 36)',
95
+ 'group-admin': 'oklch(0.702 0.164 24)',
96
+ 'group-supermod': 'oklch(0.716 0.139 302)',
97
+ 'group-mod': 'oklch(0.708 0.118 248)',
98
+ 'group-banned': 'oklch(0.643 0 0)',
99
+ }
100
+
101
+ export const BROWSER_THEME_COLOR = {
102
+ light: '#f3f3f3',
103
+ dark: '#0f0f0f',
104
+ } as const