Lea Verou
ff3b3d6558
Remove current class from existing sidebar link before adding it to new one
2025-04-02 14:16:03 -04:00
Lea Verou
6b3edb8a56
Tiny fix in saving mixin
2025-04-02 14:16:03 -04:00
Lea Verou
6162b8b115
Move v-content directive to separate file
2025-04-02 11:51:12 -04:00
Lea Verou
cff752b600
Move CRUD logic from palette app to Vue mixin
2025-04-02 11:51:12 -04:00
Lea Verou
7892a94b9b
Rewrite and generalize CRUD logic for customizable entities (palettes, themes) ( #854 )
...
* Generalize CRUD logic to more easily support themes (and other types of entities)
* Decouple data structures managing saved entities (palettes, themes), sidebar update logic, and palette app (and soon themer) by using events
* Simplify logic (a lot of it carried complexity back from the time we did not use uids and/or was overly general)
* `PersistedArray` class to encapsulate arrays persisted in localStorage
* Remove unused `palette.equals()` function
2025-04-01 16:26:25 -04:00
Lea Verou
0f2950c4cc
Import CRUD parts from #828
2025-03-31 17:53:33 -04:00
Cory LaViska
8eba1e5003
Various bug fixes ( #839 )
...
* add default icon spacing in tab; fixes #779
* fix radio button pill styles; fixes #759
* remove redundant styles
* fixes #840
* fix focus ring in Safari; fixes #745
* improve details styles; fixes #685
* update examples
* Revert "improve details styles; fixes #685 "
This reverts commit 8151872d22 .
* revert
* revert
* fix dropdown alignment in button group; closes #374
* fix progress animation in Safari; closes #356
* fix native checkbox indeterminate icon; closes #386
* add comment
* stop running SSR tests locally
* update test
* add FA kit code for codepen 🤞🏻
* remove wa-cloak after components load
* fix whitespace
* update display labels when changed; fixes #702
* fix radio labels (ALPHA-211)
* revert example
* add option as a dep of select
* remove outdated section
2025-03-28 10:57:01 -04:00
Lea Verou
404c15b303
Fix race condition, closes #843
2025-03-27 16:14:24 -04:00
Lea Verou
8a26afc334
Fix for theme icons + easier to generate palette icons ( #841 )
...
* Make sure components that only appear within page icons are still detected
* Palette icons
* Update theme-icons.css
* Reduce whitespace between swatches
---------
Co-authored-by: lindsaym-fa <dev@lindsaym.design >
2025-03-27 14:25:52 -04:00
Cory LaViska
513a1e35a9
Dialog fixes ( #790 )
...
* revert structure and styles to fix WA-A #123
* fix WA-A #201
* update changelog
* fix search dialog position so it doesn't jump around
* remove close watcher; fix dialog/drawer backdrop animations
2025-03-27 12:14:35 -04:00
Lea Verou
09f668fc99
Workaround for dark mode
2025-03-26 18:31:08 -04:00
Lea Verou
d451ba98e5
Fix web fonts in theme icons
...
Instead of raw DSD, use a component that pulls in a child template and then goes over the CSS and extracts font-related rules into the document, just once per rule.
This also fixes theme icons in Vue.
2025-03-26 18:31:08 -04:00
lindsaym-fa
fd287edd56
Change balance of color swatches
2025-03-26 18:31:08 -04:00
Lea Verou
8424b49646
Theme icons, take 1
2025-03-26 18:31:08 -04:00
Cory LaViska
1bba87c66d
Improve search lists ( #837 )
...
* add debounce to search so it feels more natural
* improve search grid styles
2025-03-26 16:07:09 +00:00
Cory LaViska
0db9ca12e3
Remove unused SSR module and remove first load fade ( #835 )
...
* disable SSR module in 11ty
* remove first load fade
2025-03-26 14:45:29 +00:00
Cory LaViska
c9979e15f8
adds a hard coded delay to drastically reduce theme picker jank ( #829 )
2025-03-24 20:49:08 +00:00
Cory LaViska
fcfe2bde7d
Add FOUCE utilities ( #686 )
...
* add fouce utilities
* add comment
* Update docs/docs/installation.md
Co-authored-by: Lea Verou <lea@verou.me >
* commit PR suggestion
* rename wa-reduce-fouce to wa-cloak
* remove class as requested
* add cloak class
* wait a cycle
* move turbo to same file
* reduce fade
* disable SSR and add Turbo FOUCE helper
* disable SSR
* fix test suite
* workflow dispatch
* update fouce util
* no need to remove cloak class
* simplify fouce util
* add allDefined util
* update changelog
---------
Co-authored-by: Lea Verou <lea@verou.me >
Co-authored-by: konnorrogers <konnor5456@gmail.com >
2025-03-24 20:33:24 +00:00
Lea Verou
71e7227763
Theme remixing fix: Order of params should not matter ( #772 )
...
Also renamed the `theme` export to `getThemeCode` since it was being renamed everywhere it was imported.
2025-02-21 14:03:55 -05:00
Lea Verou
132dbfabcc
Gray tweaks prototype ( #761 )
...
Co-authored-by: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com >
2025-02-20 12:10:43 -05:00
Lea Verou
4921d1c32e
Save palette MVP, fixes #746 ( #755 )
2025-02-18 16:11:40 -05:00
Lea Verou
d6a91919e0
Code block improvements
...
- Add ids, use ids to link copy button. No need for client-side script or updating the copy button manually for dynamic code snippets.
- Add button to link to code block
- Slight refactor on copy plugin to use the 11ty API properly
2025-02-14 15:09:02 -05:00
Lea Verou
726dc73e2a
Hue tweaking & chroma scaling, closes #669 #670 ( #747 )
...
- General infrastructure to support palette tweaking
- Hue shifts per color scale (UI, permalinks, dynamic code snippets)
- Scale overall chroma up/down (UI, permalinks, dynamic code snippets)
- Update contrast ratio tables (styling for contrast up/down/fail could use improvement, but it's a starting point)
- Make sure it works with Turbo (i.e. things don't break when we navigate to another page)
2025-02-13 19:28:20 -05:00
Lea Verou
ffda52a7cf
Theme remixing: Dynamic code snippets ( #729 )
2025-02-07 23:03:34 -05:00
Lea Verou
c30f3c4b09
Improve theme remixing UI ( #724 )
...
Co-authored-by: lindsaym-fa <dev@lindsaym.design >
Co-authored-by: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com >
2025-02-07 11:35:12 -05:00
Lea Verou
17eeccbc5d
Better infrastructure for core colors, show core colors in docs, closes #668
2025-02-05 11:24:13 -05:00
Cory LaViska
e1bf5471bf
Use native events when possible ( #590 )
...
* fix filename
* <wa-input> input + change (change not working)
* compose that horribly misleading change event
* use native blur/focus events
* update checkbox
* update color picker events
* update color picker events
* update radio group events
* update button events
* remove event options
* update select events
* update image comparer events
* update icon button events
* update slider events
* update rating events
* update radio events
* update switch event
* update textarea events
* update radio button events
* remove unused events
* cleanup
* fix react wrappers
* fix react events for real this time
* update changelog
* add note
* Update src/components/input/input.ts
Co-authored-by: Lea Verou <lea@verou.me >
* delete unused close event
* use same event type
* fix tests
* remove wa- from events in docs and examples
* fix comment
* Update docs/docs/resources/changelog.md
Co-authored-by: Lea Verou <lea@verou.me >
---------
Co-authored-by: Lea Verou <lea@verou.me >
2025-01-23 17:52:41 -05:00
Lea Verou
099edc5186
Implement wide page-level data
2025-01-22 13:25:29 -05:00
Lea Verou
7258c001a7
Demo for mixing and matching ( #565 )
2025-01-17 10:38:03 -05:00
Lea Verou
15344c2a2a
Appease Turbo for the color scheme picker too, fixes #520
2025-01-16 10:15:52 -05:00
lindsaym-fa
3974aa5130
Decrease line height on swatches
2025-01-16 10:15:16 -05:00
Lea Verou
7d089bbe2f
Palette Docs
2025-01-16 10:15:16 -05:00
Lea Verou
89c0667e9c
Improve maintainability of color docs
2025-01-14 14:44:30 -05:00
Lea Verou
0ac7916a1b
Attempt to fix #514
2025-01-14 13:02:37 -05:00
Lindsay M
17146698db
Finalize Premium theme, closes #489 ( #510 )
...
* Finalize Premium theme
* Improve theme compatibility of dark mode shadows
* Improve theme compatibility of code examples
* Add comments
* Revert dark mode shadow color changes (to be addressed separately)
* Revert dark mode shadow color change
* Clean up redundant `wa-dark` properties
2025-01-14 11:56:30 -05:00
Lea Verou
01210ef364
Implement .wa-invert, closes #497 ( #508 )
2025-01-14 10:04:27 -05:00
Cory LaViska
ab67ecfad3
add native icon to search ( #498 )
2025-01-13 14:48:51 -05:00
Lea Verou
a07f6280a3
Themes category in docs ( #477 )
...
Co-authored-by: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com >
Co-authored-by: lindsaym-fa <dev@lindsaym.design >
2025-01-13 13:14:12 -05:00
Lea Verou
6822b25772
Rewrite color scheme logic ( #481 )
...
- Minimize needless swaps
- Centralize logic
- Use an actual `<wa-select>` rather than hacking it with `<wa-dropdown>`
- Move shared includes to shared template
- Rewrite critical theme JS
- Refactor of theme picker code
- Utilize view transitions better and use them for color scheme too
- Do not store default value in localStorage
- Removed unused `*-wide` templates
- Fixed #482
2025-01-10 15:32:28 -05:00
Lea Verou
eb07dc1410
Use passthrough copy ( #474 )
2025-01-09 17:24:18 -05:00
Lindsay M
6d31db57f6
Revise and add showcase to Themes doc ( #456 )
...
* Initial progress
* Make responsive
* quick fix to show theme name/description
* Small styling tweaks
* Documentation updates
* Revisions and improvements
* Avoid using static URLs 'cause that's ridiculous
---------
Co-authored-by: Cory LaViska <cory@abeautifulsite.net >
2025-01-08 17:33:09 -05:00
Lea Verou
1ad963f5ad
wa-card styling fixes
2025-01-08 15:36:12 -05:00
Lindsay M
fa66f4262d
Fix mobile theme selector; fixes #440 ( #446 )
...
* Fix styling
* Fix mobile theme selector label
2025-01-08 15:01:20 -05:00
Cory LaViska
06e432589f
change migration => tailspin ( #463 )
2025-01-08 13:59:27 -05:00
Cory LaViska
b4c4074ae1
fix mobile color picker bug ( #462 )
2025-01-08 13:49:57 -05:00
Lea Verou
19042fcca4
Decouple dark mode & theme, fixes #445 closes #385 ( #457 )
...
Co-authored-by: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com >
2025-01-08 12:50:29 -05:00
Lindsay M
e046015ed5
Theme cleanup ( #414 )
...
* formatting, docs tweaks
* FA theme cleanup
* Revert removal of `--wa-form-control-height-*`
* Classic theme cleanup
* Use consistent selectors for dark mode
* Clean slate for additional themes
* Retire depth stylesheets
* Move header styles for themer out of themes
* Missed instance of dark mode selector
* Migration theme cleanup
* Brutalist theme cleanup
* Changelog for new themes
* Playful theme cleanup
* Formatting
* Default theme update
* Add tests for form theming
* Fix test typo
* Change misnamed `multiplier` properties to `scale`
* Active theme cleanup
* Mellow theme cleanup
* Cleanup unused FA styles
* Glassy theme progress
* Add checked styles to glassy
* Fix typo
* Final FA theme cleanup
* Rename FA theme to 'Awesome', allow in alpha
* Final brutalist theme cleanup
* A few more brutalist tweaks
* One last brutalist tweak
* Final mellow theme cleanup
* Final Tailwind theme cleanup
* Final active theme cleanup
* Some classic theme cleanup
* Remove unused `--wa-form-control-height-*`
* Rename `--wa-form-control-resting-color` to `border-color`
* Touch up callout `appearance` styles
* Add more themes to alpha
* Add changelog for removal of `--wa-form-control-height-*`
* Clean up colors
* Final classic theme cleanup
* Add new themes to alpha build
* Re-add teal (used by Awesome theme)
* sync mobile/desktop theme pickers and don't dup IDs
* Remove `color/standard.css` (duplicates `/themes/default/color.css`)
* add view transition
* Add premium theme for later cleanup
* Accommodate new tag `appearance` styles
* Revise `--wa-form-control-height-*` changelog entry
Co-authored-by: Lea Verou <lea@verou.me >
* Improve `--wa-border-width-scale` description
Co-authored-by: Lea Verou <lea@verou.me >
* Better border docs
* Premium tweaks
---------
Co-authored-by: Cory LaViska <cory@abeautifulsite.net >
Co-authored-by: Lea Verou <lea@verou.me >
2025-01-07 15:41:57 -05:00
Lea Verou
ef7d47e2b9
[Docs] Move commonalities across blocks to a single base layout ( #424 )
2025-01-06 17:01:29 -05:00
Lea Verou
ac7437894a
Automate all overviews, fix bugs with filtering
2025-01-03 20:17:19 -05:00
lindsaym-fa
ed3e7014e3
Simplify border radius scale
2025-01-02 15:37:09 -05:00