Skip to content
Back to the blog tutorials
The title CSS Style Editor superimposed over a screenshot of Arcweave's visual novel template.

How to customize your Arcweave game using CSS

Your complete guide to Arcweave's Style Editor

The Style Editor of Arcweave's Play Mode gives you full control over how your story looks: text styling, layout and color palette.

In this guide, we go through the main CSS selectors of Play Mode, show how each one affects the interface, and give simple examples you can copy.

⚠️ This guide starts from Play Mode's default look, with an empty Style Editor. Different starting point? Pick the right guide:

Key takeaways

  • Use the Style Editor to customize the story wrapper, text, media, character components and option buttons with CSS.
  • Target the right container or text selector to change layout and look without touching your story.
  • Put an element's ID in front of a selector when a style should apply to that element only.

Before we start

Ingredients

  • An Arcweave project with a few elements, connections and, if you like, element covers and components.
  • Owner or editor access to the project: only they can use the Style Editor.

Accessing the Style Editor

  1. Open your project and click Play Mode (▶️) in the top bar. Play Mode opens in a new tab.
  2. Click the Style Editor icon (🎨) in Play Mode's top bar. If the bar has faded, move your pointer to the top of the window.
  3. Write your CSS in the panel on the right. Changes appear instantly, but only in your tab.
  4. Click Save changes to store the CSS in your project, so your teammates and players see it.

💡 Keep a copy of your CSS in a text file before big changes. Unsaved changes are lost when you reload or leave Play Mode.

Arcweave's Play Mode environment, with an example project and the Style Editor UI open.

⚠️ If the "Save changes" button is disabled, fix any syntax issues!

Arcweave applies your styles live, and you can always reset or export them later.

Play Mode containers

Prototype wrapper

Every Arcweave story runs inside the prototype wrapper: think of it as the body of your Play Mode, the outer container of it all. Target it with the prototype__wrapper class.

🔍 Notice the double underscore __ in the class names.

For example, you can use it to:

  • Change the background color
  • Add some padding at the top
  • Change the font
  • Make the font bold
Arcweave's Play Mode environment, with the font and background color changed based on the CSS code that follows in the article.

The code snippet for these changes is the following:

@import url('https://fonts.googleapis.com/css2?family=Schoolbell&display=swap');

.prototype__wrapper {
    background-color: #143340;
    padding-top: 100px;
    font-family: "Schoolbell", cursive;
    font-weight: 600;
}

⚠️ Fonts from Google Fonts need an @import line, and it must be on line 1 of your CSS, above every other rule. An @import below other rules is ignored. If you paste more than one example from this guide, keep a single @import line at the top.

Prototype content

Your story's elements don't float freely inside the wrapper: they sit in their own container, the prototype content. Target the prototype__content class to control:

  • The header (cover image or video)
  • The text content
  • The option buttons

Use it for layout and style adjustments like these:

  • Make the content narrower
  • Change the color of the content area only
  • Change the font
  • Add some margin around the content
  • Round the corners of the content area
Arcweave's Play Mode environment with the Style Editor open and the Play Mode window styled according to the code that follows in the article.
@import url('https://fonts.googleapis.com/css2?family=Schoolbell&display=swap');

.prototype__content {
  max-width: 50%;
  background-color: #143340;
  font-family: "Schoolbell";
  border-radius: 25px;
  margin: 50px;
}

✅ You can change the font with either prototype__wrapper or prototype__content. Best practice is to target the text itself, as described in Styling text below.

Prototype header

The prototype header is the area that holds the elements' following items:

  • Image or video cover
  • Attached components

Target it with the prototype__header class. For example, to make the header narrower than the text:

.prototype__header {
  max-width: 50%;
  margin: auto; /*This keeps the image centered.*/
}
Arcweave's Play Mode with the Style Editor open. The CSS code causes the header image and the components underneath it to occupy a narrower area.

You can also color this area (and make corners rounded) with the following snippet:

.prototype__header {
  max-width: 60%;
  margin: auto; /*This keeps the image centered.*/
  padding: 20px;
  background-color: darkgreen;
  border-radius: 25px;
}
Arcweave's Play Mode with the Style Editor open. The CSS code causes the header image and the components be wrapped in a red box with rounded corners.

If an element has attached components and no image or video cover, the components will take the cover's place in the prototype header area.

Arcweave's Play Mode with the Style Editor open. The current element has no image cover, so the 2 attached components both occupy the image's place, wrapped in a red box with rounded corners.

Prototype body & prototype text

The prototype body contains the text content and the option buttons. The prototype text is a sub-container and contains only the text content. Target them using the classes prototype__body and prototype__text.

The following example uses a combination of these two classes to:

  • Narrows the text and buttons area: max-width: 95% on prototype__body.
  • Narrows the text further: max-width: 90% on prototype__text.
  • Centers the header and the body with margin: auto.
  • Center-aligns the text with text-align: center.
  • Changes the background colors and adds padding.
  • Separates the areas with margin and margin-top.

🔍 Centering the prototype__body is not the same as center-aligning the text. Experiment with the snippets to see what each property does.

