{
    "url": "https://delaparra-services.nl/skills/flutter-design-system",
    "locale": "en",
    "title": "Flutter Design System | DeLaParra Services",
    "description": "Use when creating or extending a Flutter design system package - design tokens, type scale, spacing, colour palette, or a new reusable component built from Figma tokens. Triggers on a request for a component shared across apps, or for visual standardisation.",
    "alternates": {
        "en": "https://delaparra-services.nl/skills/flutter-design-system",
        "nl": "https://delaparra-services.nl/nl/skills/flutter-design-system"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/skills/flutter-design-system.csv",
        "md": "https://delaparra-services.nl/skills/flutter-design-system.md",
        "json": "https://delaparra-services.nl/skills/flutter-design-system.json",
        "zip": "https://delaparra-services.nl/skills/flutter-design-system.zip",
        "pdf": "https://delaparra-services.nl/skills/flutter-design-system.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/skills/flutter-design-system.csv",
            "encodingFormat": "text/csv",
            "name": "flutter-design-system.csv"
        },
        {
            "url": "https://delaparra-services.nl/skills/flutter-design-system.json",
            "encodingFormat": "application/json",
            "name": "flutter-design-system.json"
        },
        {
            "url": "https://delaparra-services.nl/skills/flutter-design-system.md",
            "encodingFormat": "text/markdown",
            "name": "flutter-design-system.md"
        },
        {
            "url": "https://delaparra-services.nl/skills/flutter-design-system.pdf",
            "encodingFormat": "application/pdf",
            "name": "flutter-design-system.pdf"
        },
        {
            "url": "https://delaparra-services.nl/skills/flutter-design-system.zip",
            "encodingFormat": "application/zip",
            "name": "flutter-design-system.zip"
        },
        {
            "url": "https://delaparra-services.nl/skills/flutter-design-system/download",
            "encodingFormat": "application/zip",
            "name": "flutter-design-system-files.zip"
        }
    ],
    "markdown": "# Flutter Design System\n\n \n\nUse when creating or extending a Flutter design system package - design tokens, type scale, spacing, colour palette, or a new reusable component built from Figma tokens. Triggers on a request for a component shared across apps, or for visual standardisation.\n\n \n\n**Licence** MIT\n\n \n\n**Source** gabuldev/flutter-skills\n\n [Download zip](<https://delaparra-services.nl/skills/flutter-design-system/download>)   \n\nYou are working on a Flutter design system package - a ` design_system/ ` package at the monorepo root, depended on by every app.\n\n \n\n## When argument is \"setup\" or empty\n\n \n\nScaffold the complete design system package structure:\n\n \n\n### Package Structure\n\n \n\n```\ndesign_system/\n├── pubspec.yaml\n└── lib/\n    ├── design_system.dart              ← Barrel export file\n    └── src/\n        ├── tokens/\n        │   ├── ds_colors.dart          ← All brand colors\n        │   ├── ds_typography.dart      ← TextStyle definitions\n        │   ├── ds_spacing.dart         ← Spacing constants\n        │   ├── ds_radius.dart          ← Border radius constants\n        │   └── ds_shadows.dart         ← BoxShadow constants\n        ├── theme/\n        │   └── ds_theme.dart           ← ThemeData factory\n        └── components/\n            ├── buttons/\n            │   └── ds_button.dart\n            ├── inputs/\n            │   └── ds_text_field.dart\n            └── typography/\n                └── ds_text.dart\n```\n\n \n\n### Design Tokens Pattern (mapped from Figma tokens)\n\n \n\n**ds\\_colors.dart:**\n\n \n\n```\nabstract final class DSColors {\n  // Neutral\n  static const Color neutral0   = Color(0xFFFFFFFF);\n  static const Color neutral100 = Color(0xFFF5F5F5);\n  static const Color neutral200 = Color(0xFFE5E5E5);\n  static const Color neutral500 = Color(0xFF737373);\n  static const Color neutral900 = Color(0xFF181D27);\n\n  // Brand / Primary\n  static const Color brandPrimary   = Color(0xFF7839EE);\n  static const Color brandSecondary = Color(0xFF5B21B6);\n\n  // Semantic\n  static const Color success = Color(0xFF16A34A);\n  static const Color warning = Color(0xFFF59E0B);\n  static const Color error   = Color(0xFFDC2626);\n  static const Color info    = Color(0xFF2563EB);\n\n  // Text (semantic aliases)\n  static const Color textPrimary   = neutral900;\n  static const Color textSecondary = neutral500;\n  static const Color textInverse   = neutral0;\n}\n```\n\n \n\n**ds\\_spacing.dart:**\n\n \n\n```\nabstract final class DSSpacing {\n  static const double xs  = 4.0;\n  static const double sm  = 8.0;\n  static const double md  = 12.0;\n  static const double lg  = 16.0;\n  static const double xl  = 24.0;\n  static const double xxl = 32.0;\n  static const double xxxl = 48.0;\n}\n```\n\n \n\n**ds\\_radius.dart:**\n\n \n\n```\nabstract final class DSRadius {\n  static const double xs  = 4.0;\n  static const double sm  = 6.0;\n  static const double md  = 8.0;\n  static const double lg  = 12.0;\n  static const double xl  = 16.0;\n  static const double full = 999.0;\n\n  static BorderRadius get xsBorderRadius => BorderRadius.circular(xs);\n  static BorderRadius get smBorderRadius => BorderRadius.circular(sm);\n  static BorderRadius get mdBorderRadius => BorderRadius.circular(md);\n  static BorderRadius get lgBorderRadius => BorderRadius.circular(lg);\n}\n```\n\n \n\n**ds\\_typography.dart:**\n\n \n\n```\nimport 'package:flutter/material.dart';\nimport '../tokens/ds_colors.dart';\n\nabstract final class DSTypography {\n  static const String _fontFamily = 'Roboto';\n\n  // Headings\n  static const TextStyle headingH4 = TextStyle(\n    fontFamily: _fontFamily,\n    fontSize: 28,\n    fontWeight: FontWeight.w700,\n    color: DSColors.textPrimary,\n    height: 1.25,\n  );\n\n  static const TextStyle headingH5 = TextStyle(\n    fontFamily: _fontFamily,\n    fontSize: 22,\n    fontWeight: FontWeight.w600,\n    color: DSColors.textPrimary,\n    height: 1.3,\n  );\n\n  static const TextStyle headingH6 = TextStyle(\n    fontFamily: _fontFamily,\n    fontSize: 18,\n    fontWeight: FontWeight.w600,\n    color: DSColors.textPrimary,\n    height: 1.4,\n  );\n\n  // Body\n  static const TextStyle body16Regular = TextStyle(\n    fontFamily: _fontFamily,\n    fontSize: 16,\n    fontWeight: FontWeight.w400,\n    color: DSColors.textPrimary,\n    height: 1.5,\n  );\n\n  static const TextStyle body14Regular = TextStyle(\n    fontFamily: _fontFamily,\n    fontSize: 14,\n    fontWeight: FontWeight.w400,\n    color: DSColors.textPrimary,\n    height: 1.5,\n  );\n\n  static const TextStyle body14Medium = TextStyle(\n    fontFamily: _fontFamily,\n    fontSize: 14,\n    fontWeight: FontWeight.w500,\n    color: DSColors.textPrimary,\n    height: 1.5,\n  );\n\n  static const TextStyle body12Regular = TextStyle(\n    fontFamily: _fontFamily,\n    fontSize: 12,\n    fontWeight: FontWeight.w400,\n    color: DSColors.textSecondary,\n    height: 1.5,\n  );\n\n  // Labels / Captions\n  static const TextStyle label = TextStyle(\n    fontFamily: _fontFamily,\n    fontSize: 12,\n    fontWeight: FontWeight.w600,\n    letterSpacing: 0.4,\n    color: DSColors.textSecondary,\n  );\n\n  static const TextStyle caption = TextStyle(\n    fontFamily: _fontFamily,\n    fontSize: 11,\n    fontWeight: FontWeight.w400,\n    color: DSColors.textSecondary,\n  );\n\n  // Price (domain-specific)\n  static const TextStyle price = TextStyle(\n    fontFamily: _fontFamily,\n    fontSize: 16,\n    fontWeight: FontWeight.w700,\n    color: DSColors.brandPrimary,\n  );\n}\n```\n\n \n\n**ds\\_theme.dart:**\n\n \n\n```\nimport 'package:flutter/material.dart';\nimport '../tokens/ds_colors.dart';\nimport '../tokens/ds_typography.dart';\nimport '../tokens/ds_radius.dart';\n\nclass DSTheme {\n  static ThemeData light() => ThemeData(\n    useMaterial3: true,\n    fontFamily: 'Roboto',\n    colorScheme: ColorScheme.fromSeed(\n      seedColor: DSColors.brandPrimary,\n      brightness: Brightness.light,\n    ),\n    textTheme: const TextTheme(\n      headlineMedium: DSTypography.headingH5,\n      titleLarge:     DSTypography.headingH6,\n      bodyLarge:      DSTypography.body16Regular,\n      bodyMedium:     DSTypography.body14Regular,\n      bodySmall:      DSTypography.body12Regular,\n      labelSmall:     DSTypography.label,\n    ),\n    filledButtonTheme: FilledButtonThemeData(\n      style: FilledButton.styleFrom(\n        backgroundColor: DSColors.brandPrimary,\n        foregroundColor: DSColors.neutral0,\n        shape: RoundedRectangleBorder(\n          borderRadius: DSRadius.mdBorderRadius,\n        ),\n        minimumSize: const Size(double.infinity, 48),\n      ),\n    ),\n    inputDecorationTheme: InputDecorationTheme(\n      border: OutlineInputBorder(borderRadius: DSRadius.mdBorderRadius),\n      contentPadding: const EdgeInsets.symmetric(\n        horizontal: 16,\n        vertical: 12,\n      ),\n    ),\n  );\n}\n```\n\n \n\n**Barrel file (lib/design\\_system.dart):**\n\n \n\n```\nexport 'src/tokens/ds_colors.dart';\nexport 'src/tokens/ds_typography.dart';\nexport 'src/tokens/ds_spacing.dart';\nexport 'src/tokens/ds_radius.dart';\nexport 'src/tokens/ds_shadows.dart';\nexport 'src/theme/ds_theme.dart';\nexport 'src/components/buttons/ds_button.dart';\nexport 'src/components/inputs/ds_text_field.dart';\nexport 'src/components/typography/ds_text.dart';\n```\n\n \n\n## When argument is a component name\n\n \n\nCreate a new component in the appropriate ` components/ ` subfolder.\n\n \n\n**Component pattern (e.g., DSButton):**\n\n \n\n```\nimport 'package:flutter/material.dart';\nimport '../../tokens/ds_colors.dart';\nimport '../../tokens/ds_spacing.dart';\nimport '../../tokens/ds_radius.dart';\n\nenum DSButtonVariant { filled, outlined, ghost }\n\nclass DSButton extends StatelessWidget {\n  final String label;\n  final VoidCallback? onPressed;\n  final DSButtonVariant variant;\n  final bool isLoading;\n  final IconData? icon;\n\n  const DSButton({\n    super.key,\n    required this.label,\n    required this.onPressed,\n    this.variant = DSButtonVariant.filled,\n    this.isLoading = false,\n    this.icon,\n  });\n\n  @override\n  Widget build(BuildContext context) {\n    final child = isLoading\n        ? const SizedBox(\n            width: 20,\n            height: 20,\n            child: CircularProgressIndicator(strokeWidth: 2),\n          )\n        : Row(\n            mainAxisSize: MainAxisSize.min,\n            children: [\n              if (icon != null) ...[\n                Icon(icon, size: 18),\n                const SizedBox(width: DSSpacing.sm),\n              ],\n              Text(label),\n            ],\n          );\n\n    return switch (variant) {\n      DSButtonVariant.filled => FilledButton(\n          onPressed: isLoading ? null : onPressed,\n          child: child,\n        ),\n      DSButtonVariant.outlined => OutlinedButton(\n          onPressed: isLoading ? null : onPressed,\n          child: child,\n        ),\n      DSButtonVariant.ghost => TextButton(\n          onPressed: isLoading ? null : onPressed,\n          child: child,\n        ),\n    };\n  }\n}\n```\n\n \n\n## Instructions\n\n \n\n1. Read the existing ` design_system/ ` package first if it exists \n1. Never duplicate tokens that already exist — extend or update them \n1. All token classes use ` abstract final class ` (cannot instantiate) \n1. All token values are ` static const ` \n1. Component names are prefixed with ` DS ` (e.g., ` DSButton `, ` DSTextField `) \n1. Export every new public symbol from the barrel file \n1. Add the ` design_system ` dependency to any package that needs it in its ` pubspec.yaml ` \n1. Do NOT use ` flutter_screenutil ` in the design system package itself — keep it framework-agnostic\n\n \n\n## Files\n\n \n\n- ` LICENSE ` \n- ` SKILL.md ` \n- ` SOURCE.md `\n\n \n\n## Related terms\n\n \n\n- [Flutter Design Systems](<https://delaparra-services.nl/knowledge-hub/flutter-design-systems>)\n\n \n\n## Related services\n\n \n\n- [App development](<https://delaparra-services.nl/services#service-02>)\n\n \n\n[Installing an agent skill in Claude Code, Codex, Cursor and Copilot](<https://delaparra-services.nl/manuals/een-skill-installeren-in-je-ai-assistent>)\n\n[HTML version](https://delaparra-services.nl/skills/flutter-design-system)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "WebPage",
                "@id": "https://delaparra-services.nl/skills/flutter-design-system#webpage",
                "url": "https://delaparra-services.nl/skills/flutter-design-system",
                "name": "Flutter Design System | DeLaParra Services",
                "description": "Use when creating or extending a Flutter design system package - design tokens, type scale, spacing, colour palette, or a new reusable component built from Figma tokens. Triggers on a request for a component shared across apps, or for visual standardisation.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/skills/flutter-design-system#breadcrumb"
                }
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/skills/flutter-design-system#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Flutter Design System"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "SoftwareSourceCode",
                "@id": "https://delaparra-services.nl/skills/flutter-design-system#skill",
                "url": "https://delaparra-services.nl/skills/flutter-design-system",
                "name": "Flutter Design System",
                "description": "Use when creating or extending a Flutter design system package - design tokens, type scale, spacing, colour palette, or a new reusable component built from Figma tokens. Triggers on a request for a component shared across apps, or for visual standardisation.",
                "inLanguage": "en",
                "license": "https://spdx.org/licenses/MIT.html",
                "subjectOf": {
                    "@id": "https://delaparra-services.nl/skills/flutter-design-system#dataset"
                }
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/skills/flutter-design-system#dataset",
                "name": "Flutter Design System",
                "description": "Use when creating or extending a Flutter design system package - design tokens, type scale, spacing, colour palette, or a new reusable component built from Figma tokens. Triggers on a request for a component shared across apps, or for visual standardisation.",
                "url": "https://delaparra-services.nl/skills/flutter-design-system",
                "identifier": "https://delaparra-services.nl/skills/flutter-design-system#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/skills/flutter-design-system#skill"
                },
                "creditText": "gabuldev/flutter-skills",
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://spdx.org/licenses/MIT.html",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "dateModified": "2026-11-30T13:17:19+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#skills",
                    "name": "Skills for AI coding assistants",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "flutter-design-system.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/skills/flutter-design-system.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-30T13:17:19+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "flutter-design-system.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/skills/flutter-design-system.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-30T13:17:19+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "flutter-design-system.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/skills/flutter-design-system.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-30T13:17:19+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "flutter-design-system.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/skills/flutter-design-system.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-30T13:17:19+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "flutter-design-system.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/skills/flutter-design-system.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-30T13:17:19+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "flutter-design-system-files.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/skills/flutter-design-system/download",
                        "inLanguage": "en",
                        "dateModified": "2026-11-30T13:17:19+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    }
                ]
            }
        ]
    }
}