Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucagoslar/phosphor-css
🧩 CSS integration of a flexible icon family for the web.
https://github.com/lucagoslar/phosphor-css
css icons less phosphor phosphor-icons sass scss
Last synced: 3 months ago
JSON representation
🧩 CSS integration of a flexible icon family for the web.
- Host: GitHub
- URL: https://github.com/lucagoslar/phosphor-css
- Owner: lucagoslar
- License: mit
- Created: 2023-01-10T22:57:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-01T11:39:03.000Z (10 months ago)
- Last Synced: 2024-09-29T18:20:13.514Z (4 months ago)
- Topics: css, icons, less, phosphor, phosphor-icons, sass, scss
- Language: TypeScript
- Homepage:
- Size: 123 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## phosphor-css
Unlike `phosphor-icons`, `phosphor-css` isn't loading any fonts. Instead, CSS is loaded, and SVG icons are requested when required. It is possible to load a multi- or single-weight CSS file (e.g. "regular" or "fill"), allowing for even more efficient use.
[![build package and run tests](https://github.com/lucagoslar/phosphor-css/actions/workflows/test.yml/badge.svg)](https://github.com/lucagoslar/phosphor-css/actions/workflows/test.yml)
## Index
- [phosphor-css](#phosphor-css)
- [Index](#index)
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)
- [Contribute](#contribute)## Installation
```bash
npm i phosphor-css
```## Usage
By default, icons are the size of 1.5rem (24px). `width`, `height`, `background-color` (final icon colour) and `line-height` can be modified when targetting `.ph.icon`.
```css
@import 'phosphor-css/css/index.css';
@import 'phosphor-css/sass/index.scss';
@import 'phosphor-css/less/index.less';/* @import "phosphor-css/{language}/{weight}.{language}"; */
``````html
``````html
```## License
[phosphor-icons](https://github.com/phosphor-icons/core/blob/main/LICENSE) is licensed under MIT. After building, you may find the license in the `assets` folder. Thus, the license is included in the npm package.
## Contribute
Install all (dev-)dependencies by running the following.
```
pnpm i
```Make sure [husky](https://github.com/typicode/husky) is being installed too.
```
pnpm run prepare
```\
_And off we go …_Build this project with the following.
```
pnpm run build
```