tahamajs/RR / Codes /frontend /src /index.css
tahamajs's picture
download
raw
11.2 kB
@tailwind base;
@tailwind components;
@tailwind utilities;
/* ──────────────────────────────────────────────────────────────
Design Tokens (CSS Variables)
────────────────────────────────────────────────────────────── */
:root {
/* Core Colors – deep space with neon mint */
--color-primary: #00ff9d;
--color-primary-glow: rgba(0, 255, 157, 0.3);
--color-secondary: #3b82f6;
--color-surface: #03050b;
--color-surface-elevated: #0a0f1a;
--color-surface-higher: #111827;
--color-border: rgba(255, 255, 255, 0.08);
/* Accents */
--color-accent-compute: #8b5cf6;
--color-accent-storage: #10b981;
--color-accent-network: #f59e0b;
/* Typography */
--font-family-sans: "Inter", system-ui, -apple-system, sans-serif;
--font-family-mono: "JetBrains Mono", "Fira Code", monospace;
/* Spacing (8px grid) */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-6: 1.5rem;
--space-8: 2rem;
}
/* ──────────────────────────────────────────────────────────────
Base Styles
────────────────────────────────────────────────────────────── */
@layer base {
body {
background-color: var(--color-surface);
background-image:
radial-gradient(
circle at 25% 0%,
rgba(0, 255, 157, 0.03) 0%,
transparent 50%
),
linear-gradient(rgba(0, 255, 157, 0.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 255, 157, 0.02) 1px, transparent 1px);
background-size: 40px 40px;
color: #e2e8f0;
font-family: var(--font-family-sans);
font-feature-settings: "cv02", "cv03", "cv04", "cv11";
scroll-behavior: smooth;
-webkit-font-smoothing: antialiased;
}
/* Custom scrollbar – ultra thin neon */
::-webkit-scrollbar {
width: 4px;
height: 4px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(0, 255, 157, 0.3);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(0, 255, 157, 0.6);
}
/* Firefox scrollbar */
* {
scrollbar-color: rgba(0, 255, 157, 0.3) transparent;
scrollbar-width: thin;
}
/* Focus ring for accessibility */
*:focus-visible {
@apply outline-2 outline-offset-2 outline-neon-blue/70 rounded-lg;
}
}
/* ──────────────────────────────────────────────────────────────
Component Styles (Glass, Terminal, Cards, Chat Bubbles)
────────────────────────────────────────────────────────────── */
@layer components {
/* Glassmorphism base */
.glass {
@apply bg-white/5 backdrop-blur-xl border border-white/10 rounded-2xl shadow-2xl;
}
.glass-hover {
@apply hover:bg-white/[0.07] hover:border-white/20 transition-all duration-300;
}
/* Terminal‑inspired cards (neon border) */
.glass-terminal {
background: rgba(10, 15, 26, 0.7);
backdrop-filter: blur(8px);
border: 1px solid rgba(0, 255, 157, 0.2);
border-radius: 8px;
box-shadow: 0 0 15px rgba(0, 255, 157, 0.05);
transition: all 0.2s;
}
.glass-terminal:hover {
border-color: rgba(0, 255, 157, 0.4);
box-shadow: 0 0 20px rgba(0, 255, 157, 0.1);
}
/* Simple terminal card (no neon, just subtle) */
.terminal-card {
@apply border rounded-md bg-black/40 backdrop-blur-sm transition-all duration-200;
}
.terminal-card-default {
@apply border-white/10 hover:border-white/20;
}
.terminal-card-glowing {
@apply border-neon-blue/30 shadow-[0_0_15px_rgba(59,130,246,0.1)] hover:shadow-[0_0_20px_rgba(59,130,246,0.2)];
}
/* Terminal‑style heading */
.terminal-heading {
font-family: var(--font-family-mono);
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.2em;
color: #00ff9d;
border-left: 2px solid #00ff9d;
padding-left: 0.75rem;
}
/* Card hover lift effect */
.card-hover-effect {
@apply transition-all duration-300 hover:-translate-y-1;
box-shadow: 0 0 0 rgba(59, 130, 246, 0);
}
.card-hover-effect:hover {
box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}
/* Data grid row hover (from the telemetry style) */
.data-row {
transition: background 0.1s;
}
.data-row:hover {
background: rgba(0, 255, 157, 0.05);
}
/* Chat bubbles – Telegram / modern messenger style */
.chat-bubble-user {
@apply bg-neon-blue/20 text-white rounded-2xl rounded-tr-sm px-4 py-2 max-w-[75%] self-end;
backdrop-filter: blur(4px);
}
.chat-bubble-assistant {
@apply bg-white/10 text-slate-200 rounded-2xl rounded-tl-sm px-4 py-2 max-w-[75%] self-start;
backdrop-filter: blur(4px);
}
/* Hugging Face style card (clean, border, minimal) */
.hf-card {
@apply bg-surface-elevated border border-white/10 rounded-xl p-4 transition-all hover:border-neon-mint/50;
}
}
/* ──────────────────────────────────────────────────────────────
Animations & Keyframes
────────────────────────────────────────────────────────────── */
@keyframes scaleIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
.animate-scale-in {
animation: scaleIn 0.2s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.animate-fade-in {
animation: fadeIn 0.5s ease-out;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-slide-up {
animation: slideUp 0.4s ease-out;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-slide-down {
animation: slideDown 0.3s ease-out;
}
@keyframes glowPulse {
0%,
100% {
text-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}
50% {
text-shadow: 0 0 20px rgba(234, 179, 8, 0.8);
}
}
.drop-shadow-glow {
filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
animation: glowPulse 2s ease-in-out infinite;
}
.shadow-glow {
box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}
.shadow-glow-sm {
box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}
@keyframes shimmer {
0% {
background-position: -200% 0;
}
100% {
background-position: 200% 0;
}
}
.shimmer {
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.05) 50%,
rgba(255, 255, 255, 0) 100%
);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
}
@keyframes ripple {
to {
transform: scale(4);
opacity: 0;
}
}
.ripple {
position: absolute;
border-radius: 50%;
background: rgba(255, 255, 255, 0.3);
transform: scale(0);
animation: ripple 0.6s ease-out;
pointer-events: none;
}
@keyframes float {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-5px);
}
}
.animate-float {
animation: float 3s ease-in-out infinite;
}
/* ──────────────────────────────────────────────────────────────
Utility Classes
────────────────────────────────────────────────────────────── */
@layer utilities {
.text-balance {
text-wrap: balance;
}
.text-pretty {
text-wrap: pretty;
}
.scrollbar-thin::-webkit-scrollbar {
width: 4px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
@apply bg-white/10 rounded-full;
}
/* Custom font families for quick use */
.font-display {
font-family: var(--font-family-sans);
}
.font-mono-custom {
font-family: var(--font-family-mono);
}
.cyber-grid {
background-image:
linear-gradient(rgba(0, 255, 157, 0.05) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 255, 157, 0.05) 1px, transparent 1px);
background-size: 50px 50px;
background-position: center center;
}
}
/* ──────────────────────────────────────────────────────────────
Print Styles
────────────────────────────────────────────────────────────── */
@media print {
nav,
header,
.sidebar,
.floating-windows,
.floating-window-bar,
button,
.no-print {
display: none !important;
}
body {
background: white !important;
color: black !important;
}
.glass,
.card,
.prose {
box-shadow: none !important;
border: none !important;
background: transparent !important;
}
}
/* src/index.css – add at the top or in a new layer */
@layer base {
:root {
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;
--card: 0 0% 100%;
--card-foreground: 222.2 84% 4.9%;
--popover: 0 0% 100%;
--popover-foreground: 222.2 84% 4.9%;
--primary: 221.2 83.2% 53.3%;
--primary-foreground: 210 40% 98%;
--secondary: 210 40% 96.1%;
--secondary-foreground: 222.2 47.4% 11.2%;
--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;
--accent: 210 40% 96.1%;
--accent-foreground: 222.2 47.4% 11.2%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;
--border: 214.3 31.8% 91.4%;
--input: 214.3 31.8% 91.4%;
--ring: 221.2 83.2% 53.3%;
--radius: 0.5rem;
}
.dark {
--background: 222.2 84% 4.9%;
--foreground: 210 40% 98%;
--card: 222.2 84% 4.9%;
--card-foreground: 210 40% 98%;
--popover: 222.2 84% 4.9%;
--popover-foreground: 210 40% 98%;
--primary: 217.2 91.2% 59.8%;
--primary-foreground: 222.2 47.4% 11.2%;
--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;
--muted: 217.2 32.6% 17.5%;
--muted-foreground: 215 20.2% 65.1%;
--accent: 217.2 32.6% 17.5%;
--accent-foreground: 210 40% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 210 40% 98%;
--border: 217.2 32.6% 17.5%;
--input: 217.2 32.6% 17.5%;
--ring: 224.3 76.3% 48%;
}
}

Xet Storage Details

Size:
11.2 kB
·
Xet hash:
27485444b5b3dbbe893e0f98ac76bd18654df477c89c44938afb3332595f57e3

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.