@hackcove/theme-catppuccin-mocha 0.1.0 → 0.2.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/LICENSE CHANGED
@@ -19,3 +19,31 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
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/README.md CHANGED
@@ -4,7 +4,7 @@ The Catppuccin Mocha dark theme for Hack Cove. One CSS file, `theme.css`: it dec
4
4
  class-based `dark` variant and, under `.dark`, remaps the Tailwind slate/colour utilities that
5
5
  `@hackcove/ui` is written against to real Mocha tokens. It also ships a `.link` class.
6
6
 
7
- Status: `0.x`, not yet published to npm. License: MIT.
7
+ Status: `0.x`, published to npm. License: MIT.
8
8
 
9
9
  ## Install
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hackcove/theme-catppuccin-mocha",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
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
5
  "license": "MIT",
6
6
  "repository": {
package/theme.css CHANGED
@@ -44,6 +44,9 @@
44
44
  .dark .bg-slate-900 {
45
45
  background-color: #313244; /* surface0 — e.g. the brand badge */
46
46
  }
47
+ .dark .backdrop\:bg-slate-900\/35::backdrop {
48
+ background-color: rgba(17, 17, 27, 0.6); /* crust — the modal scrim */
49
+ }
47
50
 
48
51
  /* Text */
49
52
  .dark .text-slate-900,
@@ -60,6 +63,9 @@
60
63
  .dark .text-slate-400 {
61
64
  color: #9399b2; /* overlay2 — legible muted/headers */
62
65
  }
66
+ .dark .placeholder\:text-slate-400::placeholder {
67
+ color: #7f849c; /* overlay1 */
68
+ }
63
69
 
64
70
  /* Borders */
65
71
  .dark .border-slate-100 {
@@ -96,6 +102,35 @@
96
102
  background-color: #585b70; /* surface2 */
97
103
  }
98
104
 
105
+ /* Accent: buttons, focus, controls */
106
+ .dark .bg-violet-600 {
107
+ background-color: #cba6f7; /* mauve */
108
+ }
109
+ .dark .hover\:bg-violet-700:hover {
110
+ background-color: #b4befe; /* lavender */
111
+ }
112
+ .dark .text-violet-50 {
113
+ color: #11111b; /* crust — text on the mauve button */
114
+ }
115
+ .dark .hover\:text-violet-700:hover {
116
+ color: #b4befe; /* lavender */
117
+ }
118
+ .dark .hover\:bg-violet-50:hover {
119
+ background-color: rgba(203, 166, 247, 0.14); /* mauve tint */
120
+ }
121
+ .dark .border-violet-600 {
122
+ border-color: #cba6f7; /* mauve */
123
+ }
124
+ .dark .hover\:border-violet-400:hover {
125
+ border-color: rgba(203, 166, 247, 0.5);
126
+ }
127
+ .dark .focus-visible\:outline-violet-600:focus-visible {
128
+ outline-color: #cba6f7; /* mauve */
129
+ }
130
+ .dark .accent-violet-600 {
131
+ accent-color: #cba6f7; /* mauve */
132
+ }
133
+
99
134
  /* Hover states */
100
135
  .dark .hover\:bg-slate-50:hover {
101
136
  background-color: #262739;
@@ -133,6 +168,8 @@
133
168
  .dark .text-amber-900 {
134
169
  color: #f9e2af; /* yellow */
135
170
  }
171
+ .dark .text-red-700,
172
+ .dark .text-red-800,
136
173
  .dark .text-red-900 {
137
174
  color: #f38ba8; /* red */
138
175
  }
@@ -150,9 +187,13 @@
150
187
  .dark .border-emerald-300 {
151
188
  border-color: rgba(166, 227, 161, 0.4);
152
189
  }
190
+ .dark .border-amber-200,
153
191
  .dark .border-amber-300 {
154
192
  border-color: rgba(249, 226, 175, 0.4);
155
193
  }
194
+ .dark .border-red-200 {
195
+ border-color: rgba(243, 139, 168, 0.45);
196
+ }
156
197
  .dark .border-red-300,
157
198
  .dark .border-red-400 {
158
199
  border-color: rgba(243, 139, 168, 0.45);