OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 library theme_typography; | |
6 | |
7 // See http://www.google.com/design/spec/style/typography.html | 5 // See http://www.google.com/design/spec/style/typography.html |
8 | 6 |
9 const String _display4 = 'font-size: 112px; font-weight: 300'; | 7 const String _display4 = 'font-size: 112px; font-weight: 300'; |
10 const String _display3 = 'font-size: 56px; font-weight: 400'; | 8 const String _display3 = 'font-size: 56px; font-weight: 400'; |
11 const String _display2 = 'font-size: 45px; font-weight: 400'; | 9 const String _display2 = 'font-size: 45px; font-weight: 400'; |
12 const String _display1 = 'font-size: 34px; font-weight: 400'; | 10 const String _display1 = 'font-size: 34px; font-weight: 400'; |
13 const String _headline = 'font-size: 24px; font-weight: 400'; | 11 const String _headline = 'font-size: 24px; font-weight: 400'; |
14 const String _title = 'font-size: 20px; font-weight: 500'; | 12 const String _title = 'font-size: 20px; font-weight: 500'; |
15 const String _subhead = 'font-size: 16px; font-weight: 400'; | 13 const String _subhead = 'font-size: 16px; font-weight: 400'; |
16 const String _body2 = 'font-size: 14px; font-weight: 500'; | 14 const String _body2 = 'font-size: 14px; font-weight: 500'; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 final String caption = 'color: #8A8A8A; ${_caption}'; // 54% | 47 final String caption = 'color: #8A8A8A; ${_caption}'; // 54% |
50 final String button = 'color: #DEDEDE; ${_button}'; // 87% | 48 final String button = 'color: #DEDEDE; ${_button}'; // 87% |
51 | 49 |
52 const _White(); | 50 const _White(); |
53 } | 51 } |
54 | 52 |
55 const _White white = const _White(); | 53 const _White white = const _White(); |
56 | 54 |
57 // TODO(abarth): Maybe this should be hard-coded in Scaffold? | 55 // TODO(abarth): Maybe this should be hard-coded in Scaffold? |
58 const String typeface = 'font-family: sans-serif'; | 56 const String typeface = 'font-family: sans-serif'; |
OLD | NEW |