Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
452 commits
Select commit Hold shift + click to select a range
e2730f7
docs(www): update docs for cli, components.json and theming
shadcn Feb 28, 2025
1832f25
fix(shadcn): Remove duplicate spaces (#6696)
justjavac Feb 28, 2025
bc7df68
feat(shadcn): install routes for next-pages, laravel and react-router…
shadcn Feb 28, 2025
8539dd6
fix(shadcn): do not add outline-ring for v3 (#6814)
shadcn Feb 28, 2025
d44971b
feat(v4): add products-01 block
shadcn Feb 28, 2025
92e5c7a
ci: fix up stale issue handler (#6457)
lloydrichards Mar 2, 2025
dc80a32
ci: fix stale bot
shadcn Mar 2, 2025
cf4ccb3
docs(www): mention to add suppressHydrationWarning in the dark mode d…
ChristianIvicevic Mar 2, 2025
0b28888
fix(sidebar, sidebar-16): 6651 - Resolve unnecessary vertical scroll …
Jacksonmills Mar 2, 2025
f759a25
docs(www): update Tailwind v4 migration guide with CSS and React chan…
liby Mar 3, 2025
7eb77fb
fix(navigation-menu): 6825 - Update open state styles and remove unus…
Jacksonmills Mar 3, 2025
418b2d9
fix(v4): misc select and tabs fixes (#6836)
shadcn Mar 3, 2025
be3c1a9
chore: minor fixes for registry blocks (#6850)
shadcn Mar 4, 2025
26dc03b
fix: chart and input-otp lint errors (#6853)
shadcn Mar 4, 2025
a7b3dbf
feat(www): site updates (#6854)
shadcn Mar 4, 2025
3baef99
feat(v4): add combobox with checkbox example (#6862)
shadcn Mar 5, 2025
a3fe507
feat(monorepo): use tailwindcss v4 in monorepo example (#6724)
Kaikaikaifang Mar 5, 2025
c16c58d
feat(shadcn): add --template flag (#6863)
shadcn Mar 5, 2025
fc0e8c0
use type import in react-hook-form (#4183)
omar2205 Mar 5, 2025
19665ad
feat(shadcn): add --base-color flag (#6864)
shadcn Mar 5, 2025
a106fc5
fix(dropdown-menu): make dropdown scrollable if height is limited (#6…
valentingavran Mar 5, 2025
2f6c3e7
fix(v4): use tailwind var
shadcn Mar 5, 2025
67e7364
fix: registry-item-json link (#6485)
withden Mar 5, 2025
f9e4991
Add @radix-ui/react-slot dependency to badge registry entry (#6841)
HichemTab-tech Mar 5, 2025
5466432
docs(www): update registry
shadcn Mar 6, 2025
12d4cf2
Merge branch 'main' of github.com:shadcn-ui/ui
shadcn Mar 6, 2025
1d55420
docs(www): add callout for tailwind v3
shadcn Mar 10, 2025
33b6146
docs(www): fix typo in site-header.tsx (#6897)
kasperaamodt Mar 10, 2025
1d8fe41
fix(context-menu): make context menu scrollable if height is limited …
valentingavran Mar 12, 2025
d999f80
fix(select): make select content scrollable if height is limited (#6681)
valentingavran Mar 12, 2025
79f2498
docs(www): add auth section for registry (#6910)
shadcn Mar 12, 2025
abde549
chore: create FUNDING.yml
shadcn Mar 12, 2025
f1dd9c6
feat: update dark mode colors (#6903)
shadcn Mar 13, 2025
415b02b
docs: add dark mode changelog (#6918)
shadcn Mar 13, 2025
0f6efb9
fix(navigation-menu v4): 6888 - Remove "use client" directive (#6913)
Jacksonmills Mar 13, 2025
a6e2d36
fix(sidebar): update type `SidebarContext` -> `SidebarContextProps` (…
itaober Mar 14, 2025
b7afb5a
feat(v4): dashboard 02 (#6950)
shadcn Mar 17, 2025
5085e48
feat(components): add origin-aware animations (#6945)
kianbazza Mar 17, 2025
28d97b7
fix: github link
shadcn Mar 17, 2025
61e21e3
docs: fix typo in CSS selector (#6928)
YordanIliev2002 Mar 17, 2025
911c520
feat(v4): dashboard demo
shadcn Mar 17, 2025
4ebfd68
Merge branch 'main' of github.com:shadcn-ui/ui
shadcn Mar 17, 2025
829ef0c
feat(v4): move dashboard
shadcn Mar 17, 2025
9f094a1
fix: meta
shadcn Mar 17, 2025
d5be468
fix: meta
shadcn Mar 17, 2025
bbda8c0
fix(v4): minor fixes for dashboard (#6959)
shadcn Mar 18, 2025
516ed3d
feat(www): add dashboard-01 (#6961)
shadcn Mar 18, 2025
c77ddfc
fix: tailwind config
shadcn Mar 18, 2025
9eae136
fix(shadcn): only show deprecated message for v4 (#6967)
shadcn Mar 19, 2025
205bfc6
feat(shadcn): replace tailwindcss-animate with tw-animate-css (#6968)
shadcn Mar 19, 2025
37e5192
fix(shadcn): only add tw-animate-css if no tailwindcss-animate (#6972)
shadcn Mar 19, 2025
84ec2f6
fix(v4): card - css syntax warning in tailwind v4 and vite (#6955)
FatahChan Mar 20, 2025
69fc8e2
fix: allow silent mode with npm on React 19 (#6965)
jherr Mar 20, 2025
2a78317
docs: update tanstack start
shadcn Mar 24, 2025
1fcb318
feat: use latest cmdk version
shadcn Mar 24, 2025
b3b2fe2
feat(shadcn): registry updates (#7016)
shadcn Mar 26, 2025
ca7fbc3
fix(v4): minor focus styles (#7030)
shadcn Mar 26, 2025
074eed5
feat(shadcn): extend styles (#7033)
shadcn Mar 26, 2025
883ad8c
chore: create dependabot config
shadcn Mar 27, 2025
9d908ae
docs: add security.md
shadcn Mar 27, 2025
d4247d5
chore(deps): bump next from 15.2.0 to 15.2.3 in /templates/monorepo-n…
dependabot[bot] Mar 27, 2025
e15e31e
chore(deps): bump vitest from 2.1.8 to 2.1.9 (#7042)
dependabot[bot] Mar 27, 2025
26edb82
chore(deps-dev): bump esbuild from 0.17.19 to 0.25.0 (#7043)
dependabot[bot] Mar 27, 2025
79a6f54
chore(deps): bump @radix-ui/react-scroll-area from 1.2.2 to 1.2.3 (#7…
dependabot[bot] Mar 27, 2025
799a7f8
chore(deps-dev): bump remark-gfm from 4.0.0 to 4.0.1 (#7048)
dependabot[bot] Mar 27, 2025
79eed50
chore(deps): bump next from 15.2.0-canary.33 to 15.2.3 (#7052)
dependabot[bot] Mar 27, 2025
a82db83
chore(deps): bump vite from 5.4.14 to 5.4.15 (#7051)
dependabot[bot] Mar 27, 2025
99fbf4c
fix: code block command overflow (#7031)
nicognaW Mar 27, 2025
cc53c22
chore(deps): bump next from 15.2.0-canary.33 to 15.2.3 in /apps/v4 (#…
dependabot[bot] Mar 27, 2025
754a660
chore(deps): bump sharp from 0.31.3 to 0.32.6 (#7053)
dependabot[bot] Mar 27, 2025
2fade23
feat(shadcn): add css props to schema (#7072)
shadcn Mar 28, 2025
b52fa45
docs(www): update registry examples
shadcn Mar 28, 2025
812e230
fix(shadcn): only run preflight check if url
shadcn Mar 30, 2025
1bd209a
feat: add oklch colors to themes (#7090)
shadcn Mar 31, 2025
625be13
chore(release): version packages (#6505)
github-actions[bot] Apr 7, 2025
6d2728d
deps: update
shadcn Apr 7, 2025
617483f
fix(shadcn): do not throw for empty dir (#7196)
shadcn Apr 15, 2025
d1a36d3
chore(release): version packages (#7198)
github-actions[bot] Apr 15, 2025
e3ca257
chore(www): replace shadcn-ui deprecated mentions to shadcn (#7207)
titouv Apr 18, 2025
f1e5cc4
🔥 feat(fix): mark "tw-animate-css" as devDep (#6985)
nrjdalal Apr 19, 2025
d030677
feat(shadcn): resolve imports from anywhere (#7220)
shadcn Apr 19, 2025
6f702f5
fix: Add `npm:` specifier when install dependencies with Deno (#6899)
justjavac Apr 21, 2025
e846879
chore: temporarily move tw-animate-css to dependencies
shadcn Apr 22, 2025
9ad24d6
chore(shadcn): add update-dependencies tests (#7067)
richardszalay Apr 22, 2025
11267f2
chore(release): version packages (#7228)
github-actions[bot] Apr 23, 2025
c41c6ec
fix: move tw-animate-css to devDependencies (#7251)
shadcn Apr 23, 2025
2773f9e
fix(tailwind-prefix): resolve prefixing issue for Tailwind CSS v4 com…
Joshua-hypt May 19, 2025
b84c990
fix registry item schema (#7486)
thibaultleouay May 28, 2025
df91b52
feat(shadcn): registry commands (#7497)
shadcn May 29, 2025
d85b8ef
chore(release): version packages (#7415)
github-actions[bot] May 30, 2025
1aa3504
feat: v4 updates (#7499)
shadcn May 30, 2025
ec73150
feat: add missing links
shadcn May 30, 2025
12b7833
fix: remove unused cn
shadcn May 30, 2025
b5cf967
feat: add themes page back (#7503)
shadcn May 30, 2025
16ee16b
fix: themes page
shadcn May 30, 2025
6522389
feat: layout toggle (#7515)
shadcn May 31, 2025
e0bec14
fix: async layout
shadcn May 31, 2025
9cbc664
fix: docs nav
shadcn May 31, 2025
82d94ee
feat: calendar v2 (#7551)
shadcn Jun 6, 2025
a659e09
feat: update calendar changelog
shadcn Jun 9, 2025
057d97d
docs: changelog
shadcn Jun 9, 2025
3119f94
feat: only show npm flag for react 18 deps (#7573)
shadcn Jun 9, 2025
b1fd13f
chore(release): version packages (#7574)
github-actions[bot] Jun 9, 2025
c5d90c7
feat: add migrate radix command (#7586)
shadcn Jun 11, 2025
92cfb9a
fix(shadcn): flaky create-project tests (#7590)
shadcn Jun 11, 2025
c135798
chore(release): version packages (#7591)
github-actions[bot] Jun 11, 2025
431af4f
fix(shadcn): semicolon in code style (#7594)
shadcn Jun 11, 2025
2ae0e5a
chore(release): version packages (#7595)
github-actions[bot] Jun 11, 2025
4698ee9
chore: update react-day-picker version to match updated calendar comp…
bytaesu Jun 12, 2025
40c7473
fix(www): update open-in-v0-cta.tsx
shadcn Jun 14, 2025
6535085
ci: fix stale bot (#7624)
shadcn Jun 16, 2025
8847126
chore(vscode): set custom Tailwind config path for monorepo UI (#7618)
Steellgold Jun 16, 2025
c86c27a
fix TanStack Start detection (#7601)
schiller-manuel Jun 16, 2025
cf1851c
chore(release): version packages (#7625)
github-actions[bot] Jun 16, 2025
cb19ab8
feat(shadcn): add support for updating dependencies with expo-cli for…
mrzachnugent Jun 16, 2025
20a88e1
fix(components): resolve duplicate id conflict in calendar-24 compone…
xabierlameiro Jun 16, 2025
3c87402
Add newly available Figma kit to docs (#7604)
Wolfr Jun 16, 2025
2821cb0
chore: move cli to deprecated (#7631)
shadcn Jun 17, 2025
56c4c83
fix(shadcn): update plugin handling (#7632)
shadcn Jun 18, 2025
7c3d34c
chore: fix changeset (#7640)
shadcn Jun 18, 2025
5b8ee41
fix(cli): correct function name typo unnsetSpreadElements to unsetSpr…
xabierlameiro Jun 18, 2025
84d6c83
chore(release): version packages (#7626)
github-actions[bot] Jun 18, 2025
b8fede1
docs(v4): link to obra figma kit (#7643)
Wolfr Jun 30, 2025
ed244ea
fix(cli): detect vinxi-based frameworks (@tanstack/start, SolidStart,…
KitsuneDev Jul 1, 2025
48fe0d7
feat(shadcn): add file support (#7717)
shadcn Jul 1, 2025
d544a7f
feat: refactor registryDependencies resolution (#7720)
shadcn Jul 1, 2025
9d9a33b
fix: margin
shadcn Jul 7, 2025
7443edc
chore(release): version packages (#7719)
github-actions[bot] Jul 7, 2025
4983c6e
chore: changelog
shadcn Jul 7, 2025
1cdd6c1
Merge branch 'main' of github.com:shadcn-ui/ui
shadcn Jul 7, 2025
db93787
feat(shadcn): implement registry safe path (#7757)
shadcn Jul 8, 2025
728cb4c
fix(component) Date Picker Dropdown values not visible in chrome, ope…
successbyte Jul 9, 2025
2fe9cf6
fix: pin recharts until we upgrade to v3 (#7769)
shadcn Jul 9, 2025
96b15f6
feat: update command menu pages and filtering (#7771)
shadcn Jul 9, 2025
6407a3b
fix: chart
shadcn Jul 9, 2025
06d03d6
feat(shadcn): add support for universal registry item (#7782)
shadcn Jul 10, 2025
6c341c1
feat: fix safe target and add docs (#7795)
shadcn Jul 11, 2025
54e66d4
chore(release): version packages (#7758)
github-actions[bot] Jul 11, 2025
f85ca06
deps: update
shadcn Jul 11, 2025
ed5237c
fix: handling of shouldOverwriteCssVars (#7829)
shadcn Jul 16, 2025
e75e7b3
chore(release): version packages (#7830)
github-actions[bot] Jul 16, 2025
d9cdc3f
Revert "fix: handling of shouldOverwriteCssVars" (#7833)
shadcn Jul 16, 2025
3433aaf
chore(release): version packages (#7834)
github-actions[bot] Jul 16, 2025
20e913d
fix: handling of themes in registry (#7837)
shadcn Jul 22, 2025
2926574
fix(shadcn): universal item files type (#7867)
shadcn Jul 22, 2025
4a86a55
feat(www): implement llm routes (#7868)
shadcn Jul 22, 2025
3424ab7
feat: add docs copy page (#7872)
shadcn Jul 22, 2025
8807103
fix: index
shadcn Jul 22, 2025
e38228b
feat: implement open in (#7875)
shadcn Jul 23, 2025
6f63b04
chore(release): version packages (#7866)
github-actions[bot] Jul 23, 2025
4e04567
deps: lock file
shadcn Jul 23, 2025
4730276
fix: spacing
shadcn Jul 23, 2025
d5770e4
fix: resolve table overflow styling issues (#7874)
mohit4bug Jul 23, 2025
6ac114a
feat: update hero
shadcn Jul 23, 2025
a9ab05a
Merge branch 'main' of github.com:shadcn-ui/ui
shadcn Jul 23, 2025
19d7fbb
Use v4 blocks for Open in v0 (#7898)
shadcn Jul 27, 2025
97a8de1
feat: update handling of env files in registry (#7896)
shadcn Jul 27, 2025
e6778de
feat(shadcn): add envVars to schema (#7902)
shadcn Jul 28, 2025
873f7f2
feat: add tests package (#7907)
shadcn Jul 29, 2025
d891132
test: remove init tests (#7908)
shadcn Jul 29, 2025
e9ae79f
ci: fix
shadcn Jul 29, 2025
6deb0fd
chore: remove tests form changesets
shadcn Jul 29, 2025
cef5af9
ci: bump version for changeset action
shadcn Jul 29, 2025
0e3d6b2
test: fix flaky remote registry test (#7910)
shadcn Jul 30, 2025
e244952
chore(release): version packages (#7909)
github-actions[bot] Jul 30, 2025
0940c6a
chore: update deps
shadcn Jul 30, 2025
0eccdc9
docs: add docs for envVars
shadcn Jul 30, 2025
07eda36
feat(shadcn): add namespaced registries support (#7919)
shadcn Aug 4, 2025
578f83c
chore: changeset (#7940)
shadcn Aug 4, 2025
2c164b0
feat(shadcn): update registry dependencies resolution algorithm (#7948)
shadcn Aug 6, 2025
4692501
feat: update dependencies in monorepo (#7956)
shadcn Aug 6, 2025
a80ab37
feat(shadcn): update file handling for monorepo (#7955)
shadcn Aug 6, 2025
01c02b2
feat: add registry.json for all styles (#7958)
shadcn Aug 6, 2025
ccfd149
feat: update schema.json to allow registries field (#7959)
shadcn Aug 6, 2025
fc8927a
fix(shadcn): monorepo in nix system (#7962)
shadcn Aug 7, 2025
2e9cced
feat(shadcn): deduplicate files by target (#7969)
shadcn Aug 7, 2025
68aa338
tests(shadcn): add more tests to cover registryResolveItemTree (#7971)
shadcn Aug 7, 2025
6e870c3
feat(shadcn): copy registry.json for build command (#7972)
shadcn Aug 7, 2025
a426fea
refactor(shadcn): add getRegistryItems and resolveRegistryItems (#7983)
shadcn Aug 10, 2025
a4a3600
feat: move schema exports to shadcn/schema (#7989)
shadcn Aug 10, 2025
b363922
feat(shadcn): deprecate fetchRegistry and resolveRegistryTree (#7990)
shadcn Aug 10, 2025
7d71b02
feat(shadcn): add getRegistry (#7992)
shadcn Aug 10, 2025
b5b8dee
chore: update changesets
shadcn Aug 10, 2025
4f5333e
feat(shadcn): add view command (#7994)
shadcn Aug 11, 2025
fed7e3b
feat(shadcn): update signatures of apis (#8001)
shadcn Aug 11, 2025
2e34c95
feat(shadcn): update search results format (#8003)
shadcn Aug 11, 2025
a941287
deps(shadcn): bump all dependencies (#8004)
shadcn Aug 11, 2025
296feb2
feat(shadcn): new mcp server (#8012)
shadcn Aug 13, 2025
396275e
feat(www): switch to md from mdx (#8019)
shadcn Aug 13, 2025
f854190
fix(shadcn): load env (#8061)
shadcn Aug 25, 2025
fc27ba2
fix(shadcn): fix --defaults options (#8081)
shadcn Aug 26, 2025
1742271
feat(shadcn): mcp init (#8086)
shadcn Aug 27, 2025
dcd2c3e
chore: beta to latest
shadcn Aug 27, 2025
2ecf876
chore: beta to latest
shadcn Aug 27, 2025
b34f3fd
chore(release): version packages (#7941)
github-actions[bot] Aug 27, 2025
7304ef2
docs: add registry docs (#8080)
shadcn Aug 27, 2025
084fb92
Docs: Fix link to namespaced registries documentation (#8091)
MrUprizing Aug 27, 2025
b1e3d4b
feat: mcp
shadcn Aug 28, 2025
f9021e9
fix
shadcn Aug 28, 2025
4b44c64
fix: update tailwindcss intellisense settings (#8095)
zougari47 Aug 31, 2025
64f8baf
feat(shadcn): allow empty files items (#8110)
shadcn Sep 1, 2025
e84c819
feat(shadcn): update handling of import and apply at rules (#8109)
shadcn Sep 1, 2025
851c0fa
chore(release): version packages (#8111)
github-actions[bot] Sep 1, 2025
62c41c3
feat: add registries index (#8126)
shadcn Sep 3, 2025
a15534b
feat: add ai-elements registry (#8129)
shadcn Sep 3, 2025
4d0272a
chore: add symlink
shadcn Sep 3, 2025
cc61235
feat: add known open source registries (#8130)
shadcn Sep 3, 2025
1178d40
feat: add @react-bits to registries.json (#8132)
DavidHDev Sep 3, 2025
a4237e3
feat: add kokonutui to open source registry (#8133)
kokonutd Sep 3, 2025
3ed9af5
ci: update registries workflow (#8135)
shadcn Sep 3, 2025
00b2f07
feat: add @hesaui in trusted registries (#8136)
preetsuthar17 Sep 3, 2025
d972caa
feat: add @ncdai in trusted registries (#8141)
ncdai Sep 4, 2025
2752ce1
feat: add @basecn in trusted registries (#8142)
akash3444 Sep 4, 2025
9c5eb0d
feat(shadcn): add support for registries index (#8128)
shadcn Sep 4, 2025
9ecb19c
feat: add @paceui-ui in trusted registries (#8140)
withden Sep 4, 2025
0805751
chore(release): version packages (#8143)
github-actions[bot] Sep 4, 2025
04668da
feat: add @8bitcn to trusted registries (#8144)
TheOrcDev Sep 4, 2025
e5402f9
feat(shadcn): implement recursive registry namespaces (#8147)
shadcn Sep 4, 2025
275e3a2
chore(release): version packages (#8151)
github-actions[bot] Sep 4, 2025
df94537
add billingsdk registry (#8148)
tsahil01 Sep 4, 2025
fcb1e2c
Add blocks registry URL to registries.json (#8145)
ephraimduncan Sep 4, 2025
b76f5cd
feat: add @nativeui to trusted registries (#8146)
theoribbi Sep 4, 2025
3dcd797
feat: add @smoothui to trusted registries (#8152)
educlopez Sep 4, 2025
61254f0
feat: add clerk to known registries (#8153)
alexcarpenter Sep 4, 2025
caeed7b
feat: Add @alexcarpenter registry to known registries (#8154)
alexcarpenter Sep 4, 2025
baaa82e
feat: add @elements to trusted registries (#8155)
Railly Sep 4, 2025
bfe6e19
docs: update changelog
shadcn Sep 4, 2025
615a32d
Merge branch 'main' of github.com:shadcn-ui/ui
shadcn Sep 4, 2025
6f057c9
feat(v4): add @animate-ui to trusted registries (#8162)
imskyleen Sep 8, 2025
960b22b
feat: add @skiper-ui to trusted registries (#8170)
Gurvinder-Singh02 Sep 8, 2025
f7c0f81
feat: added limeplay registry (#8174)
WINOFFRG Sep 8, 2025
fce5926
Add formcn.dev to trusted registries (#8163)
Ali-Hussein-dev Sep 8, 2025
cb96e58
feat: add @retroui in trusted registries (#8167)
ariflogs Sep 9, 2025
08820ce
feat: add @reui in trusted registries (#8181)
sean0205 Sep 9, 2025
c95959a
added rigidui to trusted registries (#8180)
FgrReloaded Sep 9, 2025
09b90cd
Add @shadcn-editor registry URL to registries.json (#8177)
htmujahid Sep 9, 2025
543be31
docs: fix bad link to registry index (#8184)
Ehesp Sep 9, 2025
722fb81
Add WDS registry URL to registries.json (#8193)
WebDevSimplified Sep 11, 2025
6daa521
Add 97cn to registrries.json (#8207)
PatentLobster Sep 15, 2025
7869def
feat(charts): support legend and tooltip type none (#8082)
mxkaske Sep 15, 2025
b7c2819
docs: add import and plugin examples (#8215)
shadcn Sep 15, 2025
41eb9d5
fix: update magicui registry name (#8214)
dillionverma Sep 15, 2025
590b9be
fix: toc
shadcn Sep 15, 2025
fc6d909
add getRegistriesIndex (#8216)
shadcn Sep 15, 2025
fae1a81
fix(shadcn): fix async imports not being transformed (#8036)
fuma-nama Sep 15, 2025
cdf58be
feat(shadcn): fix transformCssVars function (#8186)
imskyleen Sep 15, 2025
b9f3ce1
chore(release): version packages (#8217)
github-actions[bot] Sep 15, 2025
75dde2e
fix(shadcn): deps in cts projects (#8229)
shadcn Sep 16, 2025
1289192
chore(release): version packages (#8231)
github-actions[bot] Sep 17, 2025
dab206c
fix: fumadocs type error fix
dillionverma Sep 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["www", "**-template"]
"ignore": ["www", "v4", "tests"]
}
9 changes: 9 additions & 0 deletions .claude/settings.local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"permissions": {
"allow": [
"Bash(npm test:*)",
"Bash(npm run typecheck:*)"
],
"deny": []
}
}
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules/
target/
.next/
build/
dist/

/templates/
/fixtures/
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: [shadcn]
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
9 changes: 6 additions & 3 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20

- uses: pnpm/action-setup@v4
name: Install pnpm
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20

- uses: pnpm/action-setup@v4
name: Install pnpm
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20

- uses: pnpm/action-setup@v4
name: Install pnpm
Expand All @@ -113,4 +113,7 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Build packages
run: pnpm --filter=shadcn build

- run: pnpm typecheck
40 changes: 29 additions & 11 deletions .github/workflows/issue-stale.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Adapted from vercel/next.js
name: Issue Stale
name: "Stale issue handler"
on:
workflow_dispatch:
schedule:
Expand All @@ -11,17 +11,35 @@ jobs:
runs-on: ubuntu-latest
if: github.repository_owner == 'shadcn-ui'
steps:
- uses: actions/stale@v4
id: stale-no-repro
name: "Close stale issues with no reproduction"
- uses: actions/stale@v9
id: issue-stale
name: "Mark stale issues, close stale issues"
with:
repo-token: ${{ secrets.STALE_TOKEN }}
close-issue-message: "This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please reopen or leave a comment. Thank you.\n(This is an automated message.)"
ascending: true
days-before-issue-close: 7
days-before-issue-stale: 30
stale-pr-label: "stale?"
days-before-issue-stale: 365
days-before-pr-stale: -1
days-before-pr-close: -1
remove-issue-stale-when-updated: true
stale-issue-label: "stale?"
exempt-issue-labels: "roadmap,next"
stale-issue-message: "This issue has been automatically marked as stale due to one year of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you. (This is an automated message)"
close-issue-message: "This issue has been automatically closed due to one year of inactivity. If you’re still experiencing a similar problem or have additional details to share, please open a new issue following our current issue template. Your updated report helps us investigate and address concerns more efficiently. Thank you for your understanding! (This is an automated message)"
operations-per-run: 300
- uses: actions/stale@v9
id: pr-state
name: "Mark stale PRs, close stale PRs"
with:
repo-token: ${{ secrets.STALE_TOKEN }}
ascending: true
days-before-issue-close: -1
days-before-issue-stale: -1
days-before-pr-close: 7
days-before-pr-stale: 15
only-pr-labels: "postpone: more info or changes requested,please add a reproduction"
exempt-issue-labels: "roadmap,next,bug"
operations-per-run: 300 # 1 operation per 100 issues, the rest is to label/comment/close
days-before-pr-stale: 365
remove-pr-stale-when-updated: true
exempt-pr-labels: "roadmap,next,bug"
stale-pr-label: "stale?"
stale-pr-message: "This PR has been automatically marked as stale due to one year of inactivity. It will be closed in 7 days unless there’s further input. If you believe this PR is still relevant, please leave a comment or provide updated details. Thank you. (This is an automated message)"
close-pr-message: "This PR has been automatically closed due to one year of inactivity. Thank you for your understanding! (This is an automated message)"
operations-per-run: 300
2 changes: 1 addition & 1 deletion .github/workflows/prerelease-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
A new prerelease is available for testing:

```sh
npx shadcn@${{ env.BETA_PACKAGE_VERSION }}
pnpm dlx shadcn@${{ env.BETA_PACKAGE_VERSION }}
```

- name: "Remove the autorelease label once published"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
path: packages/shadcn

- name: Upload packaged artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: npm-package-shadcn@${{ steps.package-version.outputs.current-version }}-pr-${{ github.event.number }} # encode the PR number into the artifact name
path: packages/shadcn/dist/index.js
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

- name: Create Version PR or Publish to NPM
id: changesets
uses: changesets/action@v1.4.1
uses: changesets/action@v1
with:
commit: "chore(release): version packages"
title: "chore(release): version packages"
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
test:
runs-on: ubuntu-latest
name: pnpm test
env:
NEXT_PUBLIC_APP_URL: http://localhost:4000
NEXT_PUBLIC_V0_URL: https://v0.dev
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -39,4 +42,7 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Build packages
run: pnpm build --filter=shadcn

- run: pnpm test
54 changes: 54 additions & 0 deletions .github/workflows/validate-registries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Validate Registries

on:
pull_request:
paths:
- "apps/v4/public/r/registries.json"
push:
branches:
- main
paths:
- "apps/v4/public/r/registries.json"

jobs:
validate:
runs-on: ubuntu-latest
name: pnpm validate:registries
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
version: 9.0.6
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: Build packages
run: pnpm build --filter=shadcn

- name: Validate registries
run: pnpm --filter=v4 validate:registries
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
auto-install-peers=true
link-workspace-packages=true
5 changes: 1 addition & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
{ "pattern": "apps/*/" },
{ "pattern": "packages/*/" }
],
"tailwindCSS.experimental.classRegex": [
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
["cn\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
],
"tailwindCSS.classFunctions": ["cva", "cn"],
"vitest.debugExclude": [
"<node_internals>/**",
"**/node_modules/**",
Expand Down
36 changes: 36 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,42 @@ pnpm --filter=www dev
pnpm --filter=shadcn-ui dev
```

## Running the CLI Locally

To run the CLI locally, you can follow the workflow:

1. Start by running the registry (main site) to make sure the components are up to date:

```bash
pnpm v4:dev
```

2. Run the development script for the CLI:

```bash
pnpm shadcn:dev
```

3. In another terminal tab, test the CLI by running:

```bash
pnpm shadcn
```

To test the CLI in a specific app, use a command like:

```bash
pnpm shadcn <init | add | ...> -c ~/Desktop/my-app
```

4. To run the tests for the CLI:

```bash
pnpm --filter=shadcn test
```

This workflow ensures that you are running the most recent version of the registry and testing the CLI properly in your local environment.

## Documentation

The documentation for this project is located in the `www` workspace. You can run the documentation locally by running the following command:
Expand Down
9 changes: 9 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Security Policy

If you believe you have found a security vulnerability, we encourage you to let us know right away.

We will investigate all legitimate reports and do our best to quickly fix the problem.

Our preference is that you make use of GitHub's private vulnerability reporting feature to disclose potential security vulnerabilities in our Open Source Software.

To do this, please visit the security tab of the repository and click the "Report a vulnerability" button.
2 changes: 2 additions & 0 deletions apps/v4/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NEXT_PUBLIC_V0_URL=https://v0.dev
NEXT_PUBLIC_APP_URL=http://localhost:4000
48 changes: 48 additions & 0 deletions apps/v4/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*
!.env.example

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts


# generated content
.contentlayer
.content-collections
.source
7 changes: 7 additions & 0 deletions apps/v4/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dist
node_modules
.next
build
.contentlayer
registry/__index__.tsx
content/docs/components/calendar.mdx
1 change: 1 addition & 0 deletions apps/v4/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is a wip registry for the `shadcn` canary version. It has React 19 and Tailwind v4 components.
Loading
Loading