Skip to content

Svelte UX 2.0 (next) #571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open

Svelte UX 2.0 (next) #571

wants to merge 27 commits into from

Conversation

techniq
Copy link
Owner

@techniq techniq commented Mar 10, 2025

No description provided.

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

changeset-bot bot commented Mar 10, 2025

🦋 Changeset detected

Latest commit: 416fbcc

The changes in this PR will be included in the next version bump.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Mar 10, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
svelte-ux ✅ Ready (View Log) Visit Preview 340b4a4

Copy link

pkg-pr-new bot commented Mar 10, 2025

Open in StackBlitz

npm i https://pkg.pr.new/svelte-ux@571

commit: 416fbcc

techniq added 3 commits March 10, 2025 15:43
* Initial migration to Tailwind CSS v4 using `npx @tailwindcss/upgrade` (and some manual tweaks)

* Fix Gooey after bad tailwind upgrade

* fix: Fix theme page (svelte-check) by adding `@reference '../app.css`

* Format project (fix lint errors)

* fix(docs): Fix blur input labels (@tailwindcss/upgrade)

* Update `@layerstack/tailwind` and replace `tailwind.config.cjs` with css-based config

* Remove custom theming page (for now)

* Add changeset

* Update `@layerstack/*` packages to `-next` (Tailwind 4) versions

* Update tailwind 4 to latest

* fix(TextField): refine classes to for tailwind 4 changes

* docs(Gooey): Replace custom `bg-gradient-radial` with built-in `bg-radial` (tailwind 4)
github-actions bot and others added 5 commits March 10, 2025 22:26
* Version Packages (next)

* Update CHANGELOG.md

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sean Lynch <[email protected]>
* Initial migration to Tailwind CSS v4 using `npx @tailwindcss/upgrade` (and some manual tweaks)

* Fix Gooey after bad tailwind upgrade

* fix: Fix theme page (svelte-check) by adding `@reference '../app.css`

* Format project (fix lint errors)

* fix(docs): Fix blur input labels (@tailwindcss/upgrade)

* Update `@layerstack/tailwind` and replace `tailwind.config.cjs` with css-based config

* Remove custom theming page (for now)

* Add changeset

* Update `@layerstack/*` packages to `-next` (Tailwind 4) versions

* Update tailwind 4 to latest

* fix(TextField): refine classes to for tailwind 4 changes

* docs(Gooey): Replace custom `bg-gradient-radial` with built-in `bg-radial` (tailwind 4)
* Version Packages (next)

* Update CHANGELOG.md

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sean Lynch <[email protected]>
* Version Packages (next)

* Update CHANGELOG.md

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sean Lynch <[email protected]>
* Version Packages (next)

* Update CHANGELOG (2.0.0-next.3)

* Update changeset to reflect changelog

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sean Lynch <[email protected]>
sean-zlai added a commit to zipline-ai/chronon that referenced this pull request Mar 24, 2025
## Summary

