# MaterialColorSpec

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-themes-material/enum-materialcolorspec/

**enum** · [`ferroui-themes-material`](/docs/0.5.0/api/ferroui-themes-material/) · v0.5.0

```rust
enum MaterialColorSpec
```

Source-spec selection for locally generated phone schemes. The default is
exactly Google's `DynamicScheme.DEFAULT_SPEC_VERSION` at the pinned commit.
This never changes imported Android colors or the AndroidX baseline schemes.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/dynamic_color.rs#L33)

## Members

- [`Spec2021`](#variant-spec2021)
- [`Spec2025`](#variant-spec2025)
- [`Spec2026`](#variant-spec2026)
- [`effective_for`](#function-effective_for)

<a id="variant-spec2021"></a>

### Spec2021

```rust
Spec2021
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/dynamic_color.rs#L35)

<a id="variant-spec2025"></a>

### Spec2025

```rust
Spec2025
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/dynamic_color.rs#L36)

<a id="variant-spec2026"></a>

### Spec2026

```rust
Spec2026
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/dynamic_color.rs#L37)

<a id="function-effective_for"></a>

### effective_for

```rust
const fn effective_for(self: Self, style: MaterialPaletteStyle) -> Self
```

Apply Google's supported-variant fallback. The 2026 spec introduces a
separate CMF multi-source variant, which this single-seed API does not
expose. For these nine phone styles its results are identical to 2025.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/dynamic_color.rs#L44)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Equivalent<K>`
- `CastableFrom<ST, Uninit, Uninit>`
- `CastableFrom<ST, Initialized, Initialized>`
- `Read<Exclusive, BecauseExclusive>`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
