npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pyxis-scss

v0.0.9

Published

Pyxis is the Prima Assicurazioni's design system.

Downloads

0

Readme

pyxis-scss

The Prima Assicurazioni's design system.

Table of contents

Pyxis can be used as a standalone unit by projects which do not rely on Elm or React for the frontend.

If you use one of the technologies above please check the following section.

Using Pyxis UI Toolkit

If you want to use Pyxis with a custom framework or for simple purposes please continue reading.

Using Pyxis standalone version

Use Pyxis via SCSS (recommended)

You can install and use Pyxis foundations by following these steps:

  • go to your project root
  • run yarn add pyxis-scss
  • go to your scss entrypoint
  • import Pyxis with @use pyxis-scss/src/scss/pyxis.scss

Use Pyxis via CSS

  • go to your project root
  • run yarn add pyxis-scss
  • require pyxis-scss/dist/pyxis.css in your framework or HTML

Configuring Pyxis

You can redefine some variables (those defined in pyxis-scss/src/scss/config.scss) by writing something like that:

// Require the configuration module and override the $fontDisplay variable.
// Using the @use directive we ensure CSS is never repeated in case of multiple requirements.
@use "~pyxis-scss/src/scss/config.scss" with ($fontDisplay: "fallback");

// Pyxis core module will now use your $fontPath variable.
@forward "~pyxis-scss/src/scss/pyxis.scss";

Pyxis SCSS module system

Pyxis is a complex entity made up of:

  • a foundation module (required)
  • a components module (optional)

Foundations module

This module is a collection of rules, directives, and utility classes which define a common look & feel for all our applications.

Is intended to be used only for simple settings like:

  • typography
  • colors
  • spacing
  • containers
  • etc.

Components module

Here is where the things get complex. Pyxis gives you a powerful UI kit in order to get things done easily.

Each of these modules is paired with a React and an Elm version of the component.


Pyxis Development

Build CSS version

Run yarn build in Pyxis root directory.

This will create a dist folder in which you'll find a pyxis.css file.

Run development mode with code change detection

Run yarn serve in Pyxis root directory.

This will start a development server on localhost:8080

Lint code

Run yarn lint in Pyxis root directory.

To autofix errors reported by stylelint Run yarn lint:fix in Pyxis root directory.