github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/ui/styl/base/typography.styl (about) 1 // Copyright 2019 The Cockroach Authors. 2 // 3 // Use of this software is governed by the Business Source License 4 // included in the file licenses/BSL.txt. 5 // 6 // As of the Change Date specified in that file, in accordance with 7 // the Business Source License, use of this software will be governed 8 // by the Apache License, Version 2.0, included in the file 9 // licenses/APL.txt. 10 11 @require 'utils/fonts.styl' 12 @require "~src/components/core/index.styl" 13 14 // Using the same strategy as sassline: establish the root size (rems) as 1/2 15 // of our chosen baseline height. This allows easy, integer math for baseline units 16 // using rems. 17 html 18 font-size $font-size--medium 19 20 body 21 line-height $line-height--small 22 font-size $font-base-size 23 font-family Lato-Regular 24 font-weight $font-weight--light 25 26 h1.base-heading 27 font-size 24px 28 font-family SourceSansPro-Regular 29 30 h2.base-heading 31 padding 12px 0 32 font-size 24px 33 font-family SourceSansPro-Regular 34 35 code 36 font-family $font-family--monospace 37 38 font-face('Lato-Light') 39 font-face('Lato-Bold') 40 font-face('Lato-Regular') 41 font-face('Lato-Medium') 42 font-face('RobotoMono-Bold') 43 font-face('RobotoMono-Regular') 44 font-face('RobotoMono-Medium') 45 font-face('Inconsolata-Regular') 46 font-face('SourceSansPro-Bold') 47 font-face('SourceSansPro-Regular') 48 font-face('SourceSansPro-SemiBold') 49 font-face('SFMono-Semibold')