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

@11thdeg/cyan

v0.37.0-beta.25

Published

A Design System for the 11thDEG sites.

Downloads

529

Readme

Cyan Elements

A Design System for the 11thDEG sites.

Or

A shared element library for Pelilauta, Charna, and so.

0.22.0+

Components available

<tag-name [boolean attribute] another=[typed attribute] (boolean property) (yet-another=[typed property])>

  • <cyan-toggle [checked]>
  • <cyan-textfield [error]>
  • <cyan-textarea [error] (inject=[added to cursor position]) >
  • <cyan-markdown-area {extends cyan-textarea}>
  • <cyan-icon>
  • <cyan-save-interaction>
  • <cyan-code>
  • <cyan-button [text] noun=[noun]>
  • <cyan-toolbar [small]> -- <cyan-toolbar-header level=[1|2|3|4]> creates a responsive header element inside a toolbar. -- <cyan-spacer> creates a spacer element inside a toolbar.
  • <cyan-select>
  • <cyan-asset-select> and <cyan-asset-option>
  • <cyan-tag [notification] label=[string] noun=[noun] prepend=[noun] [secondary]>
  • <cyan-love-button>
  • <cyan-loader [large|inline]>
  • <cyan-fab noun=[noun] [secondary] [small]>[slot]</cyan-fab>
  • <cyan-nav-button [compact] [light|dark]> and <cyan-nav-section [folds] [open] label=[string] [light|dark]>

App structure

  • <cyan-top-app-bar [sticky] [modal]> provides a basic layout element for an app-bar.

Content tags

  • <cyan-heading [level=1|2|3|4] label="[heading text]></cyan-heading> is a 24px ot 48px high heading, which automatically resizes to fit the content and slot.
  • <cyan-bubble [reply]> for a speech bubble (left or right depending on the reply attribute)

Microinteractions available

  • <cyan-hamburger-button aria-label="[string]"" aria-controls="[string]" [active]>

Events

  • cyan-field-focus and cyan-field-blur are fired when a field is focused or blurred.
  • cyan-mode-dark and cyan-mode-light are fired when the user changes the mode.

Atomics available

  • .oneLiner keeps the text on a line
  • .TypeHeadline3
  • .TypeHeadline4
  • .TypeHeadline5
  • .TypeHeadline6
  • .TypeBody1
  • .TypeBody2
  • .TypeCaption
  • .TypeUI
  • .lowEmphasis
  • .hideOnMobile and .onlyOnMobile hide an element below or above 600px device width, respectively.
  • .dontBreakOut
  • .codeblock
  • .card
  • .rise-a, .rise-b, .rise-c, .rise-d add a material style elevation to an element. These work well with cards.
  • .chroma-card-a
  • .chroma-card-b
  • .chroma-card-c

Layout bases

  • <main class="singleColumnLayout">
  • <main class="dashboardLayout">
  • <main class="bookLayout">

All of these expect the elements inside the layout to have the class .Column. Additional functionality can be added by adding the class .double or .double-cut to the element.

See stylebook for examples of use

Try cd stylebook && npm run dev to run the stylebook.

Developer info

Init the project

git clone https://github.com/11thdeg/cyan-elements.git
git submodule unit
git submodule update

npm install

To develop, perhaps you want to run the stylebook (with vite)

npm run dev

Or build and deploy

npm run lint
npm run build
npm publish

Using with Vite/Vue

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue({
    template: {
      compilerOptions: {
        isCustomElement: (tag) => {
          return tag.startsWith('cyan-') // (return true)
        }
      }
    }
  })]
})