| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A multi-platform build tool that generates platform-specific theme code from W3C Design Tokens. Transform JSON token files into type-safe code for Flutter, iOS, and Android with support for light/dark modes, server-side overrides, and lightning fast const lookup maps.
This monorepo contains platform-specific design_builder packages - code generation tools for theming that:
| Package | Description | Version | Status |
|---|---|---|---|
| design_builder_flutter | Build runner for generating Flutter ThemeExtension | 1.0.1 | ✅ Available |
| design_builder_ios | Swift code generation for iOS | - | 🚧 Planned |
| design_builder_android | Kotlin code generation for Android | - | 🚧 Planned |
Add design_builder to your pubspec.yaml:
dependencies:
flutter:
sdk: flutter
dev_dependencies:
build_runner: ^2.4.13
design_builder: ^1.0.1Note: iOS and Android native packages coming soon.
targets:
$default:
builders:
design_builder|design_builder:
enabled: true
options:
spec_path: "lib/schema/theme-spec.schema.json"
input_glob: "lib/**.tokens.json"
output_path: "design_tokens"
output_file_name: "app_theme"
class_name: "AppTheme"Create JSON token files following the W3C Design Tokens format:
{
"$schemaVersion": "3.0",
"light": {
"$variables": {
"color": {
"brand": {
"primary": "#1A1A2E"
}
}
},
"color": {
"brand": {
"primary": {
"$type": "color",
"$value": "$color.brand.primary"
}
}
}
},
"dark": {
"$variables": {
"color": {
"brand": {
"primary": "#2D3A8C"
}
}
}
}
}dart run build_runner buildvoid main() {
runApp(
AppThemeProvider(
notifier: AppThemeNotifier(initialMode: AppThemeMode.light),
child: MyApp(),
),
);
}
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = context.theme;
return Container(
color: theme.colors.brand.primary,
child: Text('Hello', style: theme.typography.body.large),
);
}
}Our documentation is built with Starlight and includes:
# Install dependencies (first time only)
make docs-install
# Start development server
make docs-devWe welcome contributions! Please see our Contributing Guide for details.
MIT License - see LICENSE for details.
Copyright (c) khode-io 2026
| Back | FazBrowse Home | New Git URL |