tech-stack-icons 3.2.0 โ†’ 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +87 -20
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,22 +1,31 @@
1
1
  # Tech Stack Icons
2
2
 
3
- An icon set of the most used frameworks and technologies for web and app development
3
+ A Typesafe React component for rendering over **265+ original SVG icons** for the most-used design & development tools, frameworks, and AI services.
4
4
 
5
- ![Tech Stack Icons Figma Plugin](https://figma-tech-stack-icons.vercel.app/cover-tech-design-stack-icons-2.png "Tech Stack Icons Figma Plugin")
5
+ ---
6
6
 
7
- - [**tech-stack-icons.com**](https://tech-stack-icons.com/) (Documentation ยท Copy JSX and SVG)
8
- - [**Install Figma Drag & Drop plugin**](https://www.figma.com/community/plugin/1292847256216210035/iconstack-pro) (Use it on your design files)
9
- - [**Figma Components File**](https://www.figma.com/community/file/1095337897898466786/tech-stack-icons-design-stack-icons) (Duplicate all the icons)
7
+ ![Tech Stack Icons Cover](https://figma-tech-stack-icons.vercel.app/cover-tech-design-stack-icons-2.png)
10
8
 
11
- ### ORIGINAL SVG
9
+ - ๐ŸŒ [**tech-stack-icons.com**](https://tech-stack-icons.com/) โ€” live search, preview, copy JSX/SVG
10
+ - ๐ŸŽจ [**Figma Drag & Drop Plugin**](https://www.figma.com/community/plugin/1292847256216210035/tech-stack-design-stack-icons)
11
+ - ๐Ÿ“ [**Figma File of Icons**](https://www.figma.com/community/file/1095337897898466786/tech-stack-icons-design-stack-icons)
12
12
 
13
- โœ“ 245+ Icons
14
- โœ“ Light mode
15
- โœ“ Grayscale
13
+ ---
16
14
 
17
- ## Installation
15
+ ## โœจ Features
18
16
 
19
- ```shell
17
+ - 265+ original SVG icons
18
+ - Light, Dark, and Grayscale variants
19
+ - Fully typed with TypeScript autocomplete
20
+ - Zero dependencies
21
+ - Optimized for 100% width and height scaling
22
+ - Works out of the box with Tailwind CSS and styled-components
23
+
24
+ ---
25
+
26
+ ## ๐Ÿ“ฆ Installation
27
+
28
+ ```bash
20
29
  npm install tech-stack-icons
21
30
  # or
22
31
  pnpm add tech-stack-icons
@@ -24,17 +33,75 @@ pnpm add tech-stack-icons
24
33
  yarn add tech-stack-icons
25
34
  ```
26
35
 
36
+ ---
37
+
38
+ ## ๐Ÿงฑ Usage
39
+
27
40
  ```tsx
28
- import StackIcon from "tech-stack-icons"; // You can also use any another import name
41
+ import StackIcon from "tech-stack-icons";
42
+
43
+ export default function Example() {
44
+ return (
45
+ <div style={{ width: 40, height: 40 }}>
46
+ <StackIcon name="nextjs" />
47
+ </div>
48
+ );
49
+ }
50
+ ```
29
51
 
30
- <StackIcon name="nextjs" />;
52
+ ---
53
+
54
+ ## ๐Ÿงฉ Props
55
+
56
+ | Prop | Type | Required | Description |
57
+ | ----------- | -------------------------------------- | -------- | ------------------------------------------------ |
58
+ | `name` | `IconName` | โœ… Yes | The ID of the icon (autocompletes in TypeScript) |
59
+ | `variant` | `"light"` \| `"dark"` \| `"grayscale"` | โŒ No | Defaults to `"light"` |
60
+ | `className` | `string` | โŒ No | CSS class for the wrapping `<span>` |
61
+ | `style` | `React.CSSProperties` | โŒ No | Inline styles for the wrapper `<span>` |
62
+
63
+ ---
64
+
65
+ ## ๐ŸŽจ Variants
66
+ ```tsx
67
+ <StackIcon name="react" variant="dark" />
68
+ <StackIcon name="github" variant="grayscale" />
31
69
  ```
32
70
 
33
- ## Component properties
71
+ ---
72
+
73
+ ## โœ… TypeScript Autocomplete
74
+ When using in a TypeScript project, the `name` prop autocompletes based on the internal icon list:
75
+
76
+ ```tsx
77
+ import StackIcon, { IconName } from "tech-stack-icons";
78
+
79
+ const myIcon: IconName = "typescript";
80
+
81
+ ```
82
+
83
+ ---
84
+
85
+ # ๐Ÿงช Example: Styled with Tailwind
86
+ ```tsx
87
+ <StackIcon name="tailwindcss" className="w-8 h-8 rounded" />
88
+ ```
89
+
90
+ # ๐Ÿช„ Accessibility
91
+ Icons are inserted as `dangerouslySetInnerHTML` inside a `<span>`, and are decorative by default.
92
+ If needed, you can wrap it in a `<figure>` or manually add ARIA attributes like:
93
+
94
+ ```jsx
95
+ <figure role="img" aria-label="React logo">
96
+ <StackIcon name="react" />
97
+ </figure>
98
+ ```
99
+ ---
100
+
101
+ ## ๐Ÿ“‚ Folder structure
102
+ Icons are embedded inline (no file loading needed). You do not need to manage separate assets.
103
+
104
+ ---
34
105
 
35
- | Property | Type | Description |
36
- | :---------- | :-------------- | :----------- |
37
- | `name` | `string` | **Required** |
38
- | `className` | `string` | _optional_ |
39
- | `style` | `CSSProperties` | _optional_ |
40
- | `grayscale` | `boolean` | _optional_ |
106
+ ## ๐Ÿ“„ License
107
+ MIT โ€” Made by [Eugenio Ciccale](https://www.plusuidesign.com/about/)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tech-stack-icons",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {