speckle-server/packages/tailwind-theme
Kristaps Fabians Geikins 7d9c4c0935
feat(root): streaming ensure tailwind deps output (#3232)
2024-10-10 17:22:31 +03:00
..
fonts Added all font variants to theme 2024-07-02 15:11:21 +02:00
src fix(ui-components): Update switch to match new design system (#2878) 2024-09-05 09:45:19 +01:00
utils feat: tailwind theme & Vue base components extracted to own NPM packages (#1576) 2023-05-16 13:43:04 +03:00
README.md feat: tailwind theme & Vue base components extracted to own NPM packages (#1576) 2023-05-16 13:43:04 +03:00
eslint.config.mjs chore: upgrade to eslint 9 (#2348) 2024-06-12 14:38:02 +03:00
package.json feat(root): streaming ensure tailwind deps output (#3232) 2024-10-10 17:22:31 +03:00
tailwind.test.config.cjs feat: tailwind theme & Vue base components extracted to own NPM packages (#1576) 2023-05-16 13:43:04 +03:00
tsconfig.cjs.json chore(fe2): upgrade to nuxt 3.8.2 (#1887) 2023-11-29 10:22:17 +02:00
tsconfig.json chore(fe2): upgrade to nuxt 3.8.2 (#1887) 2023-11-29 10:22:17 +02:00

README.md

tailwind-theme

Tailwind theme used in frontend 2 and other apps.

Setup

  1. Install the package
  2. In your tailwind config import @speckle/tailwind-theme and @tailwindcss/forms and add them to your plugins array
  3. Import tailwindContentEntry from @speckle/tailwind-theme/tailwind-configure and invoke it in the contents field in your Tailwind config to ensure PurgeCSS is configured correctly. It requires the CJS require object as its only parameter. If it isn't available (in an ESM environment), you can use node's createRequire().

Development

  1. Link this repo to wherever you're using this package. Unnecessary if you're using this package somewhere inside this monorepo.
  2. Run yarn build to re-build

Viewer

Run yarn viewer to open the Tailwind Config Viewer in the browser.

Note 1: The project must be built first for this to work! Note 2: All of the custom colors that rely on CSS variables will only show the light mode version irregardless of the "Dark Mode" toggle. This is because of a limitation of Tailwind Config Viewer.