パッケージ、リポジトリ、アプリカテゴリを検索

material_color_utilities のカバー
パッケージ詳細v0.13.1

material_color_utilities

Material Design 3 カラーシステムを支えるアルゴリズムおよびユーティリティで、画像からテーマカラーを選択し、色のトーンを作成する機能を含みます。すべてが新しいカラースペースで実現されています。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1160万
いいね数
282
Pub ポイント
150

パッケージをインストール

flutter pub add material_color_utilities

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Material Design 3 のカラーシステムのコアアルゴリズムを実装する Dart パッケージで、画像からダイナミックなテーマを生成し、正確なカラートーンを作成できます。より正確で視覚的に一貫した結果を得るために、新しい知覚色空間で動作します。このパッケージは、カラーハーモニー、コントラスト最適化、入力画像に基づくテーマカスタマイズなどの高度な機能をサポートしており、プラットフォーム間でアクセシビリティと美的品質を確保しています。

用途

  • 画像の背景からテーマを生成する
  • アクセシブルなカラーパレットの作成
  • UIカラー設定の自動化
  • 応答性のあるアプリテーマの設計
  • ダイナミックテーマの実装
  • 視覚的一貫性の向上

主な機能

  • 正確な表現のための知覚色空間
  • 画像ベースの色抽出
  • 明/暗バリアントを伴うトーン生成
  • アクセシビリティ対応のコントラスト調整
  • Material Design 3仕様のサポート
  • クロスプラットフォーム互換性

適している対象

  • UIデザイナーがMaterial Design 3を実装しています
  • ダイナミックなテーマシステムを構築する開発者
  • 自動的なカラースキーム生成を必要とするアプリ
  • アクセシビリティと視覚的な調和に焦点を当てたプロジェクト
  • マルチプラットフォームアプリにFlutterを使用するチーム

注意事項

  • Material Design 3の原則を理解する必要があります
  • 複雑な画像入力には追加の処理が必要になる場合があります
  • 最適な結果を得るために、デザインガイドラインと併用してください
  • カラーシステム論理に限定される—UIコンポーネントなし
  • 汎用的な色の操作を目的としていない

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Material Color Utilities

Color is a foundational part of the Material Design system, alongside typography and shape. In products, color can communicate brand, reinforce meaning through semantic roles, and improve usability through accessible contrast.

Historically, teams hand-picked many colors to cover all UI use cases. In Material 3, dynamic color shifts

Library availability

Language Availability Location
C++ ✅
Dart ✅ pub package
Java ✅ MDC-Android
Swift ✅
TypeScript ✅ npm package
Kotlin ✅

Need another platform/language? Check the existing issues or open a new one.

Capabilities Overview

library components cheat sheet

The library consists of various components, each having its own folder and tests, designed to be as self-contained as possible. This enables seamless integration of subsets into other libraries, like Material Design Components and Android System UI. Some consumers do not require all components, for example, MDC doesn’t need quantization, scoring, image extraction.

Components Purpose
blend Interpolate, harmonize, animate, and gradate colors in HCT
contrast Measure contrast, obtain contrastful colors
dislike Check and fix universally disliked colors
dynamiccolor Obtain colors that adjust based on UI state (dark theme, style, preferences, contrast requirements, etc.)
hct A new color space (hue, chrome, tone) based on CAM16 x L*, that accounts for viewing conditions
palettes Tonal palette — range of colors that varies only in tone
Core palette — set of tonal palettes needed to create Material color schemes
quantize Turn an image into N colors; composed of Celebi, which runs Wu, then WSMeans
scheme Create static and dynamic color schemes from a single color or a core palette
score Rank colors for suitability for theming
temperature Obtain analogous and complementary colors
utilities Color — convert between color spaces needed to implement HCT/CAM16
Math — functions for ex. ensuring hue is between 0 and 360, clamping, etc.
String - convert between strings and integers

Learn about color science

The Science of Color & Design - Material Design

Try it out

Material Theme Builder

We recommend incorporating the Material Theme Builder Figma plugin and web tool into the design workflow. With them, designers can easily experiment with different dynamic color themes and see how they transform their designs with just a few clicks.

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト