@panyam/tsappkit 0.0.3 → 0.0.5

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.
@@ -0,0 +1,157 @@
1
+ // ============================================
2
+ // Header Styles
3
+ // ============================================
4
+
5
+ .site-header {
6
+ position: sticky;
7
+ top: 0;
8
+ z-index: 100;
9
+ background: var(--color-bg);
10
+ border-bottom: 1px solid var(--color-border);
11
+ height: var(--header-height);
12
+ }
13
+
14
+ .header-container {
15
+ max-width: var(--page-max-width);
16
+ margin: 0 auto;
17
+ padding: 0 var(--spacing-lg);
18
+ height: 100%;
19
+ display: flex;
20
+ align-items: center;
21
+ justify-content: space-between;
22
+ }
23
+
24
+ .logo {
25
+ a {
26
+ display: flex;
27
+ align-items: center;
28
+ gap: var(--spacing-sm);
29
+ font-weight: 700;
30
+ font-size: 1.25rem;
31
+ color: var(--color-text);
32
+
33
+ &:hover {
34
+ text-decoration: none;
35
+ }
36
+ }
37
+ }
38
+
39
+ .main-nav {
40
+ display: flex;
41
+ gap: var(--spacing-lg);
42
+ }
43
+
44
+ .nav-item {
45
+ position: relative;
46
+ }
47
+
48
+ .nav-link {
49
+ display: block;
50
+ padding: var(--spacing-sm) var(--spacing-md);
51
+ color: var(--color-text-muted);
52
+ font-weight: 500;
53
+ border-radius: var(--radius-sm);
54
+ transition: color 0.2s, background 0.2s;
55
+
56
+ &:hover {
57
+ color: var(--color-text);
58
+ background: var(--color-bg-alt);
59
+ text-decoration: none;
60
+ }
61
+ }
62
+
63
+ // Dropdown menu
64
+ .nav-dropdown {
65
+ position: absolute;
66
+ top: 100%;
67
+ left: 0;
68
+ min-width: 200px;
69
+ padding: var(--spacing-sm);
70
+ background: var(--color-bg);
71
+ border: 1px solid var(--color-border);
72
+ border-radius: var(--radius-md);
73
+ box-shadow: var(--shadow-md);
74
+ opacity: 0;
75
+ visibility: hidden;
76
+ transform: translateY(-10px);
77
+ transition: all 0.2s;
78
+ }
79
+
80
+ .nav-item:hover .nav-dropdown {
81
+ opacity: 1;
82
+ visibility: visible;
83
+ transform: translateY(0);
84
+ }
85
+
86
+ .dropdown-item {
87
+ display: block;
88
+ padding: var(--spacing-sm) var(--spacing-md);
89
+ color: var(--color-text-muted);
90
+ border-radius: var(--radius-sm);
91
+
92
+ &:hover {
93
+ background: var(--color-bg-alt);
94
+ color: var(--color-text);
95
+ text-decoration: none;
96
+ }
97
+ }
98
+
99
+ // Header actions (theme toggle, github button, etc.)
100
+ .header-actions {
101
+ display: flex;
102
+ align-items: center;
103
+ gap: var(--spacing-md);
104
+ }
105
+
106
+ .theme-toggle {
107
+ width: 40px;
108
+ height: 40px;
109
+ display: flex;
110
+ align-items: center;
111
+ justify-content: center;
112
+ background: transparent;
113
+ border: 1px solid var(--color-border);
114
+ border-radius: var(--radius-sm);
115
+ cursor: pointer;
116
+ color: var(--color-text-muted);
117
+
118
+ &:hover {
119
+ background: var(--color-bg-alt);
120
+ color: var(--color-text);
121
+ }
122
+
123
+ svg {
124
+ width: 20px;
125
+ height: 20px;
126
+ }
127
+ }
128
+
129
+ .icon-sun {
130
+ display: none;
131
+ }
132
+
133
+ .icon-moon {
134
+ display: block;
135
+ }
136
+
137
+ .dark .icon-sun {
138
+ display: block;
139
+ }
140
+
141
+ .dark .icon-moon {
142
+ display: none;
143
+ }
144
+
145
+ .btn-github {
146
+ padding: var(--spacing-sm) var(--spacing-md);
147
+ background: var(--color-bg-alt);
148
+ border: 1px solid var(--color-border);
149
+ border-radius: var(--radius-sm);
150
+ color: var(--color-text);
151
+ font-weight: 500;
152
+
153
+ &:hover {
154
+ background: var(--color-border);
155
+ text-decoration: none;
156
+ }
157
+ }
@@ -0,0 +1,77 @@
1
+ // ============================================
2
+ // Page Layout
3
+ // ============================================
4
+
5
+ .page-container {
6
+ display: flex;
7
+ max-width: var(--page-max-width);
8
+ margin: 0 auto;
9
+ padding: var(--spacing-xl);
10
+ gap: var(--spacing-xl);
11
+ }
12
+
13
+ // Sidebar
14
+ .sidebar {
15
+ width: var(--sidebar-width);
16
+ flex-shrink: 0;
17
+ }
18
+
19
+ .sidebar-content {
20
+ position: sticky;
21
+ top: calc(var(--header-height) + var(--spacing-xl));
22
+ }
23
+
24
+ .section-nav {
25
+ h3 {
26
+ font-size: 0.75rem;
27
+ font-weight: 600;
28
+ text-transform: uppercase;
29
+ letter-spacing: 0.05em;
30
+ color: var(--color-text-muted);
31
+ margin-bottom: var(--spacing-sm);
32
+ margin-top: var(--spacing-lg);
33
+
34
+ &:first-child {
35
+ margin-top: 0;
36
+ }
37
+ }
38
+
39
+ ul {
40
+ list-style: none;
41
+ }
42
+
43
+ li a {
44
+ display: block;
45
+ padding: var(--spacing-xs) var(--spacing-sm);
46
+ color: var(--color-text-muted);
47
+ border-radius: var(--radius-sm);
48
+ font-size: 0.9rem;
49
+
50
+ &:hover {
51
+ color: var(--color-text);
52
+ background: var(--color-bg-alt);
53
+ text-decoration: none;
54
+ }
55
+
56
+ &.active {
57
+ color: var(--color-primary);
58
+ background: var(--color-primary-subtle);
59
+ font-weight: 500;
60
+ }
61
+ }
62
+ }
63
+
64
+ // Main Content Area
65
+ .main-content {
66
+ flex: 1;
67
+ min-width: 0;
68
+ max-width: var(--content-max-width);
69
+ }
70
+
71
+ .main-content-full {
72
+ flex: 1;
73
+ height: calc(100vh - var(--header-height));
74
+ min-height: 0;
75
+ display: flex;
76
+ flex-direction: column;
77
+ }
@@ -0,0 +1,37 @@
1
+ // ============================================
2
+ // Responsive Styles
3
+ // ============================================
4
+
5
+ @media (max-width: 1024px) {
6
+ .page-container {
7
+ flex-direction: column;
8
+ }
9
+
10
+ .sidebar {
11
+ width: 100%;
12
+ }
13
+
14
+ .sidebar-content {
15
+ position: static;
16
+ }
17
+ }
18
+
19
+ @media (max-width: 768px) {
20
+ .main-nav {
21
+ display: none;
22
+ }
23
+
24
+ .content-header h1 {
25
+ font-size: 2rem;
26
+ }
27
+ }
28
+
29
+ @media (max-width: 480px) {
30
+ .page-container {
31
+ padding: var(--spacing-md);
32
+ }
33
+
34
+ .content-header h1 {
35
+ font-size: 1.75rem;
36
+ }
37
+ }
@@ -0,0 +1,73 @@
1
+ // ============================================
2
+ // Design Tokens & CSS Custom Properties
3
+ // ============================================
4
+
5
+ :root {
6
+ // Colors - Light Mode
7
+ --color-primary: #2563eb;
8
+ --color-primary-dark: #1d4ed8;
9
+ --color-primary-subtle: rgba(37, 99, 235, 0.1);
10
+ --color-secondary: #64748b;
11
+ --color-accent: #f59e0b;
12
+
13
+ --color-bg: #ffffff;
14
+ --color-bg-alt: #f8fafc;
15
+ --color-bg-code: #1e293b;
16
+ --color-code-text: #e2e8f0; // Light text for dark code background
17
+
18
+ --color-text: #1e293b;
19
+ --color-text-muted: #64748b;
20
+ --color-text-light: #94a3b8;
21
+
22
+ --color-border: #e2e8f0;
23
+ --color-border-dark: #cbd5e1;
24
+
25
+ --color-success: #10b981;
26
+ --color-error: #ef4444;
27
+ --color-warning: #f59e0b;
28
+
29
+ // Layout
30
+ --header-height: 60px;
31
+ --sidebar-width: 280px;
32
+ --content-max-width: 900px;
33
+ --page-max-width: 1400px;
34
+
35
+ // Typography
36
+ --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
37
+ --font-mono: 'SF Mono', Monaco, Consolas, 'Liberation Mono', monospace;
38
+
39
+ // Spacing
40
+ --spacing-xs: 0.25rem;
41
+ --spacing-sm: 0.5rem;
42
+ --spacing-md: 1rem;
43
+ --spacing-lg: 1.5rem;
44
+ --spacing-xl: 2rem;
45
+
46
+ // Border Radius
47
+ --radius-sm: 4px;
48
+ --radius-md: 8px;
49
+ --radius-lg: 12px;
50
+
51
+ // Shadows
52
+ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
53
+ --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
54
+ }
55
+
56
+ // Dark Mode
57
+ :root.dark {
58
+ --color-bg: #0f172a;
59
+ --color-bg-alt: #1e293b;
60
+ --color-bg-code: #0f172a;
61
+ --color-code-text: #e2e8f0; // Light text for dark code background
62
+
63
+ --color-text: #f1f5f9;
64
+ --color-text-muted: #94a3b8;
65
+ --color-text-light: #64748b;
66
+
67
+ --color-border: #334155;
68
+ --color-border-dark: #475569;
69
+
70
+ --color-primary: #3b82f6;
71
+ --color-primary-dark: #2563eb;
72
+ --color-primary-subtle: rgba(59, 130, 246, 0.15);
73
+ }