summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/assets/css/main.css
blob: c66092b1e95183aebdd91d84e9b4cc6d02a02707 (plain)
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
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Dark theme (default) - CSS custom properties */
:root {
  --bg: #060b10;
  --bg2: #0c1520;
  --surface: #101e2d;
  --border: #182840;
  --accent: #a855f7;
  --accent2: #00ff88;
  --accent-glow: rgba(168, 85, 247, 0.12);
  --text: #c4d6e8;
  --text-dim: #7a9bb8;
  --muted: #304860;
}

/* Light theme overrides */
html.theme-light {
  --bg: #ffffff;
  --bg2: #f8f9fa;
  --surface: #f0f3f7;
  --border: #d9dfe8;
  --accent: #9333ea;
  --accent2: #10b981;
  --accent-glow: rgba(147, 51, 234, 0.1);
  --text: #1f2937;
  --text-dim: #374151;
  --muted: #d1d5db;
}

@layer base {
  body {
    @apply bg-bg text-text font-body;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    @apply font-bold;
    font-family: 'Oxanium', monospace;
  }

  h1 {
    @apply text-3xl md:text-4xl;
  }

  h2 {
    @apply text-2xl md:text-3xl;
  }

  h3 {
    @apply text-xl md:text-2xl;
  }

  a {
    @apply text-accent hover:opacity-80 transition-opacity;
  }

  code {
    @apply font-mono bg-surface border border-border px-1.5 py-0.5 rounded text-accent2;
  }

  pre {
    background-color: rgba(16, 30, 45, 0.8);
    @apply p-4 rounded border border-border overflow-x-auto;
  }

  html.theme-light pre {
    background-color: rgba(240, 243, 247, 0.8);
  }

  pre code {
    @apply bg-transparent border-0 p-0 text-text;
  }

  *:focus {
    @apply ring-2 ring-accent ring-offset-2;
    ring-offset-color: var(--bg);
  }

  button,
  input,
  textarea,
  select {
    @apply transition-colors duration-200;
  }
}

@layer components {
  .container {
    @apply max-w-4xl mx-auto;
  }

  /* Background utilities */
  .bg-bg {
    background-color: var(--bg);
  }

  .bg-bg2 {
    background-color: var(--bg2);
  }

  .bg-surface {
    background-color: var(--surface);
  }

  /* Border utilities */
  .border-border {
    border-color: var(--border);
  }

  /* Text color utilities */
  .text-accent {
    color: var(--accent);
  }

  .text-accent2 {
    color: var(--accent2);
  }

  .text-text {
    color: var(--text);
  }

  .text-text-dim {
    color: var(--text-dim);
  }

  /* Additional semantic utilities */
  .text-muted {
    color: var(--muted);
  }

  .bg-muted {
    background-color: var(--muted);
  }

  /* Glow effect utility */
  .glow-accent {
    box-shadow: 0 0 20px var(--accent-glow);
  }
}

/* Prose overrides for light theme */
html.theme-light .prose,
html.theme-light .prose-invert {
  color: var(--text);
}

html.theme-light .prose a,
html.theme-light .prose-invert a {
  color: var(--accent);
}

html.theme-light .prose strong,
html.theme-light .prose-invert strong {
  color: var(--text);
}

html.theme-light .prose code,
html.theme-light .prose-invert code {
  color: var(--accent2);
}

html.theme-light .prose pre,
html.theme-light .prose-invert pre {
  background-color: var(--surface);
  color: var(--text);
}

html.theme-light .prose h1,
html.theme-light .prose h2,
html.theme-light .prose h3,
html.theme-light .prose h4,
html.theme-light .prose h5,
html.theme-light .prose h6,
html.theme-light .prose-invert h1,
html.theme-light .prose-invert h2,
html.theme-light .prose-invert h3,
html.theme-light .prose-invert h4,
html.theme-light .prose-invert h5,
html.theme-light .prose-invert h6 {
  color: var(--text);
}

html.theme-light .prose blockquote,
html.theme-light .prose-invert blockquote {
  color: var(--text);
  border-left-color: var(--accent);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .sm\:container {
    @apply max-w-full px-4;
  }
}

@media (min-width: 769px) {
  .md\:container {
    @apply max-w-4xl;
  }
}