How to create a custom 'ColorSpec' in the Material color utilities library?
from ryujin470@fedia.io to programming@programming.dev on 27 Mar 18:58
https://fedia.io/m/programming@programming.dev/t/3667391

Since the Material 3 Expressive update, the Material color utility library uses a ‘ColorSpec’, with two predefined specs: ColorSpec2021 and ColorSpec2025.

How do I create a custom color spec using a new spec name not defined there (they have SPEC_2021 and SPEC_2025) and using a Variant name not present in the original spec? Does this require e.g. modifying files like color_spec.ts, material_dynamic_colors.ts, and variant.ts?

#programming

threaded - newest