Arcweave's Play Mode with the Style Editor open. The current element's various containers are separately styled as boxes with rounded corners and different shades of blue and dark cyan.

This is the code snippet that produces this result:

@import url('https://fonts.googleapis.com/css2?family=Schoolbell&display=swap');

.prototype__content {
  background-color: #09181f;
  border-radius: 25px;
  margin: 30px auto;
}

.prototype__header {
  max-width: 60%;
  margin: auto; /*This keeps the image centered.*/
  padding: 20px;
  background-color: #004347;
  border-radius: 25px;
}

.prototype__body {
  max-width: 95%;
  margin: auto;
  background-color: #14403E;
  padding: 20px;
  margin-top: 20px;
  border-radius: 25px;
}

.prototype__text {
  font-family: "Schoolbell", cursive;
  max-width: 90%;
  margin: auto;
  text-align: center;
}

Styling text

You can style some text through the containers above, but to go deeper you need to target the text itself.

Editor

The editor is a sub-container of the prototype text that holds the rich text of your elements. Target it with the editor class.

Editor content

To target the text content, chain the prototype text, the editor and the editor content: .prototype__text .editor .editor-content. A shorter selector won't override Arcweave's default style.

This snippet increases the font size and changes the color:

.prototype__text .editor .editor-content {
  font-size: 28px;
  color: darkseagreen;
}

⚠️ On the Visual Novel Example template, the text is styled one level deeper, on .prototype__text .editor .ProseMirror. If you use the template, follow Remix Arcweave Visual Novel template with CSS.

💡 Bold, italic, underline and the other formats of the text editor become HTML tags you can style one by one. See How to create a visual novel style in Arcweave's Play Mode and Recipe 6 of Remix Arcweave Visual Novel template with CSS.

Prototype media

To style the element cover, target prototype__media. Use img.single for image covers and video for video covers:

.prototype__media img {
  border-radius: 25px;
}

.prototype__media video {
  border-radius: 25px;
}

Prototype components

Components attached to an element sit in the prototype components container: target it with prototype__components. To target the components themselves, use .prototype__components .comp.

This example changes their size and removes their default rounded corners:

.prototype__components {
  height: 120px;
  padding: 10px;
  background: #123a54;
  grid-gap: 5px;
}

.prototype__components .comp{
  height: 100px;
  background: darkred; /*Visible in the icons*/
  border-radius: 0px;
}

If you wish to completely omit components from the Play Mode experience, use display: none:

.prototype__components {
  display: none;
}

💡 Want characters standing over a full-screen background? That's the visual novel layout: see How to create a visual novel style in Arcweave's Play Mode.

Prototype option

Option buttons use the prototype__option class.

Arcweave's Play Mode with the Style Editor open. The element's option buttons are aligned centrally and have sharp contrast of black and white.

This example goes for a high-contrast, no-transition, rounded and centered buttons.

.prototype__option {
  max-width: 80%;
  margin: 10px auto;
  text-align: center;
  border-radius: 30px;
  border: 1px solid #292d2d;
  background: none;
  color: #eaeaea; /*Button text color*/
  transition: none;
}

.prototype__option:hover {
  color: black;
  background: white;
}

💡 Option buttons also carry the color of their connection and a visited class when they lead to an element already seen. See CSS basics in the docs and Recipes 4 and 5 of Remix Arcweave Visual Novel template with CSS.

Targeting specific elements by their ID

Each element has its own unique ID. Put it in front of a selector, and the style applies to that element only.

1. Copy the element ID

An element's ID looks like this: 81a30674-aa09-4eb8-8484-59298d37f984. Copy it in one of two ways:

  • In Play Mode: play until you reach the element, open the Debugger, click the ID button in the Element row (not the Board row), then click the copy button next to the element’s UUID
  • On the board: right-click the element, choose Properties, open the Details tab and click the copy button next to Element ID.

2. Add the ID to the selector

Type #el- and paste the ID right after it, with no space: #el-81a30674-aa09-4eb8-8484-59298d37f984. Then add the rest of the selector.

This example styles the text and the content area of one element:

#el-81a30674-aa09-4eb8-8484-59298d37f984 .prototype__text .editor .editor-content {
  color: darkseagreen;
}

#el-81a30674-aa09-4eb8-8484-59298d37f984 .prototype__content {
  max-width: 50%;
  background-color: #143340;
  font-family: "Schoolbell", cursive;
  border-radius: 25px;
  margin: 50px;
}

⚠️ Don't write #el-el-.... If you copied the ID from somewhere that already starts with el-, don't add it twice.

Before you share

  • After saving, reload the Play Mode tab: restarting the story isn't enough to load the new CSS.
  • Start every selector with .prototype__ or #el-. A rule like body or button can change parts of Arcweave outside your story.
  • Test a long text, many options and a narrow window before you share your game.

Go deeper

With these selectors and techniques, you can transform your Arcweave game into a polished, branded, and submission-ready interactive experience!

And remember: you're not alone! If you get stuck, the Arcweave community is here to help. Don't underestimate the value of reading the docs!

🎮 Happy writing, happy styling, and see you! 🕹️