
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@avsync.live/formation
Advanced tools
Formation is a comprehensive component library powered by React, Styled Components, and CSS variables built for real-world applications that demand fully responsive design and unifed cross-platform experiences.
Storybook | GitHub Repository | NPM Package
Formation is a comprehensive component library powered by React, Styled Components and CSS variables built for real-world applications that demand fully responsive design and unifed cross-platform experiences.
In conjunction with the example projects, you can use Formation as a minimalistic framework for building cross-platform applications with declarative Typescript.
Platforms supported: Web, Mac, Windows, Linux
Planned support: iOS, Android, WebOS
yarn add @avsync.live/formation
# or
npm i @avsync.live/formation
The following is a minimal usage 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
// import all these font awesome icons so Formation works correctly
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, far.faTrashAlt, far.faBookmark,
// 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,fas.faUser, fas.faLock, fas.faPhone,
fas.faUsers, fas.faTasks, fas.faCheckSquare, fas.faCompass,
fas.faHashtag, fas.faBell, fas.faChevronLeft, fas.faChevronRight, fas.faChevronDown,
fas.faChevronUp, fas.faTrashAlt, fas.faMapMarkerAlt, fas.faEdit, fas.faMoneyCheckDollar,
fas.faUserPlus, fas.faAddressCard, fas.faHandshakeAngle, fas.faArchive, fas.faShare,
fas.faTimes, fas.faMessage, fas.faHashtag, fas.faMapPin, fas.faBookmark, fas.faDownload,
fas.faExternalLink, fas.faCrop, fas.faImage, fas.faUserCircle, fas.faEraser, fas.faImage
);
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>
);
}
If you're creating a web or native application from scratch, it may be helpful to clone one of these example templates. They are also useful for referencing how to integrate Formation with an exisiting application.
If you're using Create React App, check out the formation-create-react-app-example on StackBlitz.
Formation works well with the popular React framework, Next.js. Check out the formation-next-example on GitHub for a working example of server-side rendering with styled-components.
Formation is perfect for creating desktop apps using the Nextron framework, which combines Next.js and Electron. Check out the formation-nextron-example on GitHub to start creating cross-platform apps with Formation.
Formation allows you to easily customize the colors, typography, and proportions of your components using CSS variables.
To use Formation's styles, you must import the appropriate CSS index file (dark or light theme) in your project.
// in your app's entrypoint (_app.tsx, App.js, etc)
import '@avsync.live/formation/dist/index.dark.css' // or index.light.css
You can then overwrite these variables in your global style sheet to change the look and feel of your components.
:root {
--F_Primary: hotpink;
}
View all customiziable CSS variables
Formation uses FontAwesome v6, allowing for both pro and free icons to be used in components.
The following icons should be included in your project to ensure all components display correctly.
// 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, far.faTrashAlt, far.faBookmark,
// 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, fas.faUser, fas.faLock,
fas.faPhone, fas.faUsers, fas.faTasks, fas.faCheckSquare,
fas.faCompass, fas.faHashtag, fas.faBell, fas.faChevronLeft,
fas.faChevronRight, fas.faChevronDown, fas.faChevronUp,
fas.faTrashAlt, fas.faMapMarkerAlt, fas.faEdit, fas.faMoneyCheckDollar,
fas.faUserPlus, fas.faAddressCard, fas.faHandshakeAngle,
fas.faArchive, fas.faShare, fas.faTimes, fas.faMessage,
fas.faHashtag, fas.faMapPin, fas.faBookmark, fas.faDownload,
fas.faExternalLink, fas.faCrop, fas.faImage, fas.faUserCircle,
fas.faEraser, fas.faImage
)
Formation adheres to the principles of unimpeded user interface and user experience design, including minimizing distractions and interruptions, providing immediate feedback and response, emphasizing simplicity and clarity, and prioritizing ease of use and accessibility. This allows for a seamless, intuitive, and enjoyable user experience.
The key principles of unimpeded UI UX design are:
Minimize distractions and interruptions: A unimpeded UI and UX design should minimize distractions and interruptions for the user. This means avoiding unnecessary animations, transitions, and pop-ups that can disrupt the user's workflow, and instead focusing on providing a clear and consistent interface that allows the user to focus on their task.
Provide immediate feedback and response: A unimpeded UI and UX design should provide immediate feedback and response to the user's actions. This means responding to user input as quickly as possible, and providing clear feedback to indicate that the action has been received and is being processed.
Emphasize simplicity and clarity: A unimpeded UI and UX design should emphasize simplicity and clarity in its design. This means avoiding cluttered or complex interfaces, and instead using clear and concise language, icons, and visual elements to communicate information and actions to the user.
Prioritize ease of use and accessibility: A unimpeded UI and UX design should prioritize ease of use and accessibility for all users. This means designing interfaces that are easy to navigate and understand, and making sure that the design is accessible to users with disabilities or other accessibility needs.
By following these principles, designers can create interfaces and experiences that are seamless, intuitive, and enjoyable for users.
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 11 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.