1.0.0-alpha.6 • Published 2 days ago

@nocobase/plugin-theme-editor v1.0.0-alpha.6

Weekly downloads
-
License
-
Repository
-
Last release
2 days ago

English | 中文

Theme Editor

Note: The current theme feature is implemented based on antd 5.x version. It is recommended to read about the Customizing Theme concept before proceeding with this document.

Introduction

The plugin is essentially a tool for modifying the style of the entire front-end page. It currently supports editing global SeedToken, MapToken, and AliasToken, as well as enabling a switch to Dark Mode and Compact Mode. In the future, it may support component-level theme customization.

User Guide

Enabling The Theme Plugin

Firstly, update NocoBase to the latest version (v0.11.1 or above). Then, search for the Theme Editor card in the Plugin Management Page. Click on the Enable button at the bottom right of the card and wait for the page to refresh.

20240409132838

Navigate to the Theme Configuration Page

After enabling, click on the settings button at the bottom left of the card, and you will be redirected to the theme editing page. By default, there are four theme options: Default Theme, Dark Theme, Compact Theme, and Compact Dark Theme.

20240409133020

Adding a New Theme

Click the Add New Theme button and choose Create a Brand New Theme. A Theme Editor will pop up on the right side of the page, allowing you to edit Colors, Sizes, Styles, and more. After editing, enter a theme name and click save to add the new theme.

20240409133147

Applying the New Theme

You can move the mouse to the top right corner of the page, where you will see a theme switcher. Clicking on it allows you to switch to other themes, such as the newly added theme.

20240409133247

Editing an Existing Theme

Click the Edit button at the bottom left of the card. Similar to adding a new theme, a Theme Editor will pop up on the right side of the page. After editing, click save to complete the theme modification.

20240409134413

User Options for Theme Switching

Newly added themes are by default available for users to switch to. If you do not want users to switch to a certain theme, you can turn off the User selectable switch at the bottom right of the theme card, making it unavailable for users to choose.

20240409133331

Setting as Default Theme (The Default Theme Cannot Be Deleted)

Initially, the Default Theme is set as the default. If you want to set a specific theme as the new default, switch on the Default Theme toggle at the bottom right of the card. This will ensure that when users open the page for the first time, they will be presented with this theme.

20240409133409

Deleting a Theme

Click on the Delete button below the card, then click on the confirmation button that pops up to remove the theme.

20240409133435

1.0.0-alpha.6

2 days ago

1.0.0-alpha.5

3 days ago

1.0.0-alpha.4

8 days ago

1.0.0-alpha.3

9 days ago

1.0.0-alpha.2

10 days ago

0.21.0-alpha.16

11 days ago

1.0.0-alpha.1

11 days ago

0.21.0-alpha.15

17 days ago

0.21.0-alpha.14

18 days ago

0.21.0-alpha.13

18 days ago

0.21.0-alpha.12

20 days ago

0.21.0-alpha.11

22 days ago

0.21.0-alpha.10

23 days ago

0.21.0-alpha.9

23 days ago

0.21.0-alpha.8

24 days ago

0.21.0-alpha.7

27 days ago

0.21.0-alpha.6

1 month ago

0.21.0-alpha.5

1 month ago

0.21.0-alpha.4

1 month ago

0.21.0-alpha.3

1 month ago

0.21.0-alpha.2

1 month ago

0.21.0-alpha.1

1 month ago

0.20.0-alpha.17

1 month ago

0.20.0-alpha.16

2 months ago

0.20.0-alpha.15

2 months ago

0.20.0-alpha.14

2 months ago

0.20.0-alpha.12

2 months ago

0.20.0-alpha.13

2 months ago

0.20.0-alpha.11

2 months ago

0.20.0-alpha.9

2 months ago

0.20.0-alpha.10

2 months ago

0.19.0-alpha.10

2 months ago

0.20.0-alpha.8

2 months ago

0.20.0-alpha.7

2 months ago

0.20.0-alpha.6

2 months ago

0.20.0-alpha.4

2 months ago

0.20.0-alpha.5

2 months ago

0.20.0-alpha.3

2 months ago

0.20.0-alpha.1

2 months ago

0.20.0-alpha.2

2 months ago

0.19.0-alpha.9

2 months ago

0.19.0-alpha.8

3 months ago

0.19.0-alpha.7

3 months ago

0.19.0-alpha.6

3 months ago

0.19.0-alpha.5

3 months ago

0.19.0-alpha.4

3 months ago

0.19.0-alpha.3

4 months ago

0.19.0-alpha.2

4 months ago

0.19.0-alpha.1

4 months ago

0.18.0-alpha.9

4 months ago

0.18.0-alpha.8

4 months ago

0.18.0-alpha.1

5 months ago

0.17.0-alpha.7

5 months ago

0.17.0-alpha.6

5 months ago

0.17.0-alpha.4

5 months ago

0.17.0-alpha.5

5 months ago

0.17.0-alpha.3

5 months ago

0.17.0-alpha.2

5 months ago

0.17.0-alpha.1

5 months ago

0.16.0-alpha.6

5 months ago

0.16.0-alpha.5

5 months ago

0.16.0-alpha.4

6 months ago

0.16.0-alpha.3

6 months ago

0.16.0-alpha.1

6 months ago

0.15.0-alpha.5

6 months ago

0.15.0-alpha.4

6 months ago

0.15.0-alpha.3

6 months ago

0.15.0-alpha.2

6 months ago

0.15.0-alpha.1

6 months ago

0.14.0-alpha.8

6 months ago

0.14.0-alpha.7

7 months ago

0.14.0-alpha.6

8 months ago

0.14.0-alpha.5

8 months ago

0.14.0-alpha.4

8 months ago

0.14.0-alpha.3

8 months ago

0.14.0-alpha.2

8 months ago

0.14.0-alpha.1

8 months ago

0.13.0-alpha.10

8 months ago

0.13.0-alpha.9

8 months ago

0.13.0-alpha.8

8 months ago

0.13.0-alpha.7

8 months ago

0.13.0-alpha.6

8 months ago

0.13.0-alpha.5

8 months ago

0.13.0-alpha.4

9 months ago

0.13.0-alpha.3

9 months ago

0.13.0-alpha.2

9 months ago

0.13.0-alpha.1

9 months ago

0.12.0-alpha.5

9 months ago

0.12.0-alpha.4

9 months ago

0.12.0-alpha.3

9 months ago

0.12.0-alpha.2

9 months ago

0.12.0-alpha.1

9 months ago

0.11.1-alpha.5

10 months ago

0.11.1-alpha.4

10 months ago

0.11.1-alpha.3

10 months ago

0.11.1-alpha.2

10 months ago

0.11.1-alpha.1

10 months ago