@hackcove/theme-thrifty-paper 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +35 -2
- package/package.json +62 -4
- package/theme.css +236 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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.
|
package/README.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @hackcove/theme-thrifty-paper
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Thrifty Paper light theme for Hack Cove: cream paper, ink text, clay accent. One CSS file,
|
|
4
|
+
`theme.css`: under `.thrifty-paper` it remaps the Tailwind slate/colour utilities that
|
|
5
|
+
`@hackcove/ui` is written against to Thrifty's light tokens. It also ships a `.link` class.
|
|
6
|
+
|
|
7
|
+
Status: `0.x`, published on npm. License: MIT.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
bun add @hackcove/theme-thrifty-paper
|
|
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-thrifty-paper/theme.css";
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Put `class="thrifty-paper"` on `<html>`. The scope paints the cream canvas and the ink text; the
|
|
26
|
+
rules are unlayered, so they override Tailwind's layered utilities. The theme is light, so it
|
|
27
|
+
declares no `dark` variant.
|
|
28
|
+
|
|
29
|
+
## Palette
|
|
30
|
+
|
|
31
|
+
From Thrifty's light theme. Thrifty has no danger colour, so the red utilities keep Tailwind's own.
|
|
32
|
+
|
|
33
|
+
canvas `#fdfbf7` · surface `#ffffff` · subtle `#f7f2e9` · line `#ece3d4` · ink `#1c1917` ·
|
|
34
|
+
ink-body `#3b342e` · ink-mute `#6b6259` · accent `#c2410c` · accent-hover `#9a3412` ·
|
|
35
|
+
accent-soft `#fdf5f0` · positive `#047857` / `#ecfdf5` · warn `#b45309` / `#fffbeb` ·
|
|
36
|
+
note `#0f766e` / `#f0fdfa`
|
package/package.json
CHANGED
|
@@ -1,6 +1,64 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hackcove/theme-thrifty-paper",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "The Thrifty Paper light theme for Hack Cove: one CSS file that remaps the Tailwind utilities @hackcove/ui is written against.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"design-system",
|
|
7
|
+
"hackcove",
|
|
8
|
+
"light-theme",
|
|
9
|
+
"paper",
|
|
10
|
+
"tailwind",
|
|
11
|
+
"tailwindcss",
|
|
12
|
+
"theme"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/madangryscientist/hackcove/tree/main/themes/thrifty-paper#readme",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/madangryscientist/hackcove/issues"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"author": {
|
|
20
|
+
"name": "Jacobus Langner",
|
|
21
|
+
"url": "https://github.com/madangryscientist"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/madangryscientist/hackcove.git",
|
|
26
|
+
"directory": "themes/thrifty-paper"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"theme.css"
|
|
30
|
+
],
|
|
31
|
+
"type": "module",
|
|
32
|
+
"sideEffects": [
|
|
33
|
+
"*.css"
|
|
34
|
+
],
|
|
35
|
+
"exports": {
|
|
36
|
+
"./theme.css": "./theme.css",
|
|
37
|
+
"./package.json": "./package.json"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"typecheck": "tsc --noEmit",
|
|
41
|
+
"lint": "oxlint -c ../../.oxlintrc.json --type-aware --deny-warnings && bun ../../scripts/check-slop.ts",
|
|
42
|
+
"test": "vitest run",
|
|
43
|
+
"pack-check": "npm pack --dry-run"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@types/bun": "1.4.3",
|
|
47
|
+
"tailwindcss": "^4.3.3",
|
|
48
|
+
"vitest": "5.0.5"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"tailwindcss": "^4"
|
|
52
|
+
},
|
|
53
|
+
"nx": {
|
|
54
|
+
"name": "theme-thrifty-paper",
|
|
55
|
+
"tags": [
|
|
56
|
+
"kind:theme"
|
|
57
|
+
],
|
|
58
|
+
"targets": {
|
|
59
|
+
"pack-check": {
|
|
60
|
+
"dependsOn": []
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
package/theme.css
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/*! Thrifty Paper palette from Thrifty's light theme (cream paper, ink text, clay accent) */
|
|
2
|
+
/* ---------------------------------------------------------------------------
|
|
3
|
+
Thrifty Paper — a light 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, …). This file remaps those
|
|
7
|
+
utilities to Thrifty's light tokens under `.thrifty-paper`. The rules are
|
|
8
|
+
unlayered, so they override Tailwind's (layered) utilities.
|
|
9
|
+
|
|
10
|
+
Consumers import it AFTER `@import "tailwindcss"` and put `.thrifty-paper`
|
|
11
|
+
on <html> (see the README for the import line). It is light, so it declares
|
|
12
|
+
no `dark` variant.
|
|
13
|
+
|
|
14
|
+
Palette (Thrifty's @theme block):
|
|
15
|
+
canvas #fdfbf7 · surface #ffffff · subtle #f7f2e9 · line #ece3d4
|
|
16
|
+
ink #1c1917 · ink-body #3b342e · ink-mute #6b6259
|
|
17
|
+
accent #c2410c · accent-hover #9a3412 · accent-soft #fdf5f0
|
|
18
|
+
positive #047857 / #ecfdf5 · warn #b45309 / #fffbeb · note #0f766e / #f0fdfa
|
|
19
|
+
danger #b91c1c / #fef2f2
|
|
20
|
+
Added for 3:1 control edges (not in Thrifty's block): edge #948a7c
|
|
21
|
+
|
|
22
|
+
--------------------------------------------------------------------------- */
|
|
23
|
+
|
|
24
|
+
/* The scope: the page is cream canvas with ink text. */
|
|
25
|
+
.thrifty-paper {
|
|
26
|
+
color-scheme: light;
|
|
27
|
+
background-color: #fdfbf7; /* canvas */
|
|
28
|
+
color: #1c1917; /* ink */
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Surfaces — white cards on the cream canvas, cream insets. */
|
|
32
|
+
.thrifty-paper .bg-white {
|
|
33
|
+
background-color: #ffffff; /* surface */
|
|
34
|
+
}
|
|
35
|
+
.thrifty-paper .bg-white\/80 {
|
|
36
|
+
background-color: rgba(255, 255, 255, 0.85);
|
|
37
|
+
}
|
|
38
|
+
.thrifty-paper .bg-slate-50,
|
|
39
|
+
.thrifty-paper .bg-slate-50\/50,
|
|
40
|
+
.thrifty-paper .bg-slate-50\/60,
|
|
41
|
+
.thrifty-paper .bg-slate-50\/70 {
|
|
42
|
+
background-color: #f7f2e9; /* subtle */
|
|
43
|
+
}
|
|
44
|
+
.thrifty-paper .bg-slate-100 {
|
|
45
|
+
background-color: #ece3d4; /* line — one step deeper than subtle */
|
|
46
|
+
}
|
|
47
|
+
.thrifty-paper .bg-slate-900 {
|
|
48
|
+
background-color: #1c1917; /* ink — e.g. the brand badge */
|
|
49
|
+
}
|
|
50
|
+
.thrifty-paper .backdrop\:bg-slate-900\/35::backdrop {
|
|
51
|
+
background-color: rgba(28, 25, 23, 0.35); /* ink — the modal scrim */
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Text */
|
|
55
|
+
.thrifty-paper .text-slate-900,
|
|
56
|
+
.thrifty-paper .text-slate-800 {
|
|
57
|
+
color: #1c1917; /* ink */
|
|
58
|
+
}
|
|
59
|
+
.thrifty-paper .text-slate-700,
|
|
60
|
+
.thrifty-paper .text-slate-600 {
|
|
61
|
+
color: #3b342e; /* ink-body */
|
|
62
|
+
}
|
|
63
|
+
.thrifty-paper .text-slate-500,
|
|
64
|
+
.thrifty-paper .text-slate-400 {
|
|
65
|
+
color: #6b6259; /* ink-mute — Thrifty's lightest text */
|
|
66
|
+
}
|
|
67
|
+
.thrifty-paper .text-slate-300 {
|
|
68
|
+
color: #6b6259; /* ink-mute — days outside the month: 5.97:1 on white (ink-mute/50 was 2.15:1) */
|
|
69
|
+
}
|
|
70
|
+
.thrifty-paper .placeholder\:text-slate-400::placeholder {
|
|
71
|
+
color: rgba(107, 98, 89, 0.7); /* ink-mute/70 */
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Borders */
|
|
75
|
+
.thrifty-paper .border-slate-50 {
|
|
76
|
+
border-color: #f7f2e9; /* same as bg-slate-50: the ring takes the page colour */
|
|
77
|
+
}
|
|
78
|
+
.thrifty-paper .border-slate-100,
|
|
79
|
+
.thrifty-paper .border-slate-200,
|
|
80
|
+
.thrifty-paper .border-slate-200\/70 {
|
|
81
|
+
border-color: #ece3d4; /* line */
|
|
82
|
+
}
|
|
83
|
+
.thrifty-paper .border-slate-300 {
|
|
84
|
+
border-color: #948a7c; /* control edge: 3.39:1 on white, 3.28:1 on canvas (line was 1.27:1) */
|
|
85
|
+
}
|
|
86
|
+
.thrifty-paper .border-slate-900 {
|
|
87
|
+
border-color: #1c1917; /* ink */
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Money + accent text */
|
|
91
|
+
.thrifty-paper .text-emerald-600 {
|
|
92
|
+
color: #047857; /* positive */
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Stat-card accent bars */
|
|
96
|
+
.thrifty-paper .bg-emerald-500 {
|
|
97
|
+
background-color: #047857; /* positive */
|
|
98
|
+
}
|
|
99
|
+
.thrifty-paper .bg-slate-300 {
|
|
100
|
+
background-color: #ece3d4; /* line */
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Accent: buttons, focus, controls */
|
|
104
|
+
.thrifty-paper .bg-violet-600 {
|
|
105
|
+
background-color: #c2410c; /* accent */
|
|
106
|
+
}
|
|
107
|
+
.thrifty-paper .hover\:bg-violet-700:hover {
|
|
108
|
+
background-color: #9a3412; /* accent-hover */
|
|
109
|
+
}
|
|
110
|
+
.thrifty-paper .text-violet-50 {
|
|
111
|
+
color: #ffffff; /* text on the accent button */
|
|
112
|
+
}
|
|
113
|
+
.thrifty-paper .hover\:text-violet-700:hover {
|
|
114
|
+
color: #9a3412; /* accent-hover */
|
|
115
|
+
}
|
|
116
|
+
.thrifty-paper .hover\:bg-violet-50:hover {
|
|
117
|
+
background-color: #fdf5f0; /* accent-soft */
|
|
118
|
+
}
|
|
119
|
+
.thrifty-paper .border-violet-600 {
|
|
120
|
+
border-color: #c2410c; /* accent */
|
|
121
|
+
}
|
|
122
|
+
.thrifty-paper .hover\:border-violet-400:hover {
|
|
123
|
+
border-color: #c2410c; /* accent: 5.18:1 on white, darker than the resting edge (was accent/40, 1.85:1) */
|
|
124
|
+
}
|
|
125
|
+
.thrifty-paper .focus-visible\:outline-violet-600:focus-visible {
|
|
126
|
+
outline-color: #c2410c; /* accent */
|
|
127
|
+
}
|
|
128
|
+
.thrifty-paper .accent-violet-600 {
|
|
129
|
+
accent-color: #c2410c; /* accent */
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Avatar identity colours — violet-600 is the accent above; the rest sit on the theme. */
|
|
133
|
+
.thrifty-paper .bg-orange-600 {
|
|
134
|
+
background-color: #8c5a2b; /* brown */
|
|
135
|
+
}
|
|
136
|
+
.thrifty-paper .bg-cyan-600 {
|
|
137
|
+
background-color: #0e7490; /* cyan */
|
|
138
|
+
}
|
|
139
|
+
.thrifty-paper .bg-emerald-600 {
|
|
140
|
+
background-color: #047857; /* positive */
|
|
141
|
+
}
|
|
142
|
+
.thrifty-paper .bg-sky-600 {
|
|
143
|
+
background-color: #1e6a8f; /* steel blue */
|
|
144
|
+
}
|
|
145
|
+
.thrifty-paper .bg-pink-600 {
|
|
146
|
+
background-color: #a8325e; /* berry */
|
|
147
|
+
}
|
|
148
|
+
.thrifty-paper .bg-amber-600 {
|
|
149
|
+
background-color: #7a6a1a; /* olive */
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Hover states */
|
|
153
|
+
.thrifty-paper .hover\:bg-slate-50:hover {
|
|
154
|
+
background-color: #f7f2e9; /* subtle */
|
|
155
|
+
}
|
|
156
|
+
.thrifty-paper .hover\:bg-slate-100:hover {
|
|
157
|
+
background-color: #ece3d4; /* line */
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* Coloured callouts / chips — the soft fills, the full-strength text. */
|
|
161
|
+
.thrifty-paper .bg-emerald-50,
|
|
162
|
+
.thrifty-paper .bg-emerald-50\/60,
|
|
163
|
+
.thrifty-paper .bg-emerald-100 {
|
|
164
|
+
background-color: #ecfdf5; /* positive-soft */
|
|
165
|
+
}
|
|
166
|
+
.thrifty-paper .bg-amber-50,
|
|
167
|
+
.thrifty-paper .bg-amber-50\/60,
|
|
168
|
+
.thrifty-paper .bg-amber-100 {
|
|
169
|
+
background-color: #fffbeb; /* warn-soft */
|
|
170
|
+
}
|
|
171
|
+
.thrifty-paper .bg-blue-50 {
|
|
172
|
+
background-color: #f0fdfa; /* note-soft */
|
|
173
|
+
}
|
|
174
|
+
.thrifty-paper .bg-violet-50 {
|
|
175
|
+
background-color: #fdf5f0; /* accent-soft */
|
|
176
|
+
}
|
|
177
|
+
.thrifty-paper .bg-red-50 {
|
|
178
|
+
background-color: #fef2f2; /* danger-soft */
|
|
179
|
+
}
|
|
180
|
+
.thrifty-paper .text-emerald-700,
|
|
181
|
+
.thrifty-paper .text-emerald-800 {
|
|
182
|
+
color: #047857; /* positive */
|
|
183
|
+
}
|
|
184
|
+
.thrifty-paper .text-amber-700,
|
|
185
|
+
.thrifty-paper .text-amber-800,
|
|
186
|
+
.thrifty-paper .text-amber-900 {
|
|
187
|
+
color: #b45309; /* warn */
|
|
188
|
+
}
|
|
189
|
+
.thrifty-paper .text-blue-600,
|
|
190
|
+
.thrifty-paper .text-blue-700,
|
|
191
|
+
.thrifty-paper .text-blue-800,
|
|
192
|
+
.thrifty-paper .text-blue-900 {
|
|
193
|
+
color: #0f766e; /* note */
|
|
194
|
+
}
|
|
195
|
+
.thrifty-paper .text-violet-600 {
|
|
196
|
+
color: #c2410c; /* accent */
|
|
197
|
+
}
|
|
198
|
+
.thrifty-paper .text-violet-700 {
|
|
199
|
+
color: #9a3412; /* accent-hover */
|
|
200
|
+
}
|
|
201
|
+
.thrifty-paper .text-red-700,
|
|
202
|
+
.thrifty-paper .text-red-800,
|
|
203
|
+
.thrifty-paper .text-red-900 {
|
|
204
|
+
color: #b91c1c; /* danger */
|
|
205
|
+
}
|
|
206
|
+
.thrifty-paper .border-emerald-200,
|
|
207
|
+
.thrifty-paper .border-emerald-300 {
|
|
208
|
+
border-color: rgba(4, 120, 87, 0.3); /* positive */
|
|
209
|
+
}
|
|
210
|
+
.thrifty-paper .border-amber-200,
|
|
211
|
+
.thrifty-paper .border-amber-300 {
|
|
212
|
+
border-color: rgba(180, 83, 9, 0.3); /* warn */
|
|
213
|
+
}
|
|
214
|
+
.thrifty-paper .border-red-200 {
|
|
215
|
+
border-color: rgba(
|
|
216
|
+
185,
|
|
217
|
+
28,
|
|
218
|
+
28,
|
|
219
|
+
0.7
|
|
220
|
+
); /* danger/70: an invalid field's edge, 3.62:1 on danger-soft (danger/30 was 1.67:1) */
|
|
221
|
+
}
|
|
222
|
+
.thrifty-paper .border-blue-200,
|
|
223
|
+
.thrifty-paper .border-blue-300 {
|
|
224
|
+
border-color: rgba(15, 118, 110, 0.3); /* note */
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* Inline links — the clay accent. */
|
|
228
|
+
.thrifty-paper .link {
|
|
229
|
+
color: #c2410c; /* accent */
|
|
230
|
+
font-weight: 500;
|
|
231
|
+
text-underline-offset: 2px;
|
|
232
|
+
transition: color 0.12s ease;
|
|
233
|
+
}
|
|
234
|
+
.thrifty-paper .link:hover {
|
|
235
|
+
color: #9a3412; /* accent-hover */
|
|
236
|
+
}
|