Skip to content

Commit 5523931

Browse files
feat: migrate language icons from uno repo (#319)
1 parent 9a86503 commit 5523931

232 files changed

Lines changed: 774 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@
2121

2222
Common web assets for use in LizardByte projects.
2323

24+
## CDN
25+
26+
Published package assets are available through [jsDelivr](https://www.jsdelivr.com/).
27+
For example, a language icon can be embedded directly:
28+
29+
```html
30+
<img
31+
src="https://cdn.jsdelivr.net/npm/@lizardbyte/shared-web@latest/dist/language-icons/JavaScript.svg"
32+
alt="JavaScript"
33+
width="32"
34+
height="32"
35+
/>
36+
```
37+
38+
Replace `latest` with a published package version for an immutable URL. URL-encode
39+
icon filenames that contain spaces or other reserved characters.
40+
2441
## Installation
2542

2643
### Install via NPM registry

src/language-icons/AL.svg

Lines changed: 1 addition & 0 deletions
Loading

src/language-icons/ANTLR.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

src/language-icons/APL.svg

Lines changed: 1 addition & 0 deletions
Loading

src/language-icons/ASP.NET.svg

Lines changed: 1 addition & 0 deletions
Loading

src/language-icons/ATS.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

src/language-icons/Ada.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)