You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to use tailwind v4 in typescript like v3 config object. I want to style my stripe elements with my colors and font sizes but not able to import them in typescript file.
v3 example
import type { Appearance } from "@stripe/stripe-js";
import resolveConfig from "tailwindcss/resolveConfig";
import config from "~/tailwind.config";
const tailwindConfig = resolveConfig(config);
const stripElements: Appearance = {
theme: "stripe",
rules: {
".Input": {
padding: tailwindConfig.theme.padding[4],
},
},
};
Edit: I found this way to use default theme but how can I use primary color that doesn't exist in default theme
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to use tailwind v4 in typescript like v3 config object. I want to style my stripe elements with my colors and font sizes but not able to import them in typescript file.
v3 example
Edit: I found this way to use default theme but how can I use primary color that doesn't exist in default theme
Beta Was this translation helpful? Give feedback.
All reactions