feat(ui): migrate from Tailwind CSS to UnoCSS + Melt UI next-gen#88
Merged
Conversation
Resolves #83. - Remove tailwindcss, @tailwindcss/vite, @tailwindcss/forms, @tailwindcss/typography, prettier-plugin-tailwindcss - Install unocss@66.6.8, @unocss/preset-icons, @unocss/extractor-svelte, @unocss/reset as devDependencies; melt@0.44.0 as dependency - Delete ui/tailwind.config.js - vite.config.ts: swap tailwindcss() plugin for UnoCSS({ extractors }) with UnoCSS positioned before sveltekit() per Vite plugin order - New ui/uno.config.ts with presetUno() (Tailwind-compatible utilities) and presetIcons() (Iconify icon-as-CSS-class support) - ui/src/app.css: replace @import 'tailwindcss' with @import '@unocss/reset/tailwind.css' - ui/src/routes/+layout.svelte: add import 'virtual:uno.css' - ui/.prettierrc: remove prettier-plugin-tailwindcss and tailwindStylesheet All existing Tailwind utility classes in HolochainProvider.svelte and +page.svelte remain valid unchanged under presetUno().
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Migrate the UI styling stack from Tailwind CSS v4 to UnoCSS + Melt UI next-gen, as decided in #83. This removes the Tailwind dependency chain and establishes UnoCSS as the atomic CSS engine with a direct Vite-native integration path.
Changes
tailwindcss,@tailwindcss/vite,@tailwindcss/forms,@tailwindcss/typography,prettier-plugin-tailwindcssui/tailwind.config.jsunocss@66.6.8,@unocss/preset-icons,@unocss/extractor-svelte,@unocss/reset(devDeps);melt@0.44.0(dep)ui/uno.config.ts—presetUno()(Tailwind-compatible) +presetIcons()(Iconify CSS classes)ui/vite.config.ts—UnoCSS({ extractors: [extractorSvelte()] })beforesveltekit()ui/src/app.css—@import '@unocss/reset/tailwind.css'ui/src/routes/+layout.svelte—import 'virtual:uno.css'ui/.prettierrc— removeprettier-plugin-tailwindcssandtailwindStylesheetDecisions
presetUno()provides Tailwind-compatible utility names — all existing classes inHolochainProvider.svelteand+page.sveltework without modificationsveltekit()in Vite plugins array (Vite plugin order requirement)melt@0.44.0is pre-1.0 — breaking changes in minor releases until v1.0 are accepted per issue decisionpreset-iconsIconify classes) is out of scope for this PRHow to Test
Visual check:
HolochainProvider.svelteconnecting state and+page.sveltelayout should render with styles applied.Related
Closes #83