@carlesandres/house 0.3.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 (57) hide show
  1. package/CHANGELOG.md +179 -0
  2. package/LICENSE +21 -0
  3. package/README.md +99 -0
  4. package/package.json +67 -0
  5. package/src/Browser.tsx +472 -0
  6. package/src/Footer.tsx +151 -0
  7. package/src/HelpOverlay.tsx +130 -0
  8. package/src/cli/argv.ts +106 -0
  9. package/src/discovery/filter.ts +56 -0
  10. package/src/discovery/walk.ts +143 -0
  11. package/src/index.tsx +265 -0
  12. package/src/io/readFile.ts +14 -0
  13. package/src/keymap/browser.ts +229 -0
  14. package/src/keymap/keymap.ts +86 -0
  15. package/src/serve/css.ts +120 -0
  16. package/src/serve/openBrowser.ts +19 -0
  17. package/src/serve/render.ts +56 -0
  18. package/src/serve/server.ts +163 -0
  19. package/src/theme/atom.ts +23 -0
  20. package/src/theme/colors.ts +79 -0
  21. package/src/theme/loader.ts +110 -0
  22. package/src/theme/registry.ts +12 -0
  23. package/src/theme/resolve.ts +168 -0
  24. package/src/theme/themes/aura.json +58 -0
  25. package/src/theme/themes/ayu.json +69 -0
  26. package/src/theme/themes/carbonfox.json +201 -0
  27. package/src/theme/themes/catppuccin-frappe.json +186 -0
  28. package/src/theme/themes/catppuccin-macchiato.json +186 -0
  29. package/src/theme/themes/catppuccin.json +212 -0
  30. package/src/theme/themes/cobalt2.json +181 -0
  31. package/src/theme/themes/cursor.json +202 -0
  32. package/src/theme/themes/dracula.json +172 -0
  33. package/src/theme/themes/everforest.json +194 -0
  34. package/src/theme/themes/flexoki.json +190 -0
  35. package/src/theme/themes/github.json +186 -0
  36. package/src/theme/themes/gruvbox.json +195 -0
  37. package/src/theme/themes/kanagawa.json +180 -0
  38. package/src/theme/themes/lucent-orng.json +186 -0
  39. package/src/theme/themes/material.json +188 -0
  40. package/src/theme/themes/matrix.json +180 -0
  41. package/src/theme/themes/mercury.json +198 -0
  42. package/src/theme/themes/monokai.json +174 -0
  43. package/src/theme/themes/nightowl.json +174 -0
  44. package/src/theme/themes/nord.json +176 -0
  45. package/src/theme/themes/one-dark.json +184 -0
  46. package/src/theme/themes/opencode.json +198 -0
  47. package/src/theme/themes/orng.json +202 -0
  48. package/src/theme/themes/osaka-jade.json +193 -0
  49. package/src/theme/themes/palenight.json +175 -0
  50. package/src/theme/themes/rosepine.json +187 -0
  51. package/src/theme/themes/solarized.json +176 -0
  52. package/src/theme/themes/synthwave84.json +179 -0
  53. package/src/theme/themes/tokyonight.json +196 -0
  54. package/src/theme/themes/vercel.json +198 -0
  55. package/src/theme/themes/vesper.json +171 -0
  56. package/src/theme/themes/zenburn.json +176 -0
  57. package/src/theme/types.ts +109 -0
