Skip to content

Commit

Permalink
chore: comments
Browse files Browse the repository at this point in the history
Co-Authored-By: Agnès ZITTE <[email protected]>
  • Loading branch information
iurycarlos and agneszitte committed Apr 30, 2024
1 parent 33b85df commit fc85e7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified doc/assets/material-theme-builder-export2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions doc/material-dsp.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This package will be automatically present in the project after [creating a new
* The package is already present when you select _Material_ theme during project creation:
![Selection of Material theme when creating a project using the Uno Template Wizard](assets/material-theme-selection-wizard.png)

## Generating a custom color palette and export as JSON file
## Generating a custom color palette and exporting as a JSON file

1. Navigate to the [Material Theme Builder](https://m3.material.io/theme-builder#/custom) and select the colors you want to use for your application.
2. Locate the _Export_ button and pick the _Material Theme (JSON)_ format.
Expand All @@ -48,7 +48,7 @@ This will generate the file at each build, potentially overriding any changes yo

Alternatively, you can also use the [Uno.Dsp.Cli](https://nuget.org/packages/Uno.Dsp.Cli) package to generate the file from the command line. This will allow you to generate the file only when you want to, and not at each build.

> [!TIP]
> [!NOTE]
> Besides **Material Theme Builder Tool** doesn't export anymore **Material Tokens (DSP)** packages, Uno Plugin still supports this file with no restriction.
> To be able to import DSP packages just follow the same steps described previously and save the downloaded dsp zip file as `ColorPaletteOverride.zip` in the `Styles` folder of your application project.
> To be able to import DSP packages just follow the same steps described previously and save the downloaded DSP zip file as `ColorPaletteOverride.zip` in the `Styles` folder of your application project.
> Make sure to delete the `material-theme.json` file from `Styles` folder before building your application, to avoid conflicts.

0 comments on commit fc85e7d

Please sign in to comment.