frontend-design
Design principles and styling rules for building and auditing the FractalEngine Studio user interface. Helps with visual hierarchy, layout structure, typography, and styling consistency in line with project standards.
- License 许可
- Apache-2.0
- 最近更新
- 2026-08-12
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- frontend-design
- license
- Complete terms in LICENSE.txt
- description
- Design principles and styling rules for building and auditing the FractalEngine Studio user interface. Helps with visual hierarchy, layout structure, typography, and styling consistency in line with project standards.
02 资源文件 1
- 许可证LICENSE.txt9.9 KB
03 SKILL.md 正文
FractalEngine Studio Frontend Design Guidelines
This document guides design choices for FractalEngine Studio. Every new layout, panel, component, or visual tweak must adhere to these design principles, preventing generic templated defaults and maintaining a professional, integrated IDE look (similar to premium themes like JetBrains Dark or VS Code Slate).
1. Visual Hierarchy & Theme Constraints
- Dark Space Theme: By default, the UI uses the custom Dark Space color palette defined in
src/lib/styles/_tokens.sass. - Contrast Ratios: All UI text must hit at least 4.5:1 contrast against its background. Large headers (>= 18px) must hit at least 3:1.
- Two-Layer CSS Variables: Every color, shadow, padding, or border-radius value must consume semantic design variables:
--background10/--foreground10(Editor surface, primary panels)--background20/--foreground20(Sidebar wrappers, tab headers)--background30/--foreground30(Footer strip, borders, input backgrounds)--text-primary/--text-secondary/--text-tertiary--theme-color/--theme-color-alt(Highlights, active markers, focus rings)--feedback-error(Error text, warning indicators)
2. Layout Structure & Resizing
- App Shell Layout: Consists of a slim Header Strip (
--chrome-header-strip), a central Main Workspace containing Left Sidebar, Editor, Right Sidebar, and a bottom Terminal, followed by a slim Footer Strip (--chrome-footer). - Resizability: Left Sidebar, Right Sidebar, and Terminal are resizable via draggable handles. Do not hardcode fixed widths; read and write layout dimensions from
ideState(leftSidebarWidth,rightSidebarWidth,terminalHeight). - Docking Areas: The terminal can be dynamically docked (
bottom,left,right). Ensure layout grids adapt fluidly to these locations.
3. Typography & Styling Rules
- Monospace Alignment: The editor surface and line numbers column must align using strict monospace font definitions.
- Classic SASS Only: All styling must be written in classic indented SASS (
.sasssyntax, no curly braces or semicolons) using tabs for indentation. Do not write CSS or.scss. - No Style Blocks in Svelte: Never write
<style>inside Svelte components. All component styles go intosrc/lib/styles/components/(e.g._editor.sass,_sidebar.sass,_terminal.sass) and are imported insrc/lib/styles/index.sass.
4. Absolute Styling Bans
Avoid these design traps to keep the interface looking polished and authentic:
- No Hardcoded Metrics: Never write hardcoded color hex values (
#fff,#000), fixed pixel fonts, spacing, shadows, or border radii directly inside components or SASS rules. Always map them to semantic variables. - No Side-Stripe Accent Borders: Avoid thick left/right borders on cards, alerts, or list items.
- No Gradient Text: Keep headings clean, readable, and solid colored.
- No Excessive Rounding: The interface uses structured, low-radius styling (mostly 0px to 4px border-radius) for an authentic developer workspace feel. Do not use
border-radius: 32pxor extreme roundings unless for full-pill badges. - No native HTML Color Inputs: Color pickers must use the custom spectrum/hex picker popover.
5. Interaction & Undo Boundaries
- Keyboard Navigation: Interactive controls must have visible
:focus-visibleoutlines using--theme-color. - Mandatory Undo/Redo: Every user-editable state (such as text input changes, form field selections, theme triggers, layout presets, or workspace configurations) must be bounded by the global Undo/Redo stack in
ideState. - State Serialization: Ensure edits can be snapshotted and restored without reloading page components.
04 同仓库更多 Skills
web-artifacts-builder
Guidelines for building elaborate, multi-component features (artifacts) inside the FractalEngine Studio workspace (e.g. AI panel, wiki/notes layer, email interface, database inspector). Ensures integration with Svelte 5 runes, indented SASS styles, and the central ideState.
theme-factory
Theme management and creation tools for FractalEngine Studio. Use this when asked to "add a theme", "customize editor colors", "build a new theme", "toggle dark/light presets", or "modify workspace appearances".
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
impeccable
Design, redesign, audit, critique, polish, or otherwise improve the FractalEngine Studio user interface. Covers app shell panels, editors, sidebars, terminal console, layouts, themes, components, forms, and settings. Guides compliance with Svelte 5 runes, indented SASS, design tokens, IPC gateways, and mandatory undo boundaries.
canvas-design
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.