@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,212 @@
1
+ {
2
+ "defs": {
3
+ "lightRosewater": "#dc8a78",
4
+ "lightFlamingo": "#dd7878",
5
+ "lightPink": "#ea76cb",
6
+ "lightMauve": "#8839ef",
7
+ "lightRed": "#d20f39",
8
+ "lightMaroon": "#e64553",
9
+ "lightPeach": "#fe640b",
10
+ "lightYellow": "#df8e1d",
11
+ "lightGreen": "#40a02b",
12
+ "lightTeal": "#179299",
13
+ "lightSky": "#04a5e5",
14
+ "lightSapphire": "#209fb5",
15
+ "lightBlue": "#1e66f5",
16
+ "lightLavender": "#7287fd",
17
+ "lightText": "#4c4f69",
18
+ "lightSubtext1": "#5c5f77",
19
+ "lightSubtext0": "#6c6f85",
20
+ "lightOverlay2": "#7c7f93",
21
+ "lightOverlay1": "#8c8fa1",
22
+ "lightOverlay0": "#9ca0b0",
23
+ "lightSurface2": "#acb0be",
24
+ "lightSurface1": "#bcc0cc",
25
+ "lightSurface0": "#ccd0da",
26
+ "lightBase": "#eff1f5",
27
+ "lightMantle": "#e6e9ef",
28
+ "lightCrust": "#dce0e8",
29
+ "darkRosewater": "#f5e0dc",
30
+ "darkFlamingo": "#f2cdcd",
31
+ "darkPink": "#f5c2e7",
32
+ "darkMauve": "#cba6f7",
33
+ "darkRed": "#f38ba8",
34
+ "darkMaroon": "#eba0ac",
35
+ "darkPeach": "#fab387",
36
+ "darkYellow": "#f9e2af",
37
+ "darkGreen": "#a6e3a1",
38
+ "darkTeal": "#94e2d5",
39
+ "darkSky": "#89dceb",
40
+ "darkSapphire": "#74c7ec",
41
+ "darkBlue": "#89b4fa",
42
+ "darkLavender": "#b4befe",
43
+ "darkText": "#cdd6f4",
44
+ "darkSubtext1": "#bac2de",
45
+ "darkSubtext0": "#a6adc8",
46
+ "darkOverlay2": "#9399b2",
47
+ "darkOverlay1": "#7f849c",
48
+ "darkOverlay0": "#6c7086",
49
+ "darkSurface2": "#585b70",
50
+ "darkSurface1": "#45475a",
51
+ "darkSurface0": "#313244",
52
+ "darkBase": "#1e1e2e",
53
+ "darkMantle": "#181825",
54
+ "darkCrust": "#11111b"
55
+ },
56
+ "theme": {
57
+ "primary": {
58
+ "dark": "darkBlue",
59
+ "light": "lightBlue"
60
+ },
61
+ "secondary": {
62
+ "dark": "darkMauve",
63
+ "light": "lightMauve"
64
+ },
65
+ "accent": {
66
+ "dark": "darkPink",
67
+ "light": "lightPink"
68
+ },
69
+ "error": {
70
+ "dark": "darkRed",
71
+ "light": "lightRed"
72
+ },
73
+ "warning": {
74
+ "dark": "darkYellow",
75
+ "light": "lightYellow"
76
+ },
77
+ "success": {
78
+ "dark": "darkGreen",
79
+ "light": "lightGreen"
80
+ },
81
+ "info": {
82
+ "dark": "darkTeal",
83
+ "light": "lightTeal"
84
+ },
85
+ "text": {
86
+ "dark": "darkText",
87
+ "light": "lightText"
88
+ },
89
+ "textMuted": {
90
+ "dark": "darkOverlay2",
91
+ "light": "lightOverlay2"
92
+ },
93
+ "background": {
94
+ "dark": "darkBase",
95
+ "light": "lightBase"
96
+ },
97
+ "backgroundPanel": {
98
+ "dark": "darkMantle",
99
+ "light": "lightMantle"
100
+ },
101
+ "backgroundElement": {
102
+ "dark": "darkCrust",
103
+ "light": "lightCrust"
104
+ },
105
+ "border": {
106
+ "dark": "darkSurface0",
107
+ "light": "lightSurface0"
108
+ },
109
+ "borderActive": {
110
+ "dark": "darkSurface1",
111
+ "light": "lightSurface1"
112
+ },
113
+ "borderSubtle": {
114
+ "dark": "darkSurface2",
115
+ "light": "lightSurface2"
116
+ },
117
+ "markdownText": {
118
+ "dark": "darkText",
119
+ "light": "lightText"
120
+ },
121
+ "markdownHeading": {
122
+ "dark": "darkMauve",
123
+ "light": "lightMauve"
124
+ },
125
+ "markdownLink": {
126
+ "dark": "darkBlue",
127
+ "light": "lightBlue"
128
+ },
129
+ "markdownLinkText": {
130
+ "dark": "darkSky",
131
+ "light": "lightSky"
132
+ },
133
+ "markdownCode": {
134
+ "dark": "darkGreen",
135
+ "light": "lightGreen"
136
+ },
137
+ "markdownBlockQuote": {
138
+ "dark": "darkYellow",
139
+ "light": "lightYellow"
140
+ },
141
+ "markdownEmph": {
142
+ "dark": "darkYellow",
143
+ "light": "lightYellow"
144
+ },
145
+ "markdownStrong": {
146
+ "dark": "darkPeach",
147
+ "light": "lightPeach"
148
+ },
149
+ "markdownHorizontalRule": {
150
+ "dark": "darkSubtext0",
151
+ "light": "lightSubtext0"
152
+ },
153
+ "markdownListItem": {
154
+ "dark": "darkBlue",
155
+ "light": "lightBlue"
156
+ },
157
+ "markdownListEnumeration": {
158
+ "dark": "darkSky",
159
+ "light": "lightSky"
160
+ },
161
+ "markdownImage": {
162
+ "dark": "darkBlue",
163
+ "light": "lightBlue"
164
+ },
165
+ "markdownImageText": {
166
+ "dark": "darkSky",
167
+ "light": "lightSky"
168
+ },
169
+ "markdownCodeBlock": {
170
+ "dark": "darkText",
171
+ "light": "lightText"
172
+ },
173
+ "syntaxComment": {
174
+ "dark": "darkOverlay2",
175
+ "light": "lightOverlay2"
176
+ },
177
+ "syntaxKeyword": {
178
+ "dark": "darkMauve",
179
+ "light": "lightMauve"
180
+ },
181
+ "syntaxFunction": {
182
+ "dark": "darkBlue",
183
+ "light": "lightBlue"
184
+ },
185
+ "syntaxVariable": {
186
+ "dark": "darkRed",
187
+ "light": "lightRed"
188
+ },
189
+ "syntaxString": {
190
+ "dark": "darkGreen",
191
+ "light": "lightGreen"
192
+ },
193
+ "syntaxNumber": {
194
+ "dark": "darkPeach",
195
+ "light": "lightPeach"
196
+ },
197
+ "syntaxType": {
198
+ "dark": "darkYellow",
199
+ "light": "lightYellow"
200
+ },
201
+ "syntaxOperator": {
202
+ "dark": "darkSky",
203
+ "light": "lightSky"
204
+ },
205
+ "syntaxPunctuation": {
206
+ "dark": "darkText",
207
+ "light": "lightText"
208
+ }
209
+ },
210
+ "name": "Catppuccin",
211
+ "$schema": "../../../schema/house-theme.schema.json"
212
+ }
@@ -0,0 +1,181 @@
1
+ {
2
+ "defs": {
3
+ "background": "#193549",
4
+ "backgroundAlt": "#122738",
5
+ "backgroundPanel": "#1f4662",
6
+ "foreground": "#ffffff",
7
+ "foregroundMuted": "#adb7c9",
8
+ "yellow": "#ffc600",
9
+ "yellowBright": "#ffe14c",
10
+ "orange": "#ff9d00",
11
+ "orangeBright": "#ffb454",
12
+ "mint": "#2affdf",
13
+ "mintBright": "#7efff5",
14
+ "blue": "#0088ff",
15
+ "blueBright": "#5cb7ff",
16
+ "pink": "#ff628c",
17
+ "pinkBright": "#ff86a5",
18
+ "green": "#9eff80",
19
+ "greenBright": "#b9ff9f",
20
+ "purple": "#9a5feb",
21
+ "purpleBright": "#b88cfd",
22
+ "red": "#ff0088",
23
+ "redBright": "#ff5fb3"
24
+ },
25
+ "theme": {
26
+ "primary": {
27
+ "dark": "blue",
28
+ "light": "#0066cc"
29
+ },
30
+ "secondary": {
31
+ "dark": "purple",
32
+ "light": "#7c4dff"
33
+ },
34
+ "accent": {
35
+ "dark": "mint",
36
+ "light": "#00acc1"
37
+ },
38
+ "error": {
39
+ "dark": "red",
40
+ "light": "#e91e63"
41
+ },
42
+ "warning": {
43
+ "dark": "yellow",
44
+ "light": "#ff9800"
45
+ },
46
+ "success": {
47
+ "dark": "green",
48
+ "light": "#4caf50"
49
+ },
50
+ "info": {
51
+ "dark": "orange",
52
+ "light": "#ff5722"
53
+ },
54
+ "text": {
55
+ "dark": "foreground",
56
+ "light": "#193549"
57
+ },
58
+ "textMuted": {
59
+ "dark": "foregroundMuted",
60
+ "light": "#5c6b7d"
61
+ },
62
+ "background": {
63
+ "dark": "#193549",
64
+ "light": "#ffffff"
65
+ },
66
+ "backgroundPanel": {
67
+ "dark": "#122738",
68
+ "light": "#f5f7fa"
69
+ },
70
+ "backgroundElement": {
71
+ "dark": "#1f4662",
72
+ "light": "#e8ecf1"
73
+ },
74
+ "border": {
75
+ "dark": "#1f4662",
76
+ "light": "#d3dae3"
77
+ },
78
+ "borderActive": {
79
+ "dark": "blue",
80
+ "light": "#0066cc"
81
+ },
82
+ "borderSubtle": {
83
+ "dark": "#0e1e2e",
84
+ "light": "#e8ecf1"
85
+ },
86
+ "markdownText": {
87
+ "dark": "foreground",
88
+ "light": "#193549"
89
+ },
90
+ "markdownHeading": {
91
+ "dark": "yellow",
92
+ "light": "#ff9800"
93
+ },
94
+ "markdownLink": {
95
+ "dark": "blue",
96
+ "light": "#0066cc"
97
+ },
98
+ "markdownLinkText": {
99
+ "dark": "mint",
100
+ "light": "#00acc1"
101
+ },
102
+ "markdownCode": {
103
+ "dark": "green",
104
+ "light": "#4caf50"
105
+ },
106
+ "markdownBlockQuote": {
107
+ "dark": "foregroundMuted",
108
+ "light": "#5c6b7d"
109
+ },
110
+ "markdownEmph": {
111
+ "dark": "orange",
112
+ "light": "#ff5722"
113
+ },
114
+ "markdownStrong": {
115
+ "dark": "pink",
116
+ "light": "#e91e63"
117
+ },
118
+ "markdownHorizontalRule": {
119
+ "dark": "#2d5a7b",
120
+ "light": "#d3dae3"
121
+ },
122
+ "markdownListItem": {
123
+ "dark": "blue",
124
+ "light": "#0066cc"
125
+ },
126
+ "markdownListEnumeration": {
127
+ "dark": "mint",
128
+ "light": "#00acc1"
129
+ },
130
+ "markdownImage": {
131
+ "dark": "blue",
132
+ "light": "#0066cc"
133
+ },
134
+ "markdownImageText": {
135
+ "dark": "mint",
136
+ "light": "#00acc1"
137
+ },
138
+ "markdownCodeBlock": {
139
+ "dark": "foreground",
140
+ "light": "#193549"
141
+ },
142
+ "syntaxComment": {
143
+ "dark": "#0088ff",
144
+ "light": "#5c6b7d"
145
+ },
146
+ "syntaxKeyword": {
147
+ "dark": "orange",
148
+ "light": "#ff5722"
149
+ },
150
+ "syntaxFunction": {
151
+ "dark": "yellow",
152
+ "light": "#ff9800"
153
+ },
154
+ "syntaxVariable": {
155
+ "dark": "foreground",
156
+ "light": "#193549"
157
+ },
158
+ "syntaxString": {
159
+ "dark": "green",
160
+ "light": "#4caf50"
161
+ },
162
+ "syntaxNumber": {
163
+ "dark": "pink",
164
+ "light": "#e91e63"
165
+ },
166
+ "syntaxType": {
167
+ "dark": "mint",
168
+ "light": "#00acc1"
169
+ },
170
+ "syntaxOperator": {
171
+ "dark": "orange",
172
+ "light": "#ff5722"
173
+ },
174
+ "syntaxPunctuation": {
175
+ "dark": "foreground",
176
+ "light": "#193549"
177
+ }
178
+ },
179
+ "name": "Cobalt2",
180
+ "$schema": "../../../schema/house-theme.schema.json"
181
+ }
@@ -0,0 +1,202 @@
1
+ {
2
+ "defs": {
3
+ "darkBg": "#181818",
4
+ "darkPanel": "#141414",
5
+ "darkElement": "#262626",
6
+ "darkFg": "#e4e4e4",
7
+ "darkMuted": "#e4e4e45e",
8
+ "darkBorder": "#e4e4e413",
9
+ "darkBorderActive": "#e4e4e426",
10
+ "darkCyan": "#88c0d0",
11
+ "darkBlue": "#81a1c1",
12
+ "darkGreen": "#3fa266",
13
+ "darkGreenBright": "#70b489",
14
+ "darkRed": "#e34671",
15
+ "darkRedBright": "#fc6b83",
16
+ "darkYellow": "#f1b467",
17
+ "darkOrange": "#d2943e",
18
+ "darkPink": "#E394DC",
19
+ "darkPurple": "#AAA0FA",
20
+ "darkTeal": "#82D2CE",
21
+ "darkSyntaxYellow": "#F8C762",
22
+ "darkSyntaxOrange": "#EFB080",
23
+ "darkSyntaxGreen": "#A8CC7C",
24
+ "darkSyntaxBlue": "#87C3FF",
25
+ "lightBg": "#fcfcfc",
26
+ "lightPanel": "#f3f3f3",
27
+ "lightElement": "#ededed",
28
+ "lightFg": "#141414",
29
+ "lightMuted": "#141414ad",
30
+ "lightBorder": "#14141413",
31
+ "lightBorderActive": "#14141426",
32
+ "lightTeal": "#6f9ba6",
33
+ "lightBlue": "#3c7cab",
34
+ "lightBlueDark": "#206595",
35
+ "lightGreen": "#1f8a65",
36
+ "lightGreenBright": "#55a583",
37
+ "lightRed": "#cf2d56",
38
+ "lightRedBright": "#e75e78",
39
+ "lightOrange": "#db704b",
40
+ "lightYellow": "#c08532",
41
+ "lightPurple": "#9e94d5",
42
+ "lightPurpleDark": "#6049b3",
43
+ "lightPink": "#b8448b",
44
+ "lightMagenta": "#b3003f"
45
+ },
46
+ "theme": {
47
+ "primary": {
48
+ "dark": "darkCyan",
49
+ "light": "lightTeal"
50
+ },
51
+ "secondary": {
52
+ "dark": "darkBlue",
53
+ "light": "lightBlue"
54
+ },
55
+ "accent": {
56
+ "dark": "darkCyan",
57
+ "light": "lightTeal"
58
+ },
59
+ "error": {
60
+ "dark": "darkRed",
61
+ "light": "lightRed"
62
+ },
63
+ "warning": {
64
+ "dark": "darkYellow",
65
+ "light": "lightOrange"
66
+ },
67
+ "success": {
68
+ "dark": "darkGreen",
69
+ "light": "lightGreen"
70
+ },
71
+ "info": {
72
+ "dark": "darkBlue",
73
+ "light": "lightBlue"
74
+ },
75
+ "text": {
76
+ "dark": "darkFg",
77
+ "light": "lightFg"
78
+ },
79
+ "textMuted": {
80
+ "dark": "darkMuted",
81
+ "light": "lightMuted"
82
+ },
83
+ "background": {
84
+ "dark": "darkBg",
85
+ "light": "lightBg"
86
+ },
87
+ "backgroundPanel": {
88
+ "dark": "darkPanel",
89
+ "light": "lightPanel"
90
+ },
91
+ "backgroundElement": {
92
+ "dark": "darkElement",
93
+ "light": "lightElement"
94
+ },
95
+ "border": {
96
+ "dark": "darkBorder",
97
+ "light": "lightBorder"
98
+ },
99
+ "borderActive": {
100
+ "dark": "darkCyan",
101
+ "light": "lightTeal"
102
+ },
103
+ "borderSubtle": {
104
+ "dark": "#0f0f0f",
105
+ "light": "#e0e0e0"
106
+ },
107
+ "markdownText": {
108
+ "dark": "darkFg",
109
+ "light": "lightFg"
110
+ },
111
+ "markdownHeading": {
112
+ "dark": "darkPurple",
113
+ "light": "lightBlueDark"
114
+ },
115
+ "markdownLink": {
116
+ "dark": "darkTeal",
117
+ "light": "lightBlueDark"
118
+ },
119
+ "markdownLinkText": {
120
+ "dark": "darkBlue",
121
+ "light": "lightMuted"
122
+ },
123
+ "markdownCode": {
124
+ "dark": "darkPink",
125
+ "light": "lightGreen"
126
+ },
127
+ "markdownBlockQuote": {
128
+ "dark": "darkMuted",
129
+ "light": "lightMuted"
130
+ },
131
+ "markdownEmph": {
132
+ "dark": "darkTeal",
133
+ "light": "lightFg"
134
+ },
135
+ "markdownStrong": {
136
+ "dark": "darkSyntaxYellow",
137
+ "light": "lightFg"
138
+ },
139
+ "markdownHorizontalRule": {
140
+ "dark": "darkMuted",
141
+ "light": "lightMuted"
142
+ },
143
+ "markdownListItem": {
144
+ "dark": "darkFg",
145
+ "light": "lightFg"
146
+ },
147
+ "markdownListEnumeration": {
148
+ "dark": "darkCyan",
149
+ "light": "lightMuted"
150
+ },
151
+ "markdownImage": {
152
+ "dark": "darkCyan",
153
+ "light": "lightBlueDark"
154
+ },
155
+ "markdownImageText": {
156
+ "dark": "darkBlue",
157
+ "light": "lightMuted"
158
+ },
159
+ "markdownCodeBlock": {
160
+ "dark": "darkFg",
161
+ "light": "lightFg"
162
+ },
163
+ "syntaxComment": {
164
+ "dark": "darkMuted",
165
+ "light": "lightMuted"
166
+ },
167
+ "syntaxKeyword": {
168
+ "dark": "darkTeal",
169
+ "light": "lightMagenta"
170
+ },
171
+ "syntaxFunction": {
172
+ "dark": "darkSyntaxOrange",
173
+ "light": "lightOrange"
174
+ },
175
+ "syntaxVariable": {
176
+ "dark": "darkFg",
177
+ "light": "lightFg"
178
+ },
179
+ "syntaxString": {
180
+ "dark": "darkPink",
181
+ "light": "lightPurple"
182
+ },
183
+ "syntaxNumber": {
184
+ "dark": "darkSyntaxYellow",
185
+ "light": "lightPink"
186
+ },
187
+ "syntaxType": {
188
+ "dark": "darkSyntaxOrange",
189
+ "light": "lightBlueDark"
190
+ },
191
+ "syntaxOperator": {
192
+ "dark": "darkFg",
193
+ "light": "lightFg"
194
+ },
195
+ "syntaxPunctuation": {
196
+ "dark": "darkFg",
197
+ "light": "lightFg"
198
+ }
199
+ },
200
+ "name": "Cursor",
201
+ "$schema": "../../../schema/house-theme.schema.json"
202
+ }