This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Rui Miguel Alonso <[email protected]>
- Loading branch information
Showing
11 changed files
with
133 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,42 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
/// Defines the color palette for the VertexAI UI. | ||
abstract class VertexColors { | ||
/// Navy Color Swatch | ||
static const Color navy = Color(0xff020f30); | ||
/// flutterNavy Color Swatch | ||
static const Color flutterNavy = Color(0xff042a59); | ||
|
||
/// Fluter Navy Color Swatch | ||
static const Color flutterNavy = Color(0xff042A59); | ||
/// flutterBlue Color Swatch | ||
static const Color flutterBlue = Color(0xff0553b1); | ||
|
||
/// Google Blue Color Swatch | ||
/// googleBlue Color Swatch | ||
static const Color googleBlue = Color(0xff3089f1); | ||
|
||
/// Flutter Cyan Color Swatch | ||
static const Color flutterCyan = Color(0xff00e3ff); | ||
/// flutterCyan Color Swatch | ||
static const Color flutterCyan = Color(0xff0ecbfd); | ||
|
||
/// Lilac Color Swatch | ||
/// lilac Color Swatch | ||
static const Color lilac = Color(0xffdde2f6); | ||
|
||
/// Deep Arctic Color Swatch | ||
/// deepArctic Color Swatch | ||
static const Color deepArctic = Color(0xfff3f6ff); | ||
|
||
/// Arctic Color Swatch | ||
/// arctic Color Swatch | ||
static const Color arctic = Color(0xfffafbff); | ||
|
||
/// Medium Grey Color Swatch | ||
/// mediumGrey Color Swatch | ||
static const Color mediumGrey = Color(0xff919191); | ||
|
||
/// Light Grey Color Swatch | ||
/// lightGrey Color Swatch | ||
static const Color lightGrey = Color(0xffe2e2e2); | ||
|
||
/// White Color Swatch | ||
/// white Color Swatch | ||
static const Color white = Color(0xffffffff); | ||
|
||
/// gradient Color Swatch | ||
static const List<Color> gradient = <Color>[ | ||
Color(0xff3089f1), | ||
Color(0xff3089f1), | ||
Color(0xff0ecbfd), | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 79 additions & 35 deletions
114
packages/app_ui/lib/src/typography/vertex_text_styles.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,82 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
/// {@template vertex_text_styles} | ||
/// App Text Style Definitions | ||
/// {@endtemplate} | ||
class VertexTextStyles { | ||
/// {@macro vertex_text_styles} | ||
static TextStyle get _baseTextStyle => const TextStyle( | ||
fontWeight: FontWeight.w400, | ||
package: 'app_ui', | ||
fontFamily: 'GoogleSans', | ||
color: Colors.black, | ||
); | ||
|
||
/// Title Style | ||
static TextStyle get display => _baseTextStyle.copyWith( | ||
fontSize: 72, | ||
fontWeight: FontWeight.bold, | ||
height: 1.11, | ||
letterSpacing: -2, | ||
); | ||
|
||
/// Button Style | ||
static TextStyle get body => _baseTextStyle.copyWith( | ||
fontSize: 18, | ||
height: 1.3, | ||
letterSpacing: -0.5, | ||
); | ||
|
||
/// Label Style | ||
static TextStyle get label => _baseTextStyle.copyWith( | ||
fontSize: 14, | ||
fontWeight: FontWeight.bold, | ||
height: 1.7, | ||
letterSpacing: 2, | ||
); | ||
//// {@macro vertex_text_styles} | ||
abstract class VertexTextStyles { | ||
/// displayLarge Text Style | ||
static const TextStyle displayLarge = TextStyle( | ||
fontSize: 72, | ||
fontWeight: FontWeight.w700, | ||
height: 1.11, | ||
letterSpacing: -2, | ||
fontFamily: 'Google Sans', | ||
); | ||
|
||
/// displayMedium Text Style | ||
static const TextStyle displayMedium = TextStyle( | ||
fontSize: 48, | ||
fontWeight: FontWeight.w700, | ||
height: 1.17, | ||
letterSpacing: -1, | ||
fontFamily: 'Google Sans', | ||
); | ||
|
||
/// displaySmall Text Style | ||
static const TextStyle displaySmall = TextStyle( | ||
fontSize: 32, | ||
fontWeight: FontWeight.w500, | ||
height: 1.25, | ||
letterSpacing: -1, | ||
fontFamily: 'Google Sans', | ||
); | ||
|
||
/// headline Text Style | ||
static const TextStyle headline = TextStyle( | ||
fontSize: 32, | ||
fontWeight: FontWeight.w400, | ||
height: 1.5, | ||
letterSpacing: -1, | ||
fontFamily: 'Google Sans', | ||
); | ||
|
||
/// bodyLargeBold Text Style | ||
static const TextStyle bodyLargeBold = TextStyle( | ||
fontSize: 18, | ||
fontWeight: FontWeight.w700, | ||
height: 1.56, | ||
fontFamily: 'Google Sans', | ||
); | ||
|
||
/// bodyLargeMedium Text Style | ||
static const TextStyle bodyLargeMedium = TextStyle( | ||
fontSize: 18, | ||
fontWeight: FontWeight.w500, | ||
height: 1.56, | ||
fontFamily: 'Google Sans', | ||
); | ||
|
||
/// bodyLargeRegular Text Style | ||
static const TextStyle bodyLargeRegular = TextStyle( | ||
fontSize: 18, | ||
fontWeight: FontWeight.w400, | ||
height: 1.56, | ||
fontFamily: 'Google Sans', | ||
); | ||
|
||
/// buttons&CTA's Text Style | ||
static const TextStyle cta = TextStyle( | ||
fontSize: 18, | ||
fontWeight: FontWeight.w500, | ||
height: 1.33, | ||
letterSpacing: -0.5, | ||
fontFamily: 'Google Sans', | ||
); | ||
|
||
/// labelLarge Text Style | ||
static const TextStyle labelLarge = TextStyle( | ||
fontSize: 14, | ||
fontWeight: FontWeight.w700, | ||
height: 1.71, | ||
letterSpacing: 2, | ||
fontFamily: 'Google Sans', | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
packages/app_ui/test/src/typography/vertex_text_styles_test.dart
This file was deleted.
Oops, something went wrong.