@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,202 @@
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": "#EC5B2B",
12
+ "darkStep10": "#EE7948",
13
+ "darkStep11": "#808080",
14
+ "darkStep12": "#eeeeee",
15
+ "darkSecondary": "#EE7948",
16
+ "darkAccent": "#FFF7F1",
17
+ "darkRed": "#e06c75",
18
+ "darkOrange": "#EC5B2B",
19
+ "darkBlue": "#6ba1e6",
20
+ "darkCyan": "#56b6c2",
21
+ "darkYellow": "#e5c07b",
22
+ "lightStep1": "#ffffff",
23
+ "lightStep2": "#FFF7F1",
24
+ "lightStep3": "#f5f0eb",
25
+ "lightStep4": "#ebebeb",
26
+ "lightStep5": "#e1e1e1",
27
+ "lightStep6": "#d4d4d4",
28
+ "lightStep7": "#b8b8b8",
29
+ "lightStep8": "#a0a0a0",
30
+ "lightStep9": "#EC5B2B",
31
+ "lightStep10": "#c94d24",
32
+ "lightStep11": "#8a8a8a",
33
+ "lightStep12": "#1a1a1a",
34
+ "lightSecondary": "#EE7948",
35
+ "lightAccent": "#c94d24",
36
+ "lightRed": "#d1383d",
37
+ "lightOrange": "#EC5B2B",
38
+ "lightBlue": "#0062d1",
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": "darkBlue",
65
+ "light": "lightBlue"
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
+ "selectedListItemText": {
80
+ "dark": "#0a0a0a",
81
+ "light": "#ffffff"
82
+ },
83
+ "background": {
84
+ "dark": "darkStep1",
85
+ "light": "lightStep1"
86
+ },
87
+ "backgroundPanel": {
88
+ "dark": "darkStep2",
89
+ "light": "lightStep2"
90
+ },
91
+ "backgroundElement": {
92
+ "dark": "darkStep3",
93
+ "light": "lightStep3"
94
+ },
95
+ "border": {
96
+ "dark": "#EC5B2B",
97
+ "light": "#EC5B2B"
98
+ },
99
+ "borderActive": {
100
+ "dark": "#EE7948",
101
+ "light": "#c94d24"
102
+ },
103
+ "borderSubtle": {
104
+ "dark": "darkStep6",
105
+ "light": "lightStep6"
106
+ },
107
+ "markdownText": {
108
+ "dark": "darkStep12",
109
+ "light": "lightStep12"
110
+ },
111
+ "markdownHeading": {
112
+ "dark": "#EC5B2B",
113
+ "light": "#EC5B2B"
114
+ },
115
+ "markdownLink": {
116
+ "dark": "darkStep9",
117
+ "light": "lightStep9"
118
+ },
119
+ "markdownLinkText": {
120
+ "dark": "darkCyan",
121
+ "light": "lightCyan"
122
+ },
123
+ "markdownCode": {
124
+ "dark": "darkBlue",
125
+ "light": "lightBlue"
126
+ },
127
+ "markdownBlockQuote": {
128
+ "dark": "#FFF7F1",
129
+ "light": "lightYellow"
130
+ },
131
+ "markdownEmph": {
132
+ "dark": "darkYellow",
133
+ "light": "lightYellow"
134
+ },
135
+ "markdownStrong": {
136
+ "dark": "#EE7948",
137
+ "light": "#EC5B2B"
138
+ },
139
+ "markdownHorizontalRule": {
140
+ "dark": "darkStep11",
141
+ "light": "lightStep11"
142
+ },
143
+ "markdownListItem": {
144
+ "dark": "darkStep9",
145
+ "light": "lightStep9"
146
+ },
147
+ "markdownListEnumeration": {
148
+ "dark": "darkCyan",
149
+ "light": "lightCyan"
150
+ },
151
+ "markdownImage": {
152
+ "dark": "darkStep9",
153
+ "light": "lightStep9"
154
+ },
155
+ "markdownImageText": {
156
+ "dark": "darkCyan",
157
+ "light": "lightCyan"
158
+ },
159
+ "markdownCodeBlock": {
160
+ "dark": "darkStep12",
161
+ "light": "lightStep12"
162
+ },
163
+ "syntaxComment": {
164
+ "dark": "darkStep11",
165
+ "light": "lightStep11"
166
+ },
167
+ "syntaxKeyword": {
168
+ "dark": "#EC5B2B",
169
+ "light": "#EC5B2B"
170
+ },
171
+ "syntaxFunction": {
172
+ "dark": "#EE7948",
173
+ "light": "#c94d24"
174
+ },
175
+ "syntaxVariable": {
176
+ "dark": "darkRed",
177
+ "light": "lightRed"
178
+ },
179
+ "syntaxString": {
180
+ "dark": "darkBlue",
181
+ "light": "lightBlue"
182
+ },
183
+ "syntaxNumber": {
184
+ "dark": "#FFF7F1",
185
+ "light": "#EC5B2B"
186
+ },
187
+ "syntaxType": {
188
+ "dark": "darkYellow",
189
+ "light": "lightYellow"
190
+ },
191
+ "syntaxOperator": {
192
+ "dark": "darkCyan",
193
+ "light": "lightCyan"
194
+ },
195
+ "syntaxPunctuation": {
196
+ "dark": "darkStep12",
197
+ "light": "lightStep12"
198
+ }
199
+ },
200
+ "name": "Orng",
201
+ "$schema": "../../../schema/house-theme.schema.json"
202
+ }
@@ -0,0 +1,193 @@
1
+ {
2
+ "defs": {
3
+ "darkBg0": "#111c18",
4
+ "darkBg1": "#1a2520",
5
+ "darkBg2": "#23372B",
6
+ "darkBg3": "#3d4a44",
7
+ "darkFg0": "#C1C497",
8
+ "darkFg1": "#9aa88a",
9
+ "darkGray": "#53685B",
10
+ "darkRed": "#FF5345",
11
+ "darkGreen": "#549e6a",
12
+ "darkYellow": "#459451",
13
+ "darkBlue": "#509475",
14
+ "darkMagenta": "#D2689C",
15
+ "darkCyan": "#2DD5B7",
16
+ "darkWhite": "#F6F5DD",
17
+ "darkRedBright": "#db9f9c",
18
+ "darkGreenBright": "#63b07a",
19
+ "darkYellowBright": "#E5C736",
20
+ "darkBlueBright": "#ACD4CF",
21
+ "darkMagentaBright": "#75bbb3",
22
+ "darkCyanBright": "#8CD3CB",
23
+ "lightBg0": "#F6F5DD",
24
+ "lightBg1": "#E8E7CC",
25
+ "lightBg2": "#D5D4B8",
26
+ "lightBg3": "#A8A78C",
27
+ "lightFg0": "#111c18",
28
+ "lightFg1": "#1a2520",
29
+ "lightGray": "#53685B",
30
+ "lightRed": "#c7392d",
31
+ "lightGreen": "#3d7a52",
32
+ "lightYellow": "#b5a020",
33
+ "lightBlue": "#3d7560",
34
+ "lightMagenta": "#a8527a",
35
+ "lightCyan": "#1faa90"
36
+ },
37
+ "theme": {
38
+ "primary": {
39
+ "dark": "darkCyan",
40
+ "light": "lightCyan"
41
+ },
42
+ "secondary": {
43
+ "dark": "darkMagenta",
44
+ "light": "lightMagenta"
45
+ },
46
+ "accent": {
47
+ "dark": "darkGreen",
48
+ "light": "lightGreen"
49
+ },
50
+ "error": {
51
+ "dark": "darkRed",
52
+ "light": "lightRed"
53
+ },
54
+ "warning": {
55
+ "dark": "darkYellowBright",
56
+ "light": "lightYellow"
57
+ },
58
+ "success": {
59
+ "dark": "darkGreen",
60
+ "light": "lightGreen"
61
+ },
62
+ "info": {
63
+ "dark": "darkCyan",
64
+ "light": "lightCyan"
65
+ },
66
+ "text": {
67
+ "dark": "darkFg0",
68
+ "light": "lightFg0"
69
+ },
70
+ "textMuted": {
71
+ "dark": "darkGray",
72
+ "light": "lightGray"
73
+ },
74
+ "background": {
75
+ "dark": "darkBg0",
76
+ "light": "lightBg0"
77
+ },
78
+ "backgroundPanel": {
79
+ "dark": "darkBg1",
80
+ "light": "lightBg1"
81
+ },
82
+ "backgroundElement": {
83
+ "dark": "darkBg2",
84
+ "light": "lightBg2"
85
+ },
86
+ "border": {
87
+ "dark": "darkBg3",
88
+ "light": "lightBg3"
89
+ },
90
+ "borderActive": {
91
+ "dark": "darkCyan",
92
+ "light": "lightCyan"
93
+ },
94
+ "borderSubtle": {
95
+ "dark": "darkBg2",
96
+ "light": "lightBg2"
97
+ },
98
+ "markdownText": {
99
+ "dark": "darkFg0",
100
+ "light": "lightFg0"
101
+ },
102
+ "markdownHeading": {
103
+ "dark": "darkCyan",
104
+ "light": "lightCyan"
105
+ },
106
+ "markdownLink": {
107
+ "dark": "darkCyanBright",
108
+ "light": "lightCyan"
109
+ },
110
+ "markdownLinkText": {
111
+ "dark": "darkGreen",
112
+ "light": "lightGreen"
113
+ },
114
+ "markdownCode": {
115
+ "dark": "darkGreenBright",
116
+ "light": "lightGreen"
117
+ },
118
+ "markdownBlockQuote": {
119
+ "dark": "darkGray",
120
+ "light": "lightGray"
121
+ },
122
+ "markdownEmph": {
123
+ "dark": "darkMagenta",
124
+ "light": "lightMagenta"
125
+ },
126
+ "markdownStrong": {
127
+ "dark": "darkFg0",
128
+ "light": "lightFg0"
129
+ },
130
+ "markdownHorizontalRule": {
131
+ "dark": "darkGray",
132
+ "light": "lightGray"
133
+ },
134
+ "markdownListItem": {
135
+ "dark": "darkCyan",
136
+ "light": "lightCyan"
137
+ },
138
+ "markdownListEnumeration": {
139
+ "dark": "darkCyanBright",
140
+ "light": "lightCyan"
141
+ },
142
+ "markdownImage": {
143
+ "dark": "darkCyanBright",
144
+ "light": "lightCyan"
145
+ },
146
+ "markdownImageText": {
147
+ "dark": "darkGreen",
148
+ "light": "lightGreen"
149
+ },
150
+ "markdownCodeBlock": {
151
+ "dark": "darkFg0",
152
+ "light": "lightFg0"
153
+ },
154
+ "syntaxComment": {
155
+ "dark": "darkGray",
156
+ "light": "lightGray"
157
+ },
158
+ "syntaxKeyword": {
159
+ "dark": "darkCyan",
160
+ "light": "lightCyan"
161
+ },
162
+ "syntaxFunction": {
163
+ "dark": "darkBlue",
164
+ "light": "lightBlue"
165
+ },
166
+ "syntaxVariable": {
167
+ "dark": "darkFg0",
168
+ "light": "lightFg0"
169
+ },
170
+ "syntaxString": {
171
+ "dark": "darkGreenBright",
172
+ "light": "lightGreen"
173
+ },
174
+ "syntaxNumber": {
175
+ "dark": "darkMagenta",
176
+ "light": "lightMagenta"
177
+ },
178
+ "syntaxType": {
179
+ "dark": "darkGreen",
180
+ "light": "lightGreen"
181
+ },
182
+ "syntaxOperator": {
183
+ "dark": "darkYellow",
184
+ "light": "lightYellow"
185
+ },
186
+ "syntaxPunctuation": {
187
+ "dark": "darkFg0",
188
+ "light": "lightFg0"
189
+ }
190
+ },
191
+ "name": "Osaka Jade",
192
+ "$schema": "../../../schema/house-theme.schema.json"
193
+ }
@@ -0,0 +1,175 @@
1
+ {
2
+ "defs": {
3
+ "background": "#292d3e",
4
+ "backgroundAlt": "#1e2132",
5
+ "backgroundPanel": "#32364a",
6
+ "foreground": "#a6accd",
7
+ "foregroundBright": "#bfc7d5",
8
+ "comment": "#676e95",
9
+ "red": "#f07178",
10
+ "orange": "#f78c6c",
11
+ "yellow": "#ffcb6b",
12
+ "green": "#c3e88d",
13
+ "cyan": "#89ddff",
14
+ "blue": "#82aaff",
15
+ "purple": "#c792ea",
16
+ "magenta": "#ff5370",
17
+ "pink": "#f07178"
18
+ },
19
+ "theme": {
20
+ "primary": {
21
+ "dark": "blue",
22
+ "light": "#4976eb"
23
+ },
24
+ "secondary": {
25
+ "dark": "purple",
26
+ "light": "#a854f2"
27
+ },
28
+ "accent": {
29
+ "dark": "cyan",
30
+ "light": "#00acc1"
31
+ },
32
+ "error": {
33
+ "dark": "red",
34
+ "light": "#e53935"
35
+ },
36
+ "warning": {
37
+ "dark": "yellow",
38
+ "light": "#ffb300"
39
+ },
40
+ "success": {
41
+ "dark": "green",
42
+ "light": "#91b859"
43
+ },
44
+ "info": {
45
+ "dark": "orange",
46
+ "light": "#f4511e"
47
+ },
48
+ "text": {
49
+ "dark": "foreground",
50
+ "light": "#292d3e"
51
+ },
52
+ "textMuted": {
53
+ "dark": "comment",
54
+ "light": "#8796b0"
55
+ },
56
+ "background": {
57
+ "dark": "#292d3e",
58
+ "light": "#fafafa"
59
+ },
60
+ "backgroundPanel": {
61
+ "dark": "#1e2132",
62
+ "light": "#f5f5f5"
63
+ },
64
+ "backgroundElement": {
65
+ "dark": "#32364a",
66
+ "light": "#e7e7e8"
67
+ },
68
+ "border": {
69
+ "dark": "#32364a",
70
+ "light": "#e0e0e0"
71
+ },
72
+ "borderActive": {
73
+ "dark": "blue",
74
+ "light": "#4976eb"
75
+ },
76
+ "borderSubtle": {
77
+ "dark": "#1e2132",
78
+ "light": "#eeeeee"
79
+ },
80
+ "markdownText": {
81
+ "dark": "foreground",
82
+ "light": "#292d3e"
83
+ },
84
+ "markdownHeading": {
85
+ "dark": "purple",
86
+ "light": "#a854f2"
87
+ },
88
+ "markdownLink": {
89
+ "dark": "blue",
90
+ "light": "#4976eb"
91
+ },
92
+ "markdownLinkText": {
93
+ "dark": "cyan",
94
+ "light": "#00acc1"
95
+ },
96
+ "markdownCode": {
97
+ "dark": "green",
98
+ "light": "#91b859"
99
+ },
100
+ "markdownBlockQuote": {
101
+ "dark": "comment",
102
+ "light": "#8796b0"
103
+ },
104
+ "markdownEmph": {
105
+ "dark": "yellow",
106
+ "light": "#ffb300"
107
+ },
108
+ "markdownStrong": {
109
+ "dark": "orange",
110
+ "light": "#f4511e"
111
+ },
112
+ "markdownHorizontalRule": {
113
+ "dark": "comment",
114
+ "light": "#8796b0"
115
+ },
116
+ "markdownListItem": {
117
+ "dark": "blue",
118
+ "light": "#4976eb"
119
+ },
120
+ "markdownListEnumeration": {
121
+ "dark": "cyan",
122
+ "light": "#00acc1"
123
+ },
124
+ "markdownImage": {
125
+ "dark": "blue",
126
+ "light": "#4976eb"
127
+ },
128
+ "markdownImageText": {
129
+ "dark": "cyan",
130
+ "light": "#00acc1"
131
+ },
132
+ "markdownCodeBlock": {
133
+ "dark": "foreground",
134
+ "light": "#292d3e"
135
+ },
136
+ "syntaxComment": {
137
+ "dark": "comment",
138
+ "light": "#8796b0"
139
+ },
140
+ "syntaxKeyword": {
141
+ "dark": "purple",
142
+ "light": "#a854f2"
143
+ },
144
+ "syntaxFunction": {
145
+ "dark": "blue",
146
+ "light": "#4976eb"
147
+ },
148
+ "syntaxVariable": {
149
+ "dark": "foreground",
150
+ "light": "#292d3e"
151
+ },
152
+ "syntaxString": {
153
+ "dark": "green",
154
+ "light": "#91b859"
155
+ },
156
+ "syntaxNumber": {
157
+ "dark": "orange",
158
+ "light": "#f4511e"
159
+ },
160
+ "syntaxType": {
161
+ "dark": "yellow",
162
+ "light": "#ffb300"
163
+ },
164
+ "syntaxOperator": {
165
+ "dark": "cyan",
166
+ "light": "#00acc1"
167
+ },
168
+ "syntaxPunctuation": {
169
+ "dark": "foreground",
170
+ "light": "#292d3e"
171
+ }
172
+ },
173
+ "name": "Palenight",
174
+ "$schema": "../../../schema/house-theme.schema.json"
175
+ }