/* * Elouan's Design System — Reference Stylesheet * Permanent short link: https://e5g.dev/css * Permanent raw link: https://raw.githubusercontent.com/elouangrimm/elouangrimm/main/style.css * * This is NOT a drop-in stylesheet. It is a design reference for LLMs. * Use these tokens, patterns, and conventions when generating CSS for * Elouan's projects. Adapt and extend as needed per project. * * Design philosophy: * - Dark-first. Near-black backgrounds, light stone-toned text. * - Zero border-radius. All elements have sharp corners. * - Minimal transitions (0.15s–0.3s). Subtle, not flashy. * - Flat UI. No gradients, no shadows (except rare box-shadow for * floating elements like tooltips). * - Semantic color variables. Never use raw hex in rules; always * reference CSS custom properties. * - Two font stacks: system sans-serif for body, monospace for * headings / code / UI chrome. */ /* ========================================================================== 1. DESIGN TOKENS ========================================================================== */ :root { /* --- Stone (neutral scale) --- Warm stone grays. Use these for backgrounds, borders, and text. 050 is near-white, 950 is near-black. */ --stone-050: #fafaf9; --stone-100: #f5f5f4; --stone-200: #e7e5e4; --stone-300: #d6d3d1; --stone-400: #a8a29e; --stone-500: #78716c; --stone-600: #57534e; --stone-700: #44403c; --stone-800: #292524; --stone-900: #1c1917; --stone-950: #0c0a09; /* --- Palette --- Named semantic colors. Use --blue as the default accent. Expand with any of these as needed per project. */ --red: #ef4444; --orange: #ff8046; --amber: #f59e0b; --yellow: #ffff46; --lime: #84cc16; --green: #22c55e; --emerald: #10b981; --teal: #14b8a6; --cyan: #46ccff; --sky: #0ea5e9; --blue: #3b82f6; --indigo: #6366f1; --violet: #8b5cf6; --purple: #8043ff; --fuchsia: #d946ef; --pink: #ff80de; --rose: #f43f5e; --coral: #ff8080; /* --- Semantic shortcuts --- */ --bg: var(--stone-950); --bg-raised: var(--stone-900); --bg-surface: var(--stone-800); --border: var(--stone-800); --border-strong: var(--stone-500); --text: var(--stone-200); --text-muted: var(--stone-400); --text-faint: var(--stone-500); --text-bright: var(--stone-100); --accent: var(--blue); --accent-hover: #5193f8; --success: var(--green); --danger: var(--red); --warning: var(--amber); /* --- Typography --- */ --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", "Roboto Mono", "Cascadia Code", monospace; --line-height: 1.6; --line-height-tight: 1.2; } /* ========================================================================== 2. RESET ========================================================================== */ * { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0 !important; } /* ========================================================================== 3. BASE / BODY ========================================================================== */ body { background-color: var(--bg); color: var(--text); font-family: var(--font-sans); line-height: var(--line-height); } ::selection { background-color: var(--indigo); color: var(--stone-600); } /* ========================================================================== 4. TYPOGRAPHY ========================================================================== */ h1, h2, h3, h4, h5, h6 { font-family: var(--font-mono); line-height: var(--line-height-tight); color: var(--text-bright); } h1 { font-size: 2em; font-weight: 700; margin: 0.6em 0 0.3em; } h2 { font-size: 1.5em; font-weight: 600; margin: 0.5em 0 0.25em; } h3 { font-size: 1.2em; font-weight: 600; margin: 0.4em 0 0.2em; color: var(--text); } p { margin: 0.3em 0; } strong { color: var(--text-bright); font-weight: 600; } em { color: var(--stone-300); } del { color: var(--text-faint); } ul { padding-inline-start: 1em; } ul > li { list-style: "- "; } code { background: var(--bg-raised); border: 1px solid var(--border); padding: 1px 6px; font-family: var(--font-mono); font-size: 0.9em; color: var(--stone-300); } pre { background: var(--bg-raised); border: 1px solid var(--border); padding: 16px 20px; margin: 0.8em 0; overflow-x: auto; font-family: var(--font-mono); font-size: 0.9em; line-height: 1.5; color: var(--stone-300); } pre code { background: none; border: none; padding: 0; font-size: inherit; color: inherit; } blockquote { border-left: 3px solid var(--text-faint); padding-left: 16px; color: var(--text-muted); margin: 0.5em 0; font-style: italic; } hr { border: none; border-top: 1px solid var(--border); margin: 1.2em 0; } /* ========================================================================== 5. LINKS ========================================================================== */ a { color: var(--accent); text-decoration: none; } a:hover { background-color: var(--accent); color: var(--bg); outline: 2px solid var(--accent); } a:focus { outline: 2px solid var(--accent); text-decoration: none; } /* ========================================================================== 6. BUTTONS ========================================================================== */ button, .btn { display: inline-block; padding: 12px 24px; border: none; background-color: var(--accent); color: var(--stone-050); font-size: 1rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: background-color 0.2s, transform 0.2s; text-decoration: none; } button:hover, .btn:hover { background-color: var(--accent-hover); transform: translateY(-2px); } button:focus, .btn:focus { outline: 2px solid var(--accent); } .btn-secondary { background-color: var(--bg-surface); color: var(--text); } .btn-secondary:hover { background-color: var(--text-faint); } .btn-danger { background-color: transparent; color: var(--text-faint); border: 1px solid var(--border); } .btn-danger:hover { color: var(--danger); border-color: var(--danger); background-color: rgba(239, 68, 68, 0.08); } /* ========================================================================== 7. FORM INPUTS ========================================================================== */ input, textarea, select { width: 100%; padding: 8px; background-color: var(--bg); border: 1px solid var(--border-strong); color: var(--text-bright); font-family: inherit; font-size: 1rem; line-height: var(--line-height); } input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); } input::placeholder, textarea::placeholder { color: var(--text-faint); opacity: 0.6; } label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; } /* ========================================================================== 8. CUSTOM CHECKBOX ========================================================================== */ .checkbox { display: flex; align-items: center; position: relative; padding-left: 28px; cursor: pointer; font-size: 0.9rem; color: var(--text); user-select: none; } .checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; } .checkbox .checkmark { position: absolute; top: 50%; left: 0; height: 18px; width: 18px; background-color: var(--bg-surface); border: 1px solid var(--border-strong); transform: translateY(-50%); transition: background-color 0.2s; } .checkbox:hover input ~ .checkmark { background-color: var(--text-faint); } .checkbox input:checked ~ .checkmark { background-color: var(--accent); border-color: var(--accent); } .checkbox .checkmark::after { content: ""; position: absolute; display: none; left: 6px; top: 2px; width: 3px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); } .checkbox input:checked ~ .checkmark::after { display: block; } /* ========================================================================== 9. SCROLLBAR ========================================================================== */ ::-webkit-scrollbar { width: 5px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--bg-surface); } ::-webkit-scrollbar-thumb:hover { background: var(--text-faint); } /* ========================================================================== 10. TOOLTIP ========================================================================== */ .tooltip { position: absolute; background-color: var(--bg-surface); color: var(--stone-100); padding: 5px 10px; font-size: 0.85em; border: 1px solid var(--stone-600); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); opacity: 0; visibility: hidden; transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out; z-index: 1010; white-space: nowrap; pointer-events: none; } .tooltip.visible { opacity: 1; visibility: visible; } .has-tooltip { border-bottom: 1px dotted var(--fuchsia); cursor: help; position: relative; } /* ========================================================================== 11. FIGURE / MEDIA ========================================================================== */ figure { margin: 2em 0; } figure img, figure video, figure canvas { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--border); box-sizing: border-box; } figcaption { padding: 0.75em 0.25em; text-align: center; font-size: 0.9em; color: var(--text-muted); line-height: 1.4; } img { max-width: 100%; height: auto; } /* ========================================================================== 12. PROGRESS BAR ========================================================================== */ progress { width: 100%; height: 12px; -webkit-appearance: none; appearance: none; border: none; background-color: var(--bg-surface); } progress::-webkit-progress-bar { background-color: var(--bg-surface); } progress::-webkit-progress-value { background-color: var(--success); transition: width 0.3s ease-in-out; } /* ========================================================================== 13. OVERLAY / MODAL ========================================================================== */ .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: center; z-index: 200; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; } .overlay.active { opacity: 1; visibility: visible; } .panel { background: var(--bg-raised); border: 1px solid var(--border); padding: 28px 32px; min-width: 380px; max-width: 480px; max-height: 80vh; overflow-y: auto; transform: translateY(8px); transition: transform 0.2s ease; } .overlay.active .panel { transform: translateY(0); } /* ========================================================================== 14. UTILITY CLASSES ========================================================================== */ .hidden { display: none !important; } .fade-out { opacity: 0; pointer-events: none; } .text-muted { color: var(--text-muted); } .text-faint { color: var(--text-faint); } .text-bright { color: var(--text-bright); } .text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warning { color: var(--warning); } .font-mono { font-family: var(--font-mono); }