@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,172 @@
1
+ {
2
+ "defs": {
3
+ "background": "#282a36",
4
+ "currentLine": "#44475a",
5
+ "selection": "#44475a",
6
+ "foreground": "#f8f8f2",
7
+ "comment": "#6272a4",
8
+ "cyan": "#8be9fd",
9
+ "green": "#50fa7b",
10
+ "orange": "#ffb86c",
11
+ "pink": "#ff79c6",
12
+ "purple": "#bd93f9",
13
+ "red": "#ff5555",
14
+ "yellow": "#f1fa8c"
15
+ },
16
+ "theme": {
17
+ "primary": {
18
+ "dark": "purple",
19
+ "light": "purple"
20
+ },
21
+ "secondary": {
22
+ "dark": "pink",
23
+ "light": "pink"
24
+ },
25
+ "accent": {
26
+ "dark": "cyan",
27
+ "light": "cyan"
28
+ },
29
+ "error": {
30
+ "dark": "red",
31
+ "light": "red"
32
+ },
33
+ "warning": {
34
+ "dark": "yellow",
35
+ "light": "yellow"
36
+ },
37
+ "success": {
38
+ "dark": "green",
39
+ "light": "green"
40
+ },
41
+ "info": {
42
+ "dark": "orange",
43
+ "light": "orange"
44
+ },
45
+ "text": {
46
+ "dark": "foreground",
47
+ "light": "#282a36"
48
+ },
49
+ "textMuted": {
50
+ "dark": "comment",
51
+ "light": "#6272a4"
52
+ },
53
+ "background": {
54
+ "dark": "#282a36",
55
+ "light": "#f8f8f2"
56
+ },
57
+ "backgroundPanel": {
58
+ "dark": "#21222c",
59
+ "light": "#e8e8e2"
60
+ },
61
+ "backgroundElement": {
62
+ "dark": "currentLine",
63
+ "light": "#d8d8d2"
64
+ },
65
+ "border": {
66
+ "dark": "currentLine",
67
+ "light": "#c8c8c2"
68
+ },
69
+ "borderActive": {
70
+ "dark": "purple",
71
+ "light": "purple"
72
+ },
73
+ "borderSubtle": {
74
+ "dark": "#191a21",
75
+ "light": "#e0e0e0"
76
+ },
77
+ "markdownText": {
78
+ "dark": "foreground",
79
+ "light": "#282a36"
80
+ },
81
+ "markdownHeading": {
82
+ "dark": "purple",
83
+ "light": "purple"
84
+ },
85
+ "markdownLink": {
86
+ "dark": "cyan",
87
+ "light": "cyan"
88
+ },
89
+ "markdownLinkText": {
90
+ "dark": "pink",
91
+ "light": "pink"
92
+ },
93
+ "markdownCode": {
94
+ "dark": "green",
95
+ "light": "green"
96
+ },
97
+ "markdownBlockQuote": {
98
+ "dark": "comment",
99
+ "light": "#6272a4"
100
+ },
101
+ "markdownEmph": {
102
+ "dark": "yellow",
103
+ "light": "yellow"
104
+ },
105
+ "markdownStrong": {
106
+ "dark": "orange",
107
+ "light": "orange"
108
+ },
109
+ "markdownHorizontalRule": {
110
+ "dark": "comment",
111
+ "light": "#6272a4"
112
+ },
113
+ "markdownListItem": {
114
+ "dark": "purple",
115
+ "light": "purple"
116
+ },
117
+ "markdownListEnumeration": {
118
+ "dark": "cyan",
119
+ "light": "cyan"
120
+ },
121
+ "markdownImage": {
122
+ "dark": "cyan",
123
+ "light": "cyan"
124
+ },
125
+ "markdownImageText": {
126
+ "dark": "pink",
127
+ "light": "pink"
128
+ },
129
+ "markdownCodeBlock": {
130
+ "dark": "foreground",
131
+ "light": "#282a36"
132
+ },
133
+ "syntaxComment": {
134
+ "dark": "comment",
135
+ "light": "#6272a4"
136
+ },
137
+ "syntaxKeyword": {
138
+ "dark": "pink",
139
+ "light": "pink"
140
+ },
141
+ "syntaxFunction": {
142
+ "dark": "green",
143
+ "light": "green"
144
+ },
145
+ "syntaxVariable": {
146
+ "dark": "foreground",
147
+ "light": "#282a36"
148
+ },
149
+ "syntaxString": {
150
+ "dark": "yellow",
151
+ "light": "yellow"
152
+ },
153
+ "syntaxNumber": {
154
+ "dark": "purple",
155
+ "light": "purple"
156
+ },
157
+ "syntaxType": {
158
+ "dark": "cyan",
159
+ "light": "cyan"
160
+ },
161
+ "syntaxOperator": {
162
+ "dark": "pink",
163
+ "light": "pink"
164
+ },
165
+ "syntaxPunctuation": {
166
+ "dark": "foreground",
167
+ "light": "#282a36"
168
+ }
169
+ },
170
+ "name": "Dracula",
171
+ "$schema": "../../../schema/house-theme.schema.json"
172
+ }
@@ -0,0 +1,194 @@
1
+ {
2
+ "defs": {
3
+ "darkStep1": "#2d353b",
4
+ "darkStep2": "#333c43",
5
+ "darkStep3": "#343f44",
6
+ "darkStep4": "#3d484d",
7
+ "darkStep5": "#475258",
8
+ "darkStep6": "#7a8478",
9
+ "darkStep7": "#859289",
10
+ "darkStep8": "#9da9a0",
11
+ "darkStep9": "#a7c080",
12
+ "darkStep10": "#83c092",
13
+ "darkStep11": "#7a8478",
14
+ "darkStep12": "#d3c6aa",
15
+ "darkRed": "#e67e80",
16
+ "darkOrange": "#e69875",
17
+ "darkGreen": "#a7c080",
18
+ "darkCyan": "#83c092",
19
+ "darkYellow": "#dbbc7f",
20
+ "lightStep1": "#fdf6e3",
21
+ "lightStep2": "#efebd4",
22
+ "lightStep3": "#f4f0d9",
23
+ "lightStep4": "#efebd4",
24
+ "lightStep5": "#e6e2cc",
25
+ "lightStep6": "#a6b0a0",
26
+ "lightStep7": "#939f91",
27
+ "lightStep8": "#829181",
28
+ "lightStep9": "#8da101",
29
+ "lightStep10": "#35a77c",
30
+ "lightStep11": "#a6b0a0",
31
+ "lightStep12": "#5c6a72",
32
+ "lightRed": "#f85552",
33
+ "lightOrange": "#f57d26",
34
+ "lightGreen": "#8da101",
35
+ "lightCyan": "#35a77c",
36
+ "lightYellow": "#dfa000"
37
+ },
38
+ "theme": {
39
+ "primary": {
40
+ "dark": "darkStep9",
41
+ "light": "lightStep9"
42
+ },
43
+ "secondary": {
44
+ "dark": "#7fbbb3",
45
+ "light": "#3a94c5"
46
+ },
47
+ "accent": {
48
+ "dark": "#d699b6",
49
+ "light": "#df69ba"
50
+ },
51
+ "error": {
52
+ "dark": "darkRed",
53
+ "light": "lightRed"
54
+ },
55
+ "warning": {
56
+ "dark": "darkOrange",
57
+ "light": "lightOrange"
58
+ },
59
+ "success": {
60
+ "dark": "darkGreen",
61
+ "light": "lightGreen"
62
+ },
63
+ "info": {
64
+ "dark": "darkCyan",
65
+ "light": "lightCyan"
66
+ },
67
+ "text": {
68
+ "dark": "darkStep12",
69
+ "light": "lightStep12"
70
+ },
71
+ "textMuted": {
72
+ "dark": "darkStep11",
73
+ "light": "lightStep11"
74
+ },
75
+ "background": {
76
+ "dark": "darkStep1",
77
+ "light": "lightStep1"
78
+ },
79
+ "backgroundPanel": {
80
+ "dark": "darkStep2",
81
+ "light": "lightStep2"
82
+ },
83
+ "backgroundElement": {
84
+ "dark": "darkStep3",
85
+ "light": "lightStep3"
86
+ },
87
+ "border": {
88
+ "dark": "darkStep7",
89
+ "light": "lightStep7"
90
+ },
91
+ "borderActive": {
92
+ "dark": "darkStep8",
93
+ "light": "lightStep8"
94
+ },
95
+ "borderSubtle": {
96
+ "dark": "darkStep6",
97
+ "light": "lightStep6"
98
+ },
99
+ "markdownText": {
100
+ "dark": "darkStep12",
101
+ "light": "lightStep12"
102
+ },
103
+ "markdownHeading": {
104
+ "dark": "#d699b6",
105
+ "light": "#df69ba"
106
+ },
107
+ "markdownLink": {
108
+ "dark": "darkStep9",
109
+ "light": "lightStep9"
110
+ },
111
+ "markdownLinkText": {
112
+ "dark": "darkCyan",
113
+ "light": "lightCyan"
114
+ },
115
+ "markdownCode": {
116
+ "dark": "darkGreen",
117
+ "light": "lightGreen"
118
+ },
119
+ "markdownBlockQuote": {
120
+ "dark": "darkYellow",
121
+ "light": "lightYellow"
122
+ },
123
+ "markdownEmph": {
124
+ "dark": "darkYellow",
125
+ "light": "lightYellow"
126
+ },
127
+ "markdownStrong": {
128
+ "dark": "darkOrange",
129
+ "light": "lightOrange"
130
+ },
131
+ "markdownHorizontalRule": {
132
+ "dark": "darkStep11",
133
+ "light": "lightStep11"
134
+ },
135
+ "markdownListItem": {
136
+ "dark": "darkStep9",
137
+ "light": "lightStep9"
138
+ },
139
+ "markdownListEnumeration": {
140
+ "dark": "darkCyan",
141
+ "light": "lightCyan"
142
+ },
143
+ "markdownImage": {
144
+ "dark": "darkStep9",
145
+ "light": "lightStep9"
146
+ },
147
+ "markdownImageText": {
148
+ "dark": "darkCyan",
149
+ "light": "lightCyan"
150
+ },
151
+ "markdownCodeBlock": {
152
+ "dark": "darkStep12",
153
+ "light": "lightStep12"
154
+ },
155
+ "syntaxComment": {
156
+ "dark": "darkStep11",
157
+ "light": "lightStep11"
158
+ },
159
+ "syntaxKeyword": {
160
+ "dark": "#d699b6",
161
+ "light": "#df69ba"
162
+ },
163
+ "syntaxFunction": {
164
+ "dark": "darkStep9",
165
+ "light": "lightStep9"
166
+ },
167
+ "syntaxVariable": {
168
+ "dark": "darkRed",
169
+ "light": "lightRed"
170
+ },
171
+ "syntaxString": {
172
+ "dark": "darkGreen",
173
+ "light": "lightGreen"
174
+ },
175
+ "syntaxNumber": {
176
+ "dark": "darkOrange",
177
+ "light": "lightOrange"
178
+ },
179
+ "syntaxType": {
180
+ "dark": "darkYellow",
181
+ "light": "lightYellow"
182
+ },
183
+ "syntaxOperator": {
184
+ "dark": "darkCyan",
185
+ "light": "lightCyan"
186
+ },
187
+ "syntaxPunctuation": {
188
+ "dark": "darkStep12",
189
+ "light": "lightStep12"
190
+ }
191
+ },
192
+ "name": "Everforest",
193
+ "$schema": "../../../schema/house-theme.schema.json"
194
+ }
@@ -0,0 +1,190 @@
1
+ {
2
+ "defs": {
3
+ "black": "#100F0F",
4
+ "base950": "#1C1B1A",
5
+ "base900": "#282726",
6
+ "base850": "#343331",
7
+ "base800": "#403E3C",
8
+ "base700": "#575653",
9
+ "base600": "#6F6E69",
10
+ "base500": "#878580",
11
+ "base300": "#B7B5AC",
12
+ "base200": "#CECDC3",
13
+ "base150": "#DAD8CE",
14
+ "base100": "#E6E4D9",
15
+ "base50": "#F2F0E5",
16
+ "paper": "#FFFCF0",
17
+ "red400": "#D14D41",
18
+ "red600": "#AF3029",
19
+ "orange400": "#DA702C",
20
+ "orange600": "#BC5215",
21
+ "yellow400": "#D0A215",
22
+ "yellow600": "#AD8301",
23
+ "green400": "#879A39",
24
+ "green600": "#66800B",
25
+ "cyan400": "#3AA99F",
26
+ "cyan600": "#24837B",
27
+ "blue400": "#4385BE",
28
+ "blue600": "#205EA6",
29
+ "purple400": "#8B7EC8",
30
+ "purple600": "#5E409D",
31
+ "magenta400": "#CE5D97",
32
+ "magenta600": "#A02F6F"
33
+ },
34
+ "theme": {
35
+ "primary": {
36
+ "dark": "orange400",
37
+ "light": "blue600"
38
+ },
39
+ "secondary": {
40
+ "dark": "blue400",
41
+ "light": "purple600"
42
+ },
43
+ "accent": {
44
+ "dark": "purple400",
45
+ "light": "orange600"
46
+ },
47
+ "error": {
48
+ "dark": "red400",
49
+ "light": "red600"
50
+ },
51
+ "warning": {
52
+ "dark": "orange400",
53
+ "light": "orange600"
54
+ },
55
+ "success": {
56
+ "dark": "green400",
57
+ "light": "green600"
58
+ },
59
+ "info": {
60
+ "dark": "cyan400",
61
+ "light": "cyan600"
62
+ },
63
+ "text": {
64
+ "dark": "base200",
65
+ "light": "black"
66
+ },
67
+ "textMuted": {
68
+ "dark": "base600",
69
+ "light": "base600"
70
+ },
71
+ "background": {
72
+ "dark": "black",
73
+ "light": "paper"
74
+ },
75
+ "backgroundPanel": {
76
+ "dark": "base950",
77
+ "light": "base50"
78
+ },
79
+ "backgroundElement": {
80
+ "dark": "base900",
81
+ "light": "base100"
82
+ },
83
+ "border": {
84
+ "dark": "base700",
85
+ "light": "base300"
86
+ },
87
+ "borderActive": {
88
+ "dark": "base600",
89
+ "light": "base500"
90
+ },
91
+ "borderSubtle": {
92
+ "dark": "base800",
93
+ "light": "base200"
94
+ },
95
+ "markdownText": {
96
+ "dark": "base200",
97
+ "light": "black"
98
+ },
99
+ "markdownHeading": {
100
+ "dark": "purple400",
101
+ "light": "purple600"
102
+ },
103
+ "markdownLink": {
104
+ "dark": "blue400",
105
+ "light": "blue600"
106
+ },
107
+ "markdownLinkText": {
108
+ "dark": "cyan400",
109
+ "light": "cyan600"
110
+ },
111
+ "markdownCode": {
112
+ "dark": "cyan400",
113
+ "light": "cyan600"
114
+ },
115
+ "markdownBlockQuote": {
116
+ "dark": "yellow400",
117
+ "light": "yellow600"
118
+ },
119
+ "markdownEmph": {
120
+ "dark": "yellow400",
121
+ "light": "yellow600"
122
+ },
123
+ "markdownStrong": {
124
+ "dark": "orange400",
125
+ "light": "orange600"
126
+ },
127
+ "markdownHorizontalRule": {
128
+ "dark": "base600",
129
+ "light": "base600"
130
+ },
131
+ "markdownListItem": {
132
+ "dark": "orange400",
133
+ "light": "orange600"
134
+ },
135
+ "markdownListEnumeration": {
136
+ "dark": "cyan400",
137
+ "light": "cyan600"
138
+ },
139
+ "markdownImage": {
140
+ "dark": "magenta400",
141
+ "light": "magenta600"
142
+ },
143
+ "markdownImageText": {
144
+ "dark": "cyan400",
145
+ "light": "cyan600"
146
+ },
147
+ "markdownCodeBlock": {
148
+ "dark": "base200",
149
+ "light": "black"
150
+ },
151
+ "syntaxComment": {
152
+ "dark": "base600",
153
+ "light": "base600"
154
+ },
155
+ "syntaxKeyword": {
156
+ "dark": "green400",
157
+ "light": "green600"
158
+ },
159
+ "syntaxFunction": {
160
+ "dark": "orange400",
161
+ "light": "orange600"
162
+ },
163
+ "syntaxVariable": {
164
+ "dark": "blue400",
165
+ "light": "blue600"
166
+ },
167
+ "syntaxString": {
168
+ "dark": "cyan400",
169
+ "light": "cyan600"
170
+ },
171
+ "syntaxNumber": {
172
+ "dark": "purple400",
173
+ "light": "purple600"
174
+ },
175
+ "syntaxType": {
176
+ "dark": "yellow400",
177
+ "light": "yellow600"
178
+ },
179
+ "syntaxOperator": {
180
+ "dark": "base300",
181
+ "light": "base600"
182
+ },
183
+ "syntaxPunctuation": {
184
+ "dark": "base300",
185
+ "light": "base600"
186
+ }
187
+ },
188
+ "name": "Flexoki",
189
+ "$schema": "../../../schema/house-theme.schema.json"
190
+ }