Loading...
Loading...
Look at the current project's design (its shadcn / Tailwind CSS variables and color tokens) and publish it to the 21st.dev community as a shareable theme, using `21st publish-theme`. Use when the user says "publish my theme", "share our design as a 21st theme", "sync my design to 21st", "turn my globals.css into a theme", "залей наш дизайн темой", "опубликуй тему". This is the 21st equivalent of design-sync: it reads the project's design tokens and syncs them into the public theme library.
npx skill4agent add 21st-dev/skill 21st-design-sync21st publish-theme <file.css> --name "…"publish-theme21st_sk_…21st login--api-key 21st_sk_…TWENTYFIRST_TOKENAPI_KEY_21ST@21st-dev/cli21stnpx @21st-dev/cliis_publicapp/globals.csssrc/app/globals.csssrc/index.cssstyles/globals.cssapp/styles/globals.css:root { … }--background--foreground--card--primary--secondary--muted--accent--destructive--border--input--ring--chart-*--sidebar-*--radius.dark { … }hsl(...)oklch(...):root.dark@theme inline:root.dark@theme--name: value;:root { … }.dark { … }:root.darkproject-theme.css:root.darkadd-dark-modeoklch-skill:root {
--background: 0 0% 100%;
--foreground: 240 10% 4%;
--primary: 240 6% 10%;
/* …the rest of the project's light tokens… */
--radius: 0.5rem;
}
.dark {
--background: 240 10% 4%;
--foreground: 0 0% 98%;
--primary: 0 0% 98%;
/* …the rest of the project's dark tokens… */
}package.jsondarkminimalneutralvibrantsaas21st publish-theme ./project-theme.css \
--name "Acme" \
--tags dark,minimal \
--api-key 21st_sk_… # or set TWENTYFIRST_TOKENhttps://21st.dev/community/themes/<slug>publish-theme21st edit <theme-id> --type theme [--name "…"] [--tags a,b]21st delete <theme-id> --type theme --yes/design-sync21st-registry