Files
yoresee_dropbox/web/styles/tokens.css
T
XingfenD d84e4dfdba feat(web): componentize frontend and replace native delete confirm
- Split monolithic app.js/style.css into Alpine.js components (icons, store, fileSection, confirm)
- Add central Alpine.store('files') as single source of truth for file lists and actions
- Replace duplicated Inbox/Outbox markup with reusable fileSection component (props: dir, canShare)
- Add shared window.Icons module to remove duplicated inline SVGs
- Replace browser-native confirm() for file deletion with a styled, accessible modal dialog
- Split CSS into design tokens, base, and component layers; modernize visuals
- Update web.go embed and server static routes for the new component/style dirs
2026-08-27 15:03:09 +08:00

64 lines
1.5 KiB
CSS

:root {
/* ===== Color ===== */
--color-bg: #f4f5f7;
--color-bg-gradient: radial-gradient(1200px 600px at 50% -10%, #eef2ff 0%, var(--color-bg) 55%);
--color-surface: #ffffff;
--color-surface-hover: #fafbfc;
--color-border: #e6e8ec;
--color-border-strong: #d4d8df;
--color-text: #1a1d23;
--color-text-secondary: #6b7280;
--color-text-tertiary: #9aa1ad;
--color-primary: #2563eb;
--color-primary-hover: #1d4ed8;
--color-primary-soft: #eff6ff;
--color-danger: #ef4444;
--color-danger-hover: #dc2626;
--color-danger-soft: #fef2f2;
--color-success: #10b981;
/* ===== Spacing (4px base) ===== */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-16: 4rem;
/* ===== Radius ===== */
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 14px;
--radius-full: 9999px;
/* ===== Shadow ===== */
--shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
--shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
--shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.14);
/* ===== Typography ===== */
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--text-xs: 0.75rem;
--text-sm: 0.875rem;
--text-base: 1rem;
--text-lg: 1.125rem;
--text-xl: 1.25rem;
--text-2xl: 1.5rem;
/* ===== Motion ===== */
--transition-fast: 150ms ease;
--transition-base: 200ms ease;
--transition-slow: 300ms ease;
/* ===== z-index ===== */
--z-toast: 1000;
--z-modal: 1100;
}