carp_themes_package 0.2.0 copy "carp_themes_package: ^0.2.0" to clipboard
carp_themes_package: ^0.2.0 copied to clipboard

The CARP Themes package is a package that contains themes, colors and widgets that are used across the entire CARP platform.

CARP Themes Package #

pub package

The single source of truth for the CARP design system. It exposes one ThemeDatacarpTheme — with a full ColorScheme, TextTheme and component themes (buttons, cards, app bar), so widgets read their style from Theme.of(context) instead of hard-coding colors or text styles.

Install #

dependencies:
  carp_themes_package: ^0.2.0

Usage #

Pass carpTheme to your MaterialApp and use theme roles in widgets:

import 'package:flutter/material.dart';
import 'package:carp_themes_package/carp_themes_package.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: carpTheme,
      home: Scaffold(
        appBar: AppBar(title: const Text('CARP')),
        body: Center(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: [
              // Reads size/weight/color from the theme.
              Text('Welcome', style: Theme.of(context).textTheme.titleLarge),
              const SizedBox(height: 16),
              // Pill-shaped, brand-colored — no per-widget styling needed.
              FilledButton(onPressed: () {}, child: const Text('Continue')),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
150
points
607
downloads

Documentation

API reference

Publisher

verified publishercarp.dk

Weekly Downloads

The CARP Themes package is a package that contains themes, colors and widgets that are used across the entire CARP platform.

Repository (GitHub)
View/report issues

License

(pending) (license)

Dependencies

flutter

More

Packages that depend on carp_themes_package