Get started / Getting started

Get started

Getting started

Ecosphere is blue on cool slate: one accent family, quiet surfaces, and figures that never shift. It ships for Vue and for React with the same components, markup and stylesheet. Install the package for your framework, load the stylesheet once, and build with the components.

Pick your framework with the switch at the top of the page: code samples, API tables and imports follow it.

Install

The peer dependency is Vue 3.5 or later for vue-ecosphere, and React 18.2 or 19 for react-ecosphere. The fonts (Google Sans, Fraunces) and the RemixIcon set ship inside the package: no CDN links to add.

npm install vue-ecosphere

Set up the app

Import the stylesheet once, where you control its place in your CSS order. In Vue, the plugin registers every component as Eco… (EcoButton, EcoTextField…). In React, import components where you use them, and mount <EcoToaster /> (and <EcoConfirmHost /> if you use useConfirm) once near the root.

Import per component

Prefer tree-shaking? Turn off global registration and import components where you use them.

// Register nothing globally and import what you use
app.use(Ecosphere, { components: false });

// SomePage.vue
import { EcoButton, EcoTextField } from "vue-ecosphere";

Use the classes without a framework

Every component is plain HTML with BEM classes on design tokens. The Vue and React components render exactly that markup, so the stylesheet works on its own in any stack.

Rules that keep screens calm

  • One primary button per region. A danger button is that primary.
  • Status colour reaches the screen only through badges, scores, toasts and notices.
  • Numbers always use the UI face with tabular figures, never the display serif.
  • Pair every disabled control with text that says why.
  • Write labels in sentence case, and name the consequence on destructive actions.