Socket
Socket
Sign inDemoInstall

@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 utilizing React, Styled Components, and CSS variables.


Version published
Weekly downloads
423
increased by85.53%
Maintainers
1
Weekly downloads
 
Created

Readme

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

CSS and Customization

Formation uses CSS variables to adjust the colors, typography, and proportions of components.

You should import Formation's CSS index file. It is available in both dark and light themes.

// in your app's entrypoint (_app.tsx, App.js, etc)
import '@avsync.live/formation/dist/index.dark.css' // or index.light.css

To modify these properties, you can overwrite them in your project's global style sheet.

:root {
  --Primary: hotpink;
}

Icons

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

// in your app entrypoint (_app.tsx, App.js, etc)
import '@fortawesome/fontawesome-svg-core/styles.css' // add FontAwesome
import { library } from '@fortawesome/fontawesome-svg-core'
import { faHeart } from '@fortawesome/free-solid-svg-icons'
library.add(faHeart)

Usage

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

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

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 24 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc