npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@kevdev35/at-mos

v1.2.0

Published

CLI interactiva para generar global.css con @theme para Tailwind v4

Downloads

634

Readme

at-mos ⚡

Generate your Tailwind CSS @theme in seconds — no copy-paste, no guesswork.

Stop writing the same CSS variables on every new project.

npm version license node


You start a new project. You open global.css. You write @theme {. And then you spend the next 10 minutes copy-pasting colors, spacing values and font names from your last project — tweaking them, cleaning up leftovers, wondering if you missed something.

Every. Single. Time.

at-mos fixes that.

One command. It detects your framework, finds your CSS file, asks for your design tokens — or reads them from a file you already have — and generates a clean, ready-to-use global.css with your @theme block. Then it gets out of your way.

Try it now

npx @kevdev35/at-mos init
/* generated instantly */
@import 'tailwindcss';

@theme {
  --color-primary: #7c3aed;
  --color-secondary: #06b6d4;
  --spacing-base: 0.5rem;
  --font-sans: 'Syne', sans-serif;
}

See it in action

$ npx @kevdev35/at-mos init

┌  at-mos — @theme generator for Tailwind v4
│
◇  Project analyzed
◆  Package manager: pnpm
◆  Framework: SvelteKit
◆  Tailwind: v4
│
◇  Generate CSS at src/app.css? Yes
│
◆  How do you want to define your variables?
●  Import from file (.json or .css)
│
◇  File path → tokens.json
◇  6 variables found. Select which to include:
  ✔ --color-primary
  ✔ --color-secondary
  ✔ --spacing-base
  ✗ --debug-outline
  ✔ --font-sans
│
◇  Backup saved → src/app.css.bak
✓  global.css generated
│
└  Your @theme is ready. Edit it anytime.

Why at-mos

Tailwind v4 moved configuration from tailwind.config.js into CSS. That's a great decision — but it also means there's no tooling around it yet. You're back to doing everything by hand.

at-mos is that missing tool. It doesn't lock you in, doesn't generate opinionated defaults, and doesn't force any naming convention on you. It just asks what you want and writes it correctly.

Works with Next.js, SvelteKit, Astro, Vue — or any project, really, because at the end of the day it's just a CSS file.


Install

# run once without installing
npx @kevdev35/at-mos init

# or install globally
npm i -g @kevdev35/at-mos
pnpm add -g @kevdev35/at-mos
bun add -g @kevdev35/at-mos

Requires Node.js 18+


Commands

init — generate your @theme from scratch

at-mos init

Detects your environment, asks how you want to define your variables (interactively or from a file), and writes a clean global.css. Always backs up the previous file before overwriting.

list — see what variables you already have

at-mos list

Reads your existing global.css and prints every variable defined inside @theme with its current value. Useful before running update.

◆  Variables in src/app.css
●  --color-primary: #7c3aed
●  --color-secondary: #06b6d4
●  --spacing-base: 0.5rem
└  3 variables listed.

update — add, edit or delete variables

at-mos update

Shows your current variables and lets you choose what to do:

  • Add a new variable
  • Edit an existing one (shows current value as hint)
  • Delete one or more (requires confirmation)
◆  What do you want to do?
●  Add a new variable
○  Edit an existing variable
○  Delete a variable

All flags (available on every command)

| Flag | What it does | |----------------|------------------------------------------------| | --output, -o | Set a custom CSS file path | | --from | Import variables from a .json or .css file (init only) | | --version | Show current version | | --help | Show help |


Import from file

JSON — great for design tokens from Figma or Style Dictionary

{
  "color-primary": "#7c3aed",
  "color-secondary": "#06b6d4",
  "spacing-base": "0.5rem"
}
at-mos init --from tokens.json

Keys without -- are auto-prefixed. You pick which variables make it into the output.

CSS partial

--color-primary: #7c3aed;
--spacing-base: 0.5rem;
at-mos init --from base-vars.css

What gets generated

A clean global.css — nothing extra, nothing you didn't ask for:

@import 'tailwindcss';

@theme {
  --color-primary: #7c3aed;
  --color-secondary: #06b6d4;
  --spacing-base: 0.5rem;
}

If a file already exists at the output path, at-mos saves a .bak copy before overwriting. You never lose previous work.


Roadmap

v1.1 — available now

  • [x] init — generate @theme from scratch
  • [x] list — view existing variables
  • [x] update — add, edit or delete variables
  • [x] Import from .json or .css
  • [x] Multiselect when importing from file
  • [x] Auto-detection of framework, package manager and CSS path
  • [x] Automatic backup before overwriting

v2 — coming soon

  • [ ] AI-powered variable extraction from images (mockups, screenshots, design files)
  • [ ] Bring your own API key — OpenAI, Anthropic, Gemini, Ollama
  • [ ] No vendor lock-in, plug in whatever model you want

Contributing

Found a bug? Have an idea? Want to add support for a new framework?

git clone https://github.com/Kevdev35/at-mos
cd at-mos
pnpm install
pnpm dev

# test it
node dist/index.js init

Open an issue before working on something big — just so we're aligned. PRs are welcome.


License

MIT © KevDev35