CssBaseline Component Test

Global CSS Baseline Control

Toggle the global CssBaseline component to see its effects on the entire page.

Typography Comparison

Compare typography with and without baseline styles.

Without Baseline Styles

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This is a paragraph with bold text and italic text.

This is a link

  • List item 1
  • List item 2
  • List item 3

With Scoped Baseline

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This is a paragraph with bold text and italic text.

This is a link

  • List item 1
  • List item 2
  • List item 3

Form Elements

Compare form element styling with and without baseline normalization.

Without Baseline

Contact Form



With Scoped Baseline

Contact Form



Code and Preformatted Text

Compare code styling with baseline normalization.

Without Baseline

Inline code: const x = 42;

function example() {
  return 'Hello World';
}

Keyboard: Ctrl + C

With Scoped Baseline

Inline code: const x = 42;

function example() {
  return 'Hello World';
}

Keyboard: Ctrl + C

Color Scheme Support

Test automatic dark/light mode adaptation.

Default (No Color Scheme)

This content uses default colors and won't adapt to system preferences.

Sample link

With Color Scheme Support

This content will adapt to your system's light/dark mode preference.

Sample link

Note: To test color scheme adaptation, change your system's dark/light mode setting or use browser developer tools to simulate different color schemes.

Focus and Accessibility

Test focus indicators and accessibility features.

Focus Test Area

Tab through these elements to see consistent focus indicators:

Link

Focus indicators are automatically styled and respect user preferences for reduced motion.

Multiple Scoped Areas

Test multiple ScopedCssBaseline components on the same page.

Scoped Area 1

This is the first scoped baseline area.

  • Item A
  • Item B

Scoped Area 2

This is the second scoped baseline area with color scheme support.

  • Item X
  • Item Y