@@ -0,0 +1,176 @@
1
+ {
2
+ "defs": {
3
+ "nord0": "#2E3440",
4
+ "nord1": "#3B4252",
5
+ "nord2": "#434C5E",
6
+ "nord3": "#4C566A",
7
+ "nord4": "#D8DEE9",
8
+ "nord5": "#E5E9F0",
9
+ "nord6": "#ECEFF4",
10
+ "nord7": "#8FBCBB",
11
+ "nord8": "#88C0D0",
12
+ "nord9": "#81A1C1",
13
+ "nord10": "#5E81AC",
14
+ "nord11": "#BF616A",
15
+ "nord12": "#D08770",
16
+ "nord13": "#EBCB8B",
17
+ "nord14": "#A3BE8C",
18
+ "nord15": "#B48EAD"
19
+ },
20
+ "theme": {
21
+ "primary": {
22
+ "dark": "nord8",
23
+ "light": "nord10"
24
+ },
25
+ "secondary": {
26
+ "dark": "nord9",
27
+ "light": "nord9"
28
+ },
29
+ "accent": {
30
+ "dark": "nord7",
31
+ "light": "nord7"
32
+ },
33
+ "error": {
34
+ "dark": "nord11",
35
+ "light": "nord11"
36
+ },
37
+ "warning": {
38
+ "dark": "nord12",
39
+ "light": "nord12"
40
+ },
41
+ "success": {
42
+ "dark": "nord14",
43
+ "light": "nord14"
44
+ },
45
+ "info": {
46
+ "dark": "nord8",
47
+ "light": "nord10"
48
+ },
49
+ "text": {
50
+ "dark": "nord6",
51
+ "light": "nord0"
52
+ },
53
+ "textMuted": {
54
+ "dark": "#8B95A7",
55
+ "light": "nord1"
56
+ },
57
+ "background": {
58
+ "dark": "nord0",
59
+ "light": "nord6"
60
+ },
61
+ "backgroundPanel": {
62
+ "dark": "nord1",
63
+ "light": "nord5"
64
+ },
65
+ "backgroundElement": {
66
+ "dark": "nord2",
67
+ "light": "nord4"
68
+ },
69
+ "border": {
70
+ "dark": "nord2",
71
+ "light": "nord3"
72
+ },
73
+ "borderActive": {
74
+ "dark": "nord3",
75
+ "light": "nord2"
76
+ },
77
+ "borderSubtle": {
78
+ "dark": "nord2",
79
+ "light": "nord3"
80
+ },
81
+ "markdownText": {
82
+ "dark": "nord4",
83
+ "light": "nord0"
84
+ },
85
+ "markdownHeading": {
86
+ "dark": "nord8",
87
+ "light": "nord10"
88
+ },
89
+ "markdownLink": {
90
+ "dark": "nord9",
91
+ "light": "nord9"
92
+ },
93
+ "markdownLinkText": {
94
+ "dark": "nord7",
95
+ "light": "nord7"
96
+ },
97
+ "markdownCode": {
98
+ "dark": "nord14",
99
+ "light": "nord14"
100
+ },
101
+ "markdownBlockQuote": {
102
+ "dark": "#8B95A7",
103
+ "light": "nord3"
104
+ },
105
+ "markdownEmph": {
106
+ "dark": "nord12",
107
+ "light": "nord12"
108
+ },
109
+ "markdownStrong": {
110
+ "dark": "nord13",
111
+ "light": "nord13"
112
+ },
113
+ "markdownHorizontalRule": {
114
+ "dark": "#8B95A7",
115
+ "light": "nord3"
116
+ },
117
+ "markdownListItem": {
118
+ "dark": "nord8",
119
+ "light": "nord10"
120
+ },
121
+ "markdownListEnumeration": {
122
+ "dark": "nord7",
123
+ "light": "nord7"
124
+ },
125
+ "markdownImage": {
126
+ "dark": "nord9",
127
+ "light": "nord9"
128
+ },
129
+ "markdownImageText": {
130
+ "dark": "nord7",
131
+ "light": "nord7"
132
+ },
133
+ "markdownCodeBlock": {
134
+ "dark": "nord4",
135
+ "light": "nord0"
136
+ },
137
+ "syntaxComment": {
138
+ "dark": "#8B95A7",
139
+ "light": "nord3"
140
+ },
141
+ "syntaxKeyword": {
142
+ "dark": "nord9",
143
+ "light": "nord9"
144
+ },
145
+ "syntaxFunction": {
146
+ "dark": "nord8",
147
+ "light": "nord8"
148
+ },
149
+ "syntaxVariable": {
150
+ "dark": "nord7",
151
+ "light": "nord7"
152
+ },
153
+ "syntaxString": {
154
+ "dark": "nord14",
155
+ "light": "nord14"
156
+ },
157
+ "syntaxNumber": {
158
+ "dark": "nord15",
159
+ "light": "nord15"
160
+ },
161
+ "syntaxType": {
162
+ "dark": "nord7",
163
+ "light": "nord7"
164
+ },
165
+ "syntaxOperator": {
166
+ "dark": "nord9",
167
+ "light": "nord9"
168
+ },
169
+ "syntaxPunctuation": {
170
+ "dark": "nord4",
171
+ "light": "nord0"
172
+ }
173
+ },
174
+ "name": "Nord",
175
+ "$schema": "../../../schema/house-theme.schema.json"
176
+ }
@@ -0,0 +1,184 @@
1
+ {
2
+ "defs": {
3
+ "darkBg": "#282c34",
4
+ "darkBgAlt": "#21252b",
5
+ "darkBgPanel": "#353b45",
6
+ "darkFg": "#abb2bf",
7
+ "darkFgMuted": "#5c6370",
8
+ "darkPurple": "#c678dd",
9
+ "darkBlue": "#61afef",
10
+ "darkRed": "#e06c75",
11
+ "darkGreen": "#98c379",
12
+ "darkYellow": "#e5c07b",
13
+ "darkOrange": "#d19a66",
14
+ "darkCyan": "#56b6c2",
15
+ "lightBg": "#fafafa",
16
+ "lightBgAlt": "#f0f0f1",
17
+ "lightBgPanel": "#eaeaeb",
18
+ "lightFg": "#383a42",
19
+ "lightFgMuted": "#a0a1a7",
20
+ "lightPurple": "#a626a4",
21
+ "lightBlue": "#4078f2",
22
+ "lightRed": "#e45649",
23
+ "lightGreen": "#50a14f",
24
+ "lightYellow": "#c18401",
25
+ "lightOrange": "#986801",
26
+ "lightCyan": "#0184bc"
27
+ },
28
+ "theme": {
29
+ "primary": {
30
+ "dark": "darkBlue",
31
+ "light": "lightBlue"
32
+ },
33
+ "secondary": {
34
+ "dark": "darkPurple",
35
+ "light": "lightPurple"
36
+ },
37
+ "accent": {
38
+ "dark": "darkCyan",
39
+ "light": "lightCyan"
40
+ },
41
+ "error": {
42
+ "dark": "darkRed",
43
+ "light": "lightRed"
44
+ },
45
+ "warning": {
46
+ "dark": "darkYellow",
47
+ "light": "lightYellow"
48
+ },
49
+ "success": {
50
+ "dark": "darkGreen",
51
+ "light": "lightGreen"
52
+ },
53
+ "info": {
54
+ "dark": "darkOrange",
55
+ "light": "lightOrange"
56
+ },
57
+ "text": {
58
+ "dark": "darkFg",
59
+ "light": "lightFg"
60
+ },
61
+ "textMuted": {
62
+ "dark": "darkFgMuted",
63
+ "light": "lightFgMuted"
64
+ },
65
+ "background": {
66
+ "dark": "darkBg",
67
+ "light": "lightBg"
68
+ },
69
+ "backgroundPanel": {
70
+ "dark": "darkBgAlt",
71
+ "light": "lightBgAlt"
72
+ },
73
+ "backgroundElement": {
74
+ "dark": "darkBgPanel",
75
+ "light": "lightBgPanel"
76
+ },
77
+ "border": {
78
+ "dark": "#393f4a",
79
+ "light": "#d1d1d2"
80
+ },
81
+ "borderActive": {
82
+ "dark": "darkBlue",
83
+ "light": "lightBlue"
84
+ },
85
+ "borderSubtle": {
86
+ "dark": "#2c313a",
87
+ "light": "#e0e0e1"
88
+ },
89
+ "markdownText": {
90
+ "dark": "darkFg",
91
+ "light": "lightFg"
92
+ },
93
+ "markdownHeading": {
94
+ "dark": "darkPurple",
95
+ "light": "lightPurple"
96
+ },
97
+ "markdownLink": {
98
+ "dark": "darkBlue",
99
+ "light": "lightBlue"
100
+ },
101
+ "markdownLinkText": {
102
+ "dark": "darkCyan",
103
+ "light": "lightCyan"
104
+ },
105
+ "markdownCode": {
106
+ "dark": "darkGreen",
107
+ "light": "lightGreen"
108
+ },
109
+ "markdownBlockQuote": {
110
+ "dark": "darkFgMuted",
111
+ "light": "lightFgMuted"
112
+ },
113
+ "markdownEmph": {
114
+ "dark": "darkYellow",
115
+ "light": "lightYellow"
116
+ },
117
+ "markdownStrong": {
118
+ "dark": "darkOrange",
119
+ "light": "lightOrange"
120
+ },
121
+ "markdownHorizontalRule": {
122
+ "dark": "darkFgMuted",
123
+ "light": "lightFgMuted"
124
+ },
125
+ "markdownListItem": {
126
+ "dark": "darkBlue",
127
+ "light": "lightBlue"
128
+ },
129
+ "markdownListEnumeration": {
130
+ "dark": "darkCyan",
131
+ "light": "lightCyan"
132
+ },
133
+ "markdownImage": {
134
+ "dark": "darkBlue",
135
+ "light": "lightBlue"
136
+ },
137
+ "markdownImageText": {
138
+ "dark": "darkCyan",
139
+ "light": "lightCyan"
140
+ },
141
+ "markdownCodeBlock": {
142
+ "dark": "darkFg",
143
+ "light": "lightFg"
144
+ },
145
+ "syntaxComment": {
146
+ "dark": "darkFgMuted",
147
+ "light": "lightFgMuted"
148
+ },
149
+ "syntaxKeyword": {
150
+ "dark": "darkPurple",
151
+ "light": "lightPurple"
152
+ },
153
+ "syntaxFunction": {
154
+ "dark": "darkBlue",
155
+ "light": "lightBlue"
156
+ },
157
+ "syntaxVariable": {
158
+ "dark": "darkRed",
159
+ "light": "lightRed"
160
+ },
161
+ "syntaxString": {
162
+ "dark": "darkGreen",
163
+ "light": "lightGreen"
164
+ },
165
+ "syntaxNumber": {
166
+ "dark": "darkOrange",
167
+ "light": "lightOrange"
168
+ },
169
+ "syntaxType": {
170
+ "dark": "darkYellow",
171
+ "light": "lightYellow"
172
+ },
173
+ "syntaxOperator": {
174
+ "dark": "darkCyan",
175
+ "light": "lightCyan"
176
+ },
177
+ "syntaxPunctuation": {
178
+ "dark": "darkFg",
179
+ "light": "lightFg"
180
+ }
181
+ },
182
+ "name": "One Dark",
183
+ "$schema": "../../../schema/house-theme.schema.json"
184
+ }
@@ -0,0 +1,198 @@
1
+ {
2
+ "defs": {
3
+ "darkStep1": "#0a0a0a",
4
+ "darkStep2": "#141414",
5
+ "darkStep3": "#1e1e1e",
6
+ "darkStep4": "#282828",
7
+ "darkStep5": "#323232",
8
+ "darkStep6": "#3c3c3c",
9
+ "darkStep7": "#484848",
10
+ "darkStep8": "#606060",
11
+ "darkStep9": "#fab283",
12
+ "darkStep10": "#ffc09f",
13
+ "darkStep11": "#808080",
14
+ "darkStep12": "#eeeeee",
15
+ "darkSecondary": "#5c9cf5",
16
+ "darkAccent": "#9d7cd8",
17
+ "darkRed": "#e06c75",
18
+ "darkOrange": "#f5a742",
19
+ "darkGreen": "#7fd88f",
20
+ "darkCyan": "#56b6c2",
21
+ "darkYellow": "#e5c07b",
22
+ "lightStep1": "#ffffff",
23
+ "lightStep2": "#fafafa",
24
+ "lightStep3": "#f5f5f5",
25
+ "lightStep4": "#ebebeb",
26
+ "lightStep5": "#e1e1e1",
27
+ "lightStep6": "#d4d4d4",
28
+ "lightStep7": "#b8b8b8",
29
+ "lightStep8": "#a0a0a0",
30
+ "lightStep9": "#3b7dd8",
31
+ "lightStep10": "#2968c3",
32
+ "lightStep11": "#8a8a8a",
33
+ "lightStep12": "#1a1a1a",
34
+ "lightSecondary": "#7b5bb6",
35
+ "lightAccent": "#d68c27",
36
+ "lightRed": "#d1383d",
37
+ "lightOrange": "#d68c27",
38
+ "lightGreen": "#3d9a57",
39
+ "lightCyan": "#318795",
40
+ "lightYellow": "#b0851f"
41
+ },
42
+ "theme": {
43
+ "primary": {
44
+ "dark": "darkStep9",
45
+ "light": "lightStep9"
46
+ },
47
+ "secondary": {
48
+ "dark": "darkSecondary",
49
+ "light": "lightSecondary"
50
+ },
51
+ "accent": {
52
+ "dark": "darkAccent",
53
+ "light": "lightAccent"
54
+ },
55
+ "error": {
56
+ "dark": "darkRed",
57
+ "light": "lightRed"
58
+ },
59
+ "warning": {
60
+ "dark": "darkOrange",
61
+ "light": "lightOrange"
62
+ },
63
+ "success": {
64
+ "dark": "darkGreen",
65
+ "light": "lightGreen"
66
+ },
67
+ "info": {
68
+ "dark": "darkCyan",
69
+ "light": "lightCyan"
70
+ },
71
+ "text": {
72
+ "dark": "darkStep12",
73
+ "light": "lightStep12"
74
+ },
75
+ "textMuted": {
76
+ "dark": "darkStep11",
77
+ "light": "lightStep11"
78
+ },
79
+ "background": {
80
+ "dark": "darkStep1",
81
+ "light": "lightStep1"
82
+ },
83
+ "backgroundPanel": {
84
+ "dark": "darkStep2",
85
+ "light": "lightStep2"
86
+ },
87
+ "backgroundElement": {
88
+ "dark": "darkStep3",
89
+ "light": "lightStep3"
90
+ },
91
+ "border": {
92
+ "dark": "darkStep7",
93
+ "light": "lightStep7"
94
+ },
95
+ "borderActive": {
96
+ "dark": "darkStep8",
97
+ "light": "lightStep8"
98
+ },
99
+ "borderSubtle": {
100
+ "dark": "darkStep6",
101
+ "light": "lightStep6"
102
+ },
103
+ "markdownText": {
104
+ "dark": "darkStep12",
105
+ "light": "lightStep12"
106
+ },
107
+ "markdownHeading": {
108
+ "dark": "darkAccent",
109
+ "light": "lightAccent"
110
+ },
111
+ "markdownLink": {
112
+ "dark": "darkStep9",
113
+ "light": "lightStep9"
114
+ },
115
+ "markdownLinkText": {
116
+ "dark": "darkCyan",
117
+ "light": "lightCyan"
118
+ },
119
+ "markdownCode": {
120
+ "dark": "darkGreen",
121
+ "light": "lightGreen"
122
+ },
123
+ "markdownBlockQuote": {
124
+ "dark": "darkYellow",
125
+ "light": "lightYellow"
126
+ },
127
+ "markdownEmph": {
128
+ "dark": "darkYellow",
129
+ "light": "lightYellow"
130
+ },
131
+ "markdownStrong": {
132
+ "dark": "darkOrange",
133
+ "light": "lightOrange"
134
+ },
135
+ "markdownHorizontalRule": {
136
+ "dark": "darkStep11",
137
+ "light": "lightStep11"
138
+ },
139
+ "markdownListItem": {
140
+ "dark": "darkStep9",
141
+ "light": "lightStep9"
142
+ },
143
+ "markdownListEnumeration": {
144
+ "dark": "darkCyan",
145
+ "light": "lightCyan"
146
+ },
147
+ "markdownImage": {
148
+ "dark": "darkStep9",
149
+ "light": "lightStep9"
150
+ },
151
+ "markdownImageText": {
152
+ "dark": "darkCyan",
153
+ "light": "lightCyan"
154
+ },
155
+ "markdownCodeBlock": {
156
+ "dark": "darkStep12",
157
+ "light": "lightStep12"
158
+ },
159
+ "syntaxComment": {
160
+ "dark": "darkStep11",
161
+ "light": "lightStep11"
162
+ },
163
+ "syntaxKeyword": {
164
+ "dark": "darkAccent",
165
+ "light": "lightAccent"
166
+ },
167
+ "syntaxFunction": {
168
+ "dark": "darkStep9",
169
+ "light": "lightStep9"
170
+ },
171
+ "syntaxVariable": {
172
+ "dark": "darkRed",
173
+ "light": "lightRed"
174
+ },
175
+ "syntaxString": {
176
+ "dark": "darkGreen",
177
+ "light": "lightGreen"
178
+ },
179
+ "syntaxNumber": {
180
+ "dark": "darkOrange",
181
+ "light": "lightOrange"
182
+ },
183
+ "syntaxType": {
184
+ "dark": "darkYellow",
185
+ "light": "lightYellow"
186
+ },
187
+ "syntaxOperator": {
188
+ "dark": "darkCyan",
189
+ "light": "lightCyan"
190
+ },
191
+ "syntaxPunctuation": {
192
+ "dark": "darkStep12",
193
+ "light": "lightStep12"
194
+ }
195
+ },
196
+ "name": "Opencode",
197
+ "$schema": "../../../schema/house-theme.schema.json"
198
+ }