4.0.0 #338
felix-bohlin
announced in
Announcements
4.0.0
#338
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Alright here we go. v4.
This was originally just intended to be a docs rewrite, but snowballed into an everything rewrite. I don't feel I'm even close to finished but I need to push the big, red release button at some point just to get it out there and start somewhere. Since this is an experimental library I just assume no one will take offence to the breaking changes. Let me know regardless if you have any thoughts or issues - there are some known bugs I need to work on but yeah, don't be a stranger! :)
I could
What's changed
Complete rewrite of docs and components. OPUI now also ships Astro components if you're into that.
Don't forget, I'm just a single person working on this in my free time. I'm doing this for fun. There will be bugs.
Added
import { Button } from "opui-css/astro".opui-css/css/components/*.css.Breaking
theme-oneandtheme-twoare removed. I can't maintain a million themes. There is now a single theme incss/theme.css.import "opui-css") now resolves to the single bundled stylesheet (dist/opui.css) instead ofdist/theme-two/theme-two.css. The class names are the same, the file path is not.src/themes/build pipeline is gone (vite + postcss + per-theme scripts). The package now builds with a smallpostcss-import-only pipeline that does not transform or lower any CSS syntax.src/components/tocss/components/. The pre-bundled output stays indist/.css/imports.css:openprops, normalize, theme, components.root, components.extended, utils.astro^6is required if you import fromopui-css/astro. Pure-CSS consumers are unaffected (the peer is marked optional).Migration
See the migration guide in the opui package.
This discussion was created from the release 4.0.0.
All reactions