yayashn / RowindCSS

TailwindCSS classes for Roact & Roblox-ts.
18 stars 3 forks source link

Using font or any other font from the marketplace #4

Open KollPotato opened 1 year ago

KollPotato commented 1 year ago

I am trying to use custom font from the marketplace in the Text element. How do I do it? I tried using Tailwind theme config to set custom font like this:

/** @type {import("tailwindcss").Config} */
module.exports = {
    content: [
        "./src/**/*.tsx",
        "./src/**/**/*.tsx",
        "./src/**/**/**/*.tsx"
    ],
    theme: {
        extend: { },
        fontFamily: {
            "rubik": ["\"rbxassetid://12187365977\""]
        }
    },
    plugins: [],
}

And then tried to use it like this:

<Text className="font-rubik" Text="Hello"/>

But it didn't work