Skip to content

QuadDepo/env.style

Repository files navigation

env.style — Environment-tinted favicons for Next.js and Vite

npm version GitHub stars License CI

Five browser tabs, all the same favicon: dev, preview, production.. and you keep editing the wrong one. env.style tints your existing favicon per environment at build time, Vercel-style: same mark, different color. Production is never touched.

Website · Examples

Quick start

pnpm add env.style

Next.js

// next.config.ts
import { withEnvStyles } from 'env.style'
export default withEnvStyles(nextConfig)

Vite

// vite.config.ts
import { defineConfig } from 'vite'
import { envStyle } from 'env.style/vite'
export default defineConfig({ plugins: [envStyle()] })

See the package README for full API docs, options, and how it works.

Development

See DEVELOPMENT.md for setup, repo structure, and how to run examples.

Contributors

Contributors

License

MIT

About

Resources

License

Stars

207 stars

Watchers

0 watching

Forks

Contributors