@hackcove/theme-catppuccin-mocha 0.2.3 → 0.2.5
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/README.md +3 -2
- package/package.json +19 -1
- package/theme.css +30 -1
package/README.md
CHANGED
|
@@ -22,8 +22,9 @@ In your global stylesheet, after Tailwind:
|
|
|
22
22
|
@import "@hackcove/theme-catppuccin-mocha/theme.css";
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
Put `class="dark"` on `<html>`. The
|
|
26
|
-
|
|
25
|
+
Put `class="dark"` on `<html>`. The scope paints the mantle canvas (`#181825`), so the base-coloured
|
|
26
|
+
cards lift off it and the app needs no page-background rule of its own. The rules are unlayered, so
|
|
27
|
+
they override Tailwind's layered utilities.
|
|
27
28
|
|
|
28
29
|
## Palette and attribution
|
|
29
30
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hackcove/theme-catppuccin-mocha",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "The Catppuccin Mocha dark theme for Hack Cove: one CSS file that remaps the Tailwind utilities @hackcove/ui is written against.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"catppuccin",
|
|
7
|
+
"dark-mode",
|
|
8
|
+
"design-system",
|
|
9
|
+
"hackcove",
|
|
10
|
+
"mocha",
|
|
11
|
+
"tailwind",
|
|
12
|
+
"tailwindcss",
|
|
13
|
+
"theme"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://github.com/madangryscientist/hackcove/tree/main/themes/catppuccin-mocha#readme",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/madangryscientist/hackcove/issues"
|
|
18
|
+
},
|
|
5
19
|
"license": "MIT",
|
|
20
|
+
"author": {
|
|
21
|
+
"name": "Jacobus Langner",
|
|
22
|
+
"url": "https://github.com/madangryscientist"
|
|
23
|
+
},
|
|
6
24
|
"repository": {
|
|
7
25
|
"type": "git",
|
|
8
26
|
"url": "git+https://github.com/madangryscientist/hackcove.git",
|
package/theme.css
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
.dark {
|
|
25
25
|
color-scheme: dark;
|
|
26
|
+
background-color: #181825; /* mantle — the canvas the base-coloured cards lift off */
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
/* Surfaces — cards (base) lift off the mantle canvas. */
|
|
@@ -133,10 +134,30 @@
|
|
|
133
134
|
.dark .focus-visible\:outline-violet-600:focus-visible {
|
|
134
135
|
outline-color: #cba6f7; /* mauve */
|
|
135
136
|
}
|
|
137
|
+
.dark .has-focus-visible\:outline-violet-600:has(:focus-visible) {
|
|
138
|
+
outline-color: #cba6f7; /* mauve */
|
|
139
|
+
}
|
|
136
140
|
.dark .accent-violet-600 {
|
|
137
141
|
accent-color: #cba6f7; /* mauve */
|
|
138
142
|
}
|
|
139
143
|
|
|
144
|
+
/* Danger button (Button tone="danger"): solid, outline and ghost */
|
|
145
|
+
.dark .bg-red-600 {
|
|
146
|
+
background-color: #f38ba8; /* red */
|
|
147
|
+
}
|
|
148
|
+
.dark .hover\:bg-red-700:hover {
|
|
149
|
+
background-color: #eba0ac; /* maroon */
|
|
150
|
+
}
|
|
151
|
+
.dark .text-red-50 {
|
|
152
|
+
color: #11111b; /* crust — text on the red button */
|
|
153
|
+
}
|
|
154
|
+
.dark .border-red-600 {
|
|
155
|
+
border-color: #f38ba8; /* red */
|
|
156
|
+
}
|
|
157
|
+
.dark .hover\:bg-red-50:hover {
|
|
158
|
+
background-color: rgba(243, 139, 168, 0.14); /* red tint */
|
|
159
|
+
}
|
|
160
|
+
|
|
140
161
|
/* Avatar identity colours — violet-600 is the accent above; the rest sit on the theme. */
|
|
141
162
|
.dark .bg-orange-600 {
|
|
142
163
|
background-color: #fab387; /* peach */
|
|
@@ -185,6 +206,9 @@
|
|
|
185
206
|
.dark .bg-violet-50 {
|
|
186
207
|
background-color: rgba(203, 166, 247, 0.14); /* mauve tint */
|
|
187
208
|
}
|
|
209
|
+
.dark .bg-sky-50 {
|
|
210
|
+
background-color: rgba(137, 220, 235, 0.13); /* sky tint */
|
|
211
|
+
}
|
|
188
212
|
.dark .text-emerald-700,
|
|
189
213
|
.dark .text-emerald-800 {
|
|
190
214
|
color: #a6e3a1; /* green */
|
|
@@ -209,6 +233,9 @@
|
|
|
209
233
|
.dark .text-violet-700 {
|
|
210
234
|
color: #cba6f7; /* mauve */
|
|
211
235
|
}
|
|
236
|
+
.dark .text-sky-700 {
|
|
237
|
+
color: #89dceb; /* sky */
|
|
238
|
+
}
|
|
212
239
|
.dark .border-emerald-200,
|
|
213
240
|
.dark .border-emerald-300 {
|
|
214
241
|
border-color: rgba(166, 227, 161, 0.4);
|
|
@@ -229,7 +256,9 @@
|
|
|
229
256
|
border-color: rgba(137, 180, 250, 0.4);
|
|
230
257
|
}
|
|
231
258
|
|
|
232
|
-
/* Inline links — Mocha mauve (green is reserved for positive values).
|
|
259
|
+
/* Inline links — Mocha mauve (green is reserved for positive values). Alias of @hackcove/ui's
|
|
260
|
+
TextLink (text-violet-600, hover:text-violet-700, remapped above), kept for consumers that still
|
|
261
|
+
write class="link" on a bare <a>. */
|
|
233
262
|
.link {
|
|
234
263
|
color: #cba6f7; /* mauve */
|
|
235
264
|
font-weight: 500;
|