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

shayo-theme

v0.0.3

Published

Theme. shayo-theme is a fork from @material/theme.

Downloads

6

Readme

shayo-theme

0.0.3

Theme.

shayo-theme is a fork from @material/theme.

Installation

$ npm install shayo-theme

Usage

Sass
@import "path/to/node_modules/shayo-theme/theme";

// Set theme primary color.
$s-theme-palette--primary: #ce1126;

// Set theme secondary color.
$s-theme-palette--secondary: #11ceb9;

@include s-theme-custom-properties;

// Return primary color from color palette.
@debug s-theme-palette-get("primary");

// Return secondary text color on secondary color background.
@debug s-theme-text-get("secondary", "secondary");

// Return tertiary text color on colored background.
@debug s-theme-text-get("tertiary", #000);

// Output primary text color on secondary color background.
.foo {
  @include s-theme-property("property", "primary", "secondary");
}

// Output tertiary text color on colored background.
.foo {
  @include s-theme-property("property", "tertiary", #fff);
}

// Output primary color from color palette w/ Edge feature-detect.
.foo {
  @include s-theme-property("property", "primary", $edge: true);
}

// Output new assigned color.
.foo {
  @include s-theme-property("property", #11ceb9);
}

// Get dark variant for color.
@debug s-theme-darken(#ce1126);

@debug s-theme-darken(#11ceb9, 4);

// Get light variant for color.
@debug s-theme-lighten(#ce1126);

@debug s-theme-lighten(#11ceb9, 4);
Terminal
/path/to/style.scss:12 DEBUG: #ce1126
/path/to/style.scss:15 DEBUG: rgba(0, 0, 0, 0.54)
/path/to/style.scss:18 DEBUG: rgba(255, 255, 255, 0.5)
/path/to/style.scss:41 DEBUG: #ef384c
/path/to/style.scss:43 DEBUG: #064a43
/path/to/style.scss:46 DEBUG: #f47a87
/path/to/style.scss:48 DEBUG: #7af4e6
Css
:root {
  --s-theme-primary: #ce1126;
  --s-theme-secondary: #11ceb9;
  --s-theme-primary-on-dark: #fff;
  --s-theme-secondary-on-dark: rgba(255, 255, 255, 0.7);
  --s-theme-tertiary-on-dark: rgba(255, 255, 255, 0.5);
  --s-theme-primary-on-light: rgba(0, 0, 0, 0.87);
  --s-theme-secondary-on-light: rgba(0, 0, 0, 0.54);
  --s-theme-tertiary-on-light: rgba(0, 0, 0, 0.38);
}

.foo {
  property: rgba(0, 0, 0, 0.87);
  property: var(--s-theme-primary-on-light, rgba(0, 0, 0, 0.87));
}

.foo {
  property: rgba(0, 0, 0, 0.38);
  property: var(--s-theme-tertiary-on-light, rgba(0, 0, 0, 0.38));
}

.foo {
  property: #ce1126;
}

@supports not (-ms-ime-align: auto) {
  .foo {
    property: var(--s-theme-primary, #ce1126);
  }
}

.foo {
  property: #11ceb9;
}

Author

Zaza Agency


This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit creativecommons.org/licenses.