https://github.com/tomkennedy22/helmetjs
https://github.com/tomkennedy22/helmetjs
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tomkennedy22/helmetjs
- Owner: tomkennedy22
- License: mit
- Created: 2025-03-23T00:21:07.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-23T19:22:12.000Z (2 months ago)
- Last Synced: 2025-03-23T19:24:38.436Z (2 months ago)
- Language: TypeScript
- Size: 162 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
HelmetJs is a React package to generate a football helmet given a user's input. It also has a free editor at https://tomkennedy22.github.io/HelmetJs
### Using in TSX
Define your helmetConfig
```
const helmetConfig = {
"flipHelmet":false,
"helmetColor":"#ffdc30",
"facemaskColor":"#936afe",
"helmetLogoUrl":"Your URL here",
"xAdjust":0,
"yAdjust":0,
"enableLogo":false,
"flipLogoWithHelmet":false,
"useFlippedLogoUrlWhenFlipped":false,
"helmetStyle":"Standard",
"tigerStripeColor":"#d18126",
"wingColor":"#272727",
"hornColor":"#ffffff",
"helmetLogoScale":1
}
```Or if you have just a few attributes in mind, specify those and get a mostly-blank slate
```
const helmetConfig = generateHelmetConfigFromOverrides({helmetConfigOverrides:{
helmetColor: "#0f0",
}})
```Then simply include the `Helmet` component in your app
```
```
Helmet Styles
- Standard
- Tiger Stripe
- Horn
- Wing### Examples



Credit:
- Largely inspired by dumbmatter's https://github.com/zengm-games/facesjs
- HeroUI
- Vite
- Tailwind
- Several other tools