Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

helium

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

helium

Sassy offiziermesser for front-end development

  • 0.0.1-test
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Say hi to Helium 👋

..a sassy offiziermesser for frontend development

Getting started

Helium is a Sass toolkit that provide to the developer a lot of functions, mixins and variables to easily write complex stylesheets.

By default this library produces no output, you can import it and use some of its utils without your css growing in size beyond the expected.

@use 'helium';

$colors: (
  1: helium.random-color(),
  2: helium.random-color(),
  3: helium.random-color(),
);

.my-button {
  // ...styles

  @each $class, $color in $colors {
    &.#{$class} {
      background: $color;
    }
  }
}

Import from CDN

Note that in this way you are importing a css file.

<link rel="stylesheet" type="text/css" href="https://unpkg.com/helium" />

For a better experience:

Install from npm

npm i sass helium

Usage

@use 'helium' with (
  $reset: true // this will print a basic reset to start with
);

Referring to the above example, due to the nature of Sass Modules to use an utility you need to prefix them:

@use 'helium' with (
  $reset: true
);

.my-navbar {
  @include helium.is-fixed-top;
}

// We recommend to, at least, shortening `helium` to `h`
// @use "helium" as "h";

To avoid the helium. repetition, if you are not using another frameworks that would enter in conflict with helium you can do this:

@use 'helium' as * with (
  $reset: true
);

.my-class {
  @include is-fixed-top;
}

Docs are still under development, please do not hesitate to ask for information!

Keywords

FAQs

Package last updated on 26 Jan 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc