Skip to content
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

Merged
merged 1 commit into from
Oct 8, 2024
Merged

feat: ui shell #14

merged 1 commit into from
Oct 8, 2024

Conversation

mfaux
Copy link
Owner

@mfaux mfaux commented Oct 8, 2024

  • Adds stubs for the UI shell.
  • Adds typescript support for css modules in @repo/ui.
  • Added a fix for tailwind in web.

@@ -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}"],
Copy link
Owner Author

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" }]
Copy link
Owner Author

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";
Copy link
Owner Author

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.

@mfaux mfaux merged commit ebd7f0b into main Oct 8, 2024
1 check passed
@mfaux mfaux deleted the feat/ui-shell branch October 8, 2024 05:07
mfaux added a commit that referenced this pull request Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant