# Shape

Source: https://material.spynejs.com/foundations/shape
Part of: Material shell gallery, Google's Material Design 3 for SpyneJS. Index: https://material.spynejs.com/llms.txt

Material's ten corner radii. A component takes its corner from one of them by name; a model does not choose shape, but for a button's `shape` key.

## In an app model

Nothing, with one exception: a button’s `shape` key (`round` or `square`), on the Button page.

## The custom properties

A corner is a custom property named `--md-sys-shape-corner-` and then its name:

```css
.my-panel {
  border-radius: var(--md-sys-shape-corner-medium);
}
```

## Where it is in the template

| File | What it holds | By name |
| --- | --- | --- |
| `src/scss/00-spynejs-design-system/tokens/_material.scss` | the corners, read from Google’s tokens |  |

The template is public: https://github.com/spynejs/application-shell-material. An app made from it has these same files.

## As the page shows it

The page’s own words, in its own order, read from the page as it is drawn in the light colour scheme. They were written for someone looking at the page: “above”, “below” and “marked” mean the drawn page. A thing the page draws is named here in its place (`Button:`, `Field:`, `Switch:`), and a box that reports what the reader does is as it starts, empty. What depends on the reader’s own window is left out.

The corner radii. A component takes its corner from one of these by name. Each square below has that corner, and its value is read from the page.

### Corners

Full is a radius large enough to round any side completely.

| Token | Custom property | Value |
| --- | --- | --- |
| corner-none | `--md-sys-shape-corner-none` | 0px |
| corner-extra-small | `--md-sys-shape-corner-extra-small` | 4px |
| corner-small | `--md-sys-shape-corner-small` | 8px |
| corner-medium | `--md-sys-shape-corner-medium` | 12px |
| corner-large | `--md-sys-shape-corner-large` | 16px |
| corner-large-increased | `--md-sys-shape-corner-large-increased` | 20px |
| corner-extra-large | `--md-sys-shape-corner-extra-large` | 28px |
| corner-extra-large-increased | `--md-sys-shape-corner-extra-large-increased` | 32px |
| corner-extra-extra-large | `--md-sys-shape-corner-extra-extra-large` | 48px |
| corner-full | `--md-sys-shape-corner-full` | 9999px |
