Language
Styling
Accent
Scheme
Backdrop motion
Language

Styling

A style is a CSS property by its own name, written on the element. States, an element above, the window's width and the colour scheme are child lines of the same. There are no classes, selectors or media queries to write.

Values

Values and unitsA bare number is px, except where CSS wants a plain number (flex, opacity, z-index, line-height, font-weight, order, aspect-ratio, scale). 50%, 1fr, #hex and bare keywords are themselves; anything computed goes in brackets.
padding=16 border-radius=14
padding16 (px)
border-radius14 (px)
opacity1.00 (a plain number)
scale1 (a plain number)
Colour rolesNine names that follow light and dark by themselves: fg bg dim card line accent danger ok warn. The same swatches twice, one panel held light and one held dark.
lightAa
fgtext
bgthe page
dimquieter text
carda raised area
lineborders
accentthe app's colour
dangerwrong, delete
okright, done
warntake care
Savecarddangerokwarndim
darkAa
fgtext
bgthe page
dimquieter text
carda raised area
lineborders
accentthe app's colour
dangerwrong, delete
okright, done
warntake care
Savecarddangerokwarndim
Outside a role, light-dark(#fff, #111) gives a colour for each scheme.

States

A child line that starts with a state holds the styles for it.
hover, active, focus, disabled, checkedConstant styles for the element while it is in that state. focus is the keyboard's focus (Tab to it).
disabled
A checkbox drawn with a checked line: filled and turned while checked.
hoverthe pointer is over itactiveit is being pressedfocusthe keyboard is on itdisabledit is disabledcheckeda checkbox or radio that is on
group, and in hoverMark an element group; inside it, in hover (or in active, in focus, in disabled) styles a child while that element is in the state. With several, name them: group="card" and in card hover.
Order hingesin hover
Sand the doorsin hover
group="card"in card hover: anywhere on the card
group="title"in title hover: only this row
in disabled
fieldset disabled=locked
in checked needs the group itself to be the checked element, and a checkbox has no children: for that, bind the checkbox to state and compute the style from it.

The window and the scheme

No media queries: a line for a width or a scheme, and screen.* in logic.
phone, tablet, desktop, dark, lightChild lines like the states: phone is under 640 wide, tablet 640 to 1023, desktop 1024 and up. The lit tiles are the lines that apply to this window now.
phoneunder 640
tablet640 to 1023
desktop1024 and up
lightthe scheme is light
darkthe scheme is dark
Resize the window, or change the scheme in the next card, and watch them change.
screen.*The same facts as values, reactive, for logic and markup.
screen.width1280screen.height800screen.phonefalsescreen.tabletfalsescreen.desktopfalsescreen.darkfalsescreen.scheme"auto"
if screen.phone … else: this is the else
scheme(…)Tells the page a scheme and keeps it for next time. "auto" follows the system again. screen.scheme is what it was told.
autoscreen.scheme
falsescreen.dark
The whole playground changes: this is the page's scheme, not this card's.

Motion

spin, pulse, fade, rise, popFive animations are built in; name one in animation= and its keyframes ship. fade, rise and pop play once when the element is made, so Replay makes the elements again.
spin1s linear infinite
pulse1.4s ease-in-out infinite
fade700ms ease, once
rise700ms ease, once
pop700ms ease, once
made 1 time
Transitionstransition= is CSS's own: when a style's value changes, it moves there instead of jumping. The styles here are computed from one bool.
400 ms

Glass

glassOne word on any element: what is behind it shows through, blurred, with a lit rim (in Chromium the rim also bends it). glass=24 says how much blur. A background, border or shadow written beside it replaces glass's own.
GLASS
glassPlain: a blur of 14.
glass=16What this playground's cards use.
glass=12 background=…Its own tint, rim and shadow.
glass=16the middle pane: the number is written in the source, so the slider picks one of seven panes
its own background, border and shadowthe third pane
esc
Pages
StartStart
Buttons & badgesComponents
Cards & disclosureComponents
Dialogs & drawersComponents
Menus & commandsComponents
Dates & tablesComponents
ChartsComponents
Chart galleryComponents
FieldsComponents
ChoicesComponents
DisplayComponents
NavigationComponents
Popovers & sheetsComponents
MessagesChat & AI
Prompt inputChat & AI
Reasoning & toolsChat & AI
Developer partsChat & AI
ConversationChat & AI
Code artifactsChat & AI
VoiceChat & AI
Code blocksChat & AI
MarkdownChat & AI
EditorElements
TerminalElements
FlowElements
3D boxesElements
PaintElements
SurfaceElements
MediaElements
IconsElements
PrimitivesElements
SQLBatteries
StorageBatteries
Net & resourcesBatteries
Crypto & bytesBatteries
ZipBatteries
TablesBatteries
PDFBatteries
TimeBatteries
ImagesBatteries
ScanBatteries
Video & audioBatteries
SearchBatteries
SyntaxBatteries
PatternsBatteries
NotifyBatteries
ShareBatteries
State & logicLanguage
WorkersLanguage
Events & elementsLanguage
StylingLanguage
RoutesLanguage
ShortcutsLanguage
Long listsLanguage
Failures & tryLanguage
Back endBack end
Models & writesBack end
Rules & failuresBack end
Jobs & schedulesBack end
Running itBack end
ExtensionsBack end
AIBack end
AnalyticsBack end
AboutAbout
↑↓move
↵open
676 places · ranked by BM25