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

@yfuu/lightning-solid-mdl-icons

v0.0.3

Published

Google MDL components for @lightningjs/solid

Downloads

12

Readme

lightning-solid-mdl-icons

Introducing Google MDL Icon components for @lightningjs/solid - a sophisticated and efficient solution for incorporating Material Design icons in LightningJS/Solid applications.

Setup

Installation

To integrate lightning-solid-mdl-icons into your project, use one of the following package managers:

  • npm: npm install @yfuu/lightning-solid-mdl-icons
  • yarn: yarn add @yfuu/lightning-solid-mdl-icons
  • bun: bun x pnpm add @yfuu/lightning-solid-mdl-icons

Configuration

To configure, in AppCoreExtensions.js make the following changes:

  1. Import Fonts from @yfuu/lightning-solid-mdl-icons:
    import { Fonts } from "@yfuu/lightning-solid-mdl-icons";
  2. In the run method of AppCoreExtension, add the following code:
    Fonts.map(font => {
        stage.fontManager.addFontFace(font);
    });

Usage

The naming convention for components is straightforward and intuitive:

  • Each component's name begins with a capitalized icon name followed by Icon, e.g., HomeIcon, SearchIcon, DesignservicesIcon.
  • Names are not in camel case; only the first letter of the icon name and the 'I' in 'Icon' are capitalized.
  • For names starting with a number, prepend an underscore, e.g., _123Icon becomes _3mpIcon.

Props

  • type: Determines the font type of the icon, as defined in the FontTypes enum. For example, FontTypes.rounded.
  • color: Sets the icon's color, adhering to LightningJS/Solid style color specifications.
  • size: Specifies the icon's size, following LightningJS/Solid style size units.
  • focusedColor: Defines the icon's color when focused, in line with LightningJS/Solid style color properties.
  • focusedSize: Determines the icon's size when focused, using LightningJS/Solid style size units.

Example

import { HomeIcon } from "@yfuu/lightning-solid-mdl-icons";
import { FontTypes } from "@yfuu/lightning-solid-mdl-icons";

<HomeIcon
    type={FontTypes.rounded}
    color={styles.button_text.color} 
    size={styles.button_text.fontSize} 
    focusedSize={styles.button_text.focus.fontSize} 
    focusedColor={styles.button_text.focus.color} 
/>

Authors