This PR is mostly a continuation of the initial Tailwind 4
[upgrade](#430) with some
additional best practices and simplification applied and has the goal of
introducing minimal visual changes.

With that said, there are some minor visual changes due to the removal
of all the
[custom](https://github.com/zipline-ai/chronon/pull/505/files#diff-8fdab0c1827a182dfaa61b1253086037a44105350409f6701c49ebe130f6705bL168-L243)
font sizes. This removal helps to simplify the config and usage
(Tailwind already provides many
[sizes](https://tailwindcss.com/docs/font-size) and
[weights](https://tailwindcss.com/docs/font-weight) by default). We can
still refine the sizing if desired with 1-off custom sizes (ex.
`text-[13px]`) but the simplification improved readability. I did
manually refine a few sizes already to tighten up the design.

- Switch from `@tailwindcss/postcss` to `@tailwindcss/vite`
([recommended](https://tailwindcss.com/docs/upgrade-guide#using-vite))
- Migrate config from
[legacy](https://tailwindcss.com/docs/upgrade-guide#using-a-javascript-config-file)
`tailwind.config.js` (js-based) to `app.css` (css-first with directives)
  - Cleanup / simplify
    - Remove unused `@tailwindcss/typography` plugin
- Remove unused container config (no longer
[supported](https://tailwindcss.com/docs/upgrade-guide#container-configuration)
in v4 as well)
- Remove use of deprecated/unsupported
[safelist](https://tailwindcss.com/docs/upgrade-guide#using-a-javascript-config-file)
- Simplify job tracking styling by using css directly (remove js /
tailwind indirection)
- Rename `MetadataTableSection` to `MetadataTable` and replace
`MetadataTable` usage with simple div
      - `MetadataTableSection` was the actual `Table`
- Removes dynamic `grid-col-{$columns}` class string which isn't
[supported](https://tailwindcss.com/docs/detecting-classes-in-source-files#dynamic-class-names)
by Tailwind (especially without `safelist` support)
- Update
[LayerChart](https://github.com/techniq/layerchart/pull/449/files) and
[Svelte UX](techniq/svelte-ux#571) to
`2.0.0@next` (improved compat with Tailwind 4 and
[later](techniq/layerchart#458) Svelte 5)

## Screenshots

### Dark mode

Before | After
--- | ---

![image](https://github.com/user-attachments/assets/2dc3a358-2146-4973-b997-e5005d83bbe1)
|
![image](https://github.com/user-attachments/assets/541b78b2-20a0-48e5-8142-3a396a71170d)

![image](https://github.com/user-attachments/assets/c938134b-95bc-4acf-84bb-56f9cc4fefd2)
|
![image](https://github.com/user-attachments/assets/441be3de-bc18-43ad-93a5-4e1331a3c2a5)

![image](https://github.com/user-attachments/assets/550e998a-0629-49e6-9a5f-5a0ef3aa00b1)
|
![image](https://github.com/user-attachments/assets/e1a331d4-f0ee-4083-991c-6ce88aeee385)

![image](https://github.com/user-attachments/assets/94a77457-b1c2-49fc-94ae-b4a2aa14b8ab)
|
![image](https://github.com/user-attachments/assets/4c060367-f54f-4f44-b79e-90f2958eb019)


### Light mode

Before | After
--- | ---

![image](https://github.com/user-attachments/assets/953859d2-e056-4a0b-b272-b95b303a4bc9)
|
![image](https://github.com/user-attachments/assets/20667afd-49cb-4182-bf9f-ec7f6f14031c)

![image](https://github.com/user-attachments/assets/de159fe6-eace-45b2-a741-4e6600aa1580)
|
![image](https://github.com/user-attachments/assets/82b332ae-865b-4f1a-b61f-8b0be178ff9f)

![image](https://github.com/user-attachments/assets/deb19053-c8a9-4205-b8d4-0f594f97fb35)
|
![image](https://github.com/user-attachments/assets/28819745-0598-4eca-a65b-942bd5db79e6)

![image](https://github.com/user-attachments/assets/c46b9a2f-8250-42a0-a7c1-991053df3abf)
|
![image](https://github.com/user-attachments/assets/7fdfd8cb-b8c6-44e7-a225-d381956b67a6)




## Checklist
- [ ] Added Unit Tests
- [ ] Covered by existing CI
- [ ] Integration tested
- [ ] Documentation update

<!-- av pr metadata
This information is embedded by the av CLI when creating PRs to track
the status of stacks when using Aviator. Please do not delete or edit
this section of the PR.
```
{"parent":"main","parentHead":"","trunk":"main"}
```
-->


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced enhanced theming with a comprehensive set of CSS custom
properties for improved color schemes and typography.
- Streamlined metadata and status displays for a cleaner and more
intuitive presentation.

- **Style**
- Refined UI elements including navigation bars, headers, and buttons
for better readability and visual consistency.
- Updated layout adjustments across key pages, offering a more cohesive
look and feel.

- **Chores**
- Upgraded dependencies and optimized build configurations while
removing legacy styling tools for improved performance.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Sean Lynch <[email protected]>
techniq added 2 commits March 31, 2025 13:42
* fix(DateRange): Fix selection gradient

* feat(DateRange): Add `quickPresets` support

* Add/update changesets
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions bot mentioned this pull request May 20, 2025
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant