Skip to main content
Any Framework

This is the package that contains the command line interface for the Uno DSP Tooling.

Published
May 30, 2023
3y ago
Total Downloads
7.8K
7,768

Install

dotnet add package Uno.Dsp.Cli --version 1.1.0

No framework information available.

README

Uno DSP Tooling - Command Line Interface

This is the package that contains the command line interface for the Uno DSP Tooling.

Overview

This is used to generate Color Overrides file for project using Uno.Themes like documented on the official documentation.

How to get your DSP file

DSP Files are used to define the color palette of a theme and can be generated using the Material V3 Theme Builder web site. Simply export using the "Material Tokens (DSP)" format and download the generated zip file.

Installation

The Uno DSP Tooling CLI is available as a dotnet tool.

To install it, run the following command:

dotnet tool install -g Uno.Dsp.Cli

Usage

To generate the color overrides file, run the following command:

uno-dsp import-colors <path_to_source_theme_file> [<path_to_output_file_or_folder>]

MSBuild Task

If you want this generation to occur automatically when building your project, you may prefer to use the MSBuild task instead.

There is another package that contains a MSBuild task to generate the color overrides file: Uno.Dsp.Tasks.

Using the CLI instead of the MSBuild task is recommended if you want to generate the color overrides file from a DSP file that is not in your project or if you need more flexibility on the moment when it is generated.

Changes from Previous Version

No structural changes between v1.1.0-dev.14 and v1.1.0.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.