Commit Graph

4597 Commits

Author SHA1 Message Date
Lea Verou
5a0b2da5a1 Merge branch 'next' into custom-palettes 2025-03-21 19:02:11 -04:00
Lea Verou
59dcaaff83 Content hierarchy bugfixes & improvements (#821)
- Sidebar, overview listings, breadcrumbs now based on actual parent-child relationships, rather than increasingly outdated heuristics
- parent properties are now generated automatically from the URL structure, and need only be specified to override that default
- Ability to group by page hierarchy in overview pages, where pages that have >= 2 children become categories

Smaller improvements:
- More flexible syntax for specifying the params of overview pages
- [Overviews] Hide group heading if only one group is present
- parentItem and parentUrl properties that can be used on any page
- Alias a collection as the children of a page (useful for "virtual" parents like Layout)
- Do not error if a page card icon is missing
2025-03-21 16:30:06 -04:00
Cory LaViska
5bad30ec30 fix remove event and return null when empty (#819)
* fix remove event and return null when empty

* use closest
2025-03-21 13:01:49 -04:00
Lea Verou
87c1762146 Scrub :host-context() from everywhere 2025-03-21 12:55:25 -04:00
Konnor Rogers
899edd1d5e Konnorrogers/add a guard for non server deploys (#818)
* add a guard for non-server builds

* add a guard for non-server builds

* add a guard for non-server builds

* prettier
2025-03-20 16:37:22 -04:00
Konnor Rogers
872a110b1e reflect href on buttons (#817) 2025-03-20 14:58:21 -04:00
Lea Verou
d64d75b3f4 Update generate-palette.js 2025-03-20 10:59:01 -04:00
Lea Verou
fe2829698a Update data.js 2025-03-20 10:58:52 -04:00
Lindsay M
07fe6d598e Add curated orange to all palettes, closes #657 (#798)
* Adjust `orange` in Default palette

* Adjust `orange`, `red`, and `yellow` in Classic palette

* Adjust `orange` in Anodized palette

* Adjust `orange` in Bright palette

* Adjust `orange` in Mild palette

* Adjust `orange` in Natural palette

* Adjust `orange` in Vogue palette

* Adjust `orange` in Rudimentary palette

* Adjust `orange` in Elegant palette
2025-03-18 16:08:31 -04:00
Lea Verou
fe2be5cbdb Patch gray bugs 2025-03-18 13:38:02 -04:00
Lea Verou
f9b932042e Swatch picker component 2025-03-18 13:32:54 -04:00
Lea Verou
8dee82a44a Fix gray chroma bugs 2025-03-18 13:18:46 -04:00
Konnor Rogers
79bafc513a 11ty for webawesome-app (#803)
* working on integration

* 11ty for webawesome + app

* add flashes

* additional changes

* prettier

* add note about nunjucks

* prettier
2025-03-18 13:04:24 -04:00
Lea Verou
0b883866d1 Spacing 2025-03-18 12:53:59 -04:00
Lea Verou
d0a60d2c30 Fix gray tweaks 2025-03-18 10:31:44 -04:00
Lea Verou
398ae15979 Present default roles differently 2025-03-17 17:38:12 -04:00
Lea Verou
0780c12adb Desaturate pro badge once I've started editing to reduce distraction 2025-03-17 12:03:15 -04:00
Lea Verou
bfafc08761 Fix generated palette code
- Only include my scales for custom palettes
- Do not include bogus role declarations
2025-03-17 11:15:03 -04:00
Lea Verou
2ac15dcda1 Less jargony sliders 2025-03-17 11:10:28 -04:00
Lea Verou
67437b719d Bugfix 2025-03-17 10:53:44 -04:00
Lea Verou
f05c8f7b84 Hide experimental badge once you start editing 2025-03-17 10:47:47 -04:00
Lea Verou
2c0ff72f0d wa-details for suggested colors 2025-03-17 10:44:49 -04:00
lindsaym-fa
672fc3a5ad Make suggested swatches smaller 2025-03-17 10:34:13 -04:00
Lea Verou
ff45ca2232 Add text for My Colors 2025-03-17 10:25:38 -04:00
Lea Verou
7dcbd7407f Suggested -> Common 2025-03-17 10:10:39 -04:00
Lea Verou
7c04550753 Focus input when added via add button 2025-03-17 10:09:21 -04:00
Lea Verou
08bf971f91 Fix bug where editing color did not update it in scales 2025-03-17 10:04:55 -04:00
Lea Verou
8245d8a40a Remove unused method 2025-03-17 10:04:43 -04:00
Lea Verou
e342f513b7 Better defaults when adding colors 2025-03-17 09:41:05 -04:00
Lea Verou
cdaa34e1bc Remove dead code 2025-03-17 09:40:54 -04:00
Lea Verou
0cca25a118 Move log to utils 2025-03-17 09:32:07 -04:00
Lea Verou
e9edc572b5 UI to override detected hue (and to communicate that a hue has been pinned) 2025-03-17 09:28:56 -04:00
Lea Verou
77da38fda3 Rotate pin icons 45deg 2025-03-17 09:28:23 -04:00
Lea Verou
cd4486cc86 Fade out tweak icon when not interacted with 2025-03-17 09:28:09 -04:00
Lea Verou
badc6c9dc2 Refactor: allHues = hues + gray 2025-03-17 04:52:10 -04:00
Lea Verou
33f3f8d4c0 Colorfulness sliders 2025-03-17 04:30:16 -04:00
Lea Verou
2bdfcae9ba Fix 2025-03-17 04:15:26 -04:00
Lea Verou
f369916f01 Ability to pin hue so that colors don't jump to another scale when pinned 2025-03-16 23:06:47 -04:00
Lea Verou
c9a1e21cdb Refactor: Move exposed properties to array 2025-03-16 23:06:23 -04:00
Lea Verou
d649d2ee3b More slider bugfixes 2025-03-16 22:31:54 -04:00
Lea Verou
44469183cb Oopsie 2025-03-16 21:12:20 -04:00
Lea Verou
d30149e718 Fix normalizeAngle(), which fixes generated pinks 2025-03-16 21:11:32 -04:00
Lea Verou
416aaee672 Maximize distance between generated hue and both hues before and after it 2025-03-16 21:11:14 -04:00
Lea Verou
e9ea0b7f1c Simplify color-slider and fix a bunch of bugs around it 2025-03-16 20:20:01 -04:00
Lea Verou
5d97db178a Remove more tweaking stuff 2025-03-16 18:35:11 -04:00
Lea Verou
45b3a8e76e More hueBefore/hueAfter to data 2025-03-16 18:32:06 -04:00
Lea Verou
550df496e1 Fix tweaking sliders for predefined palettes 2025-03-16 18:13:35 -04:00
Lea Verou
cde67b7984 Reduce visual impact of Save button when saved 2025-03-16 18:09:31 -04:00
Lea Verou
fd6e7e19f0 Remove unused tweaking classes 2025-03-16 18:06:23 -04:00
Lea Verou
c442e52c63 Easier pinning of generated colors 2025-03-16 17:47:10 -04:00