@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,187 @@
1
+ {
2
+ "defs": {
3
+ "base": "#191724",
4
+ "surface": "#1f1d2e",
5
+ "overlay": "#26233a",
6
+ "muted": "#6e6a86",
7
+ "subtle": "#908caa",
8
+ "text": "#e0def4",
9
+ "love": "#eb6f92",
10
+ "gold": "#f6c177",
11
+ "rose": "#ebbcba",
12
+ "pine": "#31748f",
13
+ "foam": "#9ccfd8",
14
+ "iris": "#c4a7e7",
15
+ "highlightLow": "#21202e",
16
+ "highlightMed": "#403d52",
17
+ "highlightHigh": "#524f67",
18
+ "moonBase": "#232136",
19
+ "moonSurface": "#2a273f",
20
+ "moonOverlay": "#393552",
21
+ "moonMuted": "#6e6a86",
22
+ "moonSubtle": "#908caa",
23
+ "moonText": "#e0def4",
24
+ "dawnBase": "#faf4ed",
25
+ "dawnSurface": "#fffaf3",
26
+ "dawnOverlay": "#f2e9e1",
27
+ "dawnMuted": "#9893a5",
28
+ "dawnSubtle": "#797593",
29
+ "dawnText": "#575279"
30
+ },
31
+ "theme": {
32
+ "primary": {
33
+ "dark": "foam",
34
+ "light": "pine"
35
+ },
36
+ "secondary": {
37
+ "dark": "iris",
38
+ "light": "#907aa9"
39
+ },
40
+ "accent": {
41
+ "dark": "rose",
42
+ "light": "#d7827e"
43
+ },
44
+ "error": {
45
+ "dark": "love",
46
+ "light": "#b4637a"
47
+ },
48
+ "warning": {
49
+ "dark": "gold",
50
+ "light": "#ea9d34"
51
+ },
52
+ "success": {
53
+ "dark": "pine",
54
+ "light": "#286983"
55
+ },
56
+ "info": {
57
+ "dark": "foam",
58
+ "light": "#56949f"
59
+ },
60
+ "text": {
61
+ "dark": "#e0def4",
62
+ "light": "#575279"
63
+ },
64
+ "textMuted": {
65
+ "dark": "muted",
66
+ "light": "dawnMuted"
67
+ },
68
+ "background": {
69
+ "dark": "base",
70
+ "light": "dawnBase"
71
+ },
72
+ "backgroundPanel": {
73
+ "dark": "surface",
74
+ "light": "dawnSurface"
75
+ },
76
+ "backgroundElement": {
77
+ "dark": "overlay",
78
+ "light": "dawnOverlay"
79
+ },
80
+ "border": {
81
+ "dark": "highlightMed",
82
+ "light": "#dfdad9"
83
+ },
84
+ "borderActive": {
85
+ "dark": "foam",
86
+ "light": "pine"
87
+ },
88
+ "borderSubtle": {
89
+ "dark": "highlightLow",
90
+ "light": "#f4ede8"
91
+ },
92
+ "markdownText": {
93
+ "dark": "#e0def4",
94
+ "light": "#575279"
95
+ },
96
+ "markdownHeading": {
97
+ "dark": "iris",
98
+ "light": "#907aa9"
99
+ },
100
+ "markdownLink": {
101
+ "dark": "foam",
102
+ "light": "pine"
103
+ },
104
+ "markdownLinkText": {
105
+ "dark": "rose",
106
+ "light": "#d7827e"
107
+ },
108
+ "markdownCode": {
109
+ "dark": "pine",
110
+ "light": "#286983"
111
+ },
112
+ "markdownBlockQuote": {
113
+ "dark": "muted",
114
+ "light": "dawnMuted"
115
+ },
116
+ "markdownEmph": {
117
+ "dark": "gold",
118
+ "light": "#ea9d34"
119
+ },
120
+ "markdownStrong": {
121
+ "dark": "love",
122
+ "light": "#b4637a"
123
+ },
124
+ "markdownHorizontalRule": {
125
+ "dark": "highlightMed",
126
+ "light": "#dfdad9"
127
+ },
128
+ "markdownListItem": {
129
+ "dark": "foam",
130
+ "light": "pine"
131
+ },
132
+ "markdownListEnumeration": {
133
+ "dark": "rose",
134
+ "light": "#d7827e"
135
+ },
136
+ "markdownImage": {
137
+ "dark": "foam",
138
+ "light": "pine"
139
+ },
140
+ "markdownImageText": {
141
+ "dark": "rose",
142
+ "light": "#d7827e"
143
+ },
144
+ "markdownCodeBlock": {
145
+ "dark": "#e0def4",
146
+ "light": "#575279"
147
+ },
148
+ "syntaxComment": {
149
+ "dark": "muted",
150
+ "light": "dawnMuted"
151
+ },
152
+ "syntaxKeyword": {
153
+ "dark": "pine",
154
+ "light": "#286983"
155
+ },
156
+ "syntaxFunction": {
157
+ "dark": "rose",
158
+ "light": "#d7827e"
159
+ },
160
+ "syntaxVariable": {
161
+ "dark": "#e0def4",
162
+ "light": "#575279"
163
+ },
164
+ "syntaxString": {
165
+ "dark": "gold",
166
+ "light": "#ea9d34"
167
+ },
168
+ "syntaxNumber": {
169
+ "dark": "iris",
170
+ "light": "#907aa9"
171
+ },
172
+ "syntaxType": {
173
+ "dark": "foam",
174
+ "light": "#56949f"
175
+ },
176
+ "syntaxOperator": {
177
+ "dark": "subtle",
178
+ "light": "dawnSubtle"
179
+ },
180
+ "syntaxPunctuation": {
181
+ "dark": "subtle",
182
+ "light": "dawnSubtle"
183
+ }
184
+ },
185
+ "name": "Rosepine",
186
+ "$schema": "../../../schema/house-theme.schema.json"
187
+ }
@@ -0,0 +1,176 @@
1
+ {
2
+ "defs": {
3
+ "base03": "#002b36",
4
+ "base02": "#073642",
5
+ "base01": "#586e75",
6
+ "base00": "#657b83",
7
+ "base0": "#839496",
8
+ "base1": "#93a1a1",
9
+ "base2": "#eee8d5",
10
+ "base3": "#fdf6e3",
11
+ "yellow": "#b58900",
12
+ "orange": "#cb4b16",
13
+ "red": "#dc322f",
14
+ "magenta": "#d33682",
15
+ "violet": "#6c71c4",
16
+ "blue": "#268bd2",
17
+ "cyan": "#2aa198",
18
+ "green": "#859900"
19
+ },
20
+ "theme": {
21
+ "primary": {
22
+ "dark": "blue",
23
+ "light": "blue"
24
+ },
25
+ "secondary": {
26
+ "dark": "violet",
27
+ "light": "violet"
28
+ },
29
+ "accent": {
30
+ "dark": "cyan",
31
+ "light": "cyan"
32
+ },
33
+ "error": {
34
+ "dark": "red",
35
+ "light": "red"
36
+ },
37
+ "warning": {
38
+ "dark": "yellow",
39
+ "light": "yellow"
40
+ },
41
+ "success": {
42
+ "dark": "green",
43
+ "light": "green"
44
+ },
45
+ "info": {
46
+ "dark": "orange",
47
+ "light": "orange"
48
+ },
49
+ "text": {
50
+ "dark": "base0",
51
+ "light": "base00"
52
+ },
53
+ "textMuted": {
54
+ "dark": "base01",
55
+ "light": "base1"
56
+ },
57
+ "background": {
58
+ "dark": "base03",
59
+ "light": "base3"
60
+ },
61
+ "backgroundPanel": {
62
+ "dark": "base02",
63
+ "light": "base2"
64
+ },
65
+ "backgroundElement": {
66
+ "dark": "#073642",
67
+ "light": "#eee8d5"
68
+ },
69
+ "border": {
70
+ "dark": "base02",
71
+ "light": "base2"
72
+ },
73
+ "borderActive": {
74
+ "dark": "base01",
75
+ "light": "base1"
76
+ },
77
+ "borderSubtle": {
78
+ "dark": "#073642",
79
+ "light": "#eee8d5"
80
+ },
81
+ "markdownText": {
82
+ "dark": "base0",
83
+ "light": "base00"
84
+ },
85
+ "markdownHeading": {
86
+ "dark": "blue",
87
+ "light": "blue"
88
+ },
89
+ "markdownLink": {
90
+ "dark": "cyan",
91
+ "light": "cyan"
92
+ },
93
+ "markdownLinkText": {
94
+ "dark": "violet",
95
+ "light": "violet"
96
+ },
97
+ "markdownCode": {
98
+ "dark": "green",
99
+ "light": "green"
100
+ },
101
+ "markdownBlockQuote": {
102
+ "dark": "base01",
103
+ "light": "base1"
104
+ },
105
+ "markdownEmph": {
106
+ "dark": "yellow",
107
+ "light": "yellow"
108
+ },
109
+ "markdownStrong": {
110
+ "dark": "orange",
111
+ "light": "orange"
112
+ },
113
+ "markdownHorizontalRule": {
114
+ "dark": "base01",
115
+ "light": "base1"
116
+ },
117
+ "markdownListItem": {
118
+ "dark": "blue",
119
+ "light": "blue"
120
+ },
121
+ "markdownListEnumeration": {
122
+ "dark": "cyan",
123
+ "light": "cyan"
124
+ },
125
+ "markdownImage": {
126
+ "dark": "cyan",
127
+ "light": "cyan"
128
+ },
129
+ "markdownImageText": {
130
+ "dark": "violet",
131
+ "light": "violet"
132
+ },
133
+ "markdownCodeBlock": {
134
+ "dark": "base0",
135
+ "light": "base00"
136
+ },
137
+ "syntaxComment": {
138
+ "dark": "base01",
139
+ "light": "base1"
140
+ },
141
+ "syntaxKeyword": {
142
+ "dark": "green",
143
+ "light": "green"
144
+ },
145
+ "syntaxFunction": {
146
+ "dark": "blue",
147
+ "light": "blue"
148
+ },
149
+ "syntaxVariable": {
150
+ "dark": "cyan",
151
+ "light": "cyan"
152
+ },
153
+ "syntaxString": {
154
+ "dark": "cyan",
155
+ "light": "cyan"
156
+ },
157
+ "syntaxNumber": {
158
+ "dark": "magenta",
159
+ "light": "magenta"
160
+ },
161
+ "syntaxType": {
162
+ "dark": "yellow",
163
+ "light": "yellow"
164
+ },
165
+ "syntaxOperator": {
166
+ "dark": "green",
167
+ "light": "green"
168
+ },
169
+ "syntaxPunctuation": {
170
+ "dark": "base0",
171
+ "light": "base00"
172
+ }
173
+ },
174
+ "name": "Solarized",
175
+ "$schema": "../../../schema/house-theme.schema.json"
176
+ }
@@ -0,0 +1,179 @@
1
+ {
2
+ "defs": {
3
+ "background": "#262335",
4
+ "backgroundAlt": "#1e1a29",
5
+ "backgroundPanel": "#2a2139",
6
+ "foreground": "#ffffff",
7
+ "foregroundMuted": "#848bbd",
8
+ "pink": "#ff7edb",
9
+ "pinkBright": "#ff92df",
10
+ "cyan": "#36f9f6",
11
+ "cyanBright": "#72f1f8",
12
+ "yellow": "#fede5d",
13
+ "yellowBright": "#fff95d",
14
+ "orange": "#ff8b39",
15
+ "orangeBright": "#ff9f43",
16
+ "purple": "#b084eb",
17
+ "purpleBright": "#c792ea",
18
+ "red": "#fe4450",
19
+ "redBright": "#ff5e5b",
20
+ "green": "#72f1b8",
21
+ "greenBright": "#97f1d8"
22
+ },
23
+ "theme": {
24
+ "primary": {
25
+ "dark": "cyan",
26
+ "light": "#00bcd4"
27
+ },
28
+ "secondary": {
29
+ "dark": "pink",
30
+ "light": "#e91e63"
31
+ },
32
+ "accent": {
33
+ "dark": "purple",
34
+ "light": "#9c27b0"
35
+ },
36
+ "error": {
37
+ "dark": "red",
38
+ "light": "#f44336"
39
+ },
40
+ "warning": {
41
+ "dark": "yellow",
42
+ "light": "#ff9800"
43
+ },
44
+ "success": {
45
+ "dark": "green",
46
+ "light": "#4caf50"
47
+ },
48
+ "info": {
49
+ "dark": "orange",
50
+ "light": "#ff5722"
51
+ },
52
+ "text": {
53
+ "dark": "foreground",
54
+ "light": "#262335"
55
+ },
56
+ "textMuted": {
57
+ "dark": "foregroundMuted",
58
+ "light": "#5c5c8a"
59
+ },
60
+ "background": {
61
+ "dark": "#262335",
62
+ "light": "#fafafa"
63
+ },
64
+ "backgroundPanel": {
65
+ "dark": "#1e1a29",
66
+ "light": "#f5f5f5"
67
+ },
68
+ "backgroundElement": {
69
+ "dark": "#2a2139",
70
+ "light": "#eeeeee"
71
+ },
72
+ "border": {
73
+ "dark": "#495495",
74
+ "light": "#e0e0e0"
75
+ },
76
+ "borderActive": {
77
+ "dark": "cyan",
78
+ "light": "#00bcd4"
79
+ },
80
+ "borderSubtle": {
81
+ "dark": "#241b2f",
82
+ "light": "#f0f0f0"
83
+ },
84
+ "markdownText": {
85
+ "dark": "foreground",
86
+ "light": "#262335"
87
+ },
88
+ "markdownHeading": {
89
+ "dark": "pink",
90
+ "light": "#e91e63"
91
+ },
92
+ "markdownLink": {
93
+ "dark": "cyan",
94
+ "light": "#00bcd4"
95
+ },
96
+ "markdownLinkText": {
97
+ "dark": "purple",
98
+ "light": "#9c27b0"
99
+ },
100
+ "markdownCode": {
101
+ "dark": "green",
102
+ "light": "#4caf50"
103
+ },
104
+ "markdownBlockQuote": {
105
+ "dark": "foregroundMuted",
106
+ "light": "#5c5c8a"
107
+ },
108
+ "markdownEmph": {
109
+ "dark": "yellow",
110
+ "light": "#ff9800"
111
+ },
112
+ "markdownStrong": {
113
+ "dark": "orange",
114
+ "light": "#ff5722"
115
+ },
116
+ "markdownHorizontalRule": {
117
+ "dark": "#495495",
118
+ "light": "#e0e0e0"
119
+ },
120
+ "markdownListItem": {
121
+ "dark": "cyan",
122
+ "light": "#00bcd4"
123
+ },
124
+ "markdownListEnumeration": {
125
+ "dark": "purple",
126
+ "light": "#9c27b0"
127
+ },
128
+ "markdownImage": {
129
+ "dark": "cyan",
130
+ "light": "#00bcd4"
131
+ },
132
+ "markdownImageText": {
133
+ "dark": "purple",
134
+ "light": "#9c27b0"
135
+ },
136
+ "markdownCodeBlock": {
137
+ "dark": "foreground",
138
+ "light": "#262335"
139
+ },
140
+ "syntaxComment": {
141
+ "dark": "foregroundMuted",
142
+ "light": "#5c5c8a"
143
+ },
144
+ "syntaxKeyword": {
145
+ "dark": "pink",
146
+ "light": "#e91e63"
147
+ },
148
+ "syntaxFunction": {
149
+ "dark": "orange",
150
+ "light": "#ff5722"
151
+ },
152
+ "syntaxVariable": {
153
+ "dark": "foreground",
154
+ "light": "#262335"
155
+ },
156
+ "syntaxString": {
157
+ "dark": "yellow",
158
+ "light": "#ff9800"
159
+ },
160
+ "syntaxNumber": {
161
+ "dark": "purple",
162
+ "light": "#9c27b0"
163
+ },
164
+ "syntaxType": {
165
+ "dark": "cyan",
166
+ "light": "#00bcd4"
167
+ },
168
+ "syntaxOperator": {
169
+ "dark": "pink",
170
+ "light": "#e91e63"
171
+ },
172
+ "syntaxPunctuation": {
173
+ "dark": "foreground",
174
+ "light": "#262335"
175
+ }
176
+ },
177
+ "name": "Synthwave84",
178
+ "$schema": "../../../schema/house-theme.schema.json"
179
+ }