Crystal Code

Futuristic. Minimal. Built for developers.

bref / crystal-code
⌘ K
src › components › button.svelte
<script lang="ts">  import { Theme, Button }    from 'bref-ui-themes/crystal-code';  let activations = $state(0);</script><Theme><Button  label={"Run example"}  variant="neutral"  size="medium"  color="primary"  icon={{ name: 'bolt' }}  disabled={false}  onClick={() => activations++}/><p>{activations} activations</p></Theme>
crystal-code button.svelte Svelte 5

THE COMPONENT COLLECTION

Small details.
A complete workspace.

Familiar controls, composed for the everyday work of building.

01 / ACTIONS

One action. Three expressions.

Button
Workspace settings Choose a save action to try it.

Text buttons · XS to XL

Icon buttons · square and rounded

Icons · sizes, outline and fill

favoritefavoritefavoritefavoritefavoritefavoritefavoritefavoritefavoritefavorite
circlecirclecirclecirclecirclecirclecirclecircle Inherited size and color

0 actions activated.

02 / PREFERENCES

Make the workspace feel right.

TextInput · Checkbox · Select

Project settings

Give this workspace a name.

Managed preferences

Changes stay local to this preview.

Input sizes · small, medium, large

Multiple and empty selection

03 / ORGANIZE

Keep the useful things close.

Pill · PillGroup · PillChoiceGroup

Project labels

neutral
soft
filled
  • Svelte
  • TypeScript
  • CSS

Checks before a build

  • Types
  • Lint
  • Tests

1 checks selected.

Remote checks unavailable

Interactive and removable labels

Activated 0 times
Glass label
Build complete
Full width label
  • Svelte
  • TypeScript
  • Svelte
  • TypeScript
  • Svelte
  • TypeScript

04 / FEEDBACK

Progress, at a glance.

Progress · Spinner · Icon

Workspace build

Seek with the pointer or arrow keys to inspect progress.

42% complete

check_circle Ready for the next build.

Progress · small, medium, large

Loading sizes · XS to XL

x-small loading
small loading
medium loading
large loading
x-large loading

05 / CONTEXT

A place for every detail.

Surface · Popover · Dialog · Tabs

crystal-code

A quiet workspace for the next idea.

3 files · TypeScript · Local

Just enough context

An inline detail for quick answers. A dialog when the task needs more room.

Surface variants

neutral

Content inside a surface.

soft

Content inside a surface.

filled

Content inside a surface.

Surface spacing · XS to XL

x-small Padding and gap
small Padding and gap
medium Padding and gap
large Padding and gap
x-large Padding and gap
Horizontal · fit

Glass · fill width

Scrollable row 1

Scrollable row 2

Scrollable row 3

Scrollable row 4

Scrollable row 5

Scrollable row 6

Scrollable row 7

Scrollable row 8

Hover and shadow strengths

small hover and shadow

medium hover and shadow

large hover and shadow

Vertical tabs · icons only

Editor preferences

Choose settings for this workspace.

Tabs · sizes and fill width

small selection: editor

medium selection: editor

large selection: editor

Scrollable selection: editor. Arrow keys move between tabs; Home and End reach the first and last available tab. Scroll the narrow strip to reveal more tabs.

Popover states

Dialog options

06 / THE REST OF THE TOOLKIT

More components

Switch · Combobox · TextArea · TreeView

Editor preferences

Suggestions are enabled.

Project files

Expand folders, select a file, or remove an editable item.

Selected: app

Editor controls · small, medium, large

Disabled, read only and invalid

Tree sizes · small, medium, large

small

medium

large

Multiple selection and sections

Workspace

Shared project files

Selected: app