---
title: "SW13002: Unterminated CSS block"
description: "A CSS block in your stylesheet is not closed."
image: "https://stillwind.dev/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://stillwind.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# SW13002: Unterminated CSS block

This error occurs when a block in your stylesheet opens but does not close before
the end of the file. The message gives the position as a byte offset from the
start of the parsed text, counting from zero.

## Reported

```css
.card {
  color: blue;
```

> SW13002: unterminated CSS block at byte 27

## Fixed

```css
.card {
  color: blue;
}
```

## How to fix

- Add the missing `}`, `)`, or `]`.
- Also check for an unclosed string or comment before that position. An unclosed
  string can make the rest of the file look like one block.

Source: https://stillwind.dev/docs/errors/SW13002/index.mdx
