@hackcove/theme-catppuccin-mocha 0.0.0-stage → 0.2.0

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 (5) hide show
  1. package/LICENSE +49 -0
  2. package/NOTICE +25 -0
  3. package/README.md +33 -2
  4. package/package.json +46 -4
  5. package/theme.css +212 -0
package/LICENSE ADDED
@@ -0,0 +1,49 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jacobus Langner
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.
22
+
23
+
24
+ ---
25
+
26
+ The Catppuccin Mocha palette used by theme.css is from Catppuccin
27
+ (https://github.com/catppuccin/catppuccin) and is reproduced under its MIT license:
28
+
29
+ MIT License
30
+
31
+ Copyright (c) 2021 Catppuccin
32
+
33
+ Permission is hereby granted, free of charge, to any person obtaining a copy
34
+ of this software and associated documentation files (the "Software"), to deal
35
+ in the Software without restriction, including without limitation the rights
36
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
37
+ copies of the Software, and to permit persons to whom the Software is
38
+ furnished to do so, subject to the following conditions:
39
+
40
+ The above copyright notice and this permission notice shall be included in all
41
+ copies or substantial portions of the Software.
42
+
43
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
44
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
46
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
47
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
48
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
49
+ SOFTWARE.
package/NOTICE ADDED
@@ -0,0 +1,25 @@
1
+ The Catppuccin Mocha palette used by theme.css is from Catppuccin
2
+ (https://github.com/catppuccin/catppuccin) and is reproduced under its MIT license:
3
+
4
+ MIT License
5
+
6
+ Copyright (c) 2021 Catppuccin
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in all
16
+ copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ SOFTWARE.
25
+
package/README.md CHANGED
@@ -1,3 +1,34 @@
1
- # Temporary Holding Version
1
+ # @hackcove/theme-catppuccin-mocha
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The Catppuccin Mocha dark theme for Hack Cove. One CSS file, `theme.css`: it declares the
4
+ class-based `dark` variant and, under `.dark`, remaps the Tailwind slate/colour utilities that
5
+ `@hackcove/ui` is written against to real Mocha tokens. It also ships a `.link` class.
6
+
7
+ Status: `0.x`, published to npm. License: MIT.
8
+
9
+ ## Install
10
+
11
+ ```sh
12
+ bun add @hackcove/theme-catppuccin-mocha
13
+ # peer: tailwindcss ^4
14
+ ```
15
+
16
+ ## Use
17
+
18
+ In your global stylesheet, after Tailwind:
19
+
20
+ ```css
21
+ @import "tailwindcss";
22
+ @import "@hackcove/theme-catppuccin-mocha/theme.css";
23
+ ```
24
+
25
+ Put `class="dark"` on `<html>`. The rules are unlayered, so they override Tailwind's layered
26
+ utilities.
27
+
28
+ ## Palette and attribution
29
+
30
+ The palette is [Catppuccin](https://github.com/catppuccin/catppuccin) Mocha, © 2021 Catppuccin, used under the MIT license. The full notice ships in this package as `NOTICE`, and a one-line credit sits at the top of `theme.css`. Tailwind's build drops that comment from a consumer's bundled CSS, so an app that wants the credit visible should add its own. This package's own license (MIT, see `LICENSE`) is separate.
31
+
32
+ base `#1e1e2e` · mantle `#181825` · crust `#11111b` · surface0 `#313244` · surface1 `#45475a` ·
33
+ surface2 `#585b70` · text `#cdd6f4` · subtext1 `#bac2de` · subtext0 `#a6adc8` · overlay1 `#7f849c` ·
34
+ green `#a6e3a1` · red `#f38ba8` · yellow `#f9e2af` · blue `#89b4fa` · mauve `#cba6f7`
package/package.json CHANGED
@@ -1,6 +1,48 @@
1
1
  {
2
2
  "name": "@hackcove/theme-catppuccin-mocha",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "The Catppuccin Mocha dark theme for Hack Cove: one CSS file that remaps the Tailwind utilities @hackcove/ui is written against.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/madangryscientist/hackcove.git",
9
+ "directory": "themes/catppuccin-mocha"
10
+ },
11
+ "files": [
12
+ "theme.css",
13
+ "NOTICE"
14
+ ],
15
+ "type": "module",
16
+ "sideEffects": [
17
+ "*.css"
18
+ ],
19
+ "exports": {
20
+ "./theme.css": "./theme.css",
21
+ "./package.json": "./package.json"
22
+ },
23
+ "scripts": {
24
+ "typecheck": "tsc --noEmit",
25
+ "lint": "oxlint -c ../../.oxlintrc.json --type-aware --deny-warnings && bun ../../scripts/check-slop.ts",
26
+ "test": "vitest run",
27
+ "pack-check": "npm pack --dry-run"
28
+ },
29
+ "devDependencies": {
30
+ "@types/bun": "1.4.3",
31
+ "tailwindcss": "^4.3.3",
32
+ "vitest": "5.0.5"
33
+ },
34
+ "peerDependencies": {
35
+ "tailwindcss": "^4"
36
+ },
37
+ "nx": {
38
+ "name": "theme-catppuccin-mocha",
39
+ "tags": [
40
+ "kind:theme"
41
+ ],
42
+ "targets": {
43
+ "pack-check": {
44
+ "dependsOn": []
45
+ }
46
+ }
47
+ }
48
+ }
package/theme.css ADDED
@@ -0,0 +1,212 @@
1
+ /*! Catppuccin Mocha palette © 2021 Catppuccin, MIT license: https://github.com/catppuccin/catppuccin (full notice in NOTICE) */
2
+ /* ---------------------------------------------------------------------------
3
+ Catppuccin Mocha — the dark theme for the Hack Cove design system.
4
+ ---------------------------------------------------------------------------
5
+ The @hackcove/ui components are written against Tailwind's slate/colour
6
+ utilities directly (bg-white, text-slate-900, …) rather than carrying `dark:`
7
+ variants. This file is what makes them dark: it remaps those core utilities
8
+ to real Catppuccin Mocha tokens under `.dark`. The rules are unlayered, so
9
+ they override Tailwind's (layered) utilities.
10
+
11
+ Consumers import it AFTER `@import "tailwindcss"` and put `.dark` on <html>
12
+ (see the README for the import line).
13
+
14
+ Palette:
15
+ base #1e1e2e · mantle #181825 · crust #11111b · surface0 #313244
16
+ surface1 #45475a · surface2 #585b70 · text #cdd6f4 · subtext1 #bac2de
17
+ subtext0 #a6adc8 · overlay1 #7f849c · green #a6e3a1 · red #f38ba8
18
+ yellow #f9e2af · blue #89b4fa · mauve #cba6f7
19
+ --------------------------------------------------------------------------- */
20
+
21
+ /* Class-based dark mode (toggle adds `.dark` to <html>). */
22
+ @custom-variant dark (&:where(.dark, .dark *));
23
+
24
+ .dark {
25
+ color-scheme: dark;
26
+ }
27
+
28
+ /* Surfaces — cards (base) lift off the mantle canvas. */
29
+ .dark .bg-white {
30
+ background-color: #1e1e2e; /* base */
31
+ }
32
+ .dark .bg-white\/80 {
33
+ background-color: rgba(30, 30, 46, 0.85);
34
+ }
35
+ .dark .bg-slate-50,
36
+ .dark .bg-slate-50\/50,
37
+ .dark .bg-slate-50\/60,
38
+ .dark .bg-slate-50\/70 {
39
+ background-color: #313244; /* surface0 */
40
+ }
41
+ .dark .bg-slate-100 {
42
+ background-color: #45475a; /* surface1 */
43
+ }
44
+ .dark .bg-slate-900 {
45
+ background-color: #313244; /* surface0 — e.g. the brand badge */
46
+ }
47
+
48
+ /* Text */
49
+ .dark .text-slate-900,
50
+ .dark .text-slate-800 {
51
+ color: #cdd6f4; /* text — incl. bold totals/footers */
52
+ }
53
+ .dark .text-slate-700,
54
+ .dark .text-slate-600 {
55
+ color: #bac2de; /* subtext1 */
56
+ }
57
+ .dark .text-slate-500 {
58
+ color: #a6adc8; /* subtext0 */
59
+ }
60
+ .dark .text-slate-400 {
61
+ color: #9399b2; /* overlay2 — legible muted/headers */
62
+ }
63
+ .dark .placeholder\:text-slate-400::placeholder {
64
+ color: #7f849c; /* overlay1 */
65
+ }
66
+
67
+ /* Borders */
68
+ .dark .border-slate-100 {
69
+ border-color: #282839;
70
+ }
71
+ .dark .border-slate-200,
72
+ .dark .border-slate-200\/70 {
73
+ border-color: #313244; /* surface0 */
74
+ }
75
+ .dark .border-slate-300 {
76
+ border-color: #45475a; /* surface1 */
77
+ }
78
+ /* "emphasis" / active borders flip to light so they stay visible */
79
+ .dark .border-slate-900 {
80
+ border-color: #cdd6f4;
81
+ }
82
+
83
+ /* Money + accent text */
84
+ .dark .text-emerald-600 {
85
+ color: #a6e3a1; /* green */
86
+ }
87
+ .dark .text-red-600 {
88
+ color: #f38ba8; /* red */
89
+ }
90
+
91
+ /* Stat-card accent bars */
92
+ .dark .bg-emerald-500 {
93
+ background-color: #a6e3a1;
94
+ }
95
+ .dark .bg-red-500 {
96
+ background-color: #f38ba8;
97
+ }
98
+ .dark .bg-slate-300 {
99
+ background-color: #585b70; /* surface2 */
100
+ }
101
+
102
+ /* Accent: buttons, focus, controls */
103
+ .dark .bg-violet-600 {
104
+ background-color: #cba6f7; /* mauve */
105
+ }
106
+ .dark .hover\:bg-violet-700:hover {
107
+ background-color: #b4befe; /* lavender */
108
+ }
109
+ .dark .text-violet-50 {
110
+ color: #11111b; /* crust — text on the mauve button */
111
+ }
112
+ .dark .hover\:text-violet-700:hover {
113
+ color: #b4befe; /* lavender */
114
+ }
115
+ .dark .hover\:bg-violet-50:hover {
116
+ background-color: rgba(203, 166, 247, 0.14); /* mauve tint */
117
+ }
118
+ .dark .border-violet-600 {
119
+ border-color: #cba6f7; /* mauve */
120
+ }
121
+ .dark .hover\:border-violet-400:hover {
122
+ border-color: rgba(203, 166, 247, 0.5);
123
+ }
124
+ .dark .focus-visible\:outline-violet-600:focus-visible {
125
+ outline-color: #cba6f7; /* mauve */
126
+ }
127
+ .dark .accent-violet-600 {
128
+ accent-color: #cba6f7; /* mauve */
129
+ }
130
+
131
+ /* Hover states */
132
+ .dark .hover\:bg-slate-50:hover {
133
+ background-color: #262739;
134
+ }
135
+ .dark .hover\:bg-slate-100:hover {
136
+ background-color: #313244;
137
+ }
138
+
139
+ /* Coloured callouts / chips — tint backgrounds, lighten text & borders */
140
+ .dark .bg-emerald-50,
141
+ .dark .bg-emerald-50\/60,
142
+ .dark .bg-emerald-100 {
143
+ background-color: rgba(166, 227, 161, 0.13);
144
+ }
145
+ .dark .bg-amber-50,
146
+ .dark .bg-amber-50\/60,
147
+ .dark .bg-amber-100 {
148
+ background-color: rgba(249, 226, 175, 0.13);
149
+ }
150
+ .dark .bg-red-50 {
151
+ background-color: rgba(243, 139, 168, 0.13);
152
+ }
153
+ .dark .bg-blue-50 {
154
+ background-color: rgba(137, 180, 250, 0.13);
155
+ }
156
+ .dark .bg-violet-50 {
157
+ background-color: rgba(203, 166, 247, 0.14); /* mauve tint */
158
+ }
159
+ .dark .text-emerald-700,
160
+ .dark .text-emerald-800 {
161
+ color: #a6e3a1; /* green */
162
+ }
163
+ .dark .text-amber-700,
164
+ .dark .text-amber-800,
165
+ .dark .text-amber-900 {
166
+ color: #f9e2af; /* yellow */
167
+ }
168
+ .dark .text-red-700,
169
+ .dark .text-red-800,
170
+ .dark .text-red-900 {
171
+ color: #f38ba8; /* red */
172
+ }
173
+ .dark .text-blue-600,
174
+ .dark .text-blue-700,
175
+ .dark .text-blue-800,
176
+ .dark .text-blue-900 {
177
+ color: #89b4fa; /* blue */
178
+ }
179
+ .dark .text-violet-600,
180
+ .dark .text-violet-700 {
181
+ color: #cba6f7; /* mauve */
182
+ }
183
+ .dark .border-emerald-200,
184
+ .dark .border-emerald-300 {
185
+ border-color: rgba(166, 227, 161, 0.4);
186
+ }
187
+ .dark .border-amber-200,
188
+ .dark .border-amber-300 {
189
+ border-color: rgba(249, 226, 175, 0.4);
190
+ }
191
+ .dark .border-red-200 {
192
+ border-color: rgba(243, 139, 168, 0.45);
193
+ }
194
+ .dark .border-red-300,
195
+ .dark .border-red-400 {
196
+ border-color: rgba(243, 139, 168, 0.45);
197
+ }
198
+ .dark .border-blue-200,
199
+ .dark .border-blue-300 {
200
+ border-color: rgba(137, 180, 250, 0.4);
201
+ }
202
+
203
+ /* Inline links — Mocha mauve (green is reserved for positive values). */
204
+ .link {
205
+ color: #cba6f7; /* mauve */
206
+ font-weight: 500;
207
+ text-underline-offset: 2px;
208
+ transition: color 0.12s ease;
209
+ }
210
+ .link:hover {
211
+ color: #b4befe; /* lavender */
212
+ }