@odx/websites-ui
v0.2.40
Published
The shared ODX tailwind configuration for websites
Readme
ODX Websites UI
General
ODX Websites design foundations and tokens based on Tailwind.
Installation
Install package:
pnpm add -D @odx/websites-uiInstall peer dependency:
pnpm add -D tailwindcssInit tailwind:
npx tailwindcss initAdd 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.cssandfonts.cssto your project by using the the@odx/websites-uipackage: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';
