
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@avsync.live/formation
Advanced tools
A comprehensive component library built on React, Styled Components and CSS variables.
Storybook | GitHub Repository | NPM Package
Formation is a comprehensive component library built on React, Styled Components and CSS variables.
yarn add @avsync.live/formation
The following is a minimal example for Create React App.
// App.js
import React from 'react'
import { Page, StyleHTML, Button } from '@avsync.live/formation'
import '@avsync.live/formation/dist/index.dark.css' // or index.light.css
// fontawesome
import '@fortawesome/fontawesome-svg-core/styles.css'
import { library } from '@fortawesome/fontawesome-svg-core'
import * as far from '@fortawesome/free-regular-svg-icons'
import * as fas from '@fortawesome/free-solid-svg-icons'
library.add(
// regular
far.faHeart, far.faPaperPlane, far.faCheckSquare, far.faSquare,
fas.faEnvelope,
// solid
fas.faInfoCircle, fas.faBars, fas.faHeart, fas.faPlus,
fas.faEllipsisV, fas.faPaperPlane, fas.faCalendarAlt,
fas.faArrowRight, fas.faArrowLeft, fas.faClock, fas.faSearch,
fas.faSortAlphaUp, fas.faSortAlphaDown, fas.faFilter,
fas.faChevronCircleRight, fas.faChevronCircleLeft, fas.faEnvelope,
fas.faCheck, fas.faExclamationTriangle
)
export default function App() {
return (
<Page>
<StyleHTML>
<h1>Formation</h1>
<p>This is a minimal example for Create React App</p>
</StyleHTML>
<Button
text='Like'
icon='heart' // name of the icon without the 'fa' and in kebab-case
iconPrefix='fas' // fas, far, fal, etc
/>
</Page>
)
}
Formation uses CSS variables to adjust the colors, typography, and proportions of components.
You must 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, overwrite them in your project's global style sheet.
:root {
--F_Primary: hotpink;
}
View all customiziable CSS variables
Formation uses FontAwesome v6 and supports both pro and free icons.
The free icons below are used by some components, and should be included in your project.
// in your app's entrypoint (_app.tsx, App.js, etc)
import '@fortawesome/fontawesome-svg-core/styles.css'
import { library } from '@fortawesome/fontawesome-svg-core'
import * as far from '@fortawesome/free-regular-svg-icons'
import * as fas from '@fortawesome/free-solid-svg-icons'
library.add(
// regular
far.faHeart, far.faPaperPlane, far.faCheckSquare, far.faSquare,
fas.faEnvelope,
// solid
fas.faInfoCircle, fas.faBars, fas.faHeart, fas.faPlus,
fas.faEllipsisV, fas.faPaperPlane, fas.faCalendarAlt,
fas.faArrowRight, fas.faArrowLeft, fas.faClock, fas.faSearch,
fas.faSortAlphaUp, fas.faSortAlphaDown, fas.faFilter,
fas.faChevronCircleRight, fas.faChevronCircleLeft, fas.faEnvelope,
fas.faCheck, fas.faExclamationTriangle
)
Formation integrates well with Next.js, the popular React framework.
View formation-next-example on GitHub
The example project above includes the proper configuration for server-side rendering styled-components.
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.
FAQs
Formation is a comprehensive component library powered by React, Styled Components, and CSS variables for creating apps and websites that demand responsive, unified cross-platform experiences.
The npm package @avsync.live/formation receives a total of 7 weekly downloads. As such, @avsync.live/formation popularity was classified as not popular.
We found that @avsync.live/formation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.