Real-time dashboard for monitoring global news, markets, and geopolitical events
TypeScript
@tailwind base;
@tailwind components;
@tailwind utilities;
/* CSS Custom Properties for theming */
:root {
--bg: #0a0a0a;
--surface: #141414;
--surface-hover: #1a1a1a;
--border: #2a2a2a;
--border-light: #3a3a3a;
--text: #e8e8e8;
--text-dim: #888;
--text-muted: #666;
--accent: #fff;
--red: #ff4444;
--green: #44ff88;
--yellow: #ffaa00;
--blue: #4488ff;
}
/* Base styles */
html {
font-family: 'SF Mono', Monaco, Inconsolata, 'Fira Code', monospace;
background-color: var(--bg);
color: var(--text);
}
body {
margin: 0;
min-height: 100vh;
}
/* Scrollbar styling */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: var(--surface);
}
::-webkit-scrollbar-thumb {
background: var(--border-light);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
/* Link styles */
a {
color: inherit;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Focus styles for accessibility */
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* Utility classes that are hard to do in Tailwind */
.shimmer {
background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
0% {
background-position: -200% 0;
}
100% {
background-position: 200% 0;
}
}
/* D3 Map styles - keeping here since they're complex */
.map-container {
position: relative;
background: var(--surface);
border-radius: 4px;
overflow: hidden;
}
.map-container svg {
display: block;
width: 100%;
height: auto;
}
.country {
fill: var(--border);
stroke: var(--surface);
stroke-width: 0.5;
transition: fill 0.2s;
}
.country:hover {
fill: var(--border-light);
}
.hotspot {
cursor: pointer;
}
.hotspot circle {
transition: r 0.2s;
}
.hotspot:hover circle {
r: 8;
}
.hotspot-tooltip {
position: absolute;
background: var(--surface);
border: 1px solid var(--border);
padding: 8px 12px;
border-radius: 4px;
font-size: 0.75rem;
pointer-events: none;
z-index: 100;
max-width: 300px;
}