ARCANE / THEME 05 ASCII

Ascii.

Drawn lines. Living type. A complete interface.

Paper and ink, precise datum marks, and text that resolves into place. Use one stylesheet across forms, navigation, data, and feedback.

LIVE COMPONENTS 83
COLOR MODES PAPER / INK
MOTION RESPECTS YOUR SETTINGS
01 / MOTION STUDIES REPLAYABLE

A little movement. A clear purpose.

Decode announces a label. Typewriter follows a thought. Datum lines connect a name to its value.

A / DECODE Precision, character by character.
B / TYPEWRITER Precision, character by character.
C / DATUM
CONNECTION ESTABLISHED
LATENCY 24 ms

Your system’s reduced-motion preference takes priority. Text remains readable and controls remain usable when motion is disabled.

02 / COMPONENT LAB 83 LIVE EXAMPLES

The whole system, in your hands.

Pick a family, then interact with a component. Hover, focus, select, expand, and open. The header switches the entire documentation site between light, dark, and other Arcane themes.

Controls / Button
Live Demo
Component: button
Preview + Code
Code
int count = 0;

ArcaneBox(
  style: const ArcaneStyleData(
    display: Display.flex,
    gap: Gap.sm,
    flexWrap: FlexWrap.wrap,
  ),
  children: [
    Button.primary(label: 'Clicked $count', onPressed: increment),
    Button.secondary(label: 'Secondary', onPressed: () {}),
    Button.outline(label: 'Outline', onPressed: () {}),
  ],
)
Browse all 83 examples

Controls

Inputs

Navigation

Data & layout

Cards

Overlays

Feedback

Foundations

Installation#

Ascii is a renderer package for Arcane Jaspr. Add the core and theme packages to a Jaspr project using local checkout paths:

dependencies:
  arcane_jaspr:
    path: ../arcane_jaspr
  arcane_jaspr_ascii:
    path: ../arcane_jaspr/packages/arcane_jaspr_ascii

dependency_overrides:
  arcane_jaspr:
    path: ../arcane_jaspr
  arcane_jaspr_shadcn:
    path: ../arcane_jaspr/packages/arcane_jaspr_shadcn

Import the theme and pass AsciiStylesheet to the application root. Existing Arcane buttons, forms, tables, menus, dialogs, and layouts use the theme automatically.

import 'package:arcane_jaspr/arcane_jaspr.dart';
import 'package:arcane_jaspr_ascii/arcane_jaspr_ascii.dart';

ArcaneApp(
  stylesheet: const AsciiStylesheet(),
  brightness: Brightness.light,
  home: const Column(
    children: <Widget>[
      AsciiDatum(label: 'PROJECT', value: 'READY'),
      AsciiText('A precise place to begin.'),
      Text('Build with the existing Arcane component API.'),
    ],
  ),
)

Paper and ink#

Brightness.light uses the paper palette. Brightness.dark uses the ink palette. Keep the selected brightness in application state and rebuild ArcaneApp when a toggle changes it. Theme selection does not require separate component trees or custom control implementations.

ArcaneApp(
  stylesheet: const AsciiStylesheet(),
  brightness: darkMode ? Brightness.dark : Brightness.light,
  home: Button.secondary(
    label: darkMode ? 'Use paper' : 'Use ink',
    onPressed: () => setState(() => darkMode = !darkMode),
  ),
)

Text motion#

AsciiText supports a character decode, a typewriter reveal, or static text. Choose a short duration for interface labels and a longer one for a page introduction. Keep long reading passages as ordinary Text.

const AsciiText(
  'Connection established.',
  motion: AsciiTextMotion.decode,
  duration: Duration(milliseconds: 900),
)

const AsciiText(
  'Waiting for the next command.',
  motion: AsciiTextMotion.typewriter,
  duration: Duration(milliseconds: 1400),
  delay: Duration(milliseconds: 150),
  cursor: true,
)
PropertyDefaultPurpose
motion AsciiTextMotion.decode decode, typewriter, or none
duration900 msReveal duration
delayDuration.zeroTime before the reveal begins
cursorfalseShow the terminal cursor
classesnullAdd a CSS class to the text specimen

Datum lines#

AsciiDatum places a label and optional value on a ruled line. Use it for section markers, metadata, status summaries, and measurements. Its line draws into place when animated.

const AsciiDatum(label: 'RENDERER', value: 'ASCII')
const AsciiDatum(label: 'SECTION 03 / INPUTS')
const AsciiDatum(label: 'STATUS', value: 'READY', animated: false)

Component motion#

The stylesheet applies its motion language to the shared Arcane component families. Controls respond to hover, focus, selection, and press; disclosure and overlay surfaces enter when opened; progress and loading components retain their state-specific motion. The component lab above contains every live demo in the documentation registry, with the same state and event handling used by other themes.

Use the component catalog for the full public surface and the component pages for properties and examples. Pick Ascii in the header to view any component page with this theme.

Reduced motion#

Ascii respects prefers-reduced-motion: reduce: text appears immediately and decorative movement stops. Use AsciiTextMotion.none and AsciiDatum(animated: false) when a particular element should always remain still. The specimen pause control above demonstrates these static forms without changing your system preference.

To suppress CSS motion within a region, set data-ascii-motion="off" on its container. Timer-driven components such as ArcaneSlotCounter follow the system reduced-motion preference and page visibility; use their own controls to pause them. Keep important content in the document even when an animation has not run, and do not rely on motion to communicate success or failure.

Arcane Lexicon#

Pass the same stylesheet to a documentation site. Ascii includes the document typography, navigation, search, and datum styling; no separate knowledge-base renderer is required.

import 'package:arcane_jaspr_ascii/arcane_jaspr_ascii.dart';
import 'package:arcane_lexicon/arcane_lexicon.dart';

await KnowledgeBaseApp.create(
  config: const SiteConfig(
    name: 'Project documentation',
    contentDirectory: 'content',
    themeToggleEnabled: true,
    defaultTheme: KBThemeMode.light,
  ),
  stylesheet: const AsciiStylesheet(),
)