@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,196 @@
1
+ {
2
+ "defs": {
3
+ "darkStep1": "#1a1b26",
4
+ "darkStep2": "#1e2030",
5
+ "darkStep3": "#222436",
6
+ "darkStep4": "#292e42",
7
+ "darkStep5": "#3b4261",
8
+ "darkStep6": "#545c7e",
9
+ "darkStep7": "#737aa2",
10
+ "darkStep8": "#9099b2",
11
+ "darkStep9": "#82aaff",
12
+ "darkStep10": "#89b4fa",
13
+ "darkStep11": "#828bb8",
14
+ "darkStep12": "#c8d3f5",
15
+ "darkRed": "#ff757f",
16
+ "darkOrange": "#ff966c",
17
+ "darkYellow": "#ffc777",
18
+ "darkGreen": "#c3e88d",
19
+ "darkCyan": "#86e1fc",
20
+ "darkPurple": "#c099ff",
21
+ "lightStep1": "#e1e2e7",
22
+ "lightStep2": "#d5d6db",
23
+ "lightStep3": "#c8c9ce",
24
+ "lightStep4": "#b9bac1",
25
+ "lightStep5": "#a8aecb",
26
+ "lightStep6": "#9699a8",
27
+ "lightStep7": "#737a8c",
28
+ "lightStep8": "#5a607d",
29
+ "lightStep9": "#2e7de9",
30
+ "lightStep10": "#1a6ce7",
31
+ "lightStep11": "#8990a3",
32
+ "lightStep12": "#3760bf",
33
+ "lightRed": "#f52a65",
34
+ "lightOrange": "#b15c00",
35
+ "lightYellow": "#8c6c3e",
36
+ "lightGreen": "#587539",
37
+ "lightCyan": "#007197",
38
+ "lightPurple": "#9854f1"
39
+ },
40
+ "theme": {
41
+ "primary": {
42
+ "dark": "darkStep9",
43
+ "light": "lightStep9"
44
+ },
45
+ "secondary": {
46
+ "dark": "darkPurple",
47
+ "light": "lightPurple"
48
+ },
49
+ "accent": {
50
+ "dark": "darkOrange",
51
+ "light": "lightOrange"
52
+ },
53
+ "error": {
54
+ "dark": "darkRed",
55
+ "light": "lightRed"
56
+ },
57
+ "warning": {
58
+ "dark": "darkOrange",
59
+ "light": "lightOrange"
60
+ },
61
+ "success": {
62
+ "dark": "darkGreen",
63
+ "light": "lightGreen"
64
+ },
65
+ "info": {
66
+ "dark": "darkStep9",
67
+ "light": "lightStep9"
68
+ },
69
+ "text": {
70
+ "dark": "darkStep12",
71
+ "light": "lightStep12"
72
+ },
73
+ "textMuted": {
74
+ "dark": "darkStep11",
75
+ "light": "lightStep11"
76
+ },
77
+ "background": {
78
+ "dark": "darkStep1",
79
+ "light": "lightStep1"
80
+ },
81
+ "backgroundPanel": {
82
+ "dark": "darkStep2",
83
+ "light": "lightStep2"
84
+ },
85
+ "backgroundElement": {
86
+ "dark": "darkStep3",
87
+ "light": "lightStep3"
88
+ },
89
+ "border": {
90
+ "dark": "darkStep7",
91
+ "light": "lightStep7"
92
+ },
93
+ "borderActive": {
94
+ "dark": "darkStep8",
95
+ "light": "lightStep8"
96
+ },
97
+ "borderSubtle": {
98
+ "dark": "darkStep6",
99
+ "light": "lightStep6"
100
+ },
101
+ "markdownText": {
102
+ "dark": "darkStep12",
103
+ "light": "lightStep12"
104
+ },
105
+ "markdownHeading": {
106
+ "dark": "darkPurple",
107
+ "light": "lightPurple"
108
+ },
109
+ "markdownLink": {
110
+ "dark": "darkStep9",
111
+ "light": "lightStep9"
112
+ },
113
+ "markdownLinkText": {
114
+ "dark": "darkCyan",
115
+ "light": "lightCyan"
116
+ },
117
+ "markdownCode": {
118
+ "dark": "darkGreen",
119
+ "light": "lightGreen"
120
+ },
121
+ "markdownBlockQuote": {
122
+ "dark": "darkYellow",
123
+ "light": "lightYellow"
124
+ },
125
+ "markdownEmph": {
126
+ "dark": "darkYellow",
127
+ "light": "lightYellow"
128
+ },
129
+ "markdownStrong": {
130
+ "dark": "darkOrange",
131
+ "light": "lightOrange"
132
+ },
133
+ "markdownHorizontalRule": {
134
+ "dark": "darkStep11",
135
+ "light": "lightStep11"
136
+ },
137
+ "markdownListItem": {
138
+ "dark": "darkStep9",
139
+ "light": "lightStep9"
140
+ },
141
+ "markdownListEnumeration": {
142
+ "dark": "darkCyan",
143
+ "light": "lightCyan"
144
+ },
145
+ "markdownImage": {
146
+ "dark": "darkStep9",
147
+ "light": "lightStep9"
148
+ },
149
+ "markdownImageText": {
150
+ "dark": "darkCyan",
151
+ "light": "lightCyan"
152
+ },
153
+ "markdownCodeBlock": {
154
+ "dark": "darkStep12",
155
+ "light": "lightStep12"
156
+ },
157
+ "syntaxComment": {
158
+ "dark": "darkStep11",
159
+ "light": "lightStep11"
160
+ },
161
+ "syntaxKeyword": {
162
+ "dark": "darkPurple",
163
+ "light": "lightPurple"
164
+ },
165
+ "syntaxFunction": {
166
+ "dark": "darkStep9",
167
+ "light": "lightStep9"
168
+ },
169
+ "syntaxVariable": {
170
+ "dark": "darkRed",
171
+ "light": "lightRed"
172
+ },
173
+ "syntaxString": {
174
+ "dark": "darkGreen",
175
+ "light": "lightGreen"
176
+ },
177
+ "syntaxNumber": {
178
+ "dark": "darkOrange",
179
+ "light": "lightOrange"
180
+ },
181
+ "syntaxType": {
182
+ "dark": "darkYellow",
183
+ "light": "lightYellow"
184
+ },
185
+ "syntaxOperator": {
186
+ "dark": "darkCyan",
187
+ "light": "lightCyan"
188
+ },
189
+ "syntaxPunctuation": {
190
+ "dark": "darkStep12",
191
+ "light": "lightStep12"
192
+ }
193
+ },
194
+ "name": "Tokyonight",
195
+ "$schema": "../../../schema/house-theme.schema.json"
196
+ }
@@ -0,0 +1,198 @@
1
+ {
2
+ "defs": {
3
+ "background100": "#0A0A0A",
4
+ "background200": "#000000",
5
+ "gray100": "#1A1A1A",
6
+ "gray200": "#1F1F1F",
7
+ "gray300": "#292929",
8
+ "gray400": "#2E2E2E",
9
+ "gray500": "#454545",
10
+ "gray600": "#878787",
11
+ "gray700": "#8F8F8F",
12
+ "gray900": "#A1A1A1",
13
+ "gray1000": "#EDEDED",
14
+ "blue600": "#0099FF",
15
+ "blue700": "#0070F3",
16
+ "blue900": "#52A8FF",
17
+ "blue1000": "#EBF8FF",
18
+ "red700": "#E5484D",
19
+ "red900": "#FF6166",
20
+ "red1000": "#FDECED",
21
+ "amber700": "#FFB224",
22
+ "amber900": "#F2A700",
23
+ "amber1000": "#FDF4DC",
24
+ "green700": "#46A758",
25
+ "green900": "#63C46D",
26
+ "green1000": "#E6F9E9",
27
+ "teal700": "#12A594",
28
+ "teal900": "#0AC7AC",
29
+ "purple700": "#8E4EC6",
30
+ "purple900": "#BF7AF0",
31
+ "pink700": "#E93D82",
32
+ "pink900": "#F75590",
33
+ "highlightPink": "#FF0080",
34
+ "highlightPurple": "#F81CE5",
35
+ "cyan": "#50E3C2",
36
+ "lightBackground": "#FFFFFF",
37
+ "lightGray100": "#FAFAFA",
38
+ "lightGray200": "#EAEAEA",
39
+ "lightGray600": "#666666",
40
+ "lightGray1000": "#171717"
41
+ },
42
+ "theme": {
43
+ "primary": {
44
+ "dark": "blue700",
45
+ "light": "blue700"
46
+ },
47
+ "secondary": {
48
+ "dark": "blue900",
49
+ "light": "#0062D1"
50
+ },
51
+ "accent": {
52
+ "dark": "purple700",
53
+ "light": "purple700"
54
+ },
55
+ "error": {
56
+ "dark": "red700",
57
+ "light": "#DC3545"
58
+ },
59
+ "warning": {
60
+ "dark": "amber700",
61
+ "light": "#FF9500"
62
+ },
63
+ "success": {
64
+ "dark": "green700",
65
+ "light": "#388E3C"
66
+ },
67
+ "info": {
68
+ "dark": "blue900",
69
+ "light": "blue700"
70
+ },
71
+ "text": {
72
+ "dark": "gray1000",
73
+ "light": "lightGray1000"
74
+ },
75
+ "textMuted": {
76
+ "dark": "gray600",
77
+ "light": "lightGray600"
78
+ },
79
+ "background": {
80
+ "dark": "background200",
81
+ "light": "lightBackground"
82
+ },
83
+ "backgroundPanel": {
84
+ "dark": "gray100",
85
+ "light": "lightGray100"
86
+ },
87
+ "backgroundElement": {
88
+ "dark": "gray300",
89
+ "light": "lightGray200"
90
+ },
91
+ "border": {
92
+ "dark": "gray200",
93
+ "light": "lightGray200"
94
+ },
95
+ "borderActive": {
96
+ "dark": "gray500",
97
+ "light": "#999999"
98
+ },
99
+ "borderSubtle": {
100
+ "dark": "gray100",
101
+ "light": "#EAEAEA"
102
+ },
103
+ "markdownText": {
104
+ "dark": "gray1000",
105
+ "light": "lightGray1000"
106
+ },
107
+ "markdownHeading": {
108
+ "dark": "purple900",
109
+ "light": "purple700"
110
+ },
111
+ "markdownLink": {
112
+ "dark": "blue900",
113
+ "light": "blue700"
114
+ },
115
+ "markdownLinkText": {
116
+ "dark": "teal900",
117
+ "light": "teal700"
118
+ },
119
+ "markdownCode": {
120
+ "dark": "green900",
121
+ "light": "green700"
122
+ },
123
+ "markdownBlockQuote": {
124
+ "dark": "gray600",
125
+ "light": "lightGray600"
126
+ },
127
+ "markdownEmph": {
128
+ "dark": "amber900",
129
+ "light": "amber700"
130
+ },
131
+ "markdownStrong": {
132
+ "dark": "pink900",
133
+ "light": "pink700"
134
+ },
135
+ "markdownHorizontalRule": {
136
+ "dark": "gray500",
137
+ "light": "#999999"
138
+ },
139
+ "markdownListItem": {
140
+ "dark": "gray1000",
141
+ "light": "lightGray1000"
142
+ },
143
+ "markdownListEnumeration": {
144
+ "dark": "blue900",
145
+ "light": "blue700"
146
+ },
147
+ "markdownImage": {
148
+ "dark": "teal900",
149
+ "light": "teal700"
150
+ },
151
+ "markdownImageText": {
152
+ "dark": "cyan",
153
+ "light": "teal700"
154
+ },
155
+ "markdownCodeBlock": {
156
+ "dark": "gray1000",
157
+ "light": "lightGray1000"
158
+ },
159
+ "syntaxComment": {
160
+ "dark": "gray600",
161
+ "light": "#888888"
162
+ },
163
+ "syntaxKeyword": {
164
+ "dark": "pink900",
165
+ "light": "pink700"
166
+ },
167
+ "syntaxFunction": {
168
+ "dark": "purple900",
169
+ "light": "purple700"
170
+ },
171
+ "syntaxVariable": {
172
+ "dark": "blue900",
173
+ "light": "blue700"
174
+ },
175
+ "syntaxString": {
176
+ "dark": "green900",
177
+ "light": "green700"
178
+ },
179
+ "syntaxNumber": {
180
+ "dark": "amber900",
181
+ "light": "amber700"
182
+ },
183
+ "syntaxType": {
184
+ "dark": "teal900",
185
+ "light": "teal700"
186
+ },
187
+ "syntaxOperator": {
188
+ "dark": "pink900",
189
+ "light": "pink700"
190
+ },
191
+ "syntaxPunctuation": {
192
+ "dark": "gray1000",
193
+ "light": "lightGray1000"
194
+ }
195
+ },
196
+ "name": "Vercel",
197
+ "$schema": "../../../schema/house-theme.schema.json"
198
+ }
@@ -0,0 +1,171 @@
1
+ {
2
+ "defs": {
3
+ "vesperBg": "#101010",
4
+ "vesperFg": "#FFF",
5
+ "vesperComment": "#8b8b8b",
6
+ "vesperKeyword": "#A0A0A0",
7
+ "vesperFunction": "#FFC799",
8
+ "vesperString": "#99FFE4",
9
+ "vesperNumber": "#FFC799",
10
+ "vesperError": "#FF8080",
11
+ "vesperWarning": "#FFC799",
12
+ "vesperSuccess": "#99FFE4",
13
+ "vesperMuted": "#A0A0A0"
14
+ },
15
+ "theme": {
16
+ "primary": {
17
+ "dark": "#FFC799",
18
+ "light": "#FFC799"
19
+ },
20
+ "secondary": {
21
+ "dark": "#99FFE4",
22
+ "light": "#99FFE4"
23
+ },
24
+ "accent": {
25
+ "dark": "#FFC799",
26
+ "light": "#FFC799"
27
+ },
28
+ "error": {
29
+ "dark": "vesperError",
30
+ "light": "vesperError"
31
+ },
32
+ "warning": {
33
+ "dark": "vesperWarning",
34
+ "light": "vesperWarning"
35
+ },
36
+ "success": {
37
+ "dark": "vesperSuccess",
38
+ "light": "vesperSuccess"
39
+ },
40
+ "info": {
41
+ "dark": "#FFC799",
42
+ "light": "#FFC799"
43
+ },
44
+ "text": {
45
+ "dark": "vesperFg",
46
+ "light": "vesperBg"
47
+ },
48
+ "textMuted": {
49
+ "dark": "vesperMuted",
50
+ "light": "vesperMuted"
51
+ },
52
+ "background": {
53
+ "dark": "vesperBg",
54
+ "light": "#FFF"
55
+ },
56
+ "backgroundPanel": {
57
+ "dark": "vesperBg",
58
+ "light": "#F0F0F0"
59
+ },
60
+ "backgroundElement": {
61
+ "dark": "vesperBg",
62
+ "light": "#E0E0E0"
63
+ },
64
+ "border": {
65
+ "dark": "#282828",
66
+ "light": "#D0D0D0"
67
+ },
68
+ "borderActive": {
69
+ "dark": "#FFC799",
70
+ "light": "#FFC799"
71
+ },
72
+ "borderSubtle": {
73
+ "dark": "#1C1C1C",
74
+ "light": "#E8E8E8"
75
+ },
76
+ "markdownText": {
77
+ "dark": "vesperFg",
78
+ "light": "vesperBg"
79
+ },
80
+ "markdownHeading": {
81
+ "dark": "#FFC799",
82
+ "light": "#FFC799"
83
+ },
84
+ "markdownLink": {
85
+ "dark": "#FFC799",
86
+ "light": "#FFC799"
87
+ },
88
+ "markdownLinkText": {
89
+ "dark": "vesperMuted",
90
+ "light": "vesperMuted"
91
+ },
92
+ "markdownCode": {
93
+ "dark": "vesperMuted",
94
+ "light": "vesperMuted"
95
+ },
96
+ "markdownBlockQuote": {
97
+ "dark": "vesperFg",
98
+ "light": "vesperBg"
99
+ },
100
+ "markdownEmph": {
101
+ "dark": "vesperFg",
102
+ "light": "vesperBg"
103
+ },
104
+ "markdownStrong": {
105
+ "dark": "vesperFg",
106
+ "light": "vesperBg"
107
+ },
108
+ "markdownHorizontalRule": {
109
+ "dark": "#65737E",
110
+ "light": "#65737E"
111
+ },
112
+ "markdownListItem": {
113
+ "dark": "vesperFg",
114
+ "light": "vesperBg"
115
+ },
116
+ "markdownListEnumeration": {
117
+ "dark": "vesperFg",
118
+ "light": "vesperBg"
119
+ },
120
+ "markdownImage": {
121
+ "dark": "#FFC799",
122
+ "light": "#FFC799"
123
+ },
124
+ "markdownImageText": {
125
+ "dark": "vesperMuted",
126
+ "light": "vesperMuted"
127
+ },
128
+ "markdownCodeBlock": {
129
+ "dark": "vesperFg",
130
+ "light": "vesperBg"
131
+ },
132
+ "syntaxComment": {
133
+ "dark": "vesperComment",
134
+ "light": "vesperComment"
135
+ },
136
+ "syntaxKeyword": {
137
+ "dark": "vesperKeyword",
138
+ "light": "vesperKeyword"
139
+ },
140
+ "syntaxFunction": {
141
+ "dark": "vesperFunction",
142
+ "light": "vesperFunction"
143
+ },
144
+ "syntaxVariable": {
145
+ "dark": "vesperFg",
146
+ "light": "vesperBg"
147
+ },
148
+ "syntaxString": {
149
+ "dark": "vesperString",
150
+ "light": "vesperString"
151
+ },
152
+ "syntaxNumber": {
153
+ "dark": "vesperNumber",
154
+ "light": "vesperNumber"
155
+ },
156
+ "syntaxType": {
157
+ "dark": "vesperFunction",
158
+ "light": "vesperFunction"
159
+ },
160
+ "syntaxOperator": {
161
+ "dark": "vesperKeyword",
162
+ "light": "vesperKeyword"
163
+ },
164
+ "syntaxPunctuation": {
165
+ "dark": "vesperFg",
166
+ "light": "vesperBg"
167
+ }
168
+ },
169
+ "name": "Vesper",
170
+ "$schema": "../../../schema/house-theme.schema.json"
171
+ }