struct-cli 0.5.4

A smarter tree command with intelligent defaults. Filters out common clutter like node_modules and venv, supports custom ignore patterns, and includes advanced features such as file search, directory summaries, size-aware filtering, and git integration.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
/* CSS Variables for theming */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --border: #30363d;
    --text-primary: #c9d1d9;
    --text-muted: #8b949e;
    --accent: #58a6ff;
    --green: #3fb950;
    --purple: #a371f7;
    --star-opacity: 0.03;
    --scrollbar-track: #0d1117;
    --scrollbar-thumb: #30363d;
    --scrollbar-thumb-hover: #484f58;
}

html.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --border: #d0d7de;
    --text-primary: #24292f;
    --text-muted: #57606a;
    --accent: #0969da;
    --green: #1a7f0e;
    --purple: #6f42c1;
    --star-opacity: 0.08;
    --scrollbar-track: #f6f8fa;
    --scrollbar-thumb: #d0d7de;
    --scrollbar-thumb-hover: #b1bac4;
}

/* Base styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Terminal shadow effect */
.terminal-shadow {
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.8);
}

html.light-mode .terminal-shadow {
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.1);
}

/* Gradient text for headings */
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover lift animation */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px var(--accent-alpha);
}

html.light-mode .hover-lift:hover {
    box-shadow: 0 10px 30px -10px rgba(9, 105, 218, 0.2);
}

/* Code line counter */
.code-line {
    counter-increment: line;
}

.code-line::before {
    content: counter(line);
    display: inline-block;
    width: 2rem;
    margin-right: 1rem;
    color: var(--text-muted);
    text-align: right;
    font-size: 0.875rem;
}

/* Syntax highlighting colors */
.syntax-dir {
    color: var(--accent);
}

.syntax-file {
    color: var(--text-primary);
}

.syntax-ignored {
    color: var(--text-muted);
    font-style: italic;
}

.syntax-size {
    color: var(--green);
}

.syntax-comment {
    color: var(--text-muted);
}

/* Cursor blink animation */
.cursor-blink::after {
    content: 'â–‹';
    animation: cursor 1s infinite;
    color: var(--accent);
}

@keyframes cursor {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Star background pattern */
.star-bg {
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: var(--star-opacity);
}

html.light-mode .star-bg {
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #333, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #444, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 160px, #222, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #333, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #222, rgba(0,0,0,0));
}

/* Feature cards animation initial state */
.feature-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background-color: rgba(88, 166, 255, 0.3);
    color: var(--text-primary);
}

html.light-mode ::selection {
    background-color: rgba(9, 105, 218, 0.2);
    color: var(--text-primary);
}

/* Custom scrollbar for terminal */
.terminal-shadow ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.terminal-shadow ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

.terminal-shadow ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

.terminal-shadow ::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .feature-card {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Theme toggle button */
.theme-toggle {
    padding: 0.5rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
    stroke-width: 2;
}

/* Terminal/Code block styling */
.terminal-code {
    background-color: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-primary);
}

.terminal-header {
    background-color: var(--bg-primary);
    border-color: var(--border);
}

.terminal-command {
    color: var(--text-primary);
}

.terminal-prompt {
    color: var(--green);
}

html.light-mode .terminal-prompt {
    color: #1a7f0e;
    font-weight: 600;
}

/* Light mode overrides for Tailwind colors */
html.light-mode {
    --tw-bg-github-dark: var(--bg-primary);
    --tw-bg-github-darker: var(--bg-secondary);
    --tw-border-github-border: var(--border);
    --tw-text-github-text: var(--text-primary);
    --tw-text-github-muted: var(--text-muted);
    --tw-text-github-accent: var(--accent);
    --tw-text-github-green: var(--green);
    --tw-text-github-blue: var(--accent);
    --tw-text-github-purple: var(--purple);
}

html.light-mode .bg-github-dark,
html.light-mode .bg-github-darker {
    background-color: var(--bg-primary);
}

html.light-mode .border-github-border {
    border-color: var(--border);
}

html.light-mode .text-github-text {
    color: var(--text-primary);
}

html.light-mode .text-github-muted {
    color: var(--text-muted);
}

html.light-mode .text-github-accent,
html.light-mode .hover\\:text-github-accent:hover {
    color: var(--accent);
}

html.light-mode .text-github-green {
    color: var(--green);
}

html.light-mode .text-white {
    color: var(--text-primary);
}

html.light-mode .hover\\:border-github-accent:hover {
    border-color: var(--accent);
}

html.light-mode .text-orange-500 {
    color: #fb923c;
}

html.light-mode .shadow-github-accent\\/20 {
    box-shadow: 0 0 0 0 rgba(9, 105, 218, 0.2);
}

/* Terminal/code blocks with hardcoded colors */
html.light-mode .bg-\\[\\#161b22\\],
html.light-mode .bg-\\[\\#0d1117\\] {
    background-color: var(--bg-secondary) !important;
}

html.light-mode .bg-\\[\\#161b22\\]\\/50 {
    background-color: rgba(246, 248, 250, 0.5) !important;
}

/* Feature cards */
html.light-mode [class*="bg-\\[\\#161b22\\]\\/50"] {
    background-color: rgba(246, 248, 250, 0.5) !important;
}

/* Feature card borders in light mode */
html.light-mode .hover\\:border-github-accent\\/50:hover {
    border-color: rgba(9, 105, 218, 0.5);
}

/* Badge background for light mode */
html.light-mode .bg-github-border\\/30 {
    background-color: rgba(208, 215, 222, 0.3);
}

/* Code and color highlights */
html.light-mode .text-red-400 {
    color: #d1242f;
}

html.light-mode .text-red-500 {
    color: #d1242f;
}

html.light-mode .text-yellow-500 {
    color: #d39e00;
}

html.light-mode .text-green-500 {
    color: #1a7f0e;
}

html.light-mode .bg-blue-500\\/10 {
    background-color: rgba(9, 105, 218, 0.1);
}

html.light-mode .bg-green-500\\/10 {
    background-color: rgba(26, 127, 14, 0.1);
}

html.light-mode .bg-purple-500\\/10 {
    background-color: rgba(111, 66, 193, 0.1);
}

html.light-mode .bg-yellow-500\\/10 {
    background-color: rgba(211, 158, 0, 0.1);
}

html.light-mode .bg-orange-500\\/10 {
    background-color: rgba(251, 146, 60, 0.1);
}

html.light-mode .bg-red-500\\/10 {
    background-color: rgba(209, 36, 47, 0.1);
}

/* Inline code styling */
html.light-mode code.text-github-accent {
    color: var(--accent);
    background-color: rgba(9, 105, 218, 0.1);
}

/* Quick start and gradient sections */
html.light-mode .from-github-accent\\/10 {
    --tw-gradient-from: rgba(9, 105, 218, 0.1);
}

html.light-mode .to-purple-500\\/10 {
    --tw-gradient-to: rgba(111, 66, 193, 0.1);
}

html.light-mode .via-github-purple\\/10 {
    --tw-gradient-via: rgba(111, 66, 193, 0.1);
}

html.light-mode .border-github-accent\\/20 {
    border-color: rgba(9, 105, 218, 0.2);
}

/* Navbar specific */
html.light-mode nav {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-color: var(--border) !important;
    backdrop-filter: blur(12px);
}

/* Terminal text colors for better contrast */
html.light-mode .text-github-green {
    color: #1a7f0e;
    font-weight: 600;
}

html.light-mode .syntax-size {
    color: #1a7f0e;
}

/* Feature cards light mode - override inline styles */
html.light-mode .feature-card {
    background-color: rgba(246, 248, 250, 0.5) !important;
}

/* Terminal blocks and code blocks light mode */
html.light-mode [style*="background-color: rgba(22, 27, 34"] {
    background-color: var(--bg-secondary) !important;
}

/* Navbar styling for light mode */
html.light-mode .bg-github-dark\\/80 {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

html.light-mode .shadow-lg.shadow-github-accent\\/20 {
    box-shadow: 0 10px 15px -3px rgba(9, 105, 218, 0.1);
}

/* Support section gradients for light mode */
html.light-mode .bg-gradient-to-r {
    background: linear-gradient(to right, rgba(9, 105, 218, 0.05), rgba(111, 66, 193, 0.05));
}

html.light-mode .from-github-accent\\/10 {
    --tw-gradient-from: rgba(9, 105, 218, 0.1);
}

html.light-mode .via-github-purple\\/10 {
    --tw-gradient-via: rgba(111, 66, 193, 0.1);
}

html.light-mode .to-github-accent\\/10 {
    --tw-gradient-to: rgba(9, 105, 218, 0.1);
}

/* Heading text colors for light mode */
html.light-mode h1,
html.light-mode h2,
html.light-mode h3,
html.light-mode h4,
html.light-mode h5,
html.light-mode h6 {
    color: var(--text-primary);
}

html.light-mode .text-white {
    color: var(--text-primary);
}

/* Compatibility box styling for light mode */
html.light-mode [style*="background-color: rgba(22, 27, 34, 0.3)"] {
    background-color: rgba(9, 105, 218, 0.05) !important;
}