candi_colors 0.0.19 copy "candi_colors: ^0.0.19" to clipboard
candi_colors: ^0.0.19 copied to clipboard

A Flutter color palette inspired by Scandinavian design principles. Hygge (warmth) and Lagom (balance).

Candi Colors for Flutter #

A Dart package providing Scandinavian design system colors for Flutter applications.

Features #

  • OKLCH-First: Colors defined using native OKLCH values for uniform design.
  • Dynamic Themes: Predefined light and dark mode palettes.
  • Zero Runtime Overhead: OKLCH to sRGB conversion occurs at build-time.
  • Compatibility: Supports all platforms (iOS, Android, Web, etc.).

Installation #

Add to pubspec.yaml:

dependencies:
  candi_colors:
    git:
      url: https://github.com/wtasg/candi.git
      path: flutter

Usage #

import 'package:candi_colors/candi.dart';

final theme = CandiColors.light;

Widget build(BuildContext context) {
  return Container(
    color: theme.bg,
    child: Text(
      'Hygge Style',
      style: TextStyle(color: theme.text),
    ),
  );
}

The CandiColor Class #

CandiColor extends Flutter's Color and includes OKLCH metadata.

final accent = CandiColors.light.accent;
print(accent.lightness); // 0.52
print(accent.chroma);    // 0.06
print(accent.hue);       // 230.0

Development #

  1. Update Changelog.md with changes
  2. Run flutter pub publish --dry-run to validate changes
  3. Run flutter pub publish to publish to pub.dev

License #

MIT License - See LICENSE for details.

0
likes
0
points
182
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter color palette inspired by Scandinavian design principles. Hygge (warmth) and Lagom (balance).

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on candi_colors