Skip to content

Commit

Permalink
Fix review issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kawaijoe committed Apr 15, 2024
1 parent 0340e53 commit 585142f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
34 changes: 17 additions & 17 deletions forui/lib/src/theme/style/zinc_style.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,38 @@ import 'package:forui/forui.dart';
/// Zinc style of [FThemeData].
///
/// The zinc style is based on [shadcn/ui](https://ui.shadcn.com/themes).
extension FZincStyle on Never {
extension FZincThemeData on Never {
// TODO: Manually verify fields. Currently generated with a LLM.

/// The light theme of [FZincStyle].
/// The light theme of [FZincThemeData].
static FThemeData light = FThemeData(
background: const Color(0xFFFFFFFF),
foreground: const Color(0xFF191919),
primary: const Color(0xFF191F26),
foreground: const Color(0xFF09090B),
primary: const Color(0xFF18181B),
primaryForeground: const Color(0xFFFAFAFA),
secondary: const Color(0xFFE6E6E6),
secondaryForeground: const Color(0xFF191F26),
muted: const Color(0xFFE6E6E6),
mutedForeground: const Color(0xFF757575),
destructive: const Color(0xFFD62828),
secondary: const Color(0xFFF4F4F5),
secondaryForeground: const Color(0xFF18181B),
muted: const Color(0xFFF4F4F5),
mutedForeground: const Color(0xFF71717A),
destructive: const Color(0xFFEF4444),
destructiveForeground: const Color(0xFFFAFAFA),
border: const Color(0xFF191F26),
border: const Color(0xFFE4E4E7),
borderRadius: BorderRadius.circular(8),
);

/// The dark theme of [FZincStyle].
/// The dark theme of [FZincThemeData].
static FThemeData dark = FThemeData(
background: const Color(0xFF191919),
background: const Color(0xFF09090B),
foreground: const Color(0xFFFAFAFA),
primary: const Color(0xFFFAFAFA),
primaryForeground: const Color(0xFF191F26),
secondary: const Color(0xFF282828),
primaryForeground: const Color(0xFF18181B),
secondary: const Color(0xFF27272A),
secondaryForeground: const Color(0xFFFAFAFA),
muted: const Color(0xFF282828),
mutedForeground: const Color(0xFFA6A6A6),
muted: const Color(0xFF27272A),
mutedForeground: const Color(0xFFA1A1AA),
destructive: const Color(0xFF7F1D1D),
destructiveForeground: const Color(0xFFFAFAFA),
border: const Color(0xFF282828),
border: const Color(0xFF27272A),
borderRadius: BorderRadius.circular(8),
);
}
2 changes: 1 addition & 1 deletion forui/lib/src/theme/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class FTheme extends StatefulWidget {
/// Retrieves the theme data.
static FThemeData of(BuildContext context) {
final theme = context.dependOnInheritedWidgetOfExactType<_InheritedTheme>();
return theme?.data ?? FZincStyle.light;
return theme?.data ?? FZincThemeData.light;
}

/// The theme data.
Expand Down
2 changes: 1 addition & 1 deletion samples/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Application extends StatelessWidget {

@override
Widget build(BuildContext context) => FTheme(
data: FZincStyle.light,
data: FZincThemeData.light,
child: Container(),
);
}

0 comments on commit 585142f

Please sign in to comment.