@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,201 @@
1
+ {
2
+ "defs": {
3
+ "bg0": "#0d0d0d",
4
+ "bg1": "#161616",
5
+ "bg1a": "#1a1a1a",
6
+ "bg2": "#1e1e1e",
7
+ "bg3": "#262626",
8
+ "bg4": "#303030",
9
+ "fg0": "#ffffff",
10
+ "fg1": "#f2f4f8",
11
+ "fg2": "#a9afbc",
12
+ "fg3": "#7d848f",
13
+ "lbg0": "#ffffff",
14
+ "lbg1": "#f4f4f4",
15
+ "lbg2": "#e8e8e8",
16
+ "lbg3": "#dcdcdc",
17
+ "lfg0": "#000000",
18
+ "lfg1": "#161616",
19
+ "lfg2": "#525252",
20
+ "lfg3": "#6f6f6f",
21
+ "red": "#ee5396",
22
+ "green": "#25be6a",
23
+ "yellow": "#08bdba",
24
+ "blue": "#78a9ff",
25
+ "magenta": "#be95ff",
26
+ "cyan": "#33b1ff",
27
+ "white": "#dfdfe0",
28
+ "orange": "#3ddbd9",
29
+ "pink": "#ff7eb6",
30
+ "blueBright": "#8cb6ff",
31
+ "cyanBright": "#52c7ff",
32
+ "greenBright": "#46c880",
33
+ "redLight": "#9f1853",
34
+ "greenLight": "#198038",
35
+ "yellowLight": "#007d79",
36
+ "blueLight": "#0043ce",
37
+ "magentaLight": "#6929c4",
38
+ "cyanLight": "#0072c3",
39
+ "warning": "#f1c21b",
40
+ "diffGreen": "#50fa7b",
41
+ "diffRed": "#ff6b6b",
42
+ "diffGreenBg": "#0f2418",
43
+ "diffRedBg": "#2a1216"
44
+ },
45
+ "theme": {
46
+ "primary": {
47
+ "dark": "cyan",
48
+ "light": "blueLight"
49
+ },
50
+ "secondary": {
51
+ "dark": "blue",
52
+ "light": "blueLight"
53
+ },
54
+ "accent": {
55
+ "dark": "pink",
56
+ "light": "redLight"
57
+ },
58
+ "error": {
59
+ "dark": "red",
60
+ "light": "redLight"
61
+ },
62
+ "warning": {
63
+ "dark": "warning",
64
+ "light": "yellowLight"
65
+ },
66
+ "success": {
67
+ "dark": "green",
68
+ "light": "greenLight"
69
+ },
70
+ "info": {
71
+ "dark": "blue",
72
+ "light": "blueLight"
73
+ },
74
+ "text": {
75
+ "dark": "fg1",
76
+ "light": "lfg1"
77
+ },
78
+ "textMuted": {
79
+ "dark": "fg3",
80
+ "light": "lfg3"
81
+ },
82
+ "background": {
83
+ "dark": "bg1",
84
+ "light": "lbg0"
85
+ },
86
+ "backgroundPanel": {
87
+ "dark": "bg1a",
88
+ "light": "lbg1"
89
+ },
90
+ "backgroundElement": {
91
+ "dark": "bg2",
92
+ "light": "lbg1"
93
+ },
94
+ "border": {
95
+ "dark": "bg4",
96
+ "light": "lbg3"
97
+ },
98
+ "borderActive": {
99
+ "dark": "cyan",
100
+ "light": "blueLight"
101
+ },
102
+ "borderSubtle": {
103
+ "dark": "bg3",
104
+ "light": "lbg2"
105
+ },
106
+ "markdownText": {
107
+ "dark": "fg1",
108
+ "light": "lfg1"
109
+ },
110
+ "markdownHeading": {
111
+ "dark": "blueBright",
112
+ "light": "blueLight"
113
+ },
114
+ "markdownLink": {
115
+ "dark": "blue",
116
+ "light": "blueLight"
117
+ },
118
+ "markdownLinkText": {
119
+ "dark": "cyan",
120
+ "light": "cyanLight"
121
+ },
122
+ "markdownCode": {
123
+ "dark": "green",
124
+ "light": "greenLight"
125
+ },
126
+ "markdownBlockQuote": {
127
+ "dark": "fg3",
128
+ "light": "lfg3"
129
+ },
130
+ "markdownEmph": {
131
+ "dark": "magenta",
132
+ "light": "magentaLight"
133
+ },
134
+ "markdownStrong": {
135
+ "dark": "fg0",
136
+ "light": "lfg0"
137
+ },
138
+ "markdownHorizontalRule": {
139
+ "dark": "bg4",
140
+ "light": "lbg3"
141
+ },
142
+ "markdownListItem": {
143
+ "dark": "cyan",
144
+ "light": "cyanLight"
145
+ },
146
+ "markdownListEnumeration": {
147
+ "dark": "cyan",
148
+ "light": "cyanLight"
149
+ },
150
+ "markdownImage": {
151
+ "dark": "blue",
152
+ "light": "blueLight"
153
+ },
154
+ "markdownImageText": {
155
+ "dark": "cyan",
156
+ "light": "cyanLight"
157
+ },
158
+ "markdownCodeBlock": {
159
+ "dark": "fg2",
160
+ "light": "lfg2"
161
+ },
162
+ "syntaxComment": {
163
+ "dark": "fg3",
164
+ "light": "lfg3"
165
+ },
166
+ "syntaxKeyword": {
167
+ "dark": "magenta",
168
+ "light": "magentaLight"
169
+ },
170
+ "syntaxFunction": {
171
+ "dark": "blueBright",
172
+ "light": "blueLight"
173
+ },
174
+ "syntaxVariable": {
175
+ "dark": "white",
176
+ "light": "lfg1"
177
+ },
178
+ "syntaxString": {
179
+ "dark": "green",
180
+ "light": "greenLight"
181
+ },
182
+ "syntaxNumber": {
183
+ "dark": "orange",
184
+ "light": "yellowLight"
185
+ },
186
+ "syntaxType": {
187
+ "dark": "yellow",
188
+ "light": "yellowLight"
189
+ },
190
+ "syntaxOperator": {
191
+ "dark": "fg2",
192
+ "light": "lfg2"
193
+ },
194
+ "syntaxPunctuation": {
195
+ "dark": "fg2",
196
+ "light": "lfg1"
197
+ }
198
+ },
199
+ "name": "Carbonfox",
200
+ "$schema": "../../../schema/house-theme.schema.json"
201
+ }
@@ -0,0 +1,186 @@
1
+ {
2
+ "defs": {
3
+ "frappeRosewater": "#f2d5cf",
4
+ "frappeFlamingo": "#eebebe",
5
+ "frappePink": "#f4b8e4",
6
+ "frappeMauve": "#ca9ee6",
7
+ "frappeRed": "#e78284",
8
+ "frappeMaroon": "#ea999c",
9
+ "frappePeach": "#ef9f76",
10
+ "frappeYellow": "#e5c890",
11
+ "frappeGreen": "#a6d189",
12
+ "frappeTeal": "#81c8be",
13
+ "frappeSky": "#99d1db",
14
+ "frappeSapphire": "#85c1dc",
15
+ "frappeBlue": "#8da4e2",
16
+ "frappeLavender": "#babbf1",
17
+ "frappeText": "#c6d0f5",
18
+ "frappeSubtext1": "#b5bfe2",
19
+ "frappeSubtext0": "#a5adce",
20
+ "frappeOverlay2": "#949cb8",
21
+ "frappeOverlay1": "#838ba7",
22
+ "frappeOverlay0": "#737994",
23
+ "frappeSurface2": "#626880",
24
+ "frappeSurface1": "#51576d",
25
+ "frappeSurface0": "#414559",
26
+ "frappeBase": "#303446",
27
+ "frappeMantle": "#292c3c",
28
+ "frappeCrust": "#232634"
29
+ },
30
+ "theme": {
31
+ "primary": {
32
+ "dark": "frappeBlue",
33
+ "light": "frappeBlue"
34
+ },
35
+ "secondary": {
36
+ "dark": "frappeMauve",
37
+ "light": "frappeMauve"
38
+ },
39
+ "accent": {
40
+ "dark": "frappePink",
41
+ "light": "frappePink"
42
+ },
43
+ "error": {
44
+ "dark": "frappeRed",
45
+ "light": "frappeRed"
46
+ },
47
+ "warning": {
48
+ "dark": "frappeYellow",
49
+ "light": "frappeYellow"
50
+ },
51
+ "success": {
52
+ "dark": "frappeGreen",
53
+ "light": "frappeGreen"
54
+ },
55
+ "info": {
56
+ "dark": "frappeTeal",
57
+ "light": "frappeTeal"
58
+ },
59
+ "text": {
60
+ "dark": "frappeText",
61
+ "light": "frappeText"
62
+ },
63
+ "textMuted": {
64
+ "dark": "frappeOverlay2",
65
+ "light": "frappeOverlay2"
66
+ },
67
+ "background": {
68
+ "dark": "frappeBase",
69
+ "light": "frappeBase"
70
+ },
71
+ "backgroundPanel": {
72
+ "dark": "frappeMantle",
73
+ "light": "frappeMantle"
74
+ },
75
+ "backgroundElement": {
76
+ "dark": "frappeCrust",
77
+ "light": "frappeCrust"
78
+ },
79
+ "border": {
80
+ "dark": "frappeSurface0",
81
+ "light": "frappeSurface0"
82
+ },
83
+ "borderActive": {
84
+ "dark": "frappeSurface1",
85
+ "light": "frappeSurface1"
86
+ },
87
+ "borderSubtle": {
88
+ "dark": "frappeSurface2",
89
+ "light": "frappeSurface2"
90
+ },
91
+ "markdownText": {
92
+ "dark": "frappeText",
93
+ "light": "frappeText"
94
+ },
95
+ "markdownHeading": {
96
+ "dark": "frappeMauve",
97
+ "light": "frappeMauve"
98
+ },
99
+ "markdownLink": {
100
+ "dark": "frappeBlue",
101
+ "light": "frappeBlue"
102
+ },
103
+ "markdownLinkText": {
104
+ "dark": "frappeSky",
105
+ "light": "frappeSky"
106
+ },
107
+ "markdownCode": {
108
+ "dark": "frappeGreen",
109
+ "light": "frappeGreen"
110
+ },
111
+ "markdownBlockQuote": {
112
+ "dark": "frappeYellow",
113
+ "light": "frappeYellow"
114
+ },
115
+ "markdownEmph": {
116
+ "dark": "frappeYellow",
117
+ "light": "frappeYellow"
118
+ },
119
+ "markdownStrong": {
120
+ "dark": "frappePeach",
121
+ "light": "frappePeach"
122
+ },
123
+ "markdownHorizontalRule": {
124
+ "dark": "frappeSubtext0",
125
+ "light": "frappeSubtext0"
126
+ },
127
+ "markdownListItem": {
128
+ "dark": "frappeBlue",
129
+ "light": "frappeBlue"
130
+ },
131
+ "markdownListEnumeration": {
132
+ "dark": "frappeSky",
133
+ "light": "frappeSky"
134
+ },
135
+ "markdownImage": {
136
+ "dark": "frappeBlue",
137
+ "light": "frappeBlue"
138
+ },
139
+ "markdownImageText": {
140
+ "dark": "frappeSky",
141
+ "light": "frappeSky"
142
+ },
143
+ "markdownCodeBlock": {
144
+ "dark": "frappeText",
145
+ "light": "frappeText"
146
+ },
147
+ "syntaxComment": {
148
+ "dark": "frappeOverlay2",
149
+ "light": "frappeOverlay2"
150
+ },
151
+ "syntaxKeyword": {
152
+ "dark": "frappeMauve",
153
+ "light": "frappeMauve"
154
+ },
155
+ "syntaxFunction": {
156
+ "dark": "frappeBlue",
157
+ "light": "frappeBlue"
158
+ },
159
+ "syntaxVariable": {
160
+ "dark": "frappeRed",
161
+ "light": "frappeRed"
162
+ },
163
+ "syntaxString": {
164
+ "dark": "frappeGreen",
165
+ "light": "frappeGreen"
166
+ },
167
+ "syntaxNumber": {
168
+ "dark": "frappePeach",
169
+ "light": "frappePeach"
170
+ },
171
+ "syntaxType": {
172
+ "dark": "frappeYellow",
173
+ "light": "frappeYellow"
174
+ },
175
+ "syntaxOperator": {
176
+ "dark": "frappeSky",
177
+ "light": "frappeSky"
178
+ },
179
+ "syntaxPunctuation": {
180
+ "dark": "frappeText",
181
+ "light": "frappeText"
182
+ }
183
+ },
184
+ "name": "Catppuccin Frappe",
185
+ "$schema": "../../../schema/house-theme.schema.json"
186
+ }
@@ -0,0 +1,186 @@
1
+ {
2
+ "defs": {
3
+ "macRosewater": "#f4dbd6",
4
+ "macFlamingo": "#f0c6c6",
5
+ "macPink": "#f5bde6",
6
+ "macMauve": "#c6a0f6",
7
+ "macRed": "#ed8796",
8
+ "macMaroon": "#ee99a0",
9
+ "macPeach": "#f5a97f",
10
+ "macYellow": "#eed49f",
11
+ "macGreen": "#a6da95",
12
+ "macTeal": "#8bd5ca",
13
+ "macSky": "#91d7e3",
14
+ "macSapphire": "#7dc4e4",
15
+ "macBlue": "#8aadf4",
16
+ "macLavender": "#b7bdf8",
17
+ "macText": "#cad3f5",
18
+ "macSubtext1": "#b8c0e0",
19
+ "macSubtext0": "#a5adcb",
20
+ "macOverlay2": "#939ab7",
21
+ "macOverlay1": "#8087a2",
22
+ "macOverlay0": "#6e738d",
23
+ "macSurface2": "#5b6078",
24
+ "macSurface1": "#494d64",
25
+ "macSurface0": "#363a4f",
26
+ "macBase": "#24273a",
27
+ "macMantle": "#1e2030",
28
+ "macCrust": "#181926"
29
+ },
30
+ "theme": {
31
+ "primary": {
32
+ "dark": "macBlue",
33
+ "light": "macBlue"
34
+ },
35
+ "secondary": {
36
+ "dark": "macMauve",
37
+ "light": "macMauve"
38
+ },
39
+ "accent": {
40
+ "dark": "macPink",
41
+ "light": "macPink"
42
+ },
43
+ "error": {
44
+ "dark": "macRed",
45
+ "light": "macRed"
46
+ },
47
+ "warning": {
48
+ "dark": "macYellow",
49
+ "light": "macYellow"
50
+ },
51
+ "success": {
52
+ "dark": "macGreen",
53
+ "light": "macGreen"
54
+ },
55
+ "info": {
56
+ "dark": "macTeal",
57
+ "light": "macTeal"
58
+ },
59
+ "text": {
60
+ "dark": "macText",
61
+ "light": "macText"
62
+ },
63
+ "textMuted": {
64
+ "dark": "macOverlay2",
65
+ "light": "macOverlay2"
66
+ },
67
+ "background": {
68
+ "dark": "macBase",
69
+ "light": "macBase"
70
+ },
71
+ "backgroundPanel": {
72
+ "dark": "macMantle",
73
+ "light": "macMantle"
74
+ },
75
+ "backgroundElement": {
76
+ "dark": "macCrust",
77
+ "light": "macCrust"
78
+ },
79
+ "border": {
80
+ "dark": "macSurface0",
81
+ "light": "macSurface0"
82
+ },
83
+ "borderActive": {
84
+ "dark": "macSurface1",
85
+ "light": "macSurface1"
86
+ },
87
+ "borderSubtle": {
88
+ "dark": "macSurface2",
89
+ "light": "macSurface2"
90
+ },
91
+ "markdownText": {
92
+ "dark": "macText",
93
+ "light": "macText"
94
+ },
95
+ "markdownHeading": {
96
+ "dark": "macMauve",
97
+ "light": "macMauve"
98
+ },
99
+ "markdownLink": {
100
+ "dark": "macBlue",
101
+ "light": "macBlue"
102
+ },
103
+ "markdownLinkText": {
104
+ "dark": "macSky",
105
+ "light": "macSky"
106
+ },
107
+ "markdownCode": {
108
+ "dark": "macGreen",
109
+ "light": "macGreen"
110
+ },
111
+ "markdownBlockQuote": {
112
+ "dark": "macYellow",
113
+ "light": "macYellow"
114
+ },
115
+ "markdownEmph": {
116
+ "dark": "macYellow",
117
+ "light": "macYellow"
118
+ },
119
+ "markdownStrong": {
120
+ "dark": "macPeach",
121
+ "light": "macPeach"
122
+ },
123
+ "markdownHorizontalRule": {
124
+ "dark": "macSubtext0",
125
+ "light": "macSubtext0"
126
+ },
127
+ "markdownListItem": {
128
+ "dark": "macBlue",
129
+ "light": "macBlue"
130
+ },
131
+ "markdownListEnumeration": {
132
+ "dark": "macSky",
133
+ "light": "macSky"
134
+ },
135
+ "markdownImage": {
136
+ "dark": "macBlue",
137
+ "light": "macBlue"
138
+ },
139
+ "markdownImageText": {
140
+ "dark": "macSky",
141
+ "light": "macSky"
142
+ },
143
+ "markdownCodeBlock": {
144
+ "dark": "macText",
145
+ "light": "macText"
146
+ },
147
+ "syntaxComment": {
148
+ "dark": "macOverlay2",
149
+ "light": "macOverlay2"
150
+ },
151
+ "syntaxKeyword": {
152
+ "dark": "macMauve",
153
+ "light": "macMauve"
154
+ },
155
+ "syntaxFunction": {
156
+ "dark": "macBlue",
157
+ "light": "macBlue"
158
+ },
159
+ "syntaxVariable": {
160
+ "dark": "macRed",
161
+ "light": "macRed"
162
+ },
163
+ "syntaxString": {
164
+ "dark": "macGreen",
165
+ "light": "macGreen"
166
+ },
167
+ "syntaxNumber": {
168
+ "dark": "macPeach",
169
+ "light": "macPeach"
170
+ },
171
+ "syntaxType": {
172
+ "dark": "macYellow",
173
+ "light": "macYellow"
174
+ },
175
+ "syntaxOperator": {
176
+ "dark": "macSky",
177
+ "light": "macSky"
178
+ },
179
+ "syntaxPunctuation": {
180
+ "dark": "macText",
181
+ "light": "macText"
182
+ }
183
+ },
184
+ "name": "Catppuccin Macchiato",
185
+ "$schema": "../../../schema/house-theme.schema.json"
186
+ }