# Design

Every community, group or store, can have its own look. Officers open the community's menu › **Design…**: a tab for
each part. Changes are a **draft** until you **publish** them; every published version is kept, and **History…**
brings an old one back.

## The parts

| Part | What you set |
| --- | --- |
| **Colour and font** | The accent colour and the title font: Germania, Bungee, Pacifico, Press Start, Creepster, Cinzel, Fredoka, Permanent Marker, Orbitron, Lobster, Bangers or Silkscreen. |
| **Background and effect** | A wallpaper picture, how dim it is (0-90), and an effect (snow, petals, fireflies, leaves, stars, bubbles, confetti), or your own **scene**. |
| **Bursts** | Confetti-like bursts on joins, purchases, words or commands. |
| **Seasons** | Looks that come back each year between two dates, or a one-off **takeover** for a sale (up to 60 days). |
| **Labels and scores** | Labels for games, with colours, and how scores are drawn: paws, stars, hearts, stamps or numbers. |
| **Ranks** | Your own names, colours and badges for member, moderator, officer and owner. |
| **Welcome** | A title, words and rules shown to new members. |
| **Building** | Your store's building on the street: shop, cafe, arcade, castle, cottage or tower, and its window colour. |
| **Address** | Your own short address (`#/c/<address>`). |
| **Channels** | CSS for your chat, forum and voice channels, and whether they wear your colours. |

Members can also get a **flair** (the menu's **Flair…**): a word and a colour by their name.

**Themes…** has ready-made looks, six of them built in (colour, font, scores and an effect, plus a preset scene): **Try it** makes it your draft, leaving your words and pages as they are; you can also share your
own look as a theme.

## Everything from day one

Every part of a design is open to every community from its first member: backgrounds, effects, seasons, scenes,
bursts, moving pictures, animations, shaders, channels' CSS, your own page, widgets and activities, scripts and AI
helpers. Your own address is for open communities. If Games Communities takes a design down, its widgets, activities
and shaders stay off for 30 days.

## Scenes

A **scene** is a background made of layers: pictures, particles, light, fog, animations, shaders and a 3D backdrop.
The store, each page, the channels, the header and overlays can each have their own. Open the **Scene editor** in
Design… › Background and effect. Everything about them, with their limits: [Effects](effects.md).

## Channels' CSS

The channels' CSS (up to the size the editor shows) styles the channel list and the open chat, forum or voice channel.
It is kept inside the channels, so it can't reach the rest of the app.

- `[data-part=list]` is the channel list, `[data-part=channel]` the open channel; `[data-kind=text|announcements|forum|voice]`
  and `[data-channel="name"]` pick one kind or one channel.
- Classes: `.c-channels`, `.c-link` (`.active`, `.unread`, `.c-kind-<kind>`), `.c-chat`, `.c-messages`, `.c-day`,
  `.c-message` (`.c-me`, `.c-mine`, `.c-bot`, `.c-pinned`), `.c-body`, `.c-sender`, `.c-time`, `.c-pin`, `.c-reply`,
  `.c-text`, `.c-picture`, `.c-reactions`, `.c-typing`, `.c-composer`, `.c-locked`, `.c-forum`, `.c-thread`, `.c-title`,
  `.c-post`, `.c-voice`, `.c-person` (`.c-speaking`), `.c-ring`.
- Custom properties are `--my-*`, plus `--accent` and `--on-accent`.
- `url()` only for your own uploads. `@media`, `@supports`, `@keyframes` and `@font-face` are kept.
- CSS can't write words: quoted strings hold at most 4 symbols or emoji, no letters or digits.
- Games Communities' own pieces (names, avatars, badges, menus, notices) are out of its reach.

```css
.c-message.c-bot { border-left: 3px solid var(--accent); }
[data-kind=voice] .c-person.c-speaking { box-shadow: 0 0 0 2px var(--my-glow, #9fdc5c); }
```

## Safety rules

- Words asking for passwords, codes or cards, or speaking as Games Communities, are refused in designs, themes, pages
  and bot posts.
- CSS animations are slowed to at most 3 flashes a second.
- Viewers can turn off moving shops and widgets, and switch any community's channels to the plain look.

> [!AI]
> An AI helper changes the design with `set_design` (each part replaces the old one whole) and reads it with
> `get_design(parts)`. `reference("design")` has every field and its allowed values; `reference("channels")` the
> channels' CSS rules. See [AI helpers' tools](../ai/tools.md).
