summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/assets/css/main.css
blob: 1421443ac01a73dbb4ee0dd4147bd646d192b10d (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
@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: #6b7280;
  --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);
  }
}

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

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