Instructure UI

repository·master·Indexed 19 days ago

https://github.com/instructure/instructure-ui

An open-source React-based UI framework and design system by Instructure Inc. used for large-scale applications like Canvas LMS. It includes a comprehensive set of packages for theming (canvas-theme, canvas-high-contrast-theme), accessibility utilities (@instructure/ui-a11y-content), and development tools such as a Babel plugin for import transformation and a shared Browserslist configuration.

Tokens
397.2K
Snippets
1.2K
Records
1.6K
Agent score
65%

What's inside instructure-ui

  1. Overview of @instructure/ui-i18n components and utilities

    master

    The @instructure/ui-i18n package provides helper components and utilities designed for internationalization (i18n) tasks.

    Components

    • ApplyLocale: A component used to apply locale settings.

    Utilities

    • bidirectional: Handles bidirectional text directionality.
    • DateTime: Utilities for date and time formatting and manipulation.
    • Decimal: Utilities for decimal number formatting.
    • Locale: Utilities for managing and interacting with locale data.
  2. Use @instructure/ui-color-picker components

    master

    The @instructure/ui-color-picker package provides several specialized components for color manipulation and accessibility:

    • ColorPicker: The primary component, featuring an input field that can be customized for various input requirements.
    • ColorIndicator: A visual component that displays a color within a circle featuring a checkerboard background.
    • ColorMixer: A tool for adjusting colors by setting hue, saturation, luminance, and alpha, or by manually entering an rgba color.
    • ColorPreset: Allows users to select from a collection of predefined colors. The list of presets can be dynamically modified (added or removed) by the user.
    • ColorContrast: A utility component that calculates, visualizes, and validates the contrast ratio between two colors against WCAG 2.1 standards.