23.2.6 • Published 4 days ago

devexpress-dashboard-cli v23.2.6

Weekly downloads
45
License
MIT
Repository
-
Last release
4 days ago

DevExpress Dashboard CLI

The DevExpress Dashboard CLI is a set of command-line tools to be used with the DevExpress Dashboard control.

Installation

To install the devexpress-dashboard-cli package globally with npm, run the following command:

npm install -g devexpress-dashboard-cli

Make sure you have Node.js and npm installed on your machine.

Usage

Use the DevExpress Dashboard CLI to create a custom Dashboard theme or apply a custom DevExtreme theme created with the ThemeBuilder.

The DevExpress Dashboard CLI uses the Dashboard ThemeBuilder's exported json file to generate CSS files for the custom theme.

The following command generates custom CSS files:

npx devexpress-dashboard-cli build-theme

Use --help to list the available parameters:

npx devexpress-dashboard-cli build-theme --help
ArgumentsDescription
--input-fileSpecifies the json file generated by the DevExtreme ThemeBuilder.
--base-themeSpecifies a base theme's name (the default value is generic.light).
--output-color-schemeSpecifies the custom color scheme name (the default value is custom-scheme).
--output-dirSpecifies the folder to save output files (the default value is the current directory).
--versionSpecifies the target peer dependencies version.

Example

  1. Open the ThemeBuilder. Create a custom theme based on the Generic theme. Use the Light color scheme as a base and change its accent color from blue (#57dd62) to yellow (#fdb400).
  2. Set the color scheme name (light-yellow) and export the metadata as dx.generic.light-yellow.json to the created folder.

    Refer to the ThemeBuilder article for more information about the DevExtreme ThemeBuilder tool.

  3. Copy the downloaded JSON file (dx.generic.light-yellow.json) to the folder with the installed packages (step 1).

  4. Edit dx.generic.light-yellow.json and add the dashboardItems property to override the accent colors at the dashboard level:

    {
        "items": [
            {
                "key": "@base-accent",
                "value": "#fdb400"
            }
        ],	 
        "dashboardItems": [  
            { 
                "key": "@dashboard-item-selected-bg", 
                "value": "rgba(#fdb400, 0.2)" 
            },
            { 
                "key": "@dashboard-item-hover-bg", 
                "value": "rgba(#fdb400, 0.1)" 
            } 
        ],
        "baseTheme": "generic.light",
        "outputColorScheme": "light-yellow",
        "makeSwatch": false,
        "version": "19.1.5"
    }

    Refer to Color Constants to see a list of available color constants you can use to customize the Web Dashboard's colors.

  5. In the created folder, use the command prompt to execute the command that builds the CSS files for your custom theme:

    npx devexpress-dashboard-cli build-theme --input-file dx.generic.light-yellow.json

    This generates the following CSS files you need to use to apply a custom theme:

    • dx.light-yellow.css
    • dx-analytics.light-yellow.css
    • dx-dashboard.light-yellow.css
    • dx.light-yellow.min.css
    • dx-analytics.light-yellow.min.css
    • dx-dashboard.light-yellow.min.css

See Apply a Custom Theme for information on how to use the generated CSS files to apply the custom theme.

License

DevExpress Dashboard CLI is distributed under the MIT license (free and open-source), but can only be used with a commercial DevExpress Dashboard software product. You can review the license terms or download a free trial version of the Dashboard suite at DevExpress.com.

Support & Feedback

  • Follow this article for general information about themes and styles.
  • For any questions regarding the use of DevExpress Dashboards tools, please refer to our Support Center.
22.1.14

15 days ago

22.2.12

15 days ago

23.2.6

15 days ago

23.1.10

15 days ago

23.1.9

2 months ago

23.2.5

2 months ago

22.1.13

3 months ago

22.2.11

3 months ago

23.1.8

4 months ago

23.2.4

4 months ago

22.1.12

5 months ago

23.1.7

5 months ago

22.2.10

5 months ago

21.2.15

5 months ago

23.2.3

5 months ago

22.1.11

9 months ago

22.2.9

7 months ago

22.2.8

9 months ago

23.1.5

9 months ago

23.1.4

10 months ago

23.1.6

7 months ago

23.2.2-beta

6 months ago

22.1.10

11 months ago

22.2.7

11 months ago

21.2.14

11 months ago

23.1.3

11 months ago

23.1.2-beta

12 months ago

22.2.6

1 year ago

22.1.9

1 year ago

20.1.17

1 year ago

21.2.13

1 year ago

21.1.12

1 year ago

20.2.13

1 year ago

22.2.5

1 year ago

22.1.8

1 year ago

22.2.4

1 year ago

22.2.3

1 year ago

21.2.12

1 year ago

22.1.7

1 year ago

20.1.16

2 years ago

21.2.11

2 years ago

19.2.15

2 years ago

21.1.11

2 years ago

22.2.2-beta

2 years ago

20.2.12

2 years ago

22.1.6

2 years ago

21.2.10

2 years ago

22.1.5

2 years ago

21.1.10

2 years ago

21.2.9

2 years ago

22.1.4

2 years ago

22.1.3

2 years ago

21.2.8

2 years ago

22.1.2-beta

2 years ago

20.1.15

2 years ago

21.1.9

2 years ago

19.2.14

2 years ago

20.2.11

2 years ago

21.2.7

2 years ago

21.2.6

2 years ago

20.1.14

2 years ago

21.1.8

2 years ago

19.2.13

2 years ago

21.1.7

2 years ago

20.2.10

2 years ago

21.2.4

2 years ago

21.2.5

2 years ago

21.2.3

3 years ago

21.2.2-beta

3 years ago

21.1.6

3 years ago

20.2.9

3 years ago

21.1.5

3 years ago

20.1.13

3 years ago

20.2.8

3 years ago

21.1.4

3 years ago

21.1.3

3 years ago

19.2.12

3 years ago

20.1.12

3 years ago

20.2.7

3 years ago

21.1.2-beta

3 years ago

20.1.11

3 years ago

20.2.6

3 years ago

20.1.10

3 years ago

20.2.5

3 years ago

19.2.11

3 years ago

20.2.4

3 years ago

20.1.9

3 years ago

20.2.3

4 years ago

20.1.8

4 years ago

19.2.10

4 years ago

20.2.2-beta

4 years ago

20.1.7

4 years ago

20.1.6

4 years ago

20.1.5

4 years ago

19.2.9

4 years ago

20.1.4

4 years ago

19.2.8

4 years ago

20.1.3

4 years ago

20.1.2-beta

4 years ago

19.2.7

4 years ago

19.2.6

4 years ago

19.2.5

4 years ago

19.2.4

5 years ago

19.2.3

5 years ago

19.2.2-beta

5 years ago