Separator
A separator element accessible to screen readers.
Partly measured from the divider in the Cursor desktop app bundle. No reference has been captured yet.
import { Separator } from "@replicas/ui";
export default function SeparatorDemo() {
return (
<div style={{ display: "flex", flexDirection: "column", gap: 12, width: 240, fontSize: "var(--font-size-small)" }}>
<span style={{ color: "var(--text-primary)" }}>Quarterly report</span>
<Separator />
<div style={{ display: "flex", alignItems: "center", gap: 10, height: 16, color: "var(--text-tertiary)" }}>
<span>12 pages</span>
<Separator orientation="vertical" />
<span>2.4 MB</span>
<Separator orientation="vertical" />
<span>PDF</span>
</div>
</div>
);
}Prompt
Copy Prompt hands your agent everything it needs to build the Separator in the Cursor style: the measured tokens, the CSS and the structure.
Show Prompt
# Cursor Separator
A separator element accessible to screen readers.
Build a Separator in this project that looks and behaves like Cursor's. Measured from the running Cursor app (cursor.com). Keep every value exact. Map the tokens onto the project's own theme variables instead of hard-coding them. Use the project's own component library for behaviour, or [Base UI](https://base-ui.com/react/components/separator) if it has none.
Fidelity: Partly measured from the divider in the Cursor desktop app bundle. No reference has been captured yet.
## Tokens
| Token | Light | Dark |
| --- | --- | --- |
| `--cursor-stroke-tertiary` | `color-mix(in srgb, var(--cursor-base) 8%, transparent)` | `color-mix(in srgb, var(--cursor-base) 8%, transparent)` |
## CSS
Scoped under `[data-style="cursor"]`; dark rules sit under `[data-theme="dark"]`. The `ui-*` classes and data attributes match the structure below.
```css
[data-style="cursor"] {
.ui-separator {
flex-shrink: 0;
border: 0 solid var(--cursor-stroke-tertiary);
&[data-orientation="horizontal"] {
width: 100%;
height: 0;
border-bottom-width: 1px;
}
&[data-orientation="vertical"] {
align-self: stretch;
width: 0;
border-left-width: 1px;
}
}
}
```
## Structure
How Replicas assembles it on Base UI.
```tsx
import { Separator as BaseSeparator } from "@base-ui/react/separator";
export function Separator({ className, ...props }: Omit<BaseSeparator.Props, "className"> & { className?: string }) {
return <BaseSeparator className={className ? `${"ui-separator"} ${className}` : "ui-separator"} {...props} />;
}
```
## Example
```tsx
import { Separator } from "@replicas/ui";
export default function SeparatorDemo() {
return (
<div style={{ display: "flex", flexDirection: "column", gap: 12, width: 240, fontSize: "var(--font-size-small)" }}>
<span style={{ color: "var(--text-primary)" }}>Quarterly report</span>
<Separator />
<div style={{ display: "flex", alignItems: "center", gap: 10, height: 16, color: "var(--text-tertiary)" }}>
<span>12 pages</span>
<Separator orientation="vertical" />
<span>2.4 MB</span>
<Separator orientation="vertical" />
<span>PDF</span>
</div>
</div>
);
}
```
## Foundations
The rest of the Cursor style, as a skill: https://replicas.raphaelsalaja.com/skills/cursor/SKILL.md