0.0.3 • Published 2 months ago

@project-lary/material-symbols-100-rounded v0.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 months ago

@project-lary/material-symbols-100-rounded

Latest rounded React icon components with weight 100 for Material Symbols.

This package is automatically updated, so it will always have the latest icons from Google.

Installation

Install the latest version using:

npm install @project-lary/material-symbols-100-rounded

Material Symbols are available in 7 weights - 100, 200, 300, 400, 500, 600, 700 and in three styles — outlined, rounded, and sharp. The package @project-lary/material-symbols-100-rounded includes only React icon components with weight 100 and type rounded. To use a different weight and type, replace 100-rounded in the package name with the desired weight and type.

PackageDescription
@project-lary/material-symbols-100-outlinedLatest outlined React icon components with weight 100.
@project-lary/material-symbols-100-roundedLatest rounded React icon components with weight 100.
@project-lary/material-symbols-100-sharpLatest sharp React icon components with weight 100.
@project-lary/material-symbols-200-outlinedLatest outlined React icon components with weight 200.
@project-lary/material-symbols-200-roundedLatest rounded React icon components with weight 200.
@project-lary/material-symbols-200-sharpLatest sharp React icon components with weight 200.
@project-lary/material-symbols-300-outlinedLatest outlined React icon components with weight 300.
@project-lary/material-symbols-300-roundedLatest rounded React icon components with weight 300.
@project-lary/material-symbols-300-sharpLatest sharp React icon components with weight 300.
@project-lary/material-symbols-400-outlinedLatest outlined React icon components with weight 400.
@project-lary/material-symbols-400-roundedLatest rounded React icon components with weight 400.
@project-lary/material-symbols-400-sharpLatest sharp React icon components with weight 400.
@project-lary/material-symbols-500-outlinedLatest outlined React icon components with weight 500.
@project-lary/material-symbols-500-roundedLatest rounded React icon components with weight 500.
@project-lary/material-symbols-500-sharpLatest sharp React icon components with weight 500.
@project-lary/material-symbols-600-outlinedLatest outlined React icon components with weight 600.
@project-lary/material-symbols-600-roundedLatest rounded React icon components with weight 600.
@project-lary/material-symbols-600-sharpLatest sharp React icon components with weight 600.
@project-lary/material-symbols-700-outlinedLatest outlined React icon components with weight 700.
@project-lary/material-symbols-700-roundedLatest rounded React icon components with weight 700.
@project-lary/material-symbols-700-sharpLatest sharp React icon components with weight 700.

Usage

React components are available for both unfilled (FILL 0) and filled (FILL 1) states with grade (GRAD) 0 and size (opsz) 48px. Other variations of grade and size are not included to keep the package size small.

React

import { Raven } from '@project-lary/material-symbols-100-rounded';
// import { RavenFilled } from '@project-lary/material-symbols-100-rounded'; filled icon

// Raven is a React component that renders the SVG

function App() {
  return (
    <div className="App">
      <Raven />
    </div>
  );
}

Styling

The font-size is by default 16px which is the HTML default. If you set font-size for svg in your main CSS file then this will become the default style for icons. If the parent element has a font-size attribute then this will take presedence.

@layer base {
    svg {
        font-size: 24px;
        color: red;
    }
}

Components can be styled using className attribute.

Tailwind CSS

<Raven className="size-6" /> // Using size -which is combination of width and height- to change the size of the icon
<Raven className="text-black" /> // To change the color of the icon
<Raven className="text-lg" /> // Using text-lg -which is font-size- to change the size of the icon

CSS

/* CSS file */
.lary-material-symbol-size {
  font-size: 24px; /* This sets the font size for the class */
}
<Raven className="lary-material-symbol-size" /> 

Note

Since React component names cannot begin with or be only numbers, the icons with names that begin with or are only numbers are prefixed with an underscore. For example, the icon named 3d is available as _3d.

import { _3d } from '@project-lary/material-symbols-100-rounded';
// import { _360 } from '@project-lary/material-symbols-100-rounded'; another example

function App() {
  return (
    <div className="App">
      <_3d />
    </div>
  );
}

Available Icons

See all available icons here.

License

Material Symbols are created by Google.

Insparation by Marella.

We have made these icons available for you to incorporate into your products under the Apache License Version 2.0. Feel free to remix and re-share these icons and documentation in your products. We'd love attribution in your app's about screen, but it's not required.