Merge pull request #9592 from shadcn-ui/shadcn/fix-base-layer-handling

feat: update handling of base styles
This commit is contained in:
shadcn
2026-02-12 11:36:32 +04:00
committed by GitHub
11 changed files with 169 additions and 148 deletions

View File

@@ -16,7 +16,16 @@
"files": [],
"cssVars": {},
"css": {
"@import \"shadcn/tailwind.css\"": {}
"@import \"tw-animate-css\"": {},
"@import \"shadcn/tailwind.css\"": {},
"@layer base": {
"*": {
"@apply border-border outline-ring/50": {}
},
"body": {
"@apply bg-background text-foreground": {}
}
}
},
"type": "registry:style"
}

View File

@@ -19,7 +19,16 @@
"files": [],
"cssVars": {},
"css": {
"@import \"shadcn/tailwind.css\"": {}
"@import \"tw-animate-css\"": {},
"@import \"shadcn/tailwind.css\"": {},
"@layer base": {
"*": {
"@apply border-border outline-ring/50": {}
},
"body": {
"@apply bg-background text-foreground": {}
}
}
},
"type": "registry:style"
},
@@ -40,7 +49,16 @@
"files": [],
"cssVars": {},
"css": {
"@import \"shadcn/tailwind.css\"": {}
"@import \"tw-animate-css\"": {},
"@import \"shadcn/tailwind.css\"": {},
"@layer base": {
"*": {
"@apply border-border outline-ring/50": {}
},
"body": {
"@apply bg-background text-foreground": {}
}
}
},
"type": "registry:style"
},

View File

@@ -16,7 +16,16 @@
"files": [],
"cssVars": {},
"css": {
"@import \"shadcn/tailwind.css\"": {}
"@import \"tw-animate-css\"": {},
"@import \"shadcn/tailwind.css\"": {},
"@layer base": {
"*": {
"@apply border-border outline-ring/50": {}
},
"body": {
"@apply bg-background text-foreground": {}
}
}
},
"type": "registry:style"
}

View File

@@ -26,7 +26,16 @@ const NEW_YORK_V4_STYLE = {
devDependencies: ["tw-animate-css", "shadcn"],
registryDependencies: ["utils"],
css: {
'@import "tw-animate-css"': {},
'@import "shadcn/tailwind.css"': {},
"@layer base": {
"*": {
"@apply border-border outline-ring/50": {},
},
body: {
"@apply bg-background text-foreground": {},
},
},
},
cssVars: {},
files: [],