功能:每日抓取 GitHub Top 10 趋势项目,展示中文描述、功能摘要与安装命令, 支持用户收藏,未收藏项目 7 天后自动删除。 技术栈:Node.js + Express + SQLite / React + Vite + Tailwind CSS Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
60 lines
1.8 KiB
CSS
60 lines
1.8 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');
|
|
|
|
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
:root {
|
|
--accent: #00e5a0;
|
|
--accent-dim: rgba(0, 229, 160, 0.1);
|
|
--accent-border: rgba(0, 229, 160, 0.25);
|
|
--surface-0: #060810;
|
|
--surface-1: #0b0f1a;
|
|
--surface-2: #10151f;
|
|
--surface-3: #161c28;
|
|
--border: rgba(255, 255, 255, 0.07);
|
|
--border-hover: rgba(255, 255, 255, 0.13);
|
|
--text-1: #e2e8f5;
|
|
--text-2: #7d8fa8;
|
|
--text-3: #3d4a5c;
|
|
}
|
|
|
|
@layer base {
|
|
body {
|
|
font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
|
|
background-color: var(--surface-0);
|
|
color: var(--text-1);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: rgba(255,255,255,0.08) transparent;
|
|
}
|
|
::-webkit-scrollbar { width: 4px; height: 4px; }
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
|
|
}
|
|
|
|
@layer components {
|
|
.card {
|
|
@apply relative flex flex-col gap-4 p-5 rounded-2xl transition-all duration-300 cursor-default;
|
|
background: linear-gradient(145deg, var(--surface-1) 0%, var(--surface-2) 100%);
|
|
border: 1px solid var(--border);
|
|
}
|
|
.card:hover {
|
|
border-color: var(--border-hover);
|
|
box-shadow: 0 0 0 1px rgba(0, 229, 160, 0.06), 0 12px 40px rgba(0, 0, 0, 0.5);
|
|
transform: translateY(-2px);
|
|
}
|
|
.badge {
|
|
@apply inline-flex items-center px-2 py-0.5 rounded-md text-xs font-medium;
|
|
}
|
|
.btn {
|
|
@apply inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-all duration-200 cursor-pointer border;
|
|
}
|
|
.tab {
|
|
@apply px-4 py-2 rounded-lg text-xs font-medium transition-all duration-200 cursor-pointer;
|
|
}
|
|
}
|