gld_ue_template
by @liuganghao
Unified Design and Interaction Standard Template for EPC Management System, complete React + Ant Design (JavaScript) project template and interactive specifi...
clawhub install gld-ue-templateπ About This Skill
name: gld_ue_template description: Unified Design and Interaction Standard Template for EPC Management System, complete React + Ant Design (JavaScript) project template and interactive specification documentation. version: 1.0.0 metadata: openclaw: emoji: "π¨" requires: bins: - node - npm install: - npm install homepage: https://github.com/your-org/gld_ue_template
gld_ue_template
Unified Design and Interaction Standard Template for EPC Management System. This SKILL provides a complete React + Ant Design (JavaScript) project template and interactive specification documentation.
1. Design System Specifications
1.1 Color System
Primary Colors (δΈ»θ²)
#3c83f8 (Brand color, active states, primary buttons)#5995f9#2b6bd9#ecf3ff (Backgrounds for active items)Functional Colors (εθ½θ²)
#46bc46 (Success states, positive metrics)#f7c03e (Warning states, medium risk)#ef5f59 (Error states, high risk, negative metrics)#a855f7 (Categorization, special items)Neutral Colors (δΈζ§θ²)
#E9F2FB#ffffff#fafafa#dfdfdf#e5e5e5#262626#595959#8c8c8c1.2 Typography System
Font Family
"PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif
Font Sizes & Weights
14px (Regular 400)24px (Bold 700)16px (Medium 450/500)34px (Medium 450/500)12px (Regular 400)Line Heights
1.21.51.81.3 Spacing & Layout System
Spacing Scale
4px8px16px24px32px48pxBorder Radius
2px4px8px12px or 14px16px or 50%Shadows
0 1px 2px rgba(0, 0, 0, 0.05)0 4px 6px rgba(0, 0, 0, 0.1)0 10px 15px rgba(0, 0, 0, 0.15)0 8px 25px rgba(0, 0, 0, 0.2)2. Navigation System Standards
2.1 Global Navigation (Top Header)
54px, rounded corners (30px), gradient background (linear-gradient(90deg, #ffffff 0%, #eef5ff 76%, #dcecff 100%)).2.2 Secondary Navigation (Left Sidebar)
#fff3e6, Text #f0932b, Font Weight 450.2.3 Breadcrumb Navigation
src/components/Breadcrumb.jsx.breadcrumbMap object to map URL segments to their display names..crumb-row): Flex layout with a 6px gap and 10px bottom padding.
- Items (.breadcrumb): Uses text-faint color. Hovering changes the color to the brand primary blue.
- Current Page: Marked with the current class, uses text-main color, 600 font weight, and is not a link.
- Separators: Displays a / character between items.
SidebarLayout.3. Component Specifications
3.1 Buttons
#3c83f8, Text #fff, Border Radius 4px, Height 32px.#fff, Text #595959, Border #dfdfdf, Height 32px. Hover: Border #5995f9, Text #5995f9.3.2 Tags & Badges
#3c83f8, Background #ecf3ff.#f7c03e, Background #fff9f2.#46bc46, Background #f7fff2.#ef5f59, Background #fff2f4.#8c8c8c, Background #f2f2f2.3.3 Metric Cards
12px border radius, 1px solid #e5e5e5 border.32x32px, 10px radius).34px, #0f348c or status color).3.4 Tables
#f6faff, Text #595959, Font Weight 600, Border Bottom #e5e5e5.#595959, Border Bottom #e5e5e5. Hover Background #ecf3ff.#f3f7ff, Font Weight 450, Left border indicating category color.3.5 Modals
rgba(0,0,0,0.45).#fff, Border Radius 12px, Max Width 800px.16px Medium, Close button.modalIn 0.2s ease-out (scale 0.95 to 1, opacity 0 to 1).4. How to Use This Template
When a user requests to create or modify a frontend project using this standard:
1. Initialize Project: Copy the contents of the template directory to the target project folder.
2. Install Dependencies: Run npm install (React 18, Ant Design 5.x, React Router v6, Chart.js).
3. Follow Navigation Rules: Ensure "ι¦ι‘΅" has no sidebar, and other sections use the nested sidebar structure.
4. Use Provided Components: Utilize the pre-built layout and UI components to maintain 100% design consistency.
5. No TypeScript: Write all code in JavaScript (.js / .jsx).
5. Template Structure
The template directory contains a complete React application:
src/App.jsx: Routing configuration.src/layouts/: GlobalLayout, SidebarLayout.src/pages/: Home, ListManagement (Demo pages).src/components/: Reusable UI components (MetricCard, Tag, etc.).src/styles/: Global CSS variables and overrides.