Skip to content
pubscout

random_color_scheme

0.1.6, released 5 days ago by an unverified publisher

Generates random light and dark Material Design color schemes respecting WCAG guidelines.

WASM-readyUses material_ui
$ flutter pub add random_color_scheme
Source repository

What it does

Generates random light and dark Material Design color schemes based on HSLuv and WCAG accessibility standards. It prints the generated theme in the terminal so developers can copy the code for their apps.

AI-written summary of version 0.1.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to quickly prototype or explore different color combinations for a Material app
  • You need automatically generated themes that guarantee WCAG contrast compliance

Skip it when

  • You require a strict, predefined corporate brand color palette
  • You need complete manual control over every exact color shade in production

Strengths

  • Guarantees minimum accessibility thresholds using HSLuv
  • Prints generated color values to the terminal for easy copying
  • Supports seeding for reproducible random color schemes

Weaknesses

  • Color generation is random, which may not fit specific design requirements
  • Limited to random variations rather than exact palette curation

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

not documented

import 'package:random_colorscheme/random_color_scheme.dart';

Theme(
  data: ThemeData(
    colorScheme: randomColorSchemeDark(),
  ),
  child: MyApp(),
)

Alternatives

Packages that do the same job and could replace random_color_scheme.

  • flex_seed_scheme

    If you want advanced seed-based color generation for Material 3 rather than random generation.

Works with

Packages commonly used together with random_color_scheme: ones it builds on, ones built on it, and its own family.