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

silc-utilities

v0.3.2

Published

Utility classes for the silc framework

Downloads

20

Readme

silc utilites npm version

The utilities module is a small web component for the silc framework.

Display

Display elements, globally, or at specific breakpoints.

<div class="silc-display">
    <p>Display block at all screen sizes</p>
</div>

Modifiers

Elements can be displayed at specific breakpoints using modifier classes in the silc-display--{display-type}-{breakpoint} format e.g.

<div class="silc-display--none">
    <p>Display none at all screen sizes</p>
</div>
<div class="silc-display--inline-small">
    <p>Display inline at small screen sizes and above</p>
</div>

Variables

Display types can be configured via the $silc-utilities--display-types variable. By default, the following display types are defined:

$silc-utilities--display-types: (
    'block',
    'inline',
    'inline-block',
    'flex',
    'none'
) !default;

Text alignment

Align text, globally, or at specific breakpoints

<div class="silc-align">
    <p>Align initial (left) at all screen sizes</p>
</div>

Modifiers

Text can be aligned at specific breakpoints using modifier classes in the silc-align--{alignment-type}-{breakpoint} format e.g.

<div class="silc-align--right">
    <p>Align right at all screen sizes</p>
</div>
<div class="silc-align--center-small">
    <p>Align center at small screen sizes and above</p>
</div>

Variables

Display types can be configured via the $silc-utilities--display-types variable. By default, the following display types are defined:

$silc-utilities--alignment-types: (
    'left',
    'right',
    'center',
    'justify'
) !default;

Margin

Add margin globally, to specific sides, and at specific breakpoints

<div class="silc-m--1 silc-mtop--2 silc-mtop--4-large">

</div>

Variables

Margin types can be configured via the $silc-utilities--margin-types variable. By default, the following margin types are defined:

$silc-utilities--margin-types: (
    'top',
    'right',
    'bottom',
    'left'
) !default;

Margin sizes can be configured via the $silc-utilities--margin variable. By default, the following margin sizes are defined:

$silc-utilities--margin: (
    ('0', '0'),
    ('auto', 'auto'),
    ('1', '.25rem'),
    ('2', '.5rem'),
    ('3', '.75rem'),
    ('4', '1rem')
) !default;

Padding

Add padding globally, to specific sides, and at specific breakpoints

<div class="silc-p--1 silc-ptop--2 silc-ptop--4-large">

</div>

Variables

Padding types can be configured via the $silc-utilities--padding-types variable. By default, the following padding types are defined:

$silc-utilities--padding-types: (
    'top',
    'right',
    'bottom',
    'left'
) !default;

Padding sizes can be configured via the $silc-utilities--padding variable. By default, the following padding sizes are defined:

$silc-utilities--padding: (
    ('0', '0'),
    ('1', '.25rem'),
    ('2', '.5rem'),
    ('3', '.75rem'),
    ('4', '1rem')
) !default;

Colors

Add color and background color

<div class="silc-color--primary silc-bg--secondary">

</div>

Variables

Color and background colors can be configured via the $silc-utilities--colors variable. By default, the following colors are defined:

$silc-utilities--colors: (
    ('primary', '#369'),
    ('secondary', '#4E7DAB'),
    ('tertiary', '#7BA3CA'),
    ('white', '#fff'),
    ('black', '#000')
) !default;