增加主题及企微
This commit is contained in:
1 parent
42e29fd747
commit
20271ada61
35 files changed
+2424
-523
No files matched your search
+295
-3
@@ -1,21 +1,77 @@
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');
|
||||
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
--bg-page: #f8fafc;
|
||||
--bg-surface: #ffffff;
|
||||
--bg-surface-soft: #f8fafc;
|
||||
--bg-surface-strong: #f1f5f9;
|
||||
--text-primary: #0f172a;
|
||||
--text-secondary: #334155;
|
||||
--text-muted: #64748b;
|
||||
--border-default: #e2e8f0;
|
||||
--border-subtle: #f1f5f9;
|
||||
--overlay-soft: rgba(15, 23, 42, 0.4);
|
||||
--shadow-elevated: 0 8px 30px -12px rgba(15, 23, 42, 0.2);
|
||||
--glow-accent: 0 0 0 1px rgba(14, 165, 233, 0.18), 0 16px 40px -22px rgba(14, 165, 233, 0.45);
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: 'Inter', system-ui, sans-serif;
|
||||
font-family: 'Manrope', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
@apply bg-gray-50 text-slate-800;
|
||||
background-color: var(--bg-page);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
html.dark {
|
||||
color-scheme: dark;
|
||||
--bg-page: #020617;
|
||||
--bg-surface: #0b1220;
|
||||
--bg-surface-soft: #0f172a;
|
||||
--bg-surface-strong: #1e293b;
|
||||
--text-primary: #f8fafc;
|
||||
--text-secondary: #cbd5e1;
|
||||
--text-muted: #94a3b8;
|
||||
--border-default: #334155;
|
||||
--border-subtle: #1e293b;
|
||||
--overlay-soft: rgba(2, 6, 23, 0.72);
|
||||
--shadow-elevated: 0 12px 30px -16px rgba(2, 6, 23, 0.85);
|
||||
--glow-accent: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 20px 44px -24px rgba(56, 189, 248, 0.5);
|
||||
background-color: var(--bg-page);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: 'Space Grotesk', 'Manrope', sans-serif;
|
||||
@apply tracking-tight font-semibold text-slate-900;
|
||||
}
|
||||
|
||||
html.dark h1,
|
||||
html.dark h2,
|
||||
html.dark h3,
|
||||
html.dark h4,
|
||||
html.dark h5,
|
||||
html.dark h6 {
|
||||
@apply text-slate-100;
|
||||
}
|
||||
|
||||
body {
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
button,
|
||||
a,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
touch-action: manipulation;
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
@@ -50,6 +106,50 @@
|
||||
.badge {
|
||||
@apply px-2.5 py-0.5 rounded-full text-xs font-medium border;
|
||||
}
|
||||
|
||||
.glass-panel {
|
||||
@apply backdrop-blur-xl border;
|
||||
background: rgba(255, 255, 255, 0.68);
|
||||
border-color: rgba(148, 163, 184, 0.26);
|
||||
box-shadow: var(--glow-accent);
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
html.dark .btn-secondary {
|
||||
background-color: var(--bg-surface-strong);
|
||||
border-color: var(--border-default);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
html.dark .btn-secondary:hover {
|
||||
background-color: var(--bg-surface-soft);
|
||||
border-color: #475569;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
html.dark .btn-ghost {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
html.dark .btn-ghost:hover {
|
||||
background-color: var(--bg-surface-strong);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
html.dark .btn-danger {
|
||||
background-color: rgba(239, 68, 68, 0.12);
|
||||
color: #fca5a5;
|
||||
}
|
||||
|
||||
html.dark .btn-danger:hover {
|
||||
background-color: rgba(239, 68, 68, 0.2);
|
||||
}
|
||||
|
||||
html.dark .glass-panel {
|
||||
background: rgba(2, 6, 23, 0.66);
|
||||
border-color: rgba(71, 85, 105, 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
/* Custom Scrollbar */
|
||||
@@ -69,3 +169,195 @@
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
@apply bg-slate-300;
|
||||
}
|
||||
|
||||
html.dark body,
|
||||
html.dark #app {
|
||||
background-color: var(--bg-page);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
html.dark .bg-white {
|
||||
background-color: var(--bg-surface) !important;
|
||||
}
|
||||
|
||||
html.dark .bg-white\/80 {
|
||||
background-color: rgba(11, 18, 32, 0.84) !important;
|
||||
}
|
||||
|
||||
html.dark .bg-white\/90 {
|
||||
background-color: rgba(11, 18, 32, 0.92) !important;
|
||||
}
|
||||
|
||||
html.dark .bg-white\/60 {
|
||||
background-color: rgba(15, 23, 42, 0.72) !important;
|
||||
}
|
||||
|
||||
html.dark .bg-white\/50 {
|
||||
background-color: rgba(15, 23, 42, 0.66) !important;
|
||||
}
|
||||
|
||||
html.dark .border-white\/20 {
|
||||
border-color: rgba(148, 163, 184, 0.2) !important;
|
||||
}
|
||||
|
||||
html.dark .bg-slate-50,
|
||||
html.dark .bg-slate-100,
|
||||
html.dark .bg-gray-50 {
|
||||
background-color: var(--bg-surface-soft) !important;
|
||||
}
|
||||
|
||||
html.dark .bg-slate-900\/40,
|
||||
html.dark .bg-slate-900\/50,
|
||||
html.dark .bg-black\/50 {
|
||||
background-color: var(--overlay-soft) !important;
|
||||
}
|
||||
|
||||
html.dark .bg-gradient-to-br.from-white.to-slate-50\/50 {
|
||||
background-image: linear-gradient(to bottom right, #0b1220, #111827) !important;
|
||||
}
|
||||
|
||||
html.dark .text-slate-900,
|
||||
html.dark .text-slate-800 {
|
||||
color: var(--text-primary) !important;
|
||||
}
|
||||
|
||||
html.dark .text-slate-700,
|
||||
html.dark .text-slate-600 {
|
||||
color: var(--text-secondary) !important;
|
||||
}
|
||||
|
||||
html.dark .text-slate-500,
|
||||
html.dark .text-slate-400 {
|
||||
color: var(--text-muted) !important;
|
||||
}
|
||||
|
||||
html.dark .text-slate-300,
|
||||
html.dark .text-slate-200 {
|
||||
color: #dbeafe !important;
|
||||
}
|
||||
|
||||
html.dark .border-slate-50,
|
||||
html.dark .border-slate-100,
|
||||
html.dark .border-slate-200,
|
||||
html.dark .border-gray-100 {
|
||||
border-color: var(--border-default) !important;
|
||||
}
|
||||
|
||||
html.dark .border-slate-300 {
|
||||
border-color: #475569 !important;
|
||||
}
|
||||
|
||||
html.dark .shadow-sm,
|
||||
html.dark .shadow-md,
|
||||
html.dark .shadow-lg,
|
||||
html.dark .shadow-xl,
|
||||
html.dark .shadow-2xl,
|
||||
html.dark .shadow-soft {
|
||||
box-shadow: var(--shadow-elevated) !important;
|
||||
}
|
||||
|
||||
html.dark .ring-1 {
|
||||
--tw-ring-color: rgba(148, 163, 184, 0.3);
|
||||
}
|
||||
|
||||
html.dark .input-field {
|
||||
background-color: var(--bg-surface-soft) !important;
|
||||
border-color: var(--border-default) !important;
|
||||
color: var(--text-primary) !important;
|
||||
}
|
||||
|
||||
html.dark .input-field::placeholder {
|
||||
color: var(--text-muted) !important;
|
||||
}
|
||||
|
||||
html.dark input:not([type="checkbox"]):not([type="radio"]),
|
||||
html.dark textarea,
|
||||
html.dark select {
|
||||
background-color: var(--bg-surface-soft);
|
||||
border-color: var(--border-default);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
html.dark input:focus,
|
||||
html.dark textarea:focus,
|
||||
html.dark select:focus {
|
||||
border-color: #38bdf8;
|
||||
}
|
||||
|
||||
html.dark input[type="checkbox"],
|
||||
html.dark input[type="radio"] {
|
||||
border-color: var(--border-default);
|
||||
background-color: var(--bg-surface-soft);
|
||||
color: #0ea5e9;
|
||||
}
|
||||
|
||||
html.dark .hover\:bg-slate-50:hover,
|
||||
html.dark .hover\:bg-slate-100:hover {
|
||||
background-color: var(--bg-surface-strong) !important;
|
||||
}
|
||||
|
||||
html.dark .hover\:text-slate-900:hover {
|
||||
color: var(--text-primary) !important;
|
||||
}
|
||||
|
||||
html.dark .hover\:text-slate-700:hover,
|
||||
html.dark .hover\:text-slate-600:hover {
|
||||
color: var(--text-secondary) !important;
|
||||
}
|
||||
|
||||
html.dark .prose,
|
||||
html.dark .prose.prose-slate {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
html.dark .prose :where(h1, h2, h3, h4, h5, h6) {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
html.dark .prose :where(p, ul, ol, li, blockquote) {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
html.dark .prose :where(code) {
|
||||
background-color: var(--bg-surface-strong);
|
||||
color: #7dd3fc;
|
||||
}
|
||||
|
||||
html.dark .prose :where(pre) {
|
||||
background-color: #020617;
|
||||
color: #e2e8f0;
|
||||
border: 1px solid var(--border-default);
|
||||
}
|
||||
|
||||
html.dark .prose :where(a) {
|
||||
color: #7dd3fc;
|
||||
}
|
||||
|
||||
html.dark .prose :where(hr) {
|
||||
border-color: var(--border-default);
|
||||
}
|
||||
|
||||
html.dark iframe {
|
||||
background-color: var(--bg-surface) !important;
|
||||
}
|
||||
|
||||
html.dark [class*="backdrop-blur"] {
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
html.dark ::-webkit-scrollbar-thumb {
|
||||
background: #475569;
|
||||
}
|
||||
|
||||
html.dark ::-webkit-scrollbar-thumb:hover {
|
||||
background: #64748b;
|
||||
}
|
||||
|
||||
/* Mobile safe-area helpers */
|
||||
.safe-bottom {
|
||||
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
|
||||
}
|
||||
|
||||
.safe-bottom-lg {
|
||||
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
|
||||
}
|
||||
Reference in new issue
Block a user