@atb-as/theme 3.2.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -19
- package/package.json +3 -3
- package/lib/colors.d.ts +0 -76
- package/lib/colors.js +0 -84
- package/lib/colors.js.map +0 -1
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -17
- package/lib/index.js.map +0 -1
- package/lib/sizes.d.ts +0 -22
- package/lib/sizes.js +0 -25
- package/lib/sizes.js.map +0 -1
- package/lib/theme.css +0 -429
- package/lib/theme.d.ts +0 -119
- package/lib/theme.js +0 -197
- package/lib/theme.js.map +0 -1
- package/lib/theme.module.css +0 -429
- package/lib/typography/android.d.ts +0 -3
- package/lib/typography/android.js +0 -59
- package/lib/typography/android.js.map +0 -1
- package/lib/typography/index.d.ts +0 -63
- package/lib/typography/index.js +0 -94
- package/lib/typography/index.js.map +0 -1
- package/lib/typography/ios.d.ts +0 -3
- package/lib/typography/ios.js +0 -58
- package/lib/typography/ios.js.map +0 -1
- package/lib/typography/types.d.ts +0 -20
- package/lib/typography/types.js +0 -18
- package/lib/typography/types.js.map +0 -1
- package/lib/typography.css +0 -156
- package/lib/typography.module.css +0 -156
- package/lib/utils/override-config.d.ts +0 -8
- package/lib/utils/override-config.js +0 -38
- package/lib/utils/override-config.js.map +0 -1
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.androidTextTypeStyles = exports.androidFontData = void 0;
|
|
15
|
-
var primaryBase = {
|
|
16
|
-
fontSize: 16,
|
|
17
|
-
lineHeight: 20,
|
|
18
|
-
letterSpacing: 0.5,
|
|
19
|
-
};
|
|
20
|
-
var secondaryBase = {
|
|
21
|
-
fontSize: 14,
|
|
22
|
-
lineHeight: 20,
|
|
23
|
-
letterSpacing: 0.25,
|
|
24
|
-
};
|
|
25
|
-
var tertiaryBase = {
|
|
26
|
-
fontSize: 12,
|
|
27
|
-
lineHeight: 16,
|
|
28
|
-
letterSpacing: 0.4,
|
|
29
|
-
};
|
|
30
|
-
exports.androidFontData = {
|
|
31
|
-
main: {
|
|
32
|
-
url: 'https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap',
|
|
33
|
-
fontFamily: "'Roboto', sans-serif",
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
exports.androidTextTypeStyles = {
|
|
37
|
-
body__primary: primaryBase,
|
|
38
|
-
'body__primary--bold': __assign(__assign({}, primaryBase), { fontWeight: '500' }),
|
|
39
|
-
'body__primary--underline': __assign(__assign({}, primaryBase), { textDecorationLine: 'underline' }),
|
|
40
|
-
'body__primary--jumbo': {
|
|
41
|
-
fontSize: 36,
|
|
42
|
-
lineHeight: 40,
|
|
43
|
-
letterSpacing: 0.25,
|
|
44
|
-
},
|
|
45
|
-
'body__primary--jumbo--bold': {
|
|
46
|
-
fontSize: 36,
|
|
47
|
-
lineHeight: 40,
|
|
48
|
-
letterSpacing: 0.25,
|
|
49
|
-
fontWeight: 'bold'
|
|
50
|
-
},
|
|
51
|
-
body__secondary: secondaryBase,
|
|
52
|
-
'body__secondary--bold': __assign(__assign({}, secondaryBase), { fontWeight: '500' }),
|
|
53
|
-
body__tertiary: tertiaryBase,
|
|
54
|
-
'body__tertiary--strike': __assign(__assign({}, tertiaryBase), { textDecorationLine: 'line-through' }),
|
|
55
|
-
heading__title: __assign(__assign({}, primaryBase), { fontWeight: 'bold' }),
|
|
56
|
-
heading__component: __assign(__assign({}, primaryBase), { fontWeight: '500' }),
|
|
57
|
-
heading__paragraph: __assign(__assign({}, primaryBase), { fontWeight: '500' }),
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=android.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"android.js","sourceRoot":"","sources":["../../src/typography/android.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,IAAM,WAAW,GAAc;IAC7B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AACF,IAAM,aAAa,GAAc;IAC/B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,IAAI;CACpB,CAAC;AACF,IAAM,YAAY,GAAc;IAC9B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AAEW,QAAA,eAAe,GAAa;IACvC,IAAI,EAAE;QACJ,GAAG,EACD,+EAA+E;QACjF,UAAU,EAAE,sBAAsB;KACnC;CACF,CAAC;AAEW,QAAA,qBAAqB,GAAmB;IACnD,aAAa,EAAE,WAAW;IAC1B,qBAAqB,wBAChB,WAAW,KACd,UAAU,EAAE,KAAK,GAClB;IACD,0BAA0B,wBACrB,WAAW,KACd,kBAAkB,EAAE,WAAW,GAChC;IACD,sBAAsB,EAAE;QACtB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAI;KACpB;IACD,4BAA4B,EAAE;QAC5B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,MAAM;KACnB;IACD,eAAe,EAAE,aAAa;IAC9B,uBAAuB,wBAClB,aAAa,KAChB,UAAU,EAAE,KAAK,GAClB;IACD,cAAc,EAAE,YAAY;IAC5B,wBAAwB,wBACnB,YAAY,KACf,kBAAkB,EAAE,cAAc,GACnC;IACD,cAAc,wBACT,WAAW,KACd,UAAU,EAAE,MAAM,GACnB;IACD,kBAAkB,wBACb,WAAW,KACd,UAAU,EAAE,KAAK,GAClB;IACD,kBAAkB,wBACb,WAAW,KACd,UAAU,EAAE,KAAK,GAClB;CACF,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { TextTypeStyles } from '.';
|
|
2
|
-
import { ConfigurationOverride } from '../utils/override-config';
|
|
3
|
-
declare type _MappedPlatforms = 'ios' | 'android';
|
|
4
|
-
declare type PlatformTypes = _MappedPlatforms | 'web';
|
|
5
|
-
export * from './types';
|
|
6
|
-
export declare const textTypeStyles: {
|
|
7
|
-
android: TextTypeStyles;
|
|
8
|
-
ios: TextTypeStyles;
|
|
9
|
-
};
|
|
10
|
-
export declare const fonts: {
|
|
11
|
-
android: import("./types").FontBook;
|
|
12
|
-
ios: import("./types").FontBook;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Get fonts for platform. Web should use Android as platform.
|
|
16
|
-
*
|
|
17
|
-
* @param overrides - Properties to override base config with
|
|
18
|
-
* @returns text type styles
|
|
19
|
-
*/
|
|
20
|
-
export declare function getFontBook(type: PlatformTypes): import("./types").FontBook;
|
|
21
|
-
/**
|
|
22
|
-
* Create new text type style with optinally overriden defaults.
|
|
23
|
-
*
|
|
24
|
-
* @example extending nested features
|
|
25
|
-
* ```ts
|
|
26
|
-
* createTextTypeStyles({
|
|
27
|
-
* paragraphHeadline: {
|
|
28
|
-
* fontWeight: Platform.select({ios: '600', android: 'bold'})
|
|
29
|
-
* }
|
|
30
|
-
* })
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @param type - What platform to fetch text styles from (Android, iOS, Web)
|
|
34
|
-
* @param overrides - Properties to override base config with
|
|
35
|
-
* @returns text type styles
|
|
36
|
-
*/
|
|
37
|
-
export declare function createTextTypeStyles(type: PlatformTypes, overrides?: ConfigurationOverride<TextTypeStyles>): TextTypeStyles;
|
|
38
|
-
/**
|
|
39
|
-
* Use text type style as base and extend with new properties. Properties
|
|
40
|
-
* can be nested and will be deep merged.
|
|
41
|
-
*
|
|
42
|
-
* @example extending nested features
|
|
43
|
-
* ```ts
|
|
44
|
-
* type Foo = {
|
|
45
|
-
* paragraphHeadline: {
|
|
46
|
-
* additional: boolean;
|
|
47
|
-
* };
|
|
48
|
-
* };
|
|
49
|
-
* const foo = extendTextTypeStyles<Foo>({
|
|
50
|
-
* paragraphHeadline: {
|
|
51
|
-
* additional: true,
|
|
52
|
-
* },
|
|
53
|
-
* });
|
|
54
|
-
*
|
|
55
|
-
* console.log(foo.paragraphHeadline.additional);
|
|
56
|
-
* //=> (property) additional: boolean
|
|
57
|
-
* ```
|
|
58
|
-
*
|
|
59
|
-
* @param type - What platform to fetch text styles from (Android, iOS, Web)
|
|
60
|
-
* @param extension - Object to extend original text type style. Can be nested with same keys as style
|
|
61
|
-
* @returns new deep merged intersection
|
|
62
|
-
*/
|
|
63
|
-
export declare function extendTextTypeStyles<T>(type: PlatformTypes, extension: T): ((k: TextTypeStyles) => void) | (T extends any ? (k: T) => void : never) extends (k: infer I) => void ? I : never;
|
package/lib/typography/index.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
-
};
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.extendTextTypeStyles = exports.createTextTypeStyles = exports.getFontBook = exports.fonts = exports.textTypeStyles = void 0;
|
|
17
|
-
var ts_deepmerge_1 = __importDefault(require("ts-deepmerge"));
|
|
18
|
-
var override_config_1 = require("../utils/override-config");
|
|
19
|
-
var android_1 = require("./android");
|
|
20
|
-
var ios_1 = require("./ios");
|
|
21
|
-
var mapType = function (a) {
|
|
22
|
-
return a === 'ios' ? 'ios' : 'android';
|
|
23
|
-
};
|
|
24
|
-
__exportStar(require("./types"), exports);
|
|
25
|
-
exports.textTypeStyles = {
|
|
26
|
-
android: android_1.androidTextTypeStyles,
|
|
27
|
-
ios: ios_1.iosTextTypeStyles,
|
|
28
|
-
};
|
|
29
|
-
exports.fonts = {
|
|
30
|
-
android: android_1.androidFontData,
|
|
31
|
-
ios: ios_1.iosFontData,
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Get fonts for platform. Web should use Android as platform.
|
|
35
|
-
*
|
|
36
|
-
* @param overrides - Properties to override base config with
|
|
37
|
-
* @returns text type styles
|
|
38
|
-
*/
|
|
39
|
-
function getFontBook(type) {
|
|
40
|
-
return exports.fonts[mapType(type)];
|
|
41
|
-
}
|
|
42
|
-
exports.getFontBook = getFontBook;
|
|
43
|
-
/**
|
|
44
|
-
* Create new text type style with optinally overriden defaults.
|
|
45
|
-
*
|
|
46
|
-
* @example extending nested features
|
|
47
|
-
* ```ts
|
|
48
|
-
* createTextTypeStyles({
|
|
49
|
-
* paragraphHeadline: {
|
|
50
|
-
* fontWeight: Platform.select({ios: '600', android: 'bold'})
|
|
51
|
-
* }
|
|
52
|
-
* })
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* @param type - What platform to fetch text styles from (Android, iOS, Web)
|
|
56
|
-
* @param overrides - Properties to override base config with
|
|
57
|
-
* @returns text type styles
|
|
58
|
-
*/
|
|
59
|
-
function createTextTypeStyles(type, overrides) {
|
|
60
|
-
if (!overrides)
|
|
61
|
-
return exports.textTypeStyles[mapType(type)];
|
|
62
|
-
return override_config_1.overrideConfig(exports.textTypeStyles[mapType(type)], overrides);
|
|
63
|
-
}
|
|
64
|
-
exports.createTextTypeStyles = createTextTypeStyles;
|
|
65
|
-
/**
|
|
66
|
-
* Use text type style as base and extend with new properties. Properties
|
|
67
|
-
* can be nested and will be deep merged.
|
|
68
|
-
*
|
|
69
|
-
* @example extending nested features
|
|
70
|
-
* ```ts
|
|
71
|
-
* type Foo = {
|
|
72
|
-
* paragraphHeadline: {
|
|
73
|
-
* additional: boolean;
|
|
74
|
-
* };
|
|
75
|
-
* };
|
|
76
|
-
* const foo = extendTextTypeStyles<Foo>({
|
|
77
|
-
* paragraphHeadline: {
|
|
78
|
-
* additional: true,
|
|
79
|
-
* },
|
|
80
|
-
* });
|
|
81
|
-
*
|
|
82
|
-
* console.log(foo.paragraphHeadline.additional);
|
|
83
|
-
* //=> (property) additional: boolean
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* @param type - What platform to fetch text styles from (Android, iOS, Web)
|
|
87
|
-
* @param extension - Object to extend original text type style. Can be nested with same keys as style
|
|
88
|
-
* @returns new deep merged intersection
|
|
89
|
-
*/
|
|
90
|
-
function extendTextTypeStyles(type, extension) {
|
|
91
|
-
return ts_deepmerge_1.default(exports.textTypeStyles[mapType(type)], extension);
|
|
92
|
-
}
|
|
93
|
-
exports.extendTextTypeStyles = extendTextTypeStyles;
|
|
94
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/typography/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAAiC;AAEjC,4DAA+E;AAE/E,qCAAiE;AACjE,6BAAqD;AAIrD,IAAM,OAAO,GAAG,UAAC,CAAgB;IAC/B,OAAA,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;AAA/B,CAA+B,CAAC;AAElC,0CAAwB;AAEX,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,+BAAqB;IAC9B,GAAG,EAAE,uBAAiB;CACvB,CAAC;AAEW,QAAA,KAAK,GAAG;IACnB,OAAO,EAAE,yBAAe;IACxB,GAAG,EAAE,iBAAW;CACjB,CAAC;AAEF;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,IAAmB;IAC7C,OAAO,aAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9B,CAAC;AAFD,kCAEC;AAED;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,oBAAoB,CAClC,IAAmB,EACnB,SAAiD;IAEjD,IAAI,CAAC,SAAS;QAAE,OAAO,sBAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACrD,OAAO,gCAAc,CAAC,sBAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAClE,CAAC;AAND,oDAMC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,oBAAoB,CAAI,IAAmB,EAAE,SAAY;IACvE,OAAO,sBAAK,CAAC,sBAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AACzD,CAAC;AAFD,oDAEC"}
|
package/lib/typography/ios.d.ts
DELETED
package/lib/typography/ios.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.iosTextTypeStyles = exports.iosFontData = void 0;
|
|
15
|
-
var primaryBase = {
|
|
16
|
-
fontSize: 16,
|
|
17
|
-
lineHeight: 20,
|
|
18
|
-
letterSpacing: -0.31,
|
|
19
|
-
};
|
|
20
|
-
var secondaryBase = {
|
|
21
|
-
fontSize: 14,
|
|
22
|
-
lineHeight: 20,
|
|
23
|
-
letterSpacing: -0.15,
|
|
24
|
-
};
|
|
25
|
-
var tertiaryBase = {
|
|
26
|
-
fontSize: 12,
|
|
27
|
-
lineHeight: 16,
|
|
28
|
-
letterSpacing: 0,
|
|
29
|
-
};
|
|
30
|
-
exports.iosFontData = {
|
|
31
|
-
main: {
|
|
32
|
-
fontFamily: "'SF Pro Text', -apple-system, BlinkMacSystemFont",
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
exports.iosTextTypeStyles = {
|
|
36
|
-
body__primary: primaryBase,
|
|
37
|
-
'body__primary--bold': __assign(__assign({}, primaryBase), { fontWeight: '600' }),
|
|
38
|
-
'body__primary--underline': __assign(__assign({}, primaryBase), { textDecorationLine: 'underline' }),
|
|
39
|
-
'body__primary--jumbo': {
|
|
40
|
-
fontSize: 36,
|
|
41
|
-
lineHeight: 40,
|
|
42
|
-
letterSpacing: 0.41,
|
|
43
|
-
},
|
|
44
|
-
'body__primary--jumbo--bold': {
|
|
45
|
-
fontSize: 36,
|
|
46
|
-
lineHeight: 40,
|
|
47
|
-
letterSpacing: 0.41,
|
|
48
|
-
fontWeight: 'bold'
|
|
49
|
-
},
|
|
50
|
-
body__secondary: secondaryBase,
|
|
51
|
-
'body__secondary--bold': __assign(__assign({}, secondaryBase), { fontWeight: '600' }),
|
|
52
|
-
body__tertiary: tertiaryBase,
|
|
53
|
-
'body__tertiary--strike': __assign(__assign({}, tertiaryBase), { textDecorationLine: 'line-through' }),
|
|
54
|
-
heading__title: __assign(__assign({}, primaryBase), { fontWeight: 'bold' }),
|
|
55
|
-
heading__component: __assign(__assign({}, primaryBase), { fontWeight: '600' }),
|
|
56
|
-
heading__paragraph: __assign(__assign({}, primaryBase), { fontWeight: '600' }),
|
|
57
|
-
};
|
|
58
|
-
//# sourceMappingURL=ios.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ios.js","sourceRoot":"","sources":["../../src/typography/ios.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,IAAM,WAAW,GAAc;IAC7B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,CAAC,IAAI;CACrB,CAAC;AACF,IAAM,aAAa,GAAc;IAC/B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,CAAC,IAAI;CACrB,CAAC;AACF,IAAM,YAAY,GAAc;IAC9B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,CAAC;CACjB,CAAC;AAEW,QAAA,WAAW,GAAa;IACnC,IAAI,EAAE;QACJ,UAAU,EAAE,kDAAkD;KAC/D;CACF,CAAC;AAEW,QAAA,iBAAiB,GAAmB;IAC/C,aAAa,EAAE,WAAW;IAC1B,qBAAqB,wBAChB,WAAW,KACd,UAAU,EAAE,KAAK,GAClB;IACD,0BAA0B,wBACrB,WAAW,KACd,kBAAkB,EAAE,WAAW,GAChC;IACD,sBAAsB,EAAE;QACtB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAI;KACpB;IACD,4BAA4B,EAAE;QAC5B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,MAAM;KACnB;IACD,eAAe,EAAE,aAAa;IAC9B,uBAAuB,wBAClB,aAAa,KAChB,UAAU,EAAE,KAAK,GAClB;IACD,cAAc,EAAE,YAAY;IAC5B,wBAAwB,wBACnB,YAAY,KACf,kBAAkB,EAAE,cAAc,GACnC;IACD,cAAc,wBACT,WAAW,KACd,UAAU,EAAE,MAAM,GACnB;IACD,kBAAkB,wBACb,WAAW,KACd,UAAU,EAAE,KAAK,GAClB;IACD,kBAAkB,wBACb,WAAW,KACd,UAAU,EAAE,KAAK,GAClB;CACF,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const textNames: readonly ["body__primary", "body__primary--bold", "body__primary--underline", "body__primary--jumbo", "body__primary--jumbo--bold", "body__secondary", "body__secondary--bold", "body__tertiary", "body__tertiary--strike", "heading__title", "heading__component", "heading__paragraph"];
|
|
2
|
-
export declare type FontMetadata = {
|
|
3
|
-
url?: string;
|
|
4
|
-
fontFamily: string;
|
|
5
|
-
};
|
|
6
|
-
export declare type FontBook = {
|
|
7
|
-
main: FontMetadata;
|
|
8
|
-
[fontName: string]: FontMetadata;
|
|
9
|
-
};
|
|
10
|
-
export declare type TextNames = typeof textNames[number];
|
|
11
|
-
export declare type TextStyle = {
|
|
12
|
-
fontSize: number;
|
|
13
|
-
letterSpacing: number;
|
|
14
|
-
lineHeight: number;
|
|
15
|
-
textDecorationLine?: 'none' | 'underline' | 'line-through' | 'underline line-through';
|
|
16
|
-
fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
17
|
-
};
|
|
18
|
-
export declare type TextTypeStyles = {
|
|
19
|
-
[key in TextNames]: TextStyle;
|
|
20
|
-
};
|
package/lib/typography/types.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.textNames = void 0;
|
|
4
|
-
exports.textNames = [
|
|
5
|
-
'body__primary',
|
|
6
|
-
'body__primary--bold',
|
|
7
|
-
'body__primary--underline',
|
|
8
|
-
'body__primary--jumbo',
|
|
9
|
-
'body__primary--jumbo--bold',
|
|
10
|
-
'body__secondary',
|
|
11
|
-
'body__secondary--bold',
|
|
12
|
-
'body__tertiary',
|
|
13
|
-
'body__tertiary--strike',
|
|
14
|
-
'heading__title',
|
|
15
|
-
'heading__component',
|
|
16
|
-
'heading__paragraph',
|
|
17
|
-
];
|
|
18
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/typography/types.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,eAAe;IACf,qBAAqB;IACrB,0BAA0B;IAC1B,sBAAsB;IACtB,4BAA4B;IAC5B,iBAAiB;IACjB,uBAAuB;IACvB,gBAAgB;IAChB,wBAAwB;IACxB,gBAAgB;IAChB,oBAAoB;IACpB,oBAAoB;CACZ,CAAC"}
|
package/lib/typography.css
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* Require included fonts. Fetched from URLs and not locally
|
|
3
|
-
to leverage better CDN caching. */
|
|
4
|
-
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
|
|
5
|
-
|
|
6
|
-
/* Base Typgraphy Custom Properties */
|
|
7
|
-
:root {
|
|
8
|
-
/* Definitions for body__primary */
|
|
9
|
-
--baseTypo-body__primary-fontSize: 1rem;
|
|
10
|
-
--baseTypo-body__primary-lineHeight: 1.25rem;
|
|
11
|
-
--baseTypo-body__primary-letterSpacing: 0.03125rem;
|
|
12
|
-
|
|
13
|
-
/* Definitions for body__primary--bold */
|
|
14
|
-
--baseTypo-body__primary--bold-fontSize: 1rem;
|
|
15
|
-
--baseTypo-body__primary--bold-lineHeight: 1.25rem;
|
|
16
|
-
--baseTypo-body__primary--bold-letterSpacing: 0.03125rem;
|
|
17
|
-
--baseTypo-body__primary--bold-fontWeight: 500;
|
|
18
|
-
|
|
19
|
-
/* Definitions for body__primary--underline */
|
|
20
|
-
--baseTypo-body__primary--underline-fontSize: 1rem;
|
|
21
|
-
--baseTypo-body__primary--underline-lineHeight: 1.25rem;
|
|
22
|
-
--baseTypo-body__primary--underline-letterSpacing: 0.03125rem;
|
|
23
|
-
--baseTypo-body__primary--underline-textDecorationLine: underline;
|
|
24
|
-
|
|
25
|
-
/* Definitions for body__primary--jumbo */
|
|
26
|
-
--baseTypo-body__primary--jumbo-fontSize: 2.25rem;
|
|
27
|
-
--baseTypo-body__primary--jumbo-lineHeight: 2.5rem;
|
|
28
|
-
--baseTypo-body__primary--jumbo-letterSpacing: 0.015625rem;
|
|
29
|
-
|
|
30
|
-
/* Definitions for body__primary--jumbo--bold */
|
|
31
|
-
--baseTypo-body__primary--jumbo--bold-fontSize: 2.25rem;
|
|
32
|
-
--baseTypo-body__primary--jumbo--bold-lineHeight: 2.5rem;
|
|
33
|
-
--baseTypo-body__primary--jumbo--bold-letterSpacing: 0.015625rem;
|
|
34
|
-
--baseTypo-body__primary--jumbo--bold-fontWeight: bold;
|
|
35
|
-
|
|
36
|
-
/* Definitions for body__secondary */
|
|
37
|
-
--baseTypo-body__secondary-fontSize: 0.875rem;
|
|
38
|
-
--baseTypo-body__secondary-lineHeight: 1.25rem;
|
|
39
|
-
--baseTypo-body__secondary-letterSpacing: 0.015625rem;
|
|
40
|
-
|
|
41
|
-
/* Definitions for body__secondary--bold */
|
|
42
|
-
--baseTypo-body__secondary--bold-fontSize: 0.875rem;
|
|
43
|
-
--baseTypo-body__secondary--bold-lineHeight: 1.25rem;
|
|
44
|
-
--baseTypo-body__secondary--bold-letterSpacing: 0.015625rem;
|
|
45
|
-
--baseTypo-body__secondary--bold-fontWeight: 500;
|
|
46
|
-
|
|
47
|
-
/* Definitions for body__tertiary */
|
|
48
|
-
--baseTypo-body__tertiary-fontSize: 0.75rem;
|
|
49
|
-
--baseTypo-body__tertiary-lineHeight: 1rem;
|
|
50
|
-
--baseTypo-body__tertiary-letterSpacing: 0.025rem;
|
|
51
|
-
|
|
52
|
-
/* Definitions for body__tertiary--strike */
|
|
53
|
-
--baseTypo-body__tertiary--strike-fontSize: 0.75rem;
|
|
54
|
-
--baseTypo-body__tertiary--strike-lineHeight: 1rem;
|
|
55
|
-
--baseTypo-body__tertiary--strike-letterSpacing: 0.025rem;
|
|
56
|
-
--baseTypo-body__tertiary--strike-textDecorationLine: line-through;
|
|
57
|
-
|
|
58
|
-
/* Definitions for heading__title */
|
|
59
|
-
--baseTypo-heading__title-fontSize: 1rem;
|
|
60
|
-
--baseTypo-heading__title-lineHeight: 1.25rem;
|
|
61
|
-
--baseTypo-heading__title-letterSpacing: 0.03125rem;
|
|
62
|
-
--baseTypo-heading__title-fontWeight: bold;
|
|
63
|
-
|
|
64
|
-
/* Definitions for heading__component */
|
|
65
|
-
--baseTypo-heading__component-fontSize: 1rem;
|
|
66
|
-
--baseTypo-heading__component-lineHeight: 1.25rem;
|
|
67
|
-
--baseTypo-heading__component-letterSpacing: 0.03125rem;
|
|
68
|
-
--baseTypo-heading__component-fontWeight: 500;
|
|
69
|
-
|
|
70
|
-
/* Definitions for heading__paragraph */
|
|
71
|
-
--baseTypo-heading__paragraph-fontSize: 1rem;
|
|
72
|
-
--baseTypo-heading__paragraph-lineHeight: 1.25rem;
|
|
73
|
-
--baseTypo-heading__paragraph-letterSpacing: 0.03125rem;
|
|
74
|
-
--baseTypo-heading__paragraph-fontWeight: 500;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
/* Included font types */
|
|
78
|
-
--font-main: 'Roboto', sans-serif;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/* Main setup, base size and main font */
|
|
82
|
-
html {
|
|
83
|
-
font-family: var(--font-main);
|
|
84
|
-
/* Default base size. */
|
|
85
|
-
font-size: 100%;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/* Typography definitions */
|
|
89
|
-
.typo-body__primary {
|
|
90
|
-
font-size: var(--baseTypo-body__primary-fontSize, 1rem);
|
|
91
|
-
line-height: var(--baseTypo-body__primary-lineHeight, 1.25rem);
|
|
92
|
-
letter-spacing: var(--baseTypo-body__primary-letterSpacing, 0.03125rem);
|
|
93
|
-
}
|
|
94
|
-
.typo-body__primary--bold {
|
|
95
|
-
font-size: var(--baseTypo-body__primary--bold-fontSize, 1rem);
|
|
96
|
-
line-height: var(--baseTypo-body__primary--bold-lineHeight, 1.25rem);
|
|
97
|
-
letter-spacing: var(--baseTypo-body__primary--bold-letterSpacing, 0.03125rem);
|
|
98
|
-
font-weight: var(--baseTypo-body__primary--bold-fontWeight, 500);
|
|
99
|
-
}
|
|
100
|
-
.typo-body__primary--underline {
|
|
101
|
-
font-size: var(--baseTypo-body__primary--underline-fontSize, 1rem);
|
|
102
|
-
line-height: var(--baseTypo-body__primary--underline-lineHeight, 1.25rem);
|
|
103
|
-
letter-spacing: var(--baseTypo-body__primary--underline-letterSpacing, 0.03125rem);
|
|
104
|
-
text-decoration: var(--baseTypo-body__primary--underline-textDecorationLine, underline);
|
|
105
|
-
}
|
|
106
|
-
.typo-body__primary--jumbo {
|
|
107
|
-
font-size: var(--baseTypo-body__primary--jumbo-fontSize, 2.25rem);
|
|
108
|
-
line-height: var(--baseTypo-body__primary--jumbo-lineHeight, 2.5rem);
|
|
109
|
-
letter-spacing: var(--baseTypo-body__primary--jumbo-letterSpacing, 0.015625rem);
|
|
110
|
-
}
|
|
111
|
-
.typo-body__primary--jumbo--bold {
|
|
112
|
-
font-size: var(--baseTypo-body__primary--jumbo--bold-fontSize, 2.25rem);
|
|
113
|
-
line-height: var(--baseTypo-body__primary--jumbo--bold-lineHeight, 2.5rem);
|
|
114
|
-
letter-spacing: var(--baseTypo-body__primary--jumbo--bold-letterSpacing, 0.015625rem);
|
|
115
|
-
font-weight: var(--baseTypo-body__primary--jumbo--bold-fontWeight, bold);
|
|
116
|
-
}
|
|
117
|
-
.typo-body__secondary {
|
|
118
|
-
font-size: var(--baseTypo-body__secondary-fontSize, 0.875rem);
|
|
119
|
-
line-height: var(--baseTypo-body__secondary-lineHeight, 1.25rem);
|
|
120
|
-
letter-spacing: var(--baseTypo-body__secondary-letterSpacing, 0.015625rem);
|
|
121
|
-
}
|
|
122
|
-
.typo-body__secondary--bold {
|
|
123
|
-
font-size: var(--baseTypo-body__secondary--bold-fontSize, 0.875rem);
|
|
124
|
-
line-height: var(--baseTypo-body__secondary--bold-lineHeight, 1.25rem);
|
|
125
|
-
letter-spacing: var(--baseTypo-body__secondary--bold-letterSpacing, 0.015625rem);
|
|
126
|
-
font-weight: var(--baseTypo-body__secondary--bold-fontWeight, 500);
|
|
127
|
-
}
|
|
128
|
-
.typo-body__tertiary {
|
|
129
|
-
font-size: var(--baseTypo-body__tertiary-fontSize, 0.75rem);
|
|
130
|
-
line-height: var(--baseTypo-body__tertiary-lineHeight, 1rem);
|
|
131
|
-
letter-spacing: var(--baseTypo-body__tertiary-letterSpacing, 0.025rem);
|
|
132
|
-
}
|
|
133
|
-
.typo-body__tertiary--strike {
|
|
134
|
-
font-size: var(--baseTypo-body__tertiary--strike-fontSize, 0.75rem);
|
|
135
|
-
line-height: var(--baseTypo-body__tertiary--strike-lineHeight, 1rem);
|
|
136
|
-
letter-spacing: var(--baseTypo-body__tertiary--strike-letterSpacing, 0.025rem);
|
|
137
|
-
text-decoration: var(--baseTypo-body__tertiary--strike-textDecorationLine, line-through);
|
|
138
|
-
}
|
|
139
|
-
.typo-heading__title {
|
|
140
|
-
font-size: var(--baseTypo-heading__title-fontSize, 1rem);
|
|
141
|
-
line-height: var(--baseTypo-heading__title-lineHeight, 1.25rem);
|
|
142
|
-
letter-spacing: var(--baseTypo-heading__title-letterSpacing, 0.03125rem);
|
|
143
|
-
font-weight: var(--baseTypo-heading__title-fontWeight, bold);
|
|
144
|
-
}
|
|
145
|
-
.typo-heading__component {
|
|
146
|
-
font-size: var(--baseTypo-heading__component-fontSize, 1rem);
|
|
147
|
-
line-height: var(--baseTypo-heading__component-lineHeight, 1.25rem);
|
|
148
|
-
letter-spacing: var(--baseTypo-heading__component-letterSpacing, 0.03125rem);
|
|
149
|
-
font-weight: var(--baseTypo-heading__component-fontWeight, 500);
|
|
150
|
-
}
|
|
151
|
-
.typo-heading__paragraph {
|
|
152
|
-
font-size: var(--baseTypo-heading__paragraph-fontSize, 1rem);
|
|
153
|
-
line-height: var(--baseTypo-heading__paragraph-lineHeight, 1.25rem);
|
|
154
|
-
letter-spacing: var(--baseTypo-heading__paragraph-letterSpacing, 0.03125rem);
|
|
155
|
-
font-weight: var(--baseTypo-heading__paragraph-fontWeight, 500);
|
|
156
|
-
}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* Require included fonts. Fetched from URLs and not locally
|
|
3
|
-
to leverage better CDN caching. */
|
|
4
|
-
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
|
|
5
|
-
|
|
6
|
-
/* Base Typgraphy Custom Properties */
|
|
7
|
-
:root {
|
|
8
|
-
/* Definitions for body__primary */
|
|
9
|
-
--baseTypo-body__primary-fontSize: 1rem;
|
|
10
|
-
--baseTypo-body__primary-lineHeight: 1.25rem;
|
|
11
|
-
--baseTypo-body__primary-letterSpacing: 0.03125rem;
|
|
12
|
-
|
|
13
|
-
/* Definitions for body__primary--bold */
|
|
14
|
-
--baseTypo-body__primary--bold-fontSize: 1rem;
|
|
15
|
-
--baseTypo-body__primary--bold-lineHeight: 1.25rem;
|
|
16
|
-
--baseTypo-body__primary--bold-letterSpacing: 0.03125rem;
|
|
17
|
-
--baseTypo-body__primary--bold-fontWeight: 500;
|
|
18
|
-
|
|
19
|
-
/* Definitions for body__primary--underline */
|
|
20
|
-
--baseTypo-body__primary--underline-fontSize: 1rem;
|
|
21
|
-
--baseTypo-body__primary--underline-lineHeight: 1.25rem;
|
|
22
|
-
--baseTypo-body__primary--underline-letterSpacing: 0.03125rem;
|
|
23
|
-
--baseTypo-body__primary--underline-textDecorationLine: underline;
|
|
24
|
-
|
|
25
|
-
/* Definitions for body__primary--jumbo */
|
|
26
|
-
--baseTypo-body__primary--jumbo-fontSize: 2.25rem;
|
|
27
|
-
--baseTypo-body__primary--jumbo-lineHeight: 2.5rem;
|
|
28
|
-
--baseTypo-body__primary--jumbo-letterSpacing: 0.015625rem;
|
|
29
|
-
|
|
30
|
-
/* Definitions for body__primary--jumbo--bold */
|
|
31
|
-
--baseTypo-body__primary--jumbo--bold-fontSize: 2.25rem;
|
|
32
|
-
--baseTypo-body__primary--jumbo--bold-lineHeight: 2.5rem;
|
|
33
|
-
--baseTypo-body__primary--jumbo--bold-letterSpacing: 0.015625rem;
|
|
34
|
-
--baseTypo-body__primary--jumbo--bold-fontWeight: bold;
|
|
35
|
-
|
|
36
|
-
/* Definitions for body__secondary */
|
|
37
|
-
--baseTypo-body__secondary-fontSize: 0.875rem;
|
|
38
|
-
--baseTypo-body__secondary-lineHeight: 1.25rem;
|
|
39
|
-
--baseTypo-body__secondary-letterSpacing: 0.015625rem;
|
|
40
|
-
|
|
41
|
-
/* Definitions for body__secondary--bold */
|
|
42
|
-
--baseTypo-body__secondary--bold-fontSize: 0.875rem;
|
|
43
|
-
--baseTypo-body__secondary--bold-lineHeight: 1.25rem;
|
|
44
|
-
--baseTypo-body__secondary--bold-letterSpacing: 0.015625rem;
|
|
45
|
-
--baseTypo-body__secondary--bold-fontWeight: 500;
|
|
46
|
-
|
|
47
|
-
/* Definitions for body__tertiary */
|
|
48
|
-
--baseTypo-body__tertiary-fontSize: 0.75rem;
|
|
49
|
-
--baseTypo-body__tertiary-lineHeight: 1rem;
|
|
50
|
-
--baseTypo-body__tertiary-letterSpacing: 0.025rem;
|
|
51
|
-
|
|
52
|
-
/* Definitions for body__tertiary--strike */
|
|
53
|
-
--baseTypo-body__tertiary--strike-fontSize: 0.75rem;
|
|
54
|
-
--baseTypo-body__tertiary--strike-lineHeight: 1rem;
|
|
55
|
-
--baseTypo-body__tertiary--strike-letterSpacing: 0.025rem;
|
|
56
|
-
--baseTypo-body__tertiary--strike-textDecorationLine: line-through;
|
|
57
|
-
|
|
58
|
-
/* Definitions for heading__title */
|
|
59
|
-
--baseTypo-heading__title-fontSize: 1rem;
|
|
60
|
-
--baseTypo-heading__title-lineHeight: 1.25rem;
|
|
61
|
-
--baseTypo-heading__title-letterSpacing: 0.03125rem;
|
|
62
|
-
--baseTypo-heading__title-fontWeight: bold;
|
|
63
|
-
|
|
64
|
-
/* Definitions for heading__component */
|
|
65
|
-
--baseTypo-heading__component-fontSize: 1rem;
|
|
66
|
-
--baseTypo-heading__component-lineHeight: 1.25rem;
|
|
67
|
-
--baseTypo-heading__component-letterSpacing: 0.03125rem;
|
|
68
|
-
--baseTypo-heading__component-fontWeight: 500;
|
|
69
|
-
|
|
70
|
-
/* Definitions for heading__paragraph */
|
|
71
|
-
--baseTypo-heading__paragraph-fontSize: 1rem;
|
|
72
|
-
--baseTypo-heading__paragraph-lineHeight: 1.25rem;
|
|
73
|
-
--baseTypo-heading__paragraph-letterSpacing: 0.03125rem;
|
|
74
|
-
--baseTypo-heading__paragraph-fontWeight: 500;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
/* Included font types */
|
|
78
|
-
--font-main: 'Roboto', sans-serif;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/* Main setup, base size and main font */
|
|
82
|
-
:global(html) {
|
|
83
|
-
font-family: var(--font-main);
|
|
84
|
-
/* Default base size. */
|
|
85
|
-
font-size: 100%;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/* Typography definitions */
|
|
89
|
-
.typo-body__primary {
|
|
90
|
-
font-size: var(--baseTypo-body__primary-fontSize, 1rem);
|
|
91
|
-
line-height: var(--baseTypo-body__primary-lineHeight, 1.25rem);
|
|
92
|
-
letter-spacing: var(--baseTypo-body__primary-letterSpacing, 0.03125rem);
|
|
93
|
-
}
|
|
94
|
-
.typo-body__primary--bold {
|
|
95
|
-
font-size: var(--baseTypo-body__primary--bold-fontSize, 1rem);
|
|
96
|
-
line-height: var(--baseTypo-body__primary--bold-lineHeight, 1.25rem);
|
|
97
|
-
letter-spacing: var(--baseTypo-body__primary--bold-letterSpacing, 0.03125rem);
|
|
98
|
-
font-weight: var(--baseTypo-body__primary--bold-fontWeight, 500);
|
|
99
|
-
}
|
|
100
|
-
.typo-body__primary--underline {
|
|
101
|
-
font-size: var(--baseTypo-body__primary--underline-fontSize, 1rem);
|
|
102
|
-
line-height: var(--baseTypo-body__primary--underline-lineHeight, 1.25rem);
|
|
103
|
-
letter-spacing: var(--baseTypo-body__primary--underline-letterSpacing, 0.03125rem);
|
|
104
|
-
text-decoration: var(--baseTypo-body__primary--underline-textDecorationLine, underline);
|
|
105
|
-
}
|
|
106
|
-
.typo-body__primary--jumbo {
|
|
107
|
-
font-size: var(--baseTypo-body__primary--jumbo-fontSize, 2.25rem);
|
|
108
|
-
line-height: var(--baseTypo-body__primary--jumbo-lineHeight, 2.5rem);
|
|
109
|
-
letter-spacing: var(--baseTypo-body__primary--jumbo-letterSpacing, 0.015625rem);
|
|
110
|
-
}
|
|
111
|
-
.typo-body__primary--jumbo--bold {
|
|
112
|
-
font-size: var(--baseTypo-body__primary--jumbo--bold-fontSize, 2.25rem);
|
|
113
|
-
line-height: var(--baseTypo-body__primary--jumbo--bold-lineHeight, 2.5rem);
|
|
114
|
-
letter-spacing: var(--baseTypo-body__primary--jumbo--bold-letterSpacing, 0.015625rem);
|
|
115
|
-
font-weight: var(--baseTypo-body__primary--jumbo--bold-fontWeight, bold);
|
|
116
|
-
}
|
|
117
|
-
.typo-body__secondary {
|
|
118
|
-
font-size: var(--baseTypo-body__secondary-fontSize, 0.875rem);
|
|
119
|
-
line-height: var(--baseTypo-body__secondary-lineHeight, 1.25rem);
|
|
120
|
-
letter-spacing: var(--baseTypo-body__secondary-letterSpacing, 0.015625rem);
|
|
121
|
-
}
|
|
122
|
-
.typo-body__secondary--bold {
|
|
123
|
-
font-size: var(--baseTypo-body__secondary--bold-fontSize, 0.875rem);
|
|
124
|
-
line-height: var(--baseTypo-body__secondary--bold-lineHeight, 1.25rem);
|
|
125
|
-
letter-spacing: var(--baseTypo-body__secondary--bold-letterSpacing, 0.015625rem);
|
|
126
|
-
font-weight: var(--baseTypo-body__secondary--bold-fontWeight, 500);
|
|
127
|
-
}
|
|
128
|
-
.typo-body__tertiary {
|
|
129
|
-
font-size: var(--baseTypo-body__tertiary-fontSize, 0.75rem);
|
|
130
|
-
line-height: var(--baseTypo-body__tertiary-lineHeight, 1rem);
|
|
131
|
-
letter-spacing: var(--baseTypo-body__tertiary-letterSpacing, 0.025rem);
|
|
132
|
-
}
|
|
133
|
-
.typo-body__tertiary--strike {
|
|
134
|
-
font-size: var(--baseTypo-body__tertiary--strike-fontSize, 0.75rem);
|
|
135
|
-
line-height: var(--baseTypo-body__tertiary--strike-lineHeight, 1rem);
|
|
136
|
-
letter-spacing: var(--baseTypo-body__tertiary--strike-letterSpacing, 0.025rem);
|
|
137
|
-
text-decoration: var(--baseTypo-body__tertiary--strike-textDecorationLine, line-through);
|
|
138
|
-
}
|
|
139
|
-
.typo-heading__title {
|
|
140
|
-
font-size: var(--baseTypo-heading__title-fontSize, 1rem);
|
|
141
|
-
line-height: var(--baseTypo-heading__title-lineHeight, 1.25rem);
|
|
142
|
-
letter-spacing: var(--baseTypo-heading__title-letterSpacing, 0.03125rem);
|
|
143
|
-
font-weight: var(--baseTypo-heading__title-fontWeight, bold);
|
|
144
|
-
}
|
|
145
|
-
.typo-heading__component {
|
|
146
|
-
font-size: var(--baseTypo-heading__component-fontSize, 1rem);
|
|
147
|
-
line-height: var(--baseTypo-heading__component-lineHeight, 1.25rem);
|
|
148
|
-
letter-spacing: var(--baseTypo-heading__component-letterSpacing, 0.03125rem);
|
|
149
|
-
font-weight: var(--baseTypo-heading__component-fontWeight, 500);
|
|
150
|
-
}
|
|
151
|
-
.typo-heading__paragraph {
|
|
152
|
-
font-size: var(--baseTypo-heading__paragraph-fontSize, 1rem);
|
|
153
|
-
line-height: var(--baseTypo-heading__paragraph-lineHeight, 1.25rem);
|
|
154
|
-
letter-spacing: var(--baseTypo-heading__paragraph-letterSpacing, 0.03125rem);
|
|
155
|
-
font-weight: var(--baseTypo-heading__paragraph-fontWeight, 500);
|
|
156
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface Configuration {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
}
|
|
4
|
-
export declare type ConfigurationOverride<T> = {
|
|
5
|
-
[P in keyof T]?: ConfigurationOverride<T[P]>;
|
|
6
|
-
};
|
|
7
|
-
export declare function overrideConfig<T extends Configuration>(base: T, overrides: ConfigurationOverride<T>): T;
|
|
8
|
-
export {};
|