A style is a named look for one kind of element, such as a button, a panel or a line of text. Other tools call this a class; the app says style, as in "Style name", "Based on" and "New style from this", and so does this page. Almost every element on a menu screen uses one style (a layout-only panel or row can go without). A button looks the way its style says, and changing the style changes every button that uses it.
A style does not hold raw colors or sizes. It picks tokens by name. A token is a color, type size, spacing step, shape, shadow, motion or sound stored once, with a name, in the style kit. It can also be based on another style and set only what is different. A style you press, such as a button, describes up to six states: how it looks at rest, under the pointer, while pressed and so on.
This page is for makers using Jellydrop (the Game Creator).
Open a style
There are two ways in.
- Choose the UI tab (⌘ 3), choose Style kit in the bar, and click a style in the list on the left, under Styles. A style that is based on another sits indented below it.
- On a screen, click an element. In Details, under Looks come from, choose Edit Source. The style opens, and a Back to link above it returns you to the screen. Right-clicking an element in the elements list offers Edit Source too.
The styles a new UI starts with
The card behind menu contents. Kind: Panel. |
The four text looks: a big name, a heading, reading text and a small note. Kind: Text. |
The ordinary button. Kind: Button. |
The button to press first, in the Accent color. Based on Button.Base. |
A bigger primary button with larger type and padding. Based on Button.Primary. |
A switch, a slider and a row in a list. Kinds: Switch, Slider, List. |
The name tag over a resident. Kind: In-world tag. See In-world UI. |
Kinds of style
The chip beside the style’s name shows its kind. You choose the kind only once, by what you start from: every new style begins as a copy of an existing one and keeps its kind. The kind decides which elements may use the style and whether it has states.
Buttons. Has six states.
A switch that is on or off. Has six states.
A slider, such as a volume. Has six states.
The profile list and the language choice. Has six states.
Panels, rows, the tray on the heads-up display and the Settings element. Rest only. |
Titles and text. Rest only. |
Name tags over residents. Rest only. |
An element on a screen can only use a style of its own kind. The Style list in Details shows only the matching ones. The Based on list does the same: a style can only be based on one of its kind.
The six states
The row of cards above the properties shows the style in each state, drawn the way the game draws it. Click a card to edit that state. A state the style has not set is marked ", not set" and looks the same as Rest. Use Hold in the live preview to see the style kept in one state.
The normal look, and the base every other state starts from. Every style has it. |
The pointer is over it. |
The mouse button is down on it. A pressed button should move, not only change color; see Checks. |
It was reached with the keyboard or a gamepad. In a new UI, buttons get a Warm border. |
It is switched on or chosen: a switch that is on, a button that stays down, the current item in a list. |
It cannot be used right now. In a new UI, buttons fade to 45 percent opacity. |
A state needs to set only what changes. The game works out a state by taking the Rest look and laying the state’s own settings on top, so a hover card that sets Fill and nothing else keeps every other property from Rest. A state never builds on another state: Hover does not carry into Pressed.
Properties
Below the cards is the property list for the state you picked. Each property is a list of tokens from the style kit. A property you have set is highlighted, and a color property shows a small swatch. Any checks about the style show in lines above the property list.
Two extra choices sit at the top of each list. Choosing either clears your choice.
- Not set: nothing is chosen here.
- Inherited: Surface.Deep: shown instead of Not set when the style gets a value from Rest or from the style it is based on. It names the token it takes.
The background color. A panel’s fill is slightly see-through and blurs the island behind it, which gives the glass look.
The color of the words.
The color of a 2 px outline. Every style has the outline, clear until you give it a color.
Font, size and weight of the words.
How round the corners are. Pebble makes a full pill.
The shadow under the element.
Space between the words and the left and right edges.
Space between the words and the top and bottom edges. Together with the type size this decides how tall a button is.
Space between the things inside a panel.
A movement while the style is in this state, such as squashing to 95 percent on press. Most motion tokens scale the element; the one named Rise lifts it. See How motion tokens work.
A sound played at the moment of the state. Only two states play one: Pressed (when the pointer goes down) and Selected (when a switch is changed). In other states it does nothing.
How see-through the style is. 1 is solid. A blank box means not set.
A style only uses tokens. This is what makes the kit work: change a token and every state that names it changes.
Build on another style
Based on (at the top of the style) lists Nothing and every other style of the same kind. A style cannot be based on itself, on a style that is built on it, or on a game part.
A style takes everything from the styles it is based on and sets its own on top. With a chain of Button.Base, then Button.Primary, then Button.Primary.Large, the game works out the Rest look by starting from Button.Base’s Rest, laying Button.Primary’s Rest over it, then Button.Primary.Large’s. For another state it adds the same chain’s values for that state on top. A line under the state cards reads, for example, "Button.Base then Button.Primary then Button.Primary.Large. Anything not set here comes from the styles before it."
The top bar of a style has these controls:
Rename the style. Elements keep using it. Press Return or click away to keep the new name; Esc puts the old one back.
Choose the style this one builds on.
Makes a style based on this one that starts with nothing of its own, named after it with ".New" added (".New2" if that is taken), and opens it. There is no blank style: this is how you make a new one. |
Removes the style. If elements use it, a question tells you how many and what they will look like afterward, with Delete to go ahead. They take on the look of the style it was based on, or lose their style if there is none. Styles built on it are rebased onto its parent.
Start from an existing style
Open Button.Primary under Styles. Choose New style from this. A style called Button.Primary.New opens.
Name it and change what is different
Type a new name in Style name, for example "Button.Warm". With Rest chosen, set Fill to Warm. Nothing else needs to change: the text, shape and padding come from Button.Primary.
Set the states
Click the Hover card and set Fill to Glow, a lighter warm color. Click Pressed and set Fill to Glow too. Its Motion (Squash.Small) and Sound (Confirm) already read "Inherited", because they come from Button.Base and Button.Primary, so you leave them. Use Hold in the live preview to see each state.
Use it on a screen
Open a screen, click a button, and in Details choose Button.Warm from Style. The button changes at once. See Screens.
Game parts
Under the styles, the list has a Game parts group. These are the things the game draws itself, outside the menu screens. Each is a style in the kit, so you restyle the checklist, cards, postcards, player screens and building screen in the same place as the menus. Pointing at the group in the app reads "What the game draws itself: notices, the checklist, cards, postcards, buttons and the building screen. Restyle them here; the game lays them out".
A game part’s style sets looks only: fill, text, border, type, shape, shadow, padding, gap, motion and opacity. The game keeps the layout and the movement. Anything a part does not set is drawn as JellyWorks draws it, and the property list says As the game draws it where it would say "Not set". A part’s Sound is listed but the game plays none for parts.
The page for a part carries a Game part chip and a short line on what it is, and the live preview draws the part the way the game does.
Notice (a short message at the top: someone moved in, new pieces, a season has come). Checklist (the island’s goals, ticking off as players build). People (who lives on the island, top right). Speech bubble (what residents say over their heads; kind In-world tag). Show how (a card beside a tool that teaches how to use it on a first island). |
Story line (a line someone says, at the bottom, until the player goes on). Story card (a card in the middle with a title and words). Chapter card (an island’s title card as it opens; see Islands in order). |
Island done (the card when an island is done: keep building, or set off). Home card (who lives in a home and what they wish for). Postcard (a postcard arriving in the corner, and opened). Scrapbook (the book of every postcard and photo). Credits (the credits page and its words). |
Signed in (who is playing, under the main menu). Who’s playing (the big question over the players). Player (a player’s round icon and name). Player card (New player, a player’s options, and the questions before deleting or starting over). Player option (a choice in a player’s options). Hold button (held to delete a player or start over). Saving (the small Saving in the corner). Saving notice (when saving cannot be done, or a backup was used). See Profiles and saving. |
Game button (the game’s own buttons, such as Keep building and the islands menu). Game button, main (the one to press, such as Set off). |
Building panels (the tool rail and the drawers players build from). Building tool (a tool on the rail). New mark (the mark on a folder when a goal has newly unlocked pieces in it). |
Seven parts are buttons and have all six states: Signed in, Player, Player option, Hold button, Game button, Game button, main and Building tool. The rest have a Rest look only.
Game parts cannot be deleted, based on another style, or given to an element on a screen, and their kind is fixed. Use JellyWorks’ look (at the top right of a part) resets every setting of the part you are on to how the game draws it. The size check in Checks does not apply to them.
Parts follow the kit. Game parts use the kit’s tokens, so changing a color token, or applying a template from the bar, carries through to the notices, cards and postcards as well. Open a part afterward to adjust it for your game.
Related
- Style kit holds the tokens that styles choose from.
- Screens is where elements pick a style.
- Checks lists the warnings a style can raise: contrast, size and missing states.