Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@algolia/fragments.js
Advanced tools
Readme
Fragments.js is a Nodejs implementation of Fragments.css, an atomic css framework that aims to make developers' lives easier.
One of the advantages of choosing Fragments.js to build your UIs is that it's fully customizable from one and only entry point. Head to the fragments.config.js
and adjust the template with your own colors, fonts and styles, which will then be propogated to the compiled CSS.
Note that we're using yarn for these examples, but you can of course use the npm equivalent.
yarn add @algolia/fragments.js
To initialise the fragments.config.js
, run the following:
fragments init
Make sure to edit the newly created fragments.config.js
file in your root directory, after which you can run:
fragments build [destination]
This will output fragments.css
with your configuration, into the destination folder, which defaults to /dist
.
If you're having troubles making it work and getting command not found
, try running the command using either node_modules/.bin/fragments <command> [options]
or npx.
Do your edits, then:
master
Once your PR has been merged:
git checkout master && git pull origin master
npm publish
git add . && git commit -m"bumped version <version>" && git push origin master
If you edited the docs:
yarn docs:build
Example usage in React:
import React from 'react';
import '~/dist/fragments.css';
const App = () => (
<div className="bgc-cosmos">
<p className="color-white fsz-24 ta-center">
Hello world, using <b>Fragments.js</b>
</p>
</div>
);
export default App;
FAQs
The Fragments atomic CSS system, rebuilt in Nodejs
The npm package @algolia/fragments.js receives a total of 116 weekly downloads. As such, @algolia/fragments.js popularity was classified as not popular.
We found that @algolia/fragments.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 73 open source maintainers 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.