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

snyk-marketingui

v1.3.9

Published

The official design token styles library for Snyk’s MarketingUI Design System

Downloads

26

Readme

snyk-marketingui

Snyk MarketingUI 🐾 🖥 💻 📱

Total Downloads Latest Release License


Welcome to Snyk MarketingUI, the official design token styles library for Snyk’s MarketingUI Design System.

Documentation

The full documentation can be found at https://snyk.marketing/snyk-marketingui.

Getting Started with the Styles Library

Setting it up

Install Snyk MarketingUI with either npm:

npm i snyk-marketingui

or yarn:

yarn add snyk-marketingui

Compiling it

Compile Snyk MarketingUI CSS by running the gulp command. This will build CSS files in a css directory at the root of this project. To test out development locally:

  1. Install the Live Server extension in VSCode. This can be found in the Recommneded Extensions in the extensions tab.
  2. Create an index.html file at the root of this project. Add this template to the file:
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SMUi Test area</title>
    <link rel="stylesheet" href="css/index.css">
</head>

<body class="snyk-marketingui">
    <main>
        <section class="smui-section">
            <div class="smui-container">
                <div class="max-w-6 marg-h-auto txt-center">
                    <h1 class="txt-page-title">Smui Testing Area</h1>
                    <p class="txt-body">Use this as a testing area when creating SCSS styles</p>
                </div>
            </div>
        </section>
        <section class="smui-section">
            <div class="smui-container">
                <!-- Test inside this container -->

            </div>
        </section>
    </main>
</body>

</html>
  1. You can now add some HTML with SMUi classes to the section.
  2. Run yarn gulp. This will compile the CSS in the css directory and watch for any changes to .scss files.

Using Snyk MarketingUI

Snyk MarketingUI is compiled both as a whole bundle and into broken down sections based on the following structure:

Sass Files Structure

scss
├── atoms
│   ├── _announcement-bar.scss
│   ├── _avatar.scss
│   ├── _button.scss
│   ├── _checkbox.scss
│   ├── _chip.scss
│   ├── _dropdown.scss
│   ├── _input.scss
│   ├── _product-logos.scss
│   ├── _radios.scss
│   ├── _rich-text.scss
│   ├── _snyk-logos.scss
│   ├── _switch.scss
│   ├── _tabs.scss
│   ├── _tag.scss
│   ├── _wave.scss
│   └── index.scss
├── common
│   ├── _functions.scss
│   ├── _variables.scss
│   └── index.scss
├── core
│   ├── _animation.scss
│   ├── _baseline.scss
│   ├── _color.scss
│   ├── _elevation.scss
│   ├── _icons.scss
│   ├── _layout.scss
│   ├── _shape.scss
│   ├── _spacing.scss
│   ├── _typography.scss
│   ├── .DS_Store
│   └── index.scss
├── atoms.scss
├── core.scss
└── index.scss

Compiled CSS Files Structure

css
├── atoms.css
├── atoms.css.map
├── core.css
├── core.css.map
├── index.css
└── index.css.map

Snyk MarketingUI can be used through its design tokens, (CSS class names) or through mixin includes of custom SMUi functions, which can be referenced from the official documentation. Once you have access to Snyk MarketingUI, you can access the styles as follows:

import './node_modules/snyk-marketingui/scss/[index | index-wrapped | core | brand | atoms].scss';

If you are using WebPack, then you can reference the styles through an alias as follows:

module.exports = {
	resolve: {
		alias: {
			'snyk-marketingui': path.resolve(__dirname, './node_modules/snyk-marketingui/scss/[index | index-wrapped | core | brand | atoms].scss'),
		},
	},
};