Repository navigation
fix(core): secondary text meets 4.5:1 on the stock palette tints - #12269
josephfarina wants to merge 7 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| Markdown | 204.4 kB (+16 B) · 22.0 kB CSS (+10 B) | — | — · — · — |
| Toast | 105.0 kB (+11 B) · 11.1 kB CSS (+11 B) | — | — · — · — |
| Lightbox | 147.4 kB (+10 B) · 12.0 kB CSS (+10 B) | — | — · — · — |
204 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| Overlay | 23.5 kB (+9 B) · 4.0 kB CSS (+9 B) | — | — · — · — |
| lab/Comments | 371.9 kB (+17 B) · 2.5 kB CSS (0) | — | — · — · — |
| ButtonGroup | 44.1 kB (0) · 3.7 kB CSS (+13 B) | — | — · — · — |
| MobileNavToggle | 66.3 kB (+2 B) · 10.8 kB CSS (+11 B) | — | — · — · — |
| ChatComposerInput | 83.1 kB (0) · 12.1 kB CSS (+12 B) | — | — · — · — |
| ChatComposerTokenElement | 83.1 kB (0) · 12.1 kB CSS (+12 B) | — | — · — · — |
| FileInput | 75.0 kB (0) · 11.7 kB CSS (+12 B) | — | — · — · — |
| SideNavSection | 7.1 kB (0) · 3.7 kB CSS (+12 B) | — | — · — · — |
| charts/Chart | 239.7 kB (+11 B) · 516 B CSS (0) | — | — · — · — |
| BottomSheetSwitcher | 18.7 kB (0) · 3.4 kB CSS (+11 B) | — | — · — · — |
| Breadcrumbs | 16.5 kB (0) · 3.4 kB CSS (+11 B) | — | — · — · — |
| Button | 65.9 kB (0) · 10.8 kB CSS (+11 B) | — | — · — · — |
| ChatDictationButton | 66.5 kB (+1 B) · 10.9 kB CSS (+10 B) | — | — · — · — |
| CommandPaletteItem | 13.4 kB (0) · 3.6 kB CSS (+11 B) | — | — · — · — |
| ComplexSelector | 78.5 kB (0) · 12.7 kB CSS (+11 B) | — | — · — · — |
| DateInput | 201.0 kB (0) · 18.0 kB CSS (+11 B) | — | — · — · — |
| DateRangeInput | 100.2 kB (0) · 13.3 kB CSS (+11 B) | — | — · — · — |
| NumberInput | 78.5 kB (0) · 12.2 kB CSS (+11 B) | — | — · — · — |
| Popover | 99.6 kB (0) · 15.2 kB CSS (+11 B) | — | — · — · — |
| ProgressBar | 12.0 kB (0) · 6.4 kB CSS (+11 B) | — | — · — · — |
| ScrollableArea | 11.5 kB (0) · 4.3 kB CSS (+11 B) | — | — · — · — |
| SelectorOption | 24.1 kB (0) · 6.7 kB CSS (+11 B) | — | — · — · — |
| TextInput | 73.6 kB (+1 B) · 12.0 kB CSS (+10 B) | — | — · — · — |
| TopNavMegaMenu | 77.2 kB (0) · 12.7 kB CSS (+11 B) | — | — · — · — |
| TopNavMenu | 82.6 kB (0) · 12.1 kB CSS (+11 B) | — | — · — · — |
| Typeahead | 88.9 kB (0) · 13.5 kB CSS (+11 B) | — | — · — · — |
| TypeaheadItem | 6.6 kB (0) · 3.6 kB CSS (+11 B) | — | — · — · — |
| lab/DialogHeroHeader | 89.9 kB (+11 B) · 372 B CSS (0) | — | — · — · — |
| lab/ListInput | 94.9 kB (+11 B) · 922 B CSS (0) | — | — · — · — |
| AlertDialog | 129.7 kB (0) · 15.5 kB CSS (+10 B) | — | — · — · — |
| AvatarGroup | 48.9 kB (0) · 5.8 kB CSS (+10 B) | — | — · — · — |
| Badge | 4.4 kB (0) · 4.0 kB CSS (+10 B) | — | — · — · — |
| BaseTypeahead | 79.3 kB (0) · 11.8 kB CSS (+10 B) | — | — · — · — |
| BottomSheet | 73.1 kB (0) · 7.8 kB CSS (+10 B) | — | — · — · — |
| BreadcrumbItem | 97.7 kB (0) · 13.3 kB CSS (+10 B) | — | — · — · — |
| Calendar | 77.0 kB (0) · 11.4 kB CSS (+10 B) | — | — · — · — |
| Card | 6.9 kB (0) · 6.7 kB CSS (+10 B) | — | — · — · — |
| Center | 4.4 kB (0) · 4.6 kB CSS (+10 B) | — | — · — · — |
| ChatComposer | 85.5 kB (0) · 12.9 kB CSS (+10 B) | — | — · — · — |
| ChatMessage | 17.2 kB (0) · 3.7 kB CSS (+10 B) | — | — · — · — |
| ChatMessageList | 29.3 kB (0) · 7.1 kB CSS (+10 B) | — | — · — · — |
| ChatMessageMetadata | 20.5 kB (0) · 4.1 kB CSS (+10 B) | — | — · — · — |
| ChatSendButton | 66.3 kB (0) · 10.8 kB CSS (+10 B) | — | — · — · — |
| ChatTokenizedText | 7.6 kB (0) · 4.1 kB CSS (+10 B) | — | — · — · — |
| ChatToolCalls | 33.6 kB (0) · 8.5 kB CSS (+10 B) | — | — · — · — |
| CheckboxInput | 69.2 kB (0) · 10.2 kB CSS (+10 B) | — | — · — · — |
| CheckboxList | 73.3 kB (0) · 7.8 kB CSS (+10 B) | — | — · — · — |
| CheckboxListItem | 80.1 kB (0) · 12.1 kB CSS (+10 B) | — | — · — · — |
| ClickableCard | 18.6 kB (0) · 7.4 kB CSS (+10 B) | — | — · — · — |
| CommandPalette | 78.1 kB (0) · 12.8 kB CSS (+10 B) | — | — · — · — |
| CommandPaletteInput | 33.1 kB (0) · 7.6 kB CSS (+10 B) | — | — · — · — |
| ContextMenu | 102.8 kB (0) · 18.8 kB CSS (+10 B) | — | — · — · — |
| ContextMenuItem | 35.5 kB (0) · 7.1 kB CSS (+10 B) | — | — · — · — |
| DateTimeInput | 224.4 kB (0) · 19.8 kB CSS (+10 B) | — | — · — · — |
| Dialog | 25.6 kB (0) · 7.0 kB CSS (+10 B) | — | — · — · — |
| DialogHeader | 68.9 kB (0) · 12.4 kB CSS (+10 B) | — | — · — · — |
| Drawer | 54.3 kB (0) · 8.5 kB CSS (+10 B) | — | — · — · — |
| DrawerHeader | 69.0 kB (0) · 13.8 kB CSS (+10 B) | — | — · — · — |
| DropdownMenu | 108.3 kB (0) · 18.9 kB CSS (+10 B) | — | — · — · — |
| DropdownMenuCheckboxItem | 28.6 kB (0) · 7.3 kB CSS (+10 B) | — | — · — · — |
| DropdownMenuItem | 27.8 kB (0) · 6.9 kB CSS (+10 B) | — | — · — · — |
| DropdownMenuRadioGroup | 6.6 kB (0) · 3.3 kB CSS (+10 B) | — | — · — · — |
| DropdownMenuRadioItem | 28.7 kB (0) · 7.3 kB CSS (+10 B) | — | — · — · — |
| Field | 59.6 kB (0) · 7.3 kB CSS (+10 B) | — | — · — · — |
| FieldLabel | 55.6 kB (0) · 5.8 kB CSS (+10 B) | — | — · — · — |
| FieldStatus | 10.1 kB (0) · 3.6 kB CSS (+10 B) | — | — · — · — |
| Grid | 4.6 kB (0) · 3.8 kB CSS (+10 B) | — | — · — · — |
| Heading | 13.5 kB (0) · 5.5 kB CSS (+10 B) | — | — · — · — |
| IconButton | 66.0 kB (−1 B) · 10.8 kB CSS (+11 B) | — | — · — · — |
| InfoTip | 50.6 kB (0) · 5.4 kB CSS (+10 B) | — | — · — · — |
| InputGroup | 61.2 kB (0) · 7.9 kB CSS (+10 B) | — | — · — · — |
| InputGroupText | 6.9 kB (0) · 3.9 kB CSS (+10 B) | — | — · — · — |
| Item | 20.5 kB (0) · 6.2 kB CSS (+10 B) | — | — · — · — |
| Kbd | 17.2 kB (0) · 3.6 kB CSS (+10 B) | — | — · — · — |
| Link | 56.6 kB (0) · 7.1 kB CSS (+10 B) | — | — · — · — |
| ListItem | 79.3 kB (0) · 12.1 kB CSS (+10 B) | — | — · — · — |
| MetadataList | 17.3 kB (0) · 3.8 kB CSS (+10 B) | — | — · — · — |
| MetadataListItem | 7.1 kB (0) · 3.5 kB CSS (+10 B) | — | — · — · — |
| MobileNav | 77.2 kB (−1 B) · 11.4 kB CSS (+11 B) | — | — · — · — |
| MoreMenu | 108.5 kB (0) · 18.9 kB CSS (+10 B) | — | — · — · — |
| MultiSelector | 102.6 kB (0) · 17.8 kB CSS (+10 B) | — | — · — · — |
| Outline | 25.3 kB (0) · 4.2 kB CSS (+10 B) | — | — · — · — |
| Pagination | 125.1 kB (0) · 19.1 kB CSS (+10 B) | — | — · — · — |
| PowerSearch | 308.0 kB (0) · 25.6 kB CSS (+10 B) | — | — · — · — |
| RadioList | 61.0 kB (0) · 7.4 kB CSS (+10 B) | — | — · — · — |
| ResizeHandle | 22.3 kB (0) · 4.3 kB CSS (+10 B) | — | — · — · — |
| SegmentedControl | 102.3 kB (0) · 7.0 kB CSS (+10 B) | — | — · — · — |
| SegmentedControlItem | 18.8 kB (0) · 4.3 kB CSS (+10 B) | — | — · — · — |
| Selector | 114.0 kB (0) · 18.7 kB CSS (+10 B) | — | — · — · — |
| SideNav | 122.2 kB (0) · 12.2 kB CSS (+10 B) | — | — · — · — |
| SideNavCollapseButton | 66.8 kB (0) · 10.9 kB CSS (+10 B) | — | — · — · — |
| SideNavHeading | 83.5 kB (0) · 12.1 kB CSS (+10 B) | — | — · — · — |
| SideNavItem | 77.9 kB (0) · 12.0 kB CSS (+10 B) | — | — · — · — |
| Skeleton | 4.0 kB (0) · 3.8 kB CSS (+10 B) | — | — · — · — |
| Slider | 114.7 kB (0) · 8.9 kB CSS (+10 B) | — | — · — · — |
| Spinner | 25.9 kB (0) · 6.3 kB CSS (+10 B) | — | — · — · — |
| StatusDot | 33.9 kB (0) · 5.4 kB CSS (+10 B) | — | — · — · — |
| Step | 31.6 kB (0) · 5.6 kB CSS (+10 B) | — | — · — · — |
| Stepper | 67.6 kB (0) · 10.9 kB CSS (+10 B) | — | — · — · — |
| Switch | 109.2 kB (0) · 10.0 kB CSS (+10 B) | — | — · — · — |
| Table | 121.0 kB (0) · 19.7 kB CSS (+10 B) | — | — · — · — |
| TableCell | 104.0 kB (0) · 19.3 kB CSS (+10 B) | — | — · — · — |
| TableHeaderCell | 103.7 kB (0) · 19.0 kB CSS (+10 B) | — | — · — · — |
| TableSelectionToolbar | 76.3 kB (0) · 14.1 kB CSS (+10 B) | — | — · — · — |
| TabList | 47.5 kB (0) · 6.5 kB CSS (+10 B) | — | — · — · — |
| TabMenu | 79.8 kB (0) · 12.0 kB CSS (+10 B) | — | — · — · — |
| Text | 12.9 kB (0) · 5.5 kB CSS (+10 B) | — | — · — · — |
| TextArea | 67.1 kB (0) · 9.4 kB CSS (+10 B) | — | — · — · — |
| TimeInput | 175.8 kB (0) · 17.0 kB CSS (+10 B) | — | — · — · — |
| Timer | 15.0 kB (0) · 6.1 kB CSS (+10 B) | — | — · — · — |
| Timestamp | 30.5 kB (0) · 11.1 kB CSS (+10 B) | — | — · — · — |
| ToggleButton | 93.1 kB (0) · 10.9 kB CSS (+10 B) | — | — · — · — |
| Token | 29.6 kB (0) · 4.9 kB CSS (+10 B) | — | — · — · — |
| Tokenizer | 105.3 kB (0) · 20.4 kB CSS (+10 B) | — | — · — · — |
| Toolbar | 47.3 kB (0) · 8.2 kB CSS (+10 B) | — | — · — · — |
| Tooltip | 32.2 kB (0) · 4.5 kB CSS (+10 B) | — | — · — · — |
| TopNavHeading | 83.0 kB (0) · 12.0 kB CSS (+10 B) | — | — · — · — |
| TopNavMegaMenuFeaturedCard | 8.4 kB (0) · 3.6 kB CSS (+10 B) | — | — · — · — |
| TreeList | 46.2 kB (0) · 6.0 kB CSS (+10 B) | — | — · — · — |
| AppShell | 98.5 kB (0) · 14.4 kB CSS (+9 B) | — | — · — · — |
| Avatar | 46.1 kB (0) · 5.7 kB CSS (+9 B) | — | — · — · — |
| AvatarGroupOverflow | 52.1 kB (0) · 5.8 kB CSS (+9 B) | — | — · — · — |
| AvatarStatusDot | 7.6 kB (0) · 3.5 kB CSS (+9 B) | — | — · — · — |
| Carousel | 75.7 kB (0) · 11.8 kB CSS (+9 B) | — | — · — · — |
| ChatComposerDrawer | 18.2 kB (0) · 4.7 kB CSS (+9 B) | — | — · — · — |
| ChatLayout | 89.2 kB (0) · 11.4 kB CSS (+9 B) | — | — · — · — |
| ChatMessageBubble | 7.6 kB (0) · 3.7 kB CSS (+9 B) | — | — · — · — |
| ChatSystemMessage | 7.1 kB (0) · 3.8 kB CSS (+9 B) | — | — · — · — |
| Citation | 20.8 kB (0) · 4.4 kB CSS (+9 B) | — | — · — · — |
| Code | 3.7 kB (0) · 3.5 kB CSS (+9 B) | — | — · — · — |
| CodeBlock | 81.4 kB (−1 B) · 12.2 kB CSS (+10 B) | — | — · — · — |
| Collapsible | 29.0 kB (0) · 4.5 kB CSS (+9 B) | — | — · — · — |
| CollapsibleGroup | 7.0 kB (0) · 3.3 kB CSS (+9 B) | — | — · — · — |
| CommandPaletteEmpty | 6.5 kB (0) · 3.5 kB CSS (+9 B) | — | — · — · — |
| CommandPaletteFooter | 17.5 kB (0) · 3.7 kB CSS (+9 B) | — | — · — · — |
| CommandPaletteGroup | 3.7 kB (0) · 3.5 kB CSS (+9 B) | — | — · — · — |
| CommandPaletteList | 16.4 kB (0) · 3.4 kB CSS (+9 B) | — | — · — · — |
| DropdownMenuGroup | 6.4 kB (0) · 3.4 kB CSS (+9 B) | — | — · — · — |
| DropdownMenuSubMenu | 78.7 kB (0) · 10.5 kB CSS (+9 B) | — | — · — · — |
| FormLayout | 6.9 kB (0) · 3.5 kB CSS (+9 B) | — | — · — · — |
| GridSpan | 3.6 kB (0) · 3.4 kB CSS (+9 B) | — | — · — · — |
| HoverCard | 30.4 kB (0) · 4.5 kB CSS (+9 B) | — | — · — · — |
| LayoutPanel | 22.1 kB (0) · 5.1 kB CSS (+9 B) | — | — · — · — |
| NavHeadingMenu | 18.5 kB (0) · 3.5 kB CSS (+9 B) | — | — · — · — |
| NavIcon | 3.7 kB (0) · 3.4 kB CSS (+9 B) | — | — · — · — |
| OverflowList | 11.0 kB (0) · 3.6 kB CSS (+9 B) | — | — · — · — |
| RadioListItem | 76.3 kB (0) · 10.7 kB CSS (+9 B) | — | — · — · — |
| Section | 7.8 kB (0) · 6.4 kB CSS (+9 B) | — | — · — · — |
| SelectableCard | 18.8 kB (0) · 7.6 kB CSS (+9 B) | — | — · — · — |
| Tab | 14.9 kB (0) · 4.2 kB CSS (+9 B) | — | — · — · — |
| TableBody | 3.5 kB (0) · 3.3 kB CSS (+9 B) | — | — · — · — |
| TableFooter | 3.5 kB (0) · 3.3 kB CSS (+9 B) | — | — · — · — |
| TableHeader | 3.5 kB (0) · 3.3 kB CSS (+9 B) | — | — · — · — |
| TableRow | 7.1 kB (0) · 4.0 kB CSS (+9 B) | — | — · — · — |
| Thumbnail | 70.4 kB (−1 B) · 12.4 kB CSS (+10 B) | — | — · — · — |
| ToggleButtonGroup | 41.4 kB (0) · 3.7 kB CSS (+9 B) | — | — · — · — |
| TopNav | 79.0 kB (−1 B) · 11.8 kB CSS (+10 B) | — | — · — · — |
| TopNavItem | 14.5 kB (0) · 4.0 kB CSS (+9 B) | — | — · — · — |
| TopNavMegaMenuItem | 15.1 kB (0) · 4.2 kB CSS (+9 B) | — | — · — · — |
| AspectRatio | 3.9 kB (0) · 3.6 kB CSS (+8 B) | — | — · — · — |
| Blockquote | 3.7 kB (0) · 3.5 kB CSS (+8 B) | — | — · — · — |
| ChatLayoutScrollButton | 66.5 kB (−2 B) · 11.0 kB CSS (+10 B) | — | — · — · — |
| Banner | 67.9 kB (−4 B) · 11.3 kB CSS (+11 B) | — | — · — · — |
| charts/ChartLegend | 47.6 kB (+5 B) · 224 B CSS (0) | — | — · — · — |
| lab/CommentThread | 365.0 kB (+5 B) · 2.4 kB CSS (0) | — | — · — · — |
| lab/EmojiPicker | 93.4 kB (+1 B) · 751 B CSS (0) | — | — · — · — |
| charts/ChartAxis | 7.0 kB (0) · 112 B CSS (0) | — | — · — · — |
| charts/ChartTooltip | 216.4 kB (0) · 451 B CSS (0) | — | — · — · — |
| lab/ChartDotGL | 7.6 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChartDotGLInteractive | 8.6 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChartHeatmapGL | 8.8 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChartStreamGL | 7.7 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChatEmojiPicker | 114.7 kB (0) · 773 B CSS (0) | — | — · — · — |
| lab/ChatReactionBar | 115.8 kB (0) · 1.1 kB CSS (0) | — | — · — · — |
| lab/ChatReasoning | 7.2 kB (0) · 967 B CSS (0) | — | — · — · — |
| lab/ChatTypingIndicator | 26.3 kB (0) · 612 B CSS (0) | — | — · — · — |
| lab/ChatUnreadDivider | 3.7 kB (0) · 348 B CSS (0) | — | — · — · — |
| lab/ChatVirtualizer | 57.2 kB (0) · 223 B CSS (0) | — | — · — · — |
| lab/CircleCheckIndicator | 4.6 kB (0) · 1.0 kB CSS (0) | — | — · — · — |
| lab/CircularProgress | 9.1 kB (0) · 880 B CSS (0) | — | — · — · — |
| lab/CodeEditor | 14.6 kB (0) · 743 B CSS (0) | — | — · — · — |
| lab/CommentComposer | 175.0 kB (0) · 1.9 kB CSS (0) | — | — · — · — |
| lab/CommentPin | 60.5 kB (0) · 1.2 kB CSS (0) | — | — · — · — |
| lab/LineClamp | 15.4 kB (0) · 168 B CSS (0) | — | — · — · — |
| lab/LogStream | 8.2 kB (0) · 1.6 kB CSS (0) | — | — · — · — |
| lab/NavigationScreen | 85.0 kB (0) · 1.5 kB CSS (0) | — | — · — · — |
| lab/NavigationStack | 85.0 kB (0) · 1.5 kB CSS (0) | — | — · — · — |
| lab/PageControl | 78.2 kB (0) · 709 B CSS (0) | — | — · — · — |
| lab/Schedule | 115.5 kB (0) · 3.9 kB CSS (0) | — | — · — · — |
| lab/SelectableCardGroup | 69.0 kB (0) · 162 B CSS (0) | — | — · — · — |
| lab/Stat | 4.3 kB (0) · 646 B CSS (0) | — | — · — · — |
| lab/SVGIcon | 7.9 kB (0) · 765 B CSS (0) | — | — · — · — |
| lab/TabBar | 83.6 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| lab/TabBarItem | 3.9 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| lab/TabBarMoreList | 102.1 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| lab/ThreeDScatterGL | 7.9 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/TourStep | 94.3 kB (0) · 691 B CSS (0) | — | — · — · — |
| lab/TransferList | 113.2 kB (0) · 1.2 kB CSS (0) | — | — · — · — |
| lab/TransferListSelector | 122.1 kB (0) · 1.4 kB CSS (0) | — | — · — · — |
| lab/WeightedSVGIcon | 5.1 kB (0) · 1.1 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditor | 306.8 kB (0) · 2.6 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditorToolbar | 300.8 kB (0) · 454 B CSS (0) | — | — · — · — |
| richtext/RichTextView | 283.5 kB (0) · 2.3 kB CSS (0) | — | — · — · — |
| lab/DiffViewer | 94.0 kB (−1 B) · 2.1 kB CSS (0) | — | — · — · — |
Package size:
- @astryxdesign/cli 5.30 MB packed (+5 B); no new dependencies
- @astryxdesign/core 7.63 MB packed (+20 B); no new dependencies
API changes: core +0 · ~3 · −0
3 API changes (advisory)
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| ~ | core |
. · Values · const colorDefaults |
--color-text-secondary: 'light-dark(#4E606F, #AAAFB5)' → --color-text-secondary: 'light-dark(#445564, #AAAFB5)' |
import {colorDefaults} from '@astryxdesign/core' |
| ~ | core |
. · Values · const colorVars |
const colorVars: stylex.VarGroup<Readonly<{ readonly '--color-accent': "light-dark(#0064E0, #0171E3)"; readonly '--color-accent-muted': "light-dark(#0082FB33, #0082FB3F)"; reado … #9de1262f → const colorVars: stylex.VarGroup<Readonly<{ readonly '--color-accent': "light-dark(#0064E0, #0171E3)"; readonly '--color-accent-muted': "light-dark(#0082FB33, #0082FB3F)"; reado … #5f5935e3 |
import {colorVars} from '@astryxdesign/core' |
| ~ | core |
./Text/text.stylex · Values · const colorStyles |
const colorStyles: Readonly<{ readonly primary: Readonly<{ readonly color: stylex.StyleXClassNameFor<"color", "light-dark(#0A1317, #DFE2E5)"> }>; readonly secondary: Readonly<{ re … #ee16b085 → const colorStyles: Readonly<{ readonly primary: Readonly<{ readonly color: stylex.StyleXClassNameFor<"color", "light-dark(#0A1317, #DFE2E5)"> }>; readonly secondary: Readonly<{ re … #6224479e |
import {colorStyles} from '@astryxdesign/core/Text/text.stylex' |
Wide change (shared styles: packages/core/src/theme/tokens.stylex.ts): add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on INV14 and the new value, and two stale test pins need fixing.
This pull request adds architecture:theme-tokens INV14 and a new light --color-text-secondary default (#445564) that no current record states or settles; an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, or says what INV14 or the value should be instead, and the author may do so as an engineering owner.
Blocking findings:
.github/pages/assets/manifest.jsonstill pins the old hash of.github/pages/assets/reset.css, so.github/scripts/pages-landing.test.mjs("pins the generated assets to the current public package releases") fails; updatefiles["reset.css"].sha256to the new file's hash.packages/core/src/reset.a11y.chromium.spec.tsstill expects the light placeholder fallbackrgb(78, 96, 111), so "input and textarea placeholders take the reset color in both schemes" fails in Chromium; the expected light value is nowrgb(68, 85, 100).
CI did not run on this head (its run was cancelled for capacity), so it needs a re-run after the fixes. Non-blocking: three of the touched dashboard templates score under 75 on the template rubric and three are over about 1,000 lines, none of it changed here.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
- Changeset: the light default becomes
#445564(was#4E606F) — verified,packages/core/src/theme/tokens.stylex.ts:41. - Changeset: secondary text on a gray Card or any palette tint meets 4.5:1 over the surface and the page body — verified, all 40 tint pairs pass (Chromium minimum 4.52:1, gray over the body).
- Changeset: the dark value is unchanged — verified, dark frames are pixel-identical.
- Changeset: patch bumps for core and cli — verified, core ships the token and reset change, cli the template and doc copies.
- Before: 4.20:1 on the gray Card, 3.82:1 over the body, red 4.29:1 — verified in Chromium.
- After: 4.96:1 on the gray Card, worst pair gray over the body 4.52:1 — verified.
- Dark: worst pair 5.07:1 and unchanged — verified; the stated 6.31:1 for the dark gray Card was not reproduced (5.52:1 over the surface, 6.37:1 over the body).
#445564is the smallest darkening that passes and keeps hue and chroma — verified, one step lighter gives 4.45:1; lightness drops about 4.5, chroma is unchanged and hue moves 2 degrees.- Switch's off track and the gray Token paint the same tint — verified,
Switch.tsx:495andToken.tsx:274. - Every literal copy of the value moves with it — false: the Pages manifest hash and the reset browser spec's expected colour were not updated.
- Icon roles, the tints and the dark values do not change — verified.
- The new contrast test fails on the old value at gray over the surface, 4.20 — verified by running it against the base value.
- The colour-scale test covers each representative config, and colour-scale output already met the floor — verified, 10 configs in both modes, passing on the base too.
- Chromium checks at 390, 375 and 1280 px — stated; this review rechecked at 1280 px in light, dark and forced colours.
Files:
.changeset/secondary-text-on-palette-tints.md— clear..github/pages/assets/reset.css— the manifest hash finding above.docs/architecture/theme-tokens.md— INV14 waits on the owner decision.internal/eslint-plugin-astryx/README.md— clear.packages/cli/assets/docs/tree/tokens-color.doc.mjs— clear (matches its generator).packages/cli/assets/templates/pages/dashboard-alert-rail/page.tsx— clear for this change; existing rubric score under 75 and over 1,000 lines (non-blocking).packages/cli/assets/templates/pages/dashboard-cohort-funnel/page.tsx— clear.packages/cli/assets/templates/pages/dashboard-comparison/page.tsx— clear for this change; existing rubric score under 75 (non-blocking).packages/cli/assets/templates/pages/dashboard-composition/page.tsx— clear.packages/cli/assets/templates/pages/dashboard-progress/page.tsx— clear for this change; existing rubric score under 75 and over 1,000 lines (non-blocking).packages/cli/assets/templates/pages/dashboard-scorecard/page.tsx— clear.packages/cli/assets/templates/pages/dashboard/page.tsx— clear.packages/cli/assets/templates/pages/table-collapsible/page.tsx— clear for this change; over 1,000 lines (non-blocking).packages/core/src/reset.css— the reset browser spec finding above.packages/core/src/theme/contrast.test.ts— clear.packages/core/src/theme/expandColorScale.test.ts— clear.packages/core/src/theme/tokens.stylex.ts— the new value waits on the owner decision.
ff21f41 to
6d20eb2
Compare
|
Owner decision (engineering owner, covering this pull request): Core's default light secondary text color changes so it meets WCAG AA (4.5:1) on every stock palette tint, over both the page body and a surface. The new value keeps the hue and chroma of the secondary icon color and is the smallest lightness drop that meets 4.5:1 on every default tint; the theme-tokens record states that derivation, and a test asserts the ratio on each tint so a later tint change cannot regress it. Dark mode already passes and stays unchanged. Templates inside a first-party Theme do not move; the description lists the templates whose secondary text changes under Core defaults. The theme-tokens record's owner approves the record change on this pull request. |
|
/approve-spec 6d20eb2 |
There was a problem hiding this comment.
Changes requested: the release note needs one more sentence; INV14 and the new --color-text-secondary default are approved at this head by an engineering owner.
Blocking findings:
- Miss:
.changeset/secondary-text-on-palette-tints.mdnames the old and new colour but not how to keep the old one, whichspec:AST-017FR3 requires when a supported escape exists; add a sentence such as "To keep the previous colour, a theme can set--color-text-secondarytolight-dark(#4E606F, #AAAFB5)."
The fix is a new commit, so an engineering owner's /approve-spec is needed again for the new head, and CI, cancelled for capacity here, needs to run there. The Pages manifest hash and the reset browser spec now match the new value. Non-blocking: three of the touched dashboard templates score under 75 on the template rubric and three are over about 1,000 lines, none of it changed here.
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- Changeset: the light default becomes
#445564(was#4E606F) — verified,packages/core/src/theme/tokens.stylex.ts:41. - Changeset: secondary text on a gray Card or any palette tint meets 4.5:1 over the surface and the page body — verified, all 40 tint pairs pass (Chromium minimum 4.52:1, gray over the body).
- Changeset: the dark value is unchanged — verified, dark frames are pixel-identical.
- Changeset: patch fix bumps for core and cli — verified, a visual-default correction is a patch fix; core ships the token and reset, cli the template and doc copies.
- Before: 4.20:1 on the gray Card, 3.82:1 over the body, red 4.29:1 over the body — verified in Chromium.
- The gray tint is near-black at 20% alpha and the darkest tint, and the old value had 4.70–5.58:1 on the other tints over the surface — verified.
- Switch's off track and the gray Token paint the same tint, and the off track is 1.55:1 against the surface — verified,
Switch.tsx:495,Token.tsx:274. #445564is the smallest darkening that passes, keeping hue and chroma and lowering L* by 4.4 — verified: at the old hue and chroma the needed drop is 4.38, which rounds to#445564(its own drop is 4.51; rounding moves the hue 2 degrees).- After: the worst light pair is gray over the body at 4.52:1, and the dark worst pair is 5.07:1 — verified.
- After: 4.96:1 on the gray Card, and dark stays at 6.31:1 — verified; 6.31:1 is the dark gray tint over the browser's default dark page colour.
- Colour-scale output already met the floor — verified, lowest 5.02:1 over 7,208 generated configs; the ten pinned configs pass on the base too.
- Every literal copy of the value moves with it — verified, no secondary-text fallback keeps the old value.
- Icon roles, the tints and the dark values do not change — verified.
- The new contrast test fails on the old value at gray over the surface, 4.20 — verified by running it against the base value.
- The colour-scale test checks the same pairs for each representative config — verified, 10 configs in both modes.
- Template sweep: no template moves inside the neutral theme and 54 of 58 move with Core defaults — not reproduced template by template; consistent with the neutral-theme and no-theme frames, and 58 page templates exist.
- The eight template edits change only the fallback literal — verified from the diff.
- No new public API or hidden default — verified, one default value changes openly and no name or signature changes.
- The writing rubric results for the record — verified, the invariant is in the present tense with no history, change references or project status.
- Chromium checks at 390, 375 and 1280 px in light and dark — stated; rechecked at 1280 px in light, dark, forced colours and the neutral theme.
Files:
.changeset/secondary-text-on-palette-tints.md— the release-note finding above..github/pages/assets/manifest.json— clear (the hash matches the new file)..github/pages/assets/reset.css— clear (byte-equal to the package copy).docs/architecture/theme-tokens.md— INV14 waits on the owner decision.internal/eslint-plugin-astryx/README.md— clear.packages/cli/assets/docs/tree/tokens-color.doc.mjs— clear (matches its generator).packages/cli/assets/templates/pages/dashboard-alert-rail/page.tsx— clear for this change; existing rubric score under 75 and over 1,000 lines (non-blocking).packages/cli/assets/templates/pages/dashboard-cohort-funnel/page.tsx— clear.packages/cli/assets/templates/pages/dashboard-comparison/page.tsx— clear for this change; existing rubric score under 75 (non-blocking).packages/cli/assets/templates/pages/dashboard-composition/page.tsx— clear.packages/cli/assets/templates/pages/dashboard-progress/page.tsx— clear for this change; existing rubric score under 75 and over 1,000 lines (non-blocking).packages/cli/assets/templates/pages/dashboard-scorecard/page.tsx— clear.packages/cli/assets/templates/pages/dashboard/page.tsx— clear.packages/cli/assets/templates/pages/table-collapsible/page.tsx— clear for this change; over 1,000 lines (non-blocking).packages/core/src/reset.a11y.chromium.spec.ts— clear (passes in Chromium).packages/core/src/reset.css— clear.packages/core/src/theme/contrast.test.ts— clear (fails on the base value, passes on the head).packages/core/src/theme/expandColorScale.test.ts— clear.packages/core/src/theme/tokens.stylex.ts— the new value waits on the owner decision.
|
/approve-spec 5b29c90 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; its run was cancelled before the test jobs started, so it needs to run again before merge. The release note now says how to keep the previous secondary-text colour, which was the one change the last review asked for, and an engineering owner approved INV14 and the new --color-text-secondary default for this head.
Nothing else is needed from you. Non-blocking: three of the touched dashboard templates score under 75 on the template rubric and three are over about 1,000 lines, none of it changed here.
Claims and files checked
Review mode: incremental; reason: none
Claims:
- Changeset: the light default becomes
#445564(was#4E606F) — verified,packages/core/src/theme/tokens.stylex.ts:41. - Changeset: secondary text on a gray Card or any palette tint meets 4.5:1 over the surface and the page body — verified in Chromium, every tint pair passes; the lowest is gray over the body at 4.52:1.
- Changeset: the dark value is unchanged — verified, the dark frames are pixel-identical.
- Changeset: a theme can keep the previous colour by setting
--color-text-secondarytolight-dark(#4E606F, #AAAFB5)— verified, a theme with that token resolves the old light and dark values. - Changeset: a patch fix for core and cli — verified, a visual-default correction is a patch fix; core ships the token and reset, cli the template and doc copies.
- Before: 4.20:1 on the gray Card, 3.82:1 over the page body, red 4.29:1 over the body — verified in Chromium.
- The gray tint is near-black at 20% alpha and the darkest tint, and the old value had 4.70–5.58:1 on the other tints — verified over the surface.
- Switch's off track and the gray Token paint the same tint, and that tint is 1.55:1 against the surface — verified,
Switch.tsx:495,Token.tsx:274. - A lighter tint would weaken the Switch off-state cue — verified by construction: a lighter shared tint has less contrast against the surface.
#445564is the smallest darkening that passes, keeping hue and chroma and lowering L* by 4.4 — verified up to 8-bit rounding: the needed drop is 4.38, which rounds to#445564(its own drop is 4.51 and its hue moves 2 degrees); no nearby 8-bit colour passes with a smaller drop.- After: the worst light pair is gray over the body at 4.52:1, and the dark worst pair is 5.07:1 — verified.
- After: 4.96:1 on the gray Card, and dark unchanged — verified at 1280 px; the dark gray pair is the same at base and head.
- Colour-scale output already met the floor — verified, the colour-scale case passes on the base value too.
- Every literal copy of the value moves with it, and icon roles, tints and dark values do not change — verified; the old value remains only in the icon roles, their doc rows and the pinned Pages release build.
- The new contrast test fails on the old value at gray over the surface, 4.20 — verified by running it against the base value.
- The colour-scale test checks the same pairs for each representative config — verified from the test.
- Template sweep: no template moves inside the neutral theme and 54 of 58 move with Core defaults — not reproduced template by template; consistent with the neutral-theme and no-theme frames, and 58 page templates exist.
- The eight template edits change only the fallback literal, and the reset fallback matches the token — verified from the diff.
- No new public API, hidden default or interaction model — verified, one default value changes openly and no name or signature changes.
- The writing rubric results for the record — verified, the invariant is in the present tense with no history, change references or project status.
- The listed vitest suites pass — verified at this head.
- Chromium checks at 390, 375 and 1280 px in light and dark — stated; rechecked at 1280 px in light, dark, forced colours and the neutral theme.
Files:
.changeset/secondary-text-on-palette-tints.md— clear (names the old and new colour and how to keep the old one)..github/pages/assets/manifest.json— clear (the hash matches the new file)..github/pages/assets/reset.css— clear (byte-equal to the package copy).docs/architecture/theme-tokens.md— clear (INV14 approved for this head).internal/eslint-plugin-astryx/README.md— clear.packages/cli/assets/docs/tree/tokens-color.doc.mjs— clear (matches its generator).packages/cli/assets/templates/pages/dashboard-alert-rail/page.tsx— clear for this change; existing rubric score under 75 and over 1,000 lines (non-blocking).packages/cli/assets/templates/pages/dashboard-cohort-funnel/page.tsx— clear.packages/cli/assets/templates/pages/dashboard-comparison/page.tsx— clear for this change; existing rubric score under 75 (non-blocking).packages/cli/assets/templates/pages/dashboard-composition/page.tsx— clear.packages/cli/assets/templates/pages/dashboard-progress/page.tsx— clear for this change; existing rubric score under 75 and over 1,000 lines (non-blocking).packages/cli/assets/templates/pages/dashboard-scorecard/page.tsx— clear.packages/cli/assets/templates/pages/dashboard/page.tsx— clear.packages/cli/assets/templates/pages/table-collapsible/page.tsx— clear for this change; over 1,000 lines (non-blocking).packages/core/src/reset.a11y.chromium.spec.ts— clear (passes in Chromium).packages/core/src/reset.css— clear.packages/core/src/theme/contrast.test.ts— clear (fails on the base value, passes on the head).packages/core/src/theme/expandColorScale.test.ts— clear.packages/core/src/theme/tokens.stylex.ts— clear (the approved value).
There was a problem hiding this comment.
Approved pending CI: CI is still running on this head and has to pass before merge. The one change since the last review regenerates the native default Swift theme for the new secondary-text colour, which the theme generator's drift test needed, and an engineering owner's spec approval for INV14 and the new --color-text-secondary default stands at this head.
Nothing else is needed from you. Non-blocking: three of the touched dashboard templates score under 75 on the template rubric and three are over about 1,000 lines, none of it changed here.
Claims and files checked
Review mode: incremental; reason: none
Claims:
- Changeset: the light default becomes
#445564(was#4E606F) — verified,packages/core/src/theme/tokens.stylex.ts:41. - Changeset: secondary text on a gray Card or any palette tint meets 4.5:1 over the surface and the page body — verified in Chromium, every tint pair passes; the lowest is gray over the body at 4.52:1.
- Changeset: the dark value is unchanged — verified, the dark frames are pixel-identical.
- Changeset: a theme can keep the previous colour by setting
--color-text-secondarytolight-dark(#4E606F, #AAAFB5)— verified, a theme with that token resolves the old light and dark values. - Changeset: a patch fix for core and cli — verified, a visual-default correction is a patch fix; core ships the token and reset, cli the template and doc copies; the native package that also changes is not published.
- Before: 4.20:1 on the gray Card, 3.82:1 over the page body, red 4.29:1 over the body — verified in Chromium.
- The gray tint is near-black at 20% alpha and the darkest tint, and the old value had 4.70–5.58:1 on the other tints — verified over the surface.
- Switch's off track and the gray Token paint the same tint, and that tint is 1.55:1 against the surface — verified,
Switch.tsx:495,Token.tsx:274. - A lighter tint would weaken the Switch off-state cue — verified by construction: a lighter shared tint has less contrast against the surface.
#445564is the smallest darkening that passes, keeping hue and chroma and lowering L* by 4.4 — verified up to 8-bit rounding (the hue moves 2 degrees).- After: the worst light pair is gray over the body at 4.52:1, and the dark worst pair is 5.07:1 — verified.
- After: 4.96:1 on the gray Card at every width, and dark unchanged at about 6.3:1 — verified at 1280 px; dark is pixel-identical, and the stock dark gray tint measures 5.52:1 over the surface and 6.37:1 over the body.
- Colour-scale output already met the floor — verified, the colour-scale case passes on the base value too.
- Every literal copy of the value moves with it, and icon roles, tints and dark values do not change — verified; the old value remains only in the icon roles (web and Swift), their doc rows and the pinned Pages release build; the regenerated Swift theme also moves.
- The new contrast test fails on the old value at gray over the surface, 4.20 — verified by running it against the base value.
- The colour-scale test checks the same pairs for each representative config — verified from the test.
- Template sweep: no template moves inside the neutral theme and 54 of 58 move with Core defaults — not reproduced template by template; consistent with the neutral-theme and no-theme frames.
- The eight template edits change only the fallback literal, and the reset fallback matches the token — verified from the diff.
- No new public API, hidden default or interaction model — verified, one default value changes openly and no name or signature changes.
- The writing rubric results for the record — verified, the invariant is in the present tense with no history, change references or project status.
- The listed vitest suites pass — verified at this head for the theme suites; the component suites were verified at the previous head, and no file they read changed since.
- Chromium checks at 390, 375 and 1280 px in light and dark — stated; rechecked at 1280 px in light, dark and the neutral theme.
Files:
.changeset/secondary-text-on-palette-tints.md— clear (names the old and new colour and how to keep the old one)..github/pages/assets/manifest.json— clear (the hash matches the new file)..github/pages/assets/reset.css— clear (byte-equal to the package copy).docs/architecture/theme-tokens.md— clear (INV14 approved at this head).internal/eslint-plugin-astryx/README.md— clear.packages/cli/assets/docs/tree/tokens-color.doc.mjs— clear (matches its generator).packages/cli/assets/templates/pages/dashboard-alert-rail/page.tsx— clear for this change; existing rubric score under 75 and over 1,000 lines (non-blocking).packages/cli/assets/templates/pages/dashboard-cohort-funnel/page.tsx— clear.packages/cli/assets/templates/pages/dashboard-comparison/page.tsx— clear for this change; existing rubric score under 75 (non-blocking).packages/cli/assets/templates/pages/dashboard-composition/page.tsx— clear.packages/cli/assets/templates/pages/dashboard-progress/page.tsx— clear for this change; existing rubric score under 75 and over 1,000 lines (non-blocking).packages/cli/assets/templates/pages/dashboard-scorecard/page.tsx— clear.packages/cli/assets/templates/pages/dashboard/page.tsx— clear.packages/cli/assets/templates/pages/table-collapsible/page.tsx— clear for this change; over 1,000 lines (non-blocking).packages/core/src/reset.a11y.chromium.spec.ts— clear (expects the new placeholder colour).packages/core/src/reset.css— clear.packages/core/src/theme/contrast.test.ts— clear (fails on the base value, passes on the head).packages/core/src/theme/expandColorScale.test.ts— clear.packages/core/src/theme/tokens.stylex.ts— clear (the approved value).packages/native/apple/Sources/Astryx/Theme/Generated/DefaultTheme.swift— clear (matches its generator; the drift test passes).
7c70e00 to
7008dd3
Compare
|
/approve-spec 7008dd3 |
There was a problem hiding this comment.
Changes requested: one fix to the pull request description. The code, INV14 and the new --color-text-secondary default are approved at this head by an engineering owner.
Blocking findings:
- Regression: after the rebase onto the
#B0B5BBdark default, the description's "Dark mode is unchanged: its worst pair is already 5.07:1" and "Dark stays at 6.31:1" are no longer true, because this head measures 5.43:1 (yellow over the surface) and 5.90:1 for the gray Card over the surface (6.81:1 over the body), so please update those two figures.
Editing the description needs no new commit, so the spec approval for this head still stands. CI's test jobs have not run on this head yet. Non-blocking: three of the touched dashboard templates score under 75 on the template rubric and three are over about 1,000 lines; none of that changes here.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Changeset: the light default becomes
#445564(was#4E606F): verified,packages/core/src/theme/tokens.stylex.ts:45. - Changeset: secondary text on a gray Card or any palette tint meets 4.5:1 over the surface and the page body: verified by the new contrast test and in Chromium; the lowest pair is gray over the body at 4.52:1.
- Changeset: the dark value is unchanged: verified,
#B0B5BBon base and head, and the dark frames are pixel-identical. - Changeset: a theme keeps the previous light colour with
light-dark(#4E606F, #B0B5BB): verified, its dark half equals the current dark default. - Changeset: a patch fix for core and cli: verified, a visual default correction is a
[fix]; core ships the token and reset, cli the template and doc copies. - Before: 4.20:1 on the gray Card, 3.82:1 over the page body, red 4.29:1 over the body: verified in Chromium on the base.
- The gray tint is near-black at 20% alpha and the darkest tint, and the old value had 4.70 to 5.58:1 on the other tints: verified over the surface.
- Switch's off track and the gray Token paint the same tint, 1.55:1 against the surface: verified,
Switch.tsx:508,Token.tsx:274. #445564is the smallest darkening that passes, keeping hue and chroma and lowering L* by 4.4: verified up to 8-bit rounding.- After: the worst light pair is gray over the body at 4.52:1: verified.
- Dark mode's worst pair is already 5.07:1: false, 5.43:1 at this head.
- After: 4.96:1 on the gray Card at every width: verified at 1280 px.
- Dark stays at 6.31:1: false, 5.90:1 over the surface and 6.81:1 over the body.
- INV14 holds for colour-scale themes already (about 5.3:1 light, 5.1:1 dark): verified, lowest generated pairs 5.33:1 and 5.04:1, and the colour-scale case passes on the base.
- Every literal copy moves with the value; icon roles, tints and dark values do not change: verified from the diff and the token file.
- The new contrast test fails on the old value at gray over the surface, 4.20: verified by running it against the base.
- The colour-scale test checks the same pairs for each representative config: verified from the test.
- Template sweep: no template moves inside the neutral theme and 54 of 58 move with Core defaults: not reproduced template by template; consistent with the neutral-theme and no-theme frames.
- The eight template edits change only the fallback literal, and the reset fallback matches the token: verified from the diff.
- No new public API, hidden default or interaction model: verified, one default value changes openly and no name or signature changes.
- The writing rubric results for the record: verified, the invariant is in the present tense with no history, change references or project status.
- The listed vitest suites pass: verified at this head.
- Chromium checks at 390, 375 and 1280 px in light and dark: stated; rechecked at 1280 px in light, dark, the neutral theme and forced colours.
Files:
.changeset/secondary-text-on-palette-tints.md: clear..github/pages/assets/manifest.json: clear (the hash matches the new file)..github/pages/assets/reset.css: clear (byte-equal to the package copy).docs/architecture/theme-tokens.md: clear (INV14 approved at this head).internal/eslint-plugin-astryx/README.md: clear.packages/cli/assets/docs/tree/tokens-color.doc.mjs: clear (matches its generator).packages/cli/assets/templates/pages/dashboard-alert-rail/page.tsx: clear for this change; existing rubric score under 75 and over 1,000 lines (non-blocking).packages/cli/assets/templates/pages/dashboard-cohort-funnel/page.tsx: clear.packages/cli/assets/templates/pages/dashboard-comparison/page.tsx: clear for this change; existing rubric score under 75 (non-blocking).packages/cli/assets/templates/pages/dashboard-composition/page.tsx: clear.packages/cli/assets/templates/pages/dashboard-progress/page.tsx: clear for this change; existing rubric score under 75 and over 1,000 lines (non-blocking).packages/cli/assets/templates/pages/dashboard-scorecard/page.tsx: clear.packages/cli/assets/templates/pages/dashboard/page.tsx: clear.packages/cli/assets/templates/pages/table-collapsible/page.tsx: clear for this change; over 1,000 lines (non-blocking).packages/core/src/reset.a11y.chromium.spec.ts: clear (expects the new placeholder colour).packages/core/src/reset.css: clear.packages/core/src/theme/contrast.test.ts: clear (fails on the base value, passes on the head).packages/core/src/theme/expandColorScale.test.ts: clear.packages/core/src/theme/tokens.stylex.ts: clear (the approved value).packages/native/apple/Sources/Astryx/Theme/Generated/DefaultTheme.swift: clear (matches its generator).
|
/approve-spec f6835a5 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet (its commit is marked [skip ci]), and it has to pass before merge. The earlier request is resolved: the description's dark-mode figures now match this head, 5.43:1 for the worst pair and 5.90:1 for the gray Card over the surface. INV14 and the new --color-text-secondary default are approved for this head by an engineering owner. Non-blocking: three of the touched dashboard templates score under 75 on the template rubric and three are over about 1,000 lines; none of that changes here.
Claims and files checked
Review mode: incremental; reason: none
Claims:
- Changeset: secondary text now reads on every palette tint: verified, lowest light pair 4.52:1 (gray over the body) in Chromium and in the new contrast test.
- Changeset: the light default becomes
#445564(was#4E606F): verified,packages/core/src/theme/tokens.stylex.ts:45. - Changeset: secondary text on a gray Card or any tint meets 4.5:1 over the surface and the page body: verified,
contrast.test.tspasses at this head. - Changeset: the dark value is unchanged: verified,
#B0B5BBon base and head, and the dark frames are pixel-identical. - Changeset: a theme keeps the old light colour with
light-dark(#4E606F, #B0B5BB): verified, its dark half equals the current dark default. - Changeset: a patch fix for core and cli: verified, core ships the token and reset, cli the template and doc copies.
- Before: 4.20:1 on the gray Card, 3.82:1 over the page body, red 4.29:1 over the body: verified in Chromium on the base.
- The gray tint is near-black at 20% alpha and the darkest tint; the old value had 4.70 to 5.58:1 on the other tints: verified over the surface.
- Switch's off track and the gray Token paint the same tint, 1.55:1 against the surface, so a lighter tint would weaken that cue: verified,
Switch.tsx:508,Token.tsx:274. #445564is the smallest darkening that passes, keeping hue and chroma and lowering L* by 4.4: verified up to 8-bit rounding.- After: the worst light pair is gray over the body at 4.52:1, and 4.96:1 on the gray Card: verified; the ratio does not depend on width.
- Dark keeps
#B0B5BB; its worst pair is yellow over the surface at 5.43:1, and the gray Card is 5.90:1 over the surface (6.81:1 over the body): verified in Chromium. - INV14 holds for colour-scale themes already (about 5.3:1 light, 5.1:1 dark): verified, the colour-scale case passes; lowest generated pairs 5.33:1 and 5.04:1.
- Only the light value and its literal copies change; icon roles, tints and dark values do not: verified from the diff and the token file.
- Core has no light step between
#4E606Fand the primary text#0A1317: verified in the token file. - The new contrast test fails on the old value at gray over the surface (4.20) and covers every tint over the surface and the body in both modes: verified from the test and a red-first run.
- The colour-scale test checks the same pairs for each representative config: verified from the test, passing at this head.
- Template sweep: nothing moves inside the neutral theme, 54 of 58 templates move with Core defaults: verified in part, the 54 listed plus the four named are exactly the 58 page templates and the neutral-theme frames are identical; the per-template pixel comparison was not repeated.
- The eight template edits change only the fallback literal, and the reset fallback matches the token: verified, each template equals
mainapart from that literal. - No new public API, hidden default or interaction model: verified, one default value changes openly and no name or signature changes.
- Public text has no internal context, and the record follows the writing rubric: verified.
- The listed test suites pass: verified at this head.
- Chromium checks at 390, 375 and 1280 px in light and dark: stated; rechecked at 1280 px in light, dark and the neutral theme.
Files:
.changeset/secondary-text-on-palette-tints.md: clear..github/pages/assets/manifest.json: clear (the hash matches the new file)..github/pages/assets/reset.css: clear (byte-equal to the package copy).docs/architecture/theme-tokens.md: clear (INV14 approved for this head).internal/eslint-plugin-astryx/README.md: clear.packages/cli/assets/docs/tree/tokens-color.doc.mjs: clear (matches its generator).packages/cli/assets/templates/pages/dashboard-alert-rail/page.tsx: clear for this change; existing rubric score under 75 and over 1,000 lines (non-blocking).packages/cli/assets/templates/pages/dashboard-cohort-funnel/page.tsx: clear.packages/cli/assets/templates/pages/dashboard-comparison/page.tsx: clear for this change; existing rubric score under 75 (non-blocking).packages/cli/assets/templates/pages/dashboard-composition/page.tsx: clear.packages/cli/assets/templates/pages/dashboard-progress/page.tsx: clear for this change; existing rubric score under 75 and over 1,000 lines (non-blocking).packages/cli/assets/templates/pages/dashboard-scorecard/page.tsx: clear.packages/cli/assets/templates/pages/dashboard/page.tsx: clear.packages/cli/assets/templates/pages/table-collapsible/page.tsx: clear for this change; over 1,000 lines (non-blocking).packages/core/src/reset.a11y.chromium.spec.ts: clear (expects the new placeholder colour).packages/core/src/reset.css: clear.packages/core/src/theme/contrast.test.ts: clear (fails on the base value, passes on the head).packages/core/src/theme/expandColorScale.test.ts: clear.packages/core/src/theme/tokens.stylex.ts: clear (the approved value).packages/native/apple/Sources/Astryx/Theme/Generated/DefaultTheme.swift: clear (matches its generator).
- #12269 fix(core): secondary text meets 4.5:1 on the stock palette tints Author: @josephfarina
|
Landed in #12916. |
User impact
With Core's default tokens (no theme),
Text color="secondary"on aCard variant="gray"measured 4.20:1 in light mode, below the WCAG 1.4.3 floor of 4.5:1 for body text. Over the page body it is 3.82:1. Red tints over the body were also below the floor (4.29:1). Any page that puts secondary text on a palette tint hit this. A documentation-style hero card is one example.Problem and solution fit
--color-text-secondary(#4E606F) had only 4.70–5.58:1 on the other tints, and less on gray.#445564is the smallest darkening that passes. It keeps the hue and chroma and lowers L* by 4.4. The worst pair afterwards is gray over the body, at 4.52:1. This PR leaves the dark value as main has it (#B0B5BB); its worst pair is yellow over the surface, at 5.43:1.Expected behavior and authority
architecture:theme-tokensgains INV14: in Core's defaults and in every theme built from a colour scale,--color-text-secondarymeets 4.5:1 on each default--color-background-<hue>tint, over the default surface and the page body, in both modes. A hand-written theme's own values stay that theme's own. Colour-scale output already met this, because of the generator's tone spacing (about 5.3:1 light, 5.1:1 dark). This PR pins it.Smallest restoration
--color-text-secondaryintokens.stylex.ts.reset.cssfallback (and its pages copy), thevar(--color-text-secondary, …)fallbacks in eight page templates, the lint README example, and the generated color-token docs.--color-icon-secondary,--color-icon-gray, the tints, and the dark values do not change.Evidence
contrast.test.ts"secondary text on the stock palette tints" checks every tint over the surface and the body in both modes. With the old value it fails at--color-background-gray over --color-background-surface: 4.20.expandColorScale.test.tschecks the same pairs over generated surfaces for each representative colour-scale config.Template sweep
Every page template, built as an app at 1280 and 390 px in light mode, before and after, compared pixel for pixel. Dark mode does not change.
Theme(Neutral): 0 of 58 templates move. Themes set their own--color-text-secondary. One template, the table with filters, showed a difference at 1280 px. It comes from a live clock in its date column and is the same between two "before" captures.The eight template edits change only the literal fallback in
var(--color-text-secondary, …)to the new default. They are not visual changes in themselves.reset.css's fallback matches the new token.Why this value
Core keeps no palette step between
#4E606Fand the primary text colour#0A1317.#445564is the closest value to the old one that meets 4.5:1 on every tint. It keeps the same hue and chroma, one 4.4-point step down in L*.Scope
Components: theme tokens (Card, Text and every consumer of
--color-text-secondary)Writing rubric results
R1 narration: none; INV14 states the guarantee and how Core's light value is derived, in the present tense.
R2 research: none in the record; the measurements live in this description.
R3 evidence: the INV14 verification row names the two tests and what they resolve, not a change.
R4 rejected alternatives: none recorded.
R5 change references: none.
R6 open questions: none.
R7 project status: none.
Testing
vitest run packages/core/src/theme/contrast.test.ts packages/core/src/theme/expandColorScale.test.ts packages/core/src/theme/tokens.test.ts packages/core/src/Card packages/core/src/Switch packages/core/src/Token