@atls-ui/theme 0.0.3 → 0.2.0
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/CHANGELOG.md +38 -0
- package/assets/fonts/science-gothic/ScienceGothic-300.ttf +0 -0
- package/assets/fonts/science-gothic/ScienceGothic-400.ttf +0 -0
- package/assets/fonts/science-gothic/ScienceGothic-500.ttf +0 -0
- package/assets/fonts/science-gothic/ScienceGothic-600.ttf +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/theme.d.ts +8 -0
- package/dist/theme.js +11 -0
- package/dist/tokens/colors/dark.d.ts +2 -0
- package/dist/tokens/colors/dark.js +35 -0
- package/dist/tokens/colors/index.d.ts +3 -0
- package/dist/tokens/colors/index.js +2 -0
- package/dist/tokens/colors/interfaces.d.ts +40 -0
- package/dist/tokens/colors/interfaces.js +1 -0
- package/dist/tokens/colors/light.d.ts +2 -0
- package/dist/tokens/colors/light.js +35 -0
- package/dist/tokens/index.d.ts +3 -0
- package/dist/tokens/index.js +3 -0
- package/dist/tokens/layout/spaces.d.ts +23 -0
- package/dist/tokens/layout/spaces.js +22 -0
- package/dist/tokens/typography/fontFaces.d.ts +3 -0
- package/dist/tokens/typography/fontFaces.js +32 -0
- package/dist/tokens/typography/fontSizes.d.ts +15 -0
- package/dist/tokens/typography/fontSizes.js +14 -0
- package/dist/tokens/typography/fontWeights.d.ts +7 -0
- package/dist/tokens/typography/fontWeights.js +6 -0
- package/dist/tokens/typography/index.d.ts +3 -0
- package/dist/tokens/typography/index.js +2 -0
- package/dist/tokens/typography/interfaces.d.ts +4 -0
- package/dist/tokens/typography/interfaces.js +1 -0
- package/dist/tokens/typography/letterSpacings.d.ts +6 -0
- package/dist/tokens/typography/letterSpacings.js +5 -0
- package/dist/tokens/typography/lineHeights.d.ts +13 -0
- package/dist/tokens/typography/lineHeights.js +12 -0
- package/dist/tokens/typography/typography.d.ts +31 -0
- package/dist/tokens/typography/typography.js +117 -0
- package/dist/tokens/typography/utils/createTypographyStyle.d.ts +3 -0
- package/dist/tokens/typography/utils/createTypographyStyle.js +8 -0
- package/dist/tokens/typography/utils/index.d.ts +1 -0
- package/dist/tokens/typography/utils/index.js +1 -0
- package/dist/tokens/typography/utils/interfaces.d.ts +14 -0
- package/dist/tokens/typography/utils/interfaces.js +1 -0
- package/licenses/science-gothic/AUTHORS.txt +8 -0
- package/licenses/science-gothic/OFL.txt +95 -0
- package/package.json +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
# [0.2.0](https://github.com/atls/hyperion/compare/@atls-ui/theme@0.1.0...@atls-ui/theme@0.2.0) (2026-08-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* **theme:** add web spacing tokens ([fd701d5](https://github.com/atls/hyperion/commit/fd701d5911593d53d628cfa9b8a7d978af089256))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# [0.1.0](https://github.com/atls/hyperion/compare/@atls-ui/theme@0.0.3...@atls-ui/theme@0.1.0) (2026-08-13)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
* **theme:** add science gothic fonts ([363e37c](https://github.com/atls/hyperion/commit/363e37c7dcbebceb4c702631f1b83fdc3027dc06))
|
|
22
|
+
* **theme:** add typography primitives ([9d86819](https://github.com/atls/hyperion/commit/9d86819ecd65ec429ebe941c992b44134aa1dda4))
|
|
23
|
+
* **theme:** add typography styles ([908ec62](https://github.com/atls/hyperion/commit/908ec62ec4f5516184968c7b07ab2bbd1b26ad40))
|
|
24
|
+
* **theme:** colors interfaces ([3d7b0a5](https://github.com/atls/hyperion/commit/3d7b0a51919ab31fa3ad784adfe4d9047d6e5b2e))
|
|
25
|
+
* **theme:** dark colors ([1e888aa](https://github.com/atls/hyperion/commit/1e888aa19367d25ee24be58940d63a8dc6a0587b))
|
|
26
|
+
* **theme:** expose typography tokens ([5f0b4b5](https://github.com/atls/hyperion/commit/5f0b4b56e507fa6ecc2614dff03c66220d54c833))
|
|
27
|
+
* **theme:** light colors ([b6b47ab](https://github.com/atls/hyperion/commit/b6b47ab386e54b967abcc8220b63a5a9ecbda3da))
|
|
28
|
+
* **theme:** theme ([09ad337](https://github.com/atls/hyperion/commit/09ad337880bb69d20850dfe9d17b055d1a3414d4))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## [0.0.3](https://github.com/atls/hyperion/compare/@atls-ui/theme@0.0.3...@atls-ui/theme@0.0.3) (2026-06-12)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
3
41
|
## [0.0.3](https://github.com/atls/hyperion/compare/@atls-ui/theme@0.0.2...@atls-ui/theme@0.0.3) (2026-06-09)
|
|
4
42
|
|
|
5
43
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/theme.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Colors } from './tokens/index.js';
|
|
2
|
+
import type { TypographyTokens } from './tokens/index.js';
|
|
3
|
+
export interface Theme {
|
|
4
|
+
colors: Colors;
|
|
5
|
+
typography: TypographyTokens;
|
|
6
|
+
}
|
|
7
|
+
export declare const lightTheme: Theme;
|
|
8
|
+
export declare const darkTheme: Theme;
|
package/dist/theme.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { darkColors } from './tokens/index.js';
|
|
2
|
+
import { lightColors } from './tokens/index.js';
|
|
3
|
+
import { typography } from './tokens/index.js';
|
|
4
|
+
export const lightTheme = {
|
|
5
|
+
colors: lightColors,
|
|
6
|
+
typography,
|
|
7
|
+
};
|
|
8
|
+
export const darkTheme = {
|
|
9
|
+
colors: darkColors,
|
|
10
|
+
typography,
|
|
11
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const darkColors = {
|
|
2
|
+
action: {
|
|
3
|
+
base: '#5F8FFF',
|
|
4
|
+
hover: '#7AA7FF',
|
|
5
|
+
pressed: '#3F74FF',
|
|
6
|
+
disabled: '#5F8FFF',
|
|
7
|
+
subtle: '#394A6B',
|
|
8
|
+
},
|
|
9
|
+
surface: {
|
|
10
|
+
base: '#111111',
|
|
11
|
+
subtle: '#171717',
|
|
12
|
+
muted: '#1F1F1F',
|
|
13
|
+
soft: '#FFFFFF',
|
|
14
|
+
inverse: '#F8F9FF',
|
|
15
|
+
},
|
|
16
|
+
text: {
|
|
17
|
+
primary: '#F2F4F7',
|
|
18
|
+
secondary: '#C9D0DA',
|
|
19
|
+
tertiary: '#9AA3B2',
|
|
20
|
+
muted: '#6B7485',
|
|
21
|
+
inverse: '#121417',
|
|
22
|
+
},
|
|
23
|
+
status: {
|
|
24
|
+
success: '#4AD27F',
|
|
25
|
+
warning: '#F2B84B',
|
|
26
|
+
error: '#FF5C5C',
|
|
27
|
+
info: '#5B8CFF',
|
|
28
|
+
},
|
|
29
|
+
elevation: {
|
|
30
|
+
xs: '#00000059',
|
|
31
|
+
sm: '#00000066',
|
|
32
|
+
md: '#00000073',
|
|
33
|
+
lg: '#00000099',
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface Colors {
|
|
2
|
+
action: ActionColors;
|
|
3
|
+
surface: SurfaceColors;
|
|
4
|
+
text: TextColors;
|
|
5
|
+
status: StatusColors;
|
|
6
|
+
elevation: ElevationColors;
|
|
7
|
+
}
|
|
8
|
+
export interface ActionColors {
|
|
9
|
+
base: string;
|
|
10
|
+
hover: string;
|
|
11
|
+
pressed: string;
|
|
12
|
+
disabled: string;
|
|
13
|
+
subtle: string;
|
|
14
|
+
}
|
|
15
|
+
export interface SurfaceColors {
|
|
16
|
+
base: string;
|
|
17
|
+
subtle: string;
|
|
18
|
+
muted: string;
|
|
19
|
+
soft: string;
|
|
20
|
+
inverse: string;
|
|
21
|
+
}
|
|
22
|
+
export interface TextColors {
|
|
23
|
+
primary: string;
|
|
24
|
+
secondary: string;
|
|
25
|
+
tertiary: string;
|
|
26
|
+
muted: string;
|
|
27
|
+
inverse: string;
|
|
28
|
+
}
|
|
29
|
+
export interface StatusColors {
|
|
30
|
+
success: string;
|
|
31
|
+
warning: string;
|
|
32
|
+
error: string;
|
|
33
|
+
info: string;
|
|
34
|
+
}
|
|
35
|
+
export interface ElevationColors {
|
|
36
|
+
xs: string;
|
|
37
|
+
sm: string;
|
|
38
|
+
md: string;
|
|
39
|
+
lg: string;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const lightColors = {
|
|
2
|
+
action: {
|
|
3
|
+
base: '#1E56C7',
|
|
4
|
+
hover: '#1643A3',
|
|
5
|
+
pressed: '#12357F',
|
|
6
|
+
disabled: '#1E56C740',
|
|
7
|
+
subtle: '#6B86C8',
|
|
8
|
+
},
|
|
9
|
+
surface: {
|
|
10
|
+
base: '#F8F9FF',
|
|
11
|
+
subtle: '#EFF1FF',
|
|
12
|
+
muted: '#D4D8F0',
|
|
13
|
+
soft: '#FFFFFF',
|
|
14
|
+
inverse: '#111111',
|
|
15
|
+
},
|
|
16
|
+
text: {
|
|
17
|
+
primary: '#0C0F1E',
|
|
18
|
+
secondary: '#2A3152',
|
|
19
|
+
tertiary: '#6B7DB3',
|
|
20
|
+
muted: '#9BA8C8',
|
|
21
|
+
inverse: '#FFFFFF',
|
|
22
|
+
},
|
|
23
|
+
status: {
|
|
24
|
+
success: '#10B981',
|
|
25
|
+
warning: '#F59E0B',
|
|
26
|
+
error: '#EF4444',
|
|
27
|
+
info: '#60A5FA',
|
|
28
|
+
},
|
|
29
|
+
elevation: {
|
|
30
|
+
xs: '#00000014',
|
|
31
|
+
sm: '#0000001A',
|
|
32
|
+
md: '#0000001F',
|
|
33
|
+
lg: '#0000004D',
|
|
34
|
+
},
|
|
35
|
+
};
|
package/dist/tokens/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from './animations.js';
|
|
2
|
+
export * from './colors/index.js';
|
|
3
|
+
export * from './layout/spaces.js';
|
|
2
4
|
export * from './opacities.js';
|
|
3
5
|
export * from './radii.js';
|
|
4
6
|
export * from './space.js';
|
|
7
|
+
export * from './typography/index.js';
|
|
5
8
|
export * from './z-index.js';
|
package/dist/tokens/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from "./animations.js";
|
|
2
|
+
export * from "./colors/index.js";
|
|
3
|
+
export * from "./layout/spaces.js";
|
|
2
4
|
export * from "./opacities.js";
|
|
3
5
|
export * from "./radii.js";
|
|
4
6
|
export * from "./space.js";
|
|
7
|
+
export * from "./typography/index.js";
|
|
5
8
|
export * from "./z-index.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const spacing: {
|
|
2
|
+
readonly component: {
|
|
3
|
+
readonly none: "0";
|
|
4
|
+
readonly xs2: "2px";
|
|
5
|
+
readonly xs: "4px";
|
|
6
|
+
readonly sm: "6px";
|
|
7
|
+
readonly md: "8px";
|
|
8
|
+
readonly lg: "12px";
|
|
9
|
+
readonly xl: "16px";
|
|
10
|
+
readonly xl2: "20px";
|
|
11
|
+
readonly xl3: "24px";
|
|
12
|
+
readonly xl4: "32px";
|
|
13
|
+
};
|
|
14
|
+
readonly layout: {
|
|
15
|
+
readonly xs2: "40px";
|
|
16
|
+
readonly xs: "48px";
|
|
17
|
+
readonly sm: "64px";
|
|
18
|
+
readonly md: "80px";
|
|
19
|
+
readonly lg: "96px";
|
|
20
|
+
readonly xl: "128px";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type SpacingTokens = typeof spacing;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const spacing = {
|
|
2
|
+
component: {
|
|
3
|
+
none: '0',
|
|
4
|
+
xs2: '2px',
|
|
5
|
+
xs: '4px',
|
|
6
|
+
sm: '6px',
|
|
7
|
+
md: '8px',
|
|
8
|
+
lg: '12px',
|
|
9
|
+
xl: '16px',
|
|
10
|
+
xl2: '20px',
|
|
11
|
+
xl3: '24px',
|
|
12
|
+
xl4: '32px',
|
|
13
|
+
},
|
|
14
|
+
layout: {
|
|
15
|
+
xs2: '40px',
|
|
16
|
+
xs: '48px',
|
|
17
|
+
sm: '64px',
|
|
18
|
+
md: '80px',
|
|
19
|
+
lg: '96px',
|
|
20
|
+
xl: '128px',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export const scienceGothicFontFamily = 'Science Gothic';
|
|
2
|
+
const createFontSource = (fileName) => new URL(`../../../assets/fonts/science-gothic/${fileName}`, import.meta.url).toString();
|
|
3
|
+
export const scienceGothicFontFaces = [
|
|
4
|
+
{
|
|
5
|
+
fontFamily: scienceGothicFontFamily,
|
|
6
|
+
fontStyle: 'normal',
|
|
7
|
+
fontWeight: 300,
|
|
8
|
+
fontDisplay: 'swap',
|
|
9
|
+
src: `url(${createFontSource('ScienceGothic-300.ttf')}) format('truetype')`,
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
fontFamily: scienceGothicFontFamily,
|
|
13
|
+
fontStyle: 'normal',
|
|
14
|
+
fontWeight: 400,
|
|
15
|
+
fontDisplay: 'swap',
|
|
16
|
+
src: `url(${createFontSource('ScienceGothic-400.ttf')}) format('truetype')`,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
fontFamily: scienceGothicFontFamily,
|
|
20
|
+
fontStyle: 'normal',
|
|
21
|
+
fontWeight: 500,
|
|
22
|
+
fontDisplay: 'swap',
|
|
23
|
+
src: `url(${createFontSource('ScienceGothic-500.ttf')}) format('truetype')`,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
fontFamily: scienceGothicFontFamily,
|
|
27
|
+
fontStyle: 'normal',
|
|
28
|
+
fontWeight: 600,
|
|
29
|
+
fontDisplay: 'swap',
|
|
30
|
+
src: `url(${createFontSource('ScienceGothic-600.ttf')}) format('truetype')`,
|
|
31
|
+
},
|
|
32
|
+
];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const fontSizes: {
|
|
2
|
+
readonly xs3: "10px";
|
|
3
|
+
readonly xs2: "11px";
|
|
4
|
+
readonly xs: "12px";
|
|
5
|
+
readonly sm: "14px";
|
|
6
|
+
readonly md: "16px";
|
|
7
|
+
readonly lg: "18px";
|
|
8
|
+
readonly xl: "20px";
|
|
9
|
+
readonly xl2: "24px";
|
|
10
|
+
readonly xl3: "28px";
|
|
11
|
+
readonly xl4: "32px";
|
|
12
|
+
readonly xl5: "40px";
|
|
13
|
+
readonly xl6: "48px";
|
|
14
|
+
};
|
|
15
|
+
export type FontSizesTokens = typeof fontSizes;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const lineHeights: {
|
|
2
|
+
readonly xs3: "12px";
|
|
3
|
+
readonly xs2: "16px";
|
|
4
|
+
readonly xs: "20px";
|
|
5
|
+
readonly sm: "24px";
|
|
6
|
+
readonly md: "28px";
|
|
7
|
+
readonly lg: "32px";
|
|
8
|
+
readonly xl: "36px";
|
|
9
|
+
readonly xl2: "40px";
|
|
10
|
+
readonly xl3: "48px";
|
|
11
|
+
readonly xl4: "56px";
|
|
12
|
+
};
|
|
13
|
+
export type LineHeightsTokens = typeof lineHeights;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const typography: {
|
|
2
|
+
readonly fontFamily: "Science Gothic";
|
|
3
|
+
readonly fontFaces: import("./interfaces.js").FontFace[];
|
|
4
|
+
readonly display: {
|
|
5
|
+
readonly lg: import("./interfaces.js").TypographyProperties;
|
|
6
|
+
readonly md: import("./interfaces.js").TypographyProperties;
|
|
7
|
+
readonly sm: import("./interfaces.js").TypographyProperties;
|
|
8
|
+
};
|
|
9
|
+
readonly heading: {
|
|
10
|
+
readonly lg: import("./interfaces.js").TypographyProperties;
|
|
11
|
+
readonly md: import("./interfaces.js").TypographyProperties;
|
|
12
|
+
readonly sm: import("./interfaces.js").TypographyProperties;
|
|
13
|
+
};
|
|
14
|
+
readonly title: {
|
|
15
|
+
readonly lg: import("./interfaces.js").TypographyProperties;
|
|
16
|
+
readonly md: import("./interfaces.js").TypographyProperties;
|
|
17
|
+
};
|
|
18
|
+
readonly body: {
|
|
19
|
+
readonly lg: import("./interfaces.js").TypographyProperties;
|
|
20
|
+
readonly md: import("./interfaces.js").TypographyProperties;
|
|
21
|
+
readonly sm: import("./interfaces.js").TypographyProperties;
|
|
22
|
+
};
|
|
23
|
+
readonly label: {
|
|
24
|
+
readonly lg: import("./interfaces.js").TypographyProperties;
|
|
25
|
+
readonly md: import("./interfaces.js").TypographyProperties;
|
|
26
|
+
readonly sm: import("./interfaces.js").TypographyProperties;
|
|
27
|
+
};
|
|
28
|
+
readonly caption: import("./interfaces.js").TypographyProperties;
|
|
29
|
+
readonly overline: import("./interfaces.js").TypographyProperties;
|
|
30
|
+
};
|
|
31
|
+
export type TypographyTokens = typeof typography;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { scienceGothicFontFaces } from './fontFaces.js';
|
|
2
|
+
import { scienceGothicFontFamily } from './fontFaces.js';
|
|
3
|
+
import { fontSizes } from './fontSizes.js';
|
|
4
|
+
import { fontWeights } from './fontWeights.js';
|
|
5
|
+
import { letterSpacings } from './letterSpacings.js';
|
|
6
|
+
import { lineHeights } from './lineHeights.js';
|
|
7
|
+
import { createTypographyStyle } from './utils/index.js';
|
|
8
|
+
export const typography = {
|
|
9
|
+
fontFamily: scienceGothicFontFamily,
|
|
10
|
+
fontFaces: scienceGothicFontFaces,
|
|
11
|
+
display: {
|
|
12
|
+
lg: createTypographyStyle({
|
|
13
|
+
fontSize: fontSizes.xl6,
|
|
14
|
+
lineHeight: lineHeights.xl4,
|
|
15
|
+
fontWeight: fontWeights.semiBold,
|
|
16
|
+
letterSpacing: letterSpacings.md,
|
|
17
|
+
}),
|
|
18
|
+
md: createTypographyStyle({
|
|
19
|
+
fontSize: fontSizes.xl5,
|
|
20
|
+
lineHeight: lineHeights.xl3,
|
|
21
|
+
fontWeight: fontWeights.semiBold,
|
|
22
|
+
letterSpacing: letterSpacings.md,
|
|
23
|
+
}),
|
|
24
|
+
sm: createTypographyStyle({
|
|
25
|
+
fontSize: fontSizes.xl4,
|
|
26
|
+
lineHeight: lineHeights.xl2,
|
|
27
|
+
fontWeight: fontWeights.semiBold,
|
|
28
|
+
letterSpacing: letterSpacings.md,
|
|
29
|
+
}),
|
|
30
|
+
},
|
|
31
|
+
heading: {
|
|
32
|
+
lg: createTypographyStyle({
|
|
33
|
+
fontSize: fontSizes.xl3,
|
|
34
|
+
lineHeight: lineHeights.xl,
|
|
35
|
+
fontWeight: fontWeights.medium,
|
|
36
|
+
letterSpacing: letterSpacings.md,
|
|
37
|
+
}),
|
|
38
|
+
md: createTypographyStyle({
|
|
39
|
+
fontSize: fontSizes.xl2,
|
|
40
|
+
lineHeight: lineHeights.lg,
|
|
41
|
+
fontWeight: fontWeights.medium,
|
|
42
|
+
letterSpacing: letterSpacings.md,
|
|
43
|
+
}),
|
|
44
|
+
sm: createTypographyStyle({
|
|
45
|
+
fontSize: fontSizes.xl,
|
|
46
|
+
lineHeight: lineHeights.md,
|
|
47
|
+
fontWeight: fontWeights.medium,
|
|
48
|
+
letterSpacing: letterSpacings.md,
|
|
49
|
+
}),
|
|
50
|
+
},
|
|
51
|
+
title: {
|
|
52
|
+
lg: createTypographyStyle({
|
|
53
|
+
fontSize: fontSizes.lg,
|
|
54
|
+
lineHeight: lineHeights.sm,
|
|
55
|
+
fontWeight: fontWeights.medium,
|
|
56
|
+
letterSpacing: letterSpacings.md,
|
|
57
|
+
}),
|
|
58
|
+
md: createTypographyStyle({
|
|
59
|
+
fontSize: fontSizes.md,
|
|
60
|
+
lineHeight: lineHeights.sm,
|
|
61
|
+
fontWeight: fontWeights.medium,
|
|
62
|
+
letterSpacing: letterSpacings.md,
|
|
63
|
+
}),
|
|
64
|
+
},
|
|
65
|
+
body: {
|
|
66
|
+
lg: createTypographyStyle({
|
|
67
|
+
fontSize: fontSizes.md,
|
|
68
|
+
lineHeight: lineHeights.sm,
|
|
69
|
+
fontWeight: fontWeights.regular,
|
|
70
|
+
letterSpacing: letterSpacings.md,
|
|
71
|
+
}),
|
|
72
|
+
md: createTypographyStyle({
|
|
73
|
+
fontSize: fontSizes.sm,
|
|
74
|
+
lineHeight: lineHeights.xs,
|
|
75
|
+
fontWeight: fontWeights.regular,
|
|
76
|
+
letterSpacing: letterSpacings.md,
|
|
77
|
+
}),
|
|
78
|
+
sm: createTypographyStyle({
|
|
79
|
+
fontSize: fontSizes.xs,
|
|
80
|
+
lineHeight: lineHeights.xs2,
|
|
81
|
+
fontWeight: fontWeights.regular,
|
|
82
|
+
letterSpacing: letterSpacings.md,
|
|
83
|
+
}),
|
|
84
|
+
},
|
|
85
|
+
label: {
|
|
86
|
+
lg: createTypographyStyle({
|
|
87
|
+
fontSize: fontSizes.md,
|
|
88
|
+
lineHeight: lineHeights.xs,
|
|
89
|
+
fontWeight: fontWeights.medium,
|
|
90
|
+
letterSpacing: letterSpacings.lg,
|
|
91
|
+
}),
|
|
92
|
+
md: createTypographyStyle({
|
|
93
|
+
fontSize: fontSizes.sm,
|
|
94
|
+
lineHeight: lineHeights.xs,
|
|
95
|
+
fontWeight: fontWeights.medium,
|
|
96
|
+
letterSpacing: letterSpacings.lg,
|
|
97
|
+
}),
|
|
98
|
+
sm: createTypographyStyle({
|
|
99
|
+
fontSize: fontSizes.xs,
|
|
100
|
+
lineHeight: lineHeights.xs2,
|
|
101
|
+
fontWeight: fontWeights.medium,
|
|
102
|
+
letterSpacing: letterSpacings.lg,
|
|
103
|
+
}),
|
|
104
|
+
},
|
|
105
|
+
caption: createTypographyStyle({
|
|
106
|
+
fontSize: fontSizes.xs2,
|
|
107
|
+
lineHeight: lineHeights.xs2,
|
|
108
|
+
fontWeight: fontWeights.regular,
|
|
109
|
+
letterSpacing: letterSpacings.xl,
|
|
110
|
+
}),
|
|
111
|
+
overline: createTypographyStyle({
|
|
112
|
+
fontSize: fontSizes.xs3,
|
|
113
|
+
lineHeight: lineHeights.xs3,
|
|
114
|
+
fontWeight: fontWeights.medium,
|
|
115
|
+
letterSpacing: letterSpacings.xl,
|
|
116
|
+
}),
|
|
117
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TypographyProperties } from '../interfaces.js';
|
|
2
|
+
import type { TypographyStyleOptions } from './interfaces.js';
|
|
3
|
+
export declare const createTypographyStyle: ({ fontSize, lineHeight, fontWeight, letterSpacing, }: TypographyStyleOptions) => TypographyProperties;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './createTypographyStyle.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./createTypographyStyle.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { fontSizes } from '../fontSizes.js';
|
|
2
|
+
import type { fontWeights } from '../fontWeights.js';
|
|
3
|
+
import type { letterSpacings } from '../letterSpacings.js';
|
|
4
|
+
import type { lineHeights } from '../lineHeights.js';
|
|
5
|
+
export type FontSizeValue = (typeof fontSizes)[keyof typeof fontSizes];
|
|
6
|
+
export type LineHeightValue = (typeof lineHeights)[keyof typeof lineHeights];
|
|
7
|
+
export type FontWeightValue = (typeof fontWeights)[keyof typeof fontWeights];
|
|
8
|
+
export type LetterSpacingValue = (typeof letterSpacings)[keyof typeof letterSpacings];
|
|
9
|
+
export interface TypographyStyleOptions {
|
|
10
|
+
fontSize: FontSizeValue;
|
|
11
|
+
lineHeight: LineHeightValue;
|
|
12
|
+
fontWeight: FontWeightValue;
|
|
13
|
+
letterSpacing: LetterSpacingValue;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This is the official list of project authors for copyright purposes.
|
|
2
|
+
# This file is distinct from the CONTRIBUTORS.txt file.
|
|
3
|
+
# See the latter for an explanation.
|
|
4
|
+
#
|
|
5
|
+
# Names should be added to this file as:
|
|
6
|
+
# Name or Organization <email address>
|
|
7
|
+
|
|
8
|
+
Google LLC
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
Copyright 2024 Font Detective LLC <https://github.com/googlefonts/science-gothic/OFL.txt>
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1,
|
|
4
|
+
with no Reserved Font Name.
|
|
5
|
+
This license is copied below, and is also available with a FAQ at:
|
|
6
|
+
https://openfontlicense.org/
|
|
7
|
+
|
|
8
|
+
ADDITIONAL non-font source files are licensed to others under the Apache 2.0 open source license (https://www.apache.org/licenses/LICENSE-2.0).
|
|
9
|
+
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
12
|
+
-----------------------------------------------------------
|
|
13
|
+
|
|
14
|
+
PREAMBLE
|
|
15
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
16
|
+
development of collaborative font projects, to support the font creation
|
|
17
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
18
|
+
open framework in which fonts may be shared and improved in partnership
|
|
19
|
+
with others.
|
|
20
|
+
|
|
21
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
22
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
23
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
24
|
+
redistributed and/or sold with any software provided that any reserved
|
|
25
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
26
|
+
however, cannot be released under any other type of license. The
|
|
27
|
+
requirement for fonts to remain under this license does not apply
|
|
28
|
+
to any document created using the fonts or their derivatives.
|
|
29
|
+
|
|
30
|
+
DEFINITIONS
|
|
31
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
32
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
33
|
+
include source files, build scripts and documentation.
|
|
34
|
+
|
|
35
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
36
|
+
copyright statement(s).
|
|
37
|
+
|
|
38
|
+
"Original Version" refers to the collection of Font Software components as
|
|
39
|
+
distributed by the Copyright Holder(s).
|
|
40
|
+
|
|
41
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
42
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
43
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
44
|
+
new environment.
|
|
45
|
+
|
|
46
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
47
|
+
writer or other person who contributed to the Font Software.
|
|
48
|
+
|
|
49
|
+
PERMISSION & CONDITIONS
|
|
50
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
51
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
52
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
53
|
+
Software, subject to the following conditions:
|
|
54
|
+
|
|
55
|
+
1) Neither the Font Software nor any of its individual components,
|
|
56
|
+
in Original or Modified Versions, may be sold by itself.
|
|
57
|
+
|
|
58
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
59
|
+
redistributed and/or sold with any software, provided that each copy
|
|
60
|
+
contains the above copyright notice and this license. These can be
|
|
61
|
+
included either as stand-alone text files, human-readable headers or
|
|
62
|
+
in the appropriate machine-readable metadata fields within text or
|
|
63
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
64
|
+
|
|
65
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
66
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
67
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
68
|
+
presented to the users.
|
|
69
|
+
|
|
70
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
71
|
+
Software shall not be used to promote, endorse or advertise any
|
|
72
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
73
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
74
|
+
permission.
|
|
75
|
+
|
|
76
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
77
|
+
must be distributed entirely under this license, and must not be
|
|
78
|
+
distributed under any other license. The requirement for fonts to
|
|
79
|
+
remain under this license does not apply to any document created
|
|
80
|
+
using the Font Software.
|
|
81
|
+
|
|
82
|
+
TERMINATION
|
|
83
|
+
This license becomes null and void if any of the above conditions are
|
|
84
|
+
not met.
|
|
85
|
+
|
|
86
|
+
DISCLAIMER
|
|
87
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
88
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
89
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
90
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
91
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
92
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
93
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
94
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
95
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atls-ui/theme",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -18,13 +18,18 @@
|
|
|
18
18
|
},
|
|
19
19
|
"main": "dist/index.js",
|
|
20
20
|
"files": [
|
|
21
|
-
"
|
|
21
|
+
"assets",
|
|
22
|
+
"dist",
|
|
23
|
+
"licenses"
|
|
22
24
|
],
|
|
23
25
|
"scripts": {
|
|
24
26
|
"build": "yarn library build",
|
|
25
27
|
"prepack": "yarn run build",
|
|
26
28
|
"postpack": "rm -rf dist"
|
|
27
29
|
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"csstype": "3.2.3"
|
|
32
|
+
},
|
|
28
33
|
"publishConfig": {
|
|
29
34
|
"access": "public",
|
|
30
35
|
"exports": {
|