Skip to content

DeepFundAI/element-plus-theme-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Element Plus Theme Editor

English | 简体中文

A theme variable editor for Element Plus component library, helping designers quickly adjust and preview Element Plus component styles.

Project Background

This project aims to solve the problem of frequent theme changes by designers. By providing a visual theme editing tool, designers can independently adjust theme variables and export configurations, reducing the workload of developers.

Tech Stack

  • Vue 3
  • TypeScript
  • Tailwind CSS
  • Element Plus

Features

1. Theme Variable Editing

The interface is divided into two sections: variable editing area on the left and component preview area on the right. Supports editing of the following variable types:

  • Color variables
  • Size variables
  • Style variables
  • Other variables

Variable Editing Preview

2. Real-time Preview

After editing variables, the component area on the right will immediately apply the new theme styles, allowing designers to intuitively view the effects.

3. Light/Dark Theme Toggle

Supports quick switching between light and dark themes, making it convenient for designers to preview effects in different scenarios.

Theme Toggle Preview

4. Export Configuration

Supports exporting edited theme variables as a CSS file, making it easy for developers to use directly.

Export Feature Preview

The exported CSS variable file example:

--el-color-primary: #FF8340;

5. Automatic Color Value Calculation

Provides a toggle to automatically compute derivative color values from the primary color, reducing manual input. When enabled, related color shades are generated for you.

Auto Color Calculation Preview

Quick Start

Install Dependencies

npm install

Start Development Server

npm run dev

Access URL: http://localhost:5173/index.html#/theme/component

Build for Production

npm run build

Development

Recommended IDE Setup

Code Linting

npm run lint

License

MIT