Skip to content

Styles

Importing anything from the main package entry includes Frasto’s compiled CSS automatically:

---
import { Button } from '@freightpx/frasto';
---

The explicit @freightpx/frasto/styles.css subpath remains available for styles-only integrations and advanced build setups. It is not required in the normal component workflow.

  • semantic design tokens
  • component classes and states
  • focus treatment
  • reduced-motion behavior
  • light and dark defaults

It should not reset an entire product aggressively or require a utility CSS framework.

:root {
--frasto-bg: #f8f6f0;
--frasto-ink: #161616;
}

Load product theme overrides after the application imports Frasto. Overrides should target public semantic tokens. Depending on internal selectors or generated class names is unsupported.

Global tokens live on :root. Component styles should remain low-specificity and composable so application code can establish layout without fighting the library.

Read the CSS and token architecture →