Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@avsync.live/formation

Package Overview
Dependencies
Maintainers
1
Versions
406
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@avsync.live/formation

A component library based on React, Styled Components and CSS variables.

  • 0.5.0
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Formation

Storybook | GitHub Repository | NPM Package

Formation is a component library based on React, Styled Components and CSS variables.

Installation

yarn add @avsync.live/formation

Usage

  import React from 'react'
  import { Button } from '@avsync.live/formation'

  const MyComponent = () => {
    return <Button text='Click me' />
  }

Icons

Formation uses FontAwesome v6 and supports both pro and free icons.

// import FontAwesome in your project
import '@fortawesome/fontawesome-svg-core/styles.css'
import { library } from '@fortawesome/fontawesome-svg-core'

import { faHeart } from '@fortawesome/free-solid-svg-icons'

library.add(faHeart)

// in your component
import React from 'react'
import { Button } from '@avsync.live/formation'

const MyComponent = () => {
  return <Button 
    text='Click me' 
    icon='heart' // name of the icon without the "fa" and in kebab-case
    iconPrefix='fas' // fas, far, fal, etc
   />;
}

Theming

Theming is based on CSS variables.

Why Formation?

  • Responsive from the smallest of phones to the largest of multi-window 4K monitors
  • Touch-first
  • No reliance on right clicks
  • No reliance on hover states
  • Allow for hold-to-drag and swiping, but also provide tap/click-only alternatives
  • Minimal use of animations
  • Easily modify the styling using css variables
  • Prefer a small inline dropdown over a context-changing modal popup.

Implementation

Philosophy

The name Formation expresses both the form embodied by the user interface, and the process by which user interaction forms the desired outcome of the application. The layout of the document is also composed of a formation of components.

Formation adheres to the Unimpeded Design System philosophy, where users do not have to wait for animations to complete, or for the app to finishing changing modes in order to proceed with their task. The user is only limited physically by their reaction time.

Keywords

FAQs

Package last updated on 12 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc