@hackcove/theme-thrifty-paper 0.0.0-stage → 0.1.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 (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +35 -2
  3. package/package.json +45 -4
  4. package/theme.css +202 -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
- # Temporary Holding Version
1
+ # @hackcove/theme-thrifty-paper
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 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`, not yet published. 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,47 @@
1
1
  {
2
2
  "name": "@hackcove/theme-thrifty-paper",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "The Thrifty Paper light 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/thrifty-paper"
10
+ },
11
+ "files": [
12
+ "theme.css"
13
+ ],
14
+ "type": "module",
15
+ "sideEffects": [
16
+ "*.css"
17
+ ],
18
+ "exports": {
19
+ "./theme.css": "./theme.css",
20
+ "./package.json": "./package.json"
21
+ },
22
+ "scripts": {
23
+ "typecheck": "tsc --noEmit",
24
+ "lint": "oxlint -c ../../.oxlintrc.json --type-aware --deny-warnings && bun ../../scripts/check-slop.ts",
25
+ "test": "vitest run",
26
+ "pack-check": "npm pack --dry-run"
27
+ },
28
+ "devDependencies": {
29
+ "@types/bun": "1.4.3",
30
+ "tailwindcss": "^4.3.3",
31
+ "vitest": "5.0.5"
32
+ },
33
+ "peerDependencies": {
34
+ "tailwindcss": "^4"
35
+ },
36
+ "nx": {
37
+ "name": "theme-thrifty-paper",
38
+ "tags": [
39
+ "kind:theme"
40
+ ],
41
+ "targets": {
42
+ "pack-check": {
43
+ "dependsOn": []
44
+ }
45
+ }
46
+ }
47
+ }
package/theme.css ADDED
@@ -0,0 +1,202 @@
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
+
21
+ --------------------------------------------------------------------------- */
22
+
23
+ /* The scope: the page is cream canvas with ink text. */
24
+ .thrifty-paper {
25
+ color-scheme: light;
26
+ background-color: #fdfbf7; /* canvas */
27
+ color: #1c1917; /* ink */
28
+ }
29
+
30
+ /* Surfaces — white cards on the cream canvas, cream insets. */
31
+ .thrifty-paper .bg-white {
32
+ background-color: #ffffff; /* surface */
33
+ }
34
+ .thrifty-paper .bg-white\/80 {
35
+ background-color: rgba(255, 255, 255, 0.85);
36
+ }
37
+ .thrifty-paper .bg-slate-50,
38
+ .thrifty-paper .bg-slate-50\/50,
39
+ .thrifty-paper .bg-slate-50\/60,
40
+ .thrifty-paper .bg-slate-50\/70 {
41
+ background-color: #f7f2e9; /* subtle */
42
+ }
43
+ .thrifty-paper .bg-slate-100 {
44
+ background-color: #ece3d4; /* line — one step deeper than subtle */
45
+ }
46
+ .thrifty-paper .bg-slate-900 {
47
+ background-color: #1c1917; /* ink — e.g. the brand badge */
48
+ }
49
+ .thrifty-paper .backdrop\:bg-slate-900\/35::backdrop {
50
+ background-color: rgba(28, 25, 23, 0.35); /* ink — the modal scrim */
51
+ }
52
+
53
+ /* Text */
54
+ .thrifty-paper .text-slate-900,
55
+ .thrifty-paper .text-slate-800 {
56
+ color: #1c1917; /* ink */
57
+ }
58
+ .thrifty-paper .text-slate-700,
59
+ .thrifty-paper .text-slate-600 {
60
+ color: #3b342e; /* ink-body */
61
+ }
62
+ .thrifty-paper .text-slate-500,
63
+ .thrifty-paper .text-slate-400 {
64
+ color: #6b6259; /* ink-mute — Thrifty's lightest text */
65
+ }
66
+ .thrifty-paper .placeholder\:text-slate-400::placeholder {
67
+ color: rgba(107, 98, 89, 0.7); /* ink-mute/70 */
68
+ }
69
+
70
+ /* Borders */
71
+ .thrifty-paper .border-slate-100,
72
+ .thrifty-paper .border-slate-200,
73
+ .thrifty-paper .border-slate-200\/70,
74
+ .thrifty-paper .border-slate-300 {
75
+ border-color: #ece3d4; /* line */
76
+ }
77
+ .thrifty-paper .border-slate-900 {
78
+ border-color: #1c1917; /* ink */
79
+ }
80
+
81
+ /* Money + accent text */
82
+ .thrifty-paper .text-emerald-600 {
83
+ color: #047857; /* positive */
84
+ }
85
+
86
+ /* Stat-card accent bars */
87
+ .thrifty-paper .bg-emerald-500 {
88
+ background-color: #047857; /* positive */
89
+ }
90
+ .thrifty-paper .bg-slate-300 {
91
+ background-color: #ece3d4; /* line */
92
+ }
93
+
94
+ /* Accent: buttons, focus, controls */
95
+ .thrifty-paper .bg-violet-600 {
96
+ background-color: #c2410c; /* accent */
97
+ }
98
+ .thrifty-paper .hover\:bg-violet-700:hover {
99
+ background-color: #9a3412; /* accent-hover */
100
+ }
101
+ .thrifty-paper .text-violet-50 {
102
+ color: #ffffff; /* text on the accent button */
103
+ }
104
+ .thrifty-paper .hover\:text-violet-700:hover {
105
+ color: #9a3412; /* accent-hover */
106
+ }
107
+ .thrifty-paper .hover\:bg-violet-50:hover {
108
+ background-color: #fdf5f0; /* accent-soft */
109
+ }
110
+ .thrifty-paper .border-violet-600 {
111
+ border-color: #c2410c; /* accent */
112
+ }
113
+ .thrifty-paper .hover\:border-violet-400:hover {
114
+ border-color: rgba(194, 65, 12, 0.4);
115
+ }
116
+ .thrifty-paper .focus-visible\:outline-violet-600:focus-visible {
117
+ outline-color: #c2410c; /* accent */
118
+ }
119
+ .thrifty-paper .accent-violet-600 {
120
+ accent-color: #c2410c; /* accent */
121
+ }
122
+
123
+ /* Hover states */
124
+ .thrifty-paper .hover\:bg-slate-50:hover {
125
+ background-color: #f7f2e9; /* subtle */
126
+ }
127
+ .thrifty-paper .hover\:bg-slate-100:hover {
128
+ background-color: #ece3d4; /* line */
129
+ }
130
+
131
+ /* Coloured callouts / chips — the soft fills, the full-strength text. */
132
+ .thrifty-paper .bg-emerald-50,
133
+ .thrifty-paper .bg-emerald-50\/60,
134
+ .thrifty-paper .bg-emerald-100 {
135
+ background-color: #ecfdf5; /* positive-soft */
136
+ }
137
+ .thrifty-paper .bg-amber-50,
138
+ .thrifty-paper .bg-amber-50\/60,
139
+ .thrifty-paper .bg-amber-100 {
140
+ background-color: #fffbeb; /* warn-soft */
141
+ }
142
+ .thrifty-paper .bg-blue-50 {
143
+ background-color: #f0fdfa; /* note-soft */
144
+ }
145
+ .thrifty-paper .bg-violet-50 {
146
+ background-color: #fdf5f0; /* accent-soft */
147
+ }
148
+ .thrifty-paper .bg-red-50 {
149
+ background-color: #fef2f2; /* danger-soft */
150
+ }
151
+ .thrifty-paper .text-emerald-700,
152
+ .thrifty-paper .text-emerald-800 {
153
+ color: #047857; /* positive */
154
+ }
155
+ .thrifty-paper .text-amber-700,
156
+ .thrifty-paper .text-amber-800,
157
+ .thrifty-paper .text-amber-900 {
158
+ color: #b45309; /* warn */
159
+ }
160
+ .thrifty-paper .text-blue-600,
161
+ .thrifty-paper .text-blue-700,
162
+ .thrifty-paper .text-blue-800,
163
+ .thrifty-paper .text-blue-900 {
164
+ color: #0f766e; /* note */
165
+ }
166
+ .thrifty-paper .text-violet-600 {
167
+ color: #c2410c; /* accent */
168
+ }
169
+ .thrifty-paper .text-violet-700 {
170
+ color: #9a3412; /* accent-hover */
171
+ }
172
+ .thrifty-paper .text-red-700,
173
+ .thrifty-paper .text-red-800,
174
+ .thrifty-paper .text-red-900 {
175
+ color: #b91c1c; /* danger */
176
+ }
177
+ .thrifty-paper .border-emerald-200,
178
+ .thrifty-paper .border-emerald-300 {
179
+ border-color: rgba(4, 120, 87, 0.3); /* positive */
180
+ }
181
+ .thrifty-paper .border-amber-200,
182
+ .thrifty-paper .border-amber-300 {
183
+ border-color: rgba(180, 83, 9, 0.3); /* warn */
184
+ }
185
+ .thrifty-paper .border-red-200 {
186
+ border-color: rgba(185, 28, 28, 0.3); /* danger */
187
+ }
188
+ .thrifty-paper .border-blue-200,
189
+ .thrifty-paper .border-blue-300 {
190
+ border-color: rgba(15, 118, 110, 0.3); /* note */
191
+ }
192
+
193
+ /* Inline links — the clay accent. */
194
+ .thrifty-paper .link {
195
+ color: #c2410c; /* accent */
196
+ font-weight: 500;
197
+ text-underline-offset: 2px;
198
+ transition: color 0.12s ease;
199
+ }
200
+ .thrifty-paper .link:hover {
201
+ color: #9a3412; /* accent-hover */
202
+ }