---
title: 'CSS with classes!'
description: 'A handy macro to handle classes'
comment: 'Keep this file as short and simple as possible. Its purpose is to ease in the reader into components in Yew instead of providing proper API docs'
---
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
Yew does not natively provide a css in rust solution, but helps with styling by providing
programmatic ways to interact with the html `class` attribute.
## Classes
The `classes!` macro and associated `Classes` struct simplify the use of HTML classes:
```rust
use yew::{classes, html};
html! {
};
```
```rust
use yew::{classes, html};
html! {
};
```
```rust
use yew::{classes, html};
html! {
};
```
```rust
use yew::{classes, html};
html! {
};
```
```rust
use yew::{classes, html};
html! {
};
```
```rust
use yew::{classes, html};
html! {
};
```
We will expand upon this concept in [more CSS](../../more/css).
## Inline Styles
Currently Yew does not provide any special help with inline styles specified via the `styles` attribute,
but you can use it like any other html attribute:
```rust
use yew::{classes, html};
html! {
};
```
We will expand upon this concept in [more CSS](../../more/css).