Beautiful React Components for building Fedi Mods.
Install the package from the command line
npm install @fedibtc/ui
Import the required index.css
file into your app's layout.
import "@fedibtc/ui/dist/index.css"
Start using the components in your app.
import { Button, Text } from "@fedibtc/ui"
export default function App() {
return (
<main>
<Button>Click me</Button>
<Text variant="h1" weight="bolder">
Hi there!
</Text>
</main>
)
}
Use the @fedibtc/tailwind-theme plugin to start using themed TailwindCSS classes.
Install and set up Tailwind CSS with PostCSS and Autoprefixer if you haven't already.
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
Install the plugin from the command line
npm install @fedibtc/tailwind-theme
Import and add the plugin to the plugins
entry in tailwind.config.js
// tailwind.config.js
module.exports = {
+ plugins: [require("@fedibtc/tailwind-theme")]
}