-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ui shell #14
feat: ui shell #14
Conversation
@@ -4,7 +4,7 @@ import type { Config } from "tailwindcss"; | |||
import sharedConfig from "@repo/tailwind-config"; | |||
|
|||
const config: Pick<Config, "content" | "presets"> = { | |||
content: ["./app/**/*.tsx"], | |||
content: ["./app/**/*.tsx", "../../packages/ui/**/*{.js,.ts,.jsx,.tsx}"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes an issue where tailwind occasionally wouldn't work in web
.
https://www.willliu.com/blog/Why-your-Tailwind-styles-aren-t-working-in-your-Turborepo
@@ -1,7 +1,8 @@ | |||
{ | |||
"extends": "@repo/typescript-config/react-library.json", | |||
"compilerOptions": { | |||
"outDir": "dist" | |||
"outDir": "dist", | |||
"plugins": [{ "name": "typescript-plugin-css-modules" }] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gives inference when using css modules in @repo/ui
.
@@ -0,0 +1,6 @@ | |||
import { clsx, type ClassValue } from "clsx"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From shadcn. This helper makes it easier to conditionally add Tailwind CSS classes.
@repo/ui
.web
.