# Slab vs Web Awesome and Shoelace

> All three are custom elements that work in any framework. The difference is the design: theirs come with one, and Slab leaves it to you.

## The short version

Web Awesome, and Shoelace before it, are custom elements, like Slab. So they work in React, Vue, Svelte, Ember or a plain HTML file. They come with a design of their own, which you adjust with themes, custom properties and parts. Slab comes with no design at all. **You start from a blank element and add only what your design needs.**

## Styling from nothing

With a styled library, your design starts as an override. You find the token or the part that sets a color, a radius or a size, and change it. Anything the theme set that you didn't change is still there. Slab has no tokens and no theme. A component has no size and nothing to see until you style it through `::part()` and `:state()`. Nothing of someone else's design leaks into yours.

```css
slab-checkbox::part(checkbox) {
  block-size: 1rem;
  border: 1px solid currentcolor;
  inline-size: 1rem;
}

slab-checkbox:state(checked)::part(checkbox) {
  background-color: currentcolor;
}
```

Want to see how far that goes? The [showcase](showcase.md) puts the same elements in four designs that look nothing alike, each one stylesheet.

## Native first

Every Slab element is built on the native element it corresponds to, and works the way that element does. Fields take `value`, `checkValidity()` and `setCustomValidity()`. Dialogs take `show()`, `showModal()` and `close()`. Anything with `open` dispatches "toggle". If you know `<input>` and `<dialog>`, you already know most of Slab's API.

## Which to pick

Both are good choices. It comes down to whether you want a design or have one.

- **Web Awesome or Shoelace.** You want a polished look today, and you're happy to theme someone else's design. Web Awesome also has a paid Pro tier with more components and themes.
- **Slab.** You have a design system of your own, or a design a theme can't reach. You'd rather add styles than override them.

[Get started](get-started.md) has the rest: installing, frameworks, forms and what each element weighs.
