@odx/websites-ui
v0.2.4
Published
The shared ODX tailwind configuration for websites
Downloads
222
Readme
ODX Websites UI
General
ODX Websites design foundations and tokens based on Tailwind.
Installation
Install package:
pnpm add -D @odx/websites-ui
Install peer dependency:
pnpm add -D tailwindcss
Init tailwind:
npx tailwindcss init
Add the paths to all of your template files in your tailwind.config.js file and add odx websites-ui tailwind preset:
/** @type {import('tailwindcss').Config} */ module.exports = { presets: [require('@odx/websites-ui/tailwind')], content: ["./src/**/*.{html,tsx}"], theme: { extend: {}, }, plugins: [], }
Add the
style.css
andfonts.css
to your project by using the the@odx/websites-ui
package:Via JavaScript:
import '@odx/websites-ui/style'; import '@odx/websites-ui/fonts';
or via CSS:
@import '@odx/websites-ui/style'; @import '@odx/websites-ui/fonts';