feat(base.css): add ruby element styles and typography demo#730
feat(base.css): add ruby element styles and typography demo#730huyenltnguyen merged 5 commits intomainfrom
Conversation
Co-authored-by: huyenltnguyen <25715018+huyenltnguyen@users.noreply.github.com>
|
@copilot Please help create a Storybook demo for typography also. You can create a |
Co-authored-by: huyenltnguyen <25715018+huyenltnguyen@users.noreply.github.com>
Created the Typography Storybook demo at Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: huyenltnguyen <25715018+huyenltnguyen@users.noreply.github.com>

Adds CSS styles for HTML ruby elements to support Japanese furigana annotations. Styles ported from freeCodeCamp main application's global stylesheet.
Changes
Ruby styles in
base.css:p:has(ruby), li:has(> ruby): Adds vertical padding to improve readability when ruby elements are presentruby: Sets base font size for ruby containersrt: Sets smaller font size for ruby text (pronunciation guides)Typography Storybook demo: Created comprehensive typography showcase under "Design System/Typography" that demonstrates how
base.cssapplies styles to all text elements including headings, paragraphs, links, lists, code blocks, blockquotes, form elements, and ruby annotations.Implementation
Uses
remunits for proportional scaling with root font size, consistent with the source styles from freeCodeCamp/freeCodeCamp.Storybook Demo
The Typography demo is available at
src/typography/typography.stories.tsxand showcases all base.css typography styles in an interactive format.Original prompt
rubystyles to the base stylesheet #729💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.