Skip to content
5 changes: 5 additions & 0 deletions packages/shadcn/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@
@apply bn-bg-background bn-text-foreground;
}

.bn-shadcn .bn-editor a {
color: revert;
text-decoration: revert;
}

.bn-shadcn [data-radix-popper-content-wrapper] {
z-index: 99999 !important;
}
Expand Down
53 changes: 27 additions & 26 deletions packages/shadcn/src/tailwindStyles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* Based on https://stackoverflow.com/questions/63761312/how-to-scope-tailwind-css/69999793#69999793*/
/* Based on https://stackoverflow.com/questions/63761312/how-to-scope-tailwind-css/69999793#69999793 */
/* Should not be modified as the styles are taken directly from TailwindCSS */
.bn-shadcn {
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
Expand Down Expand Up @@ -36,22 +37,22 @@
-moz-tab-size: 4; /* 3 */
tab-size: 4; /* 3 */
font-family: theme(
"fontFamily.sans",
ui-sans-serif,
system-ui,
sans-serif,
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
"Noto Color Emoji"
"fontFamily.sans",
ui-sans-serif,
system-ui,
sans-serif,
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
"Noto Color Emoji"
); /* 4 */
font-feature-settings: theme(
"fontFamily.sans[1].fontFeatureSettings",
normal
"fontFamily.sans[1].fontFeatureSettings",
normal
); /* 5 */
font-variation-settings: theme(
"fontFamily.sans[1].fontVariationSettings",
normal
"fontFamily.sans[1].fontVariationSettings",
normal
); /* 6 */
-webkit-tap-highlight-color: transparent; /* 7 */
}
Expand Down Expand Up @@ -130,23 +131,23 @@
samp,
pre {
font-family: theme(
"fontFamily.mono",
ui-monospace,
SFMono-Regular,
Menlo,
Monaco,
Consolas,
"Liberation Mono",
"Courier New",
monospace
"fontFamily.mono",
ui-monospace,
SFMono-Regular,
Menlo,
Monaco,
Consolas,
"Liberation Mono",
"Courier New",
monospace
); /* 1 */
font-feature-settings: theme(
"fontFamily.mono[1].fontFeatureSettings",
normal
"fontFamily.mono[1].fontFeatureSettings",
normal
); /* 2 */
font-variation-settings: theme(
"fontFamily.mono[1].fontVariationSettings",
normal
"fontFamily.mono[1].fontVariationSettings",
normal
); /* 3 */
font-size: 1em; /* 4 */
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading