# appearance

> Live restyle (e.g.

Source: https://docs.tryyoursize.com/reference/android/appearance-property/

*Property* · `com.tryyoursize:tryyoursize-android`

Live restyle (e.g. when your app switches to dark theme); an open window updates at once.

```kotlin
public var appearance: Appearance
```

## Example

**Kotlin**

```kotlin
tys.appearance = tys.appearance.copy(colorPrimary = 0xFF3B2F26.toInt())
```

**Swift**

```swift
tys.appearance.colorPrimary = TYSColor(hex: "#3b2f26") // an open window restyles at once
```

**React Native**

```tsx
setAppearance({ variables: { colorPrimary: "#3b2f26" } });
```

**Flutter**

```dart
await tys.setAppearance(const Appearance(colorPrimary: Color(0xFF3B2F26)));
```
