@ornikar/bumper 3.9.1 → 3.10.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/CHANGELOG.md +24 -0
- package/dist/definitions/shared/storybook/StorySection.d.ts.map +1 -1
- package/dist/definitions/shared/storybook/StoryTitle.d.ts.map +1 -1
- package/dist/definitions/system/actions/Button/Button.d.ts +4 -4
- package/dist/definitions/system/actions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/system/actions/IconButton/IconButton.d.ts.map +1 -1
- package/dist/definitions/system/content/icon/Icon.d.ts.map +1 -1
- package/dist/definitions/system/content/typography/Typography.d.ts +15 -10
- package/dist/definitions/system/content/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/system/content/typography/TypographyLink.d.ts +1 -0
- package/dist/definitions/system/content/typography/TypographyLink.d.ts.map +1 -1
- package/dist/definitions/system/core/tokens/palettes/deepPurpleColorPalette.d.ts +70 -69
- package/dist/definitions/system/core/tokens/palettes/deepPurpleColorPalette.d.ts.map +1 -1
- package/dist/definitions/system/loading/loader/Loader.d.ts +2 -2
- package/dist/definitions/system/loading/loader/Loader.d.ts.map +1 -1
- package/dist/definitions/system/loading/loader/LoaderBackgroundCircle.d.ts +2 -1
- package/dist/definitions/system/loading/loader/LoaderBackgroundCircle.d.ts.map +1 -1
- package/dist/definitions/system/loading/loader/LoaderCircleWrapper.d.ts +2 -1
- package/dist/definitions/system/loading/loader/LoaderCircleWrapper.d.ts.map +1 -1
- package/dist/definitions/system/types.d.ts +38 -1
- package/dist/definitions/system/types.d.ts.map +1 -1
- package/dist/definitions/tamagui.config.d.ts +142 -2
- package/dist/definitions/tamagui.config.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +86 -84
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +86 -84
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.22.cjs.js +86 -84
- package/dist/index-node-22.22.cjs.js.map +1 -1
- package/dist/index-node-22.22.cjs.web.js +86 -84
- package/dist/index-node-22.22.cjs.web.js.map +1 -1
- package/dist/index-node-22.22.es.mjs +86 -84
- package/dist/index-node-22.22.es.mjs.map +1 -1
- package/dist/index-node-22.22.es.web.mjs +86 -84
- package/dist/index-node-22.22.es.web.mjs.map +1 -1
- package/dist/index.es.js +86 -84
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +86 -84
- package/dist/index.es.web.js.map +1 -1
- package/dist/storybook-metro.es.android.js +81 -80
- package/dist/storybook-metro.es.android.js.map +1 -1
- package/dist/storybook-metro.es.ios.js +81 -80
- package/dist/storybook-metro.es.ios.js.map +1 -1
- package/dist/storybook-node-22.22.cjs.js +81 -80
- package/dist/storybook-node-22.22.cjs.js.map +1 -1
- package/dist/storybook-node-22.22.cjs.web.js +81 -80
- package/dist/storybook-node-22.22.cjs.web.js.map +1 -1
- package/dist/storybook-node-22.22.es.mjs +81 -80
- package/dist/storybook-node-22.22.es.mjs.map +1 -1
- package/dist/storybook-node-22.22.es.web.mjs +81 -80
- package/dist/storybook-node-22.22.es.web.mjs.map +1 -1
- package/dist/storybook.es.js +81 -80
- package/dist/storybook.es.js.map +1 -1
- package/dist/storybook.es.web.js +81 -80
- package/dist/storybook.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/docs/migration/Typography.md +123 -35
- package/package.json +2 -2
- package/src/.eslintrc.json +2 -5
- package/src/shared/storybook/StorySection.tsx +8 -1
- package/src/shared/storybook/StoryTitle.tsx +8 -2
- package/src/system/actions/Button/Button.mdx +1 -1
- package/src/system/actions/Button/Button.tsx +5 -3
- package/src/system/actions/Button/__snapshots__/Button.features.stories.tsx.snap +10 -10
- package/src/system/actions/Button/__snapshots_web__/Button.features.stories.tsx.snap +2 -2
- package/src/system/actions/Button/utils/contentColor.ts +1 -1
- package/src/system/actions/IconButton/IconButton.tsx +3 -2
- package/src/system/actions/IconButton/__snapshots__/IconButton.features.stories.tsx.snap +10 -10
- package/src/system/actions/IconButton/__snapshots_web__/IconButton.features.stories.tsx.snap +2 -2
- package/src/system/content/icon/Icon.tsx +7 -2
- package/src/system/content/typography/Typography.features.stories.tsx +2 -2
- package/src/system/content/typography/Typography.stories.tsx +2 -2
- package/src/system/content/typography/Typography.tsx +21 -19
- package/src/system/content/typography/TypographyLink.features.stories.tsx +2 -2
- package/src/system/content/typography/TypographyLink.stories.tsx +2 -2
- package/src/system/content/typography/TypographyLink.tsx +4 -2
- package/src/system/core/themes/light/__snapshots__/light.stories.tsx.snap +7 -7
- package/src/system/core/themes/light/__snapshots_web__/light.stories.tsx.snap +7 -7
- package/src/system/core/themes/light/light.ts +73 -73
- package/src/system/core/tokens/palettes/__snapshots__/deepPurpleColorPalette.stories.tsx.snap +141 -70
- package/src/system/core/tokens/palettes/__snapshots_web__/deepPurpleColorPalette.stories.tsx.snap +91 -70
- package/src/system/core/tokens/palettes/deepPurpleColorPalette.ts +9 -8
- package/src/system/loading/loader/Loader.tsx +16 -15
- package/src/system/loading/loader/LoaderBackgroundCircle.tsx +8 -1
- package/src/system/loading/loader/LoaderCircleWrapper.tsx +11 -1
- package/src/system/types.ts +51 -2
- package/src/tamagui.config.ts +2 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { contentColorArgType } from '../../../shared/storybook/helpers/argsHelpers';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TypographyBodyProps, TypographyTextProps } from './Typography';
|
|
4
4
|
import { Typography } from '.';
|
|
5
5
|
|
|
6
|
-
const meta: Meta<Extract<TypographyTextProps,
|
|
6
|
+
const meta: Meta<Extract<TypographyTextProps, TypographyBodyProps>> = {
|
|
7
7
|
title: 'Bumper/Content/Typography',
|
|
8
8
|
component: Typography.Text,
|
|
9
9
|
argTypes: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ColorTokens,
|
|
1
|
+
import type { ColorTokens, TextProps } from '@tamagui/core';
|
|
2
2
|
import { Text, styled } from '@tamagui/core';
|
|
3
3
|
import type { ReactNode } from 'react';
|
|
4
4
|
import { type Except } from 'type-fest';
|
|
@@ -13,13 +13,11 @@ import {
|
|
|
13
13
|
} from '../../core/tokens/GTStandardFont';
|
|
14
14
|
import { CONTENT_CAPS_VARIANTS, type ContentCapsVariants } from '../../core/tokens/GTStandardNarrowFont';
|
|
15
15
|
import type { FontVariants } from '../../core/tokens/fonts';
|
|
16
|
-
import type { TamaguiMediaProps } from '../../types';
|
|
16
|
+
import type { PropsToTamaguiVariants, TamaguiMediaProps } from '../../types';
|
|
17
17
|
import { typographyStyleContext } from './utils/typographyContext';
|
|
18
18
|
|
|
19
|
-
interface TypographyWithoutMediaProps extends TypographyPropsWithoutFontStyleProps {}
|
|
20
|
-
|
|
21
19
|
// Remove font-related style props from InternalTypography Props
|
|
22
|
-
type
|
|
20
|
+
type InternalTypographyExcludedFontStyleProps =
|
|
23
21
|
| 'fontFamily'
|
|
24
22
|
| 'fontSize'
|
|
25
23
|
| 'lineHeight'
|
|
@@ -28,27 +26,30 @@ type TypographyExcludedFontStyleProps =
|
|
|
28
26
|
| 'fontWeight'
|
|
29
27
|
| 'color';
|
|
30
28
|
|
|
31
|
-
type
|
|
29
|
+
type InternalTypographyPropsWithoutFontStyleProps = Except<TextProps, InternalTypographyExcludedFontStyleProps> & {
|
|
32
30
|
color?: ColorTokens;
|
|
33
31
|
};
|
|
34
32
|
|
|
35
|
-
|
|
33
|
+
interface InternalTypographyWithoutMediaProps extends InternalTypographyPropsWithoutFontStyleProps {}
|
|
34
|
+
|
|
35
|
+
interface TypographyBodyWithoutMediaProps extends InternalTypographyWithoutMediaProps {
|
|
36
36
|
variant?: BodyFontVariants;
|
|
37
37
|
weight?: 'regular' | 'bold';
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
interface TypographyHeadingLabelWithoutMediaProps extends InternalTypographyWithoutMediaProps {
|
|
40
40
|
variant: HeadingFontVariants | LabelFontVariants;
|
|
41
41
|
weight?: 'semibold';
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
interface TypographyContentCapsWithoutMediaProps extends InternalTypographyWithoutMediaProps {
|
|
44
44
|
variant: ContentCapsVariants;
|
|
45
45
|
weight?: 'bold';
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
export interface TypographyBodyProps extends TamaguiMediaProps<TypographyBodyWithoutMediaProps> {}
|
|
49
|
+
export interface TypographyHeadingLabelProps extends TamaguiMediaProps<TypographyHeadingLabelWithoutMediaProps> {}
|
|
50
|
+
export interface TypographyContentCapsProps extends TamaguiMediaProps<TypographyContentCapsWithoutMediaProps> {}
|
|
51
|
+
|
|
52
|
+
export type TypographyTextProps = TypographyBodyProps | TypographyHeadingLabelProps | TypographyContentCapsProps;
|
|
52
53
|
|
|
53
54
|
export const InternalTypography = styled(Text, {
|
|
54
55
|
context: typographyStyleContext,
|
|
@@ -63,9 +64,9 @@ export const InternalTypography = styled(Text, {
|
|
|
63
64
|
WebkitFontSmoothing: 'antialiased',
|
|
64
65
|
},
|
|
65
66
|
variants: {
|
|
66
|
-
variant: (variant: FontVariants) => {
|
|
67
|
+
variant: (variant: FontVariants): TextProps => {
|
|
67
68
|
const commonVariantStyles = {
|
|
68
|
-
fontSize: `$${variant}
|
|
69
|
+
fontSize: `$${variant}` as const,
|
|
69
70
|
lineHeight: `$${variant}`,
|
|
70
71
|
letterSpacing: `$${variant}`,
|
|
71
72
|
};
|
|
@@ -100,7 +101,7 @@ export const InternalTypography = styled(Text, {
|
|
|
100
101
|
};
|
|
101
102
|
}
|
|
102
103
|
|
|
103
|
-
return
|
|
104
|
+
return {};
|
|
104
105
|
},
|
|
105
106
|
weight: {
|
|
106
107
|
regular: {
|
|
@@ -113,14 +114,15 @@ export const InternalTypography = styled(Text, {
|
|
|
113
114
|
fontWeight: '$bold',
|
|
114
115
|
},
|
|
115
116
|
},
|
|
116
|
-
} as const
|
|
117
|
+
} as const satisfies PropsToTamaguiVariants<
|
|
118
|
+
TypographyBodyWithoutMediaProps | TypographyHeadingLabelWithoutMediaProps | TypographyContentCapsWithoutMediaProps,
|
|
119
|
+
TextProps
|
|
120
|
+
>,
|
|
117
121
|
defaultVariants: {
|
|
118
122
|
weight: 'regular',
|
|
119
123
|
},
|
|
120
124
|
});
|
|
121
125
|
|
|
122
|
-
export type InternalTypographyProps = GetProps<typeof InternalTypography>;
|
|
123
|
-
|
|
124
126
|
export function TypographyBase(props: TypographyTextProps): ReactNode {
|
|
125
127
|
const flattenProps = useProps(props);
|
|
126
128
|
return <InternalTypography {...flattenProps} />;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { action } from '@storybook/addon-actions';
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
import { VStack } from '../../core/primitives/Stack';
|
|
4
|
-
import type {
|
|
4
|
+
import type { TypographyBodyProps } from './Typography';
|
|
5
5
|
import type { TypographyLinkProps } from './TypographyLink';
|
|
6
6
|
import { InternalTypographyLink, TypographyLink } from './TypographyLink';
|
|
7
7
|
import { Typography } from '.';
|
|
8
8
|
|
|
9
|
-
const meta: Meta<Extract<TypographyLinkProps,
|
|
9
|
+
const meta: Meta<Extract<TypographyLinkProps, TypographyBodyProps>> = {
|
|
10
10
|
title: 'Bumper/Content/TypographyLink/Features',
|
|
11
11
|
component: TypographyLink,
|
|
12
12
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { action } from '@storybook/addon-actions';
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
import { contentColorArgType } from '../../../shared/storybook/helpers/argsHelpers';
|
|
4
|
-
import type {
|
|
4
|
+
import type { TypographyBodyProps } from './Typography';
|
|
5
5
|
import type { TypographyLinkProps } from './TypographyLink';
|
|
6
6
|
import { TypographyLink } from './TypographyLink';
|
|
7
7
|
|
|
8
|
-
const meta: Meta<Extract<TypographyLinkProps,
|
|
8
|
+
const meta: Meta<Extract<TypographyLinkProps, TypographyBodyProps>> = {
|
|
9
9
|
title: 'Bumper/Content/TypographyLink',
|
|
10
10
|
component: TypographyLink,
|
|
11
11
|
argTypes: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { TextProps } from '@tamagui/core';
|
|
1
2
|
import { styled } from '@tamagui/core';
|
|
2
3
|
import type { ReactNode } from 'react';
|
|
3
|
-
import type { TamaguiMediaProps } from '../../types';
|
|
4
|
+
import type { PropsToTamaguiVariants, TamaguiMediaProps } from '../../types';
|
|
4
5
|
import type { TypographyTextProps } from './Typography';
|
|
5
6
|
import { InternalTypography } from './Typography';
|
|
6
7
|
import { typographyStyleContext } from './utils/typographyContext';
|
|
@@ -9,6 +10,7 @@ export interface TypographyLinkWithoutMediaProps {
|
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
noUnderline?: boolean;
|
|
11
12
|
onPress?: () => void;
|
|
13
|
+
href?: string;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export type TypographyLinkProps = TypographyTextProps & TamaguiMediaProps<TypographyLinkWithoutMediaProps>;
|
|
@@ -41,7 +43,7 @@ export const InternalTypographyLink = styled(InternalTypography, {
|
|
|
41
43
|
textDecorationLine: 'underline',
|
|
42
44
|
},
|
|
43
45
|
},
|
|
44
|
-
} as const,
|
|
46
|
+
} as const satisfies PropsToTamaguiVariants<TypographyLinkWithoutMediaProps, TextProps>,
|
|
45
47
|
defaultVariants: {
|
|
46
48
|
disabled: false,
|
|
47
49
|
noUnderline: false,
|
|
@@ -1207,7 +1207,7 @@ exports[`Bumper/Core/Themes Light 1`] = `
|
|
|
1207
1207
|
style={
|
|
1208
1208
|
{
|
|
1209
1209
|
"alignItems": "center",
|
|
1210
|
-
"backgroundColor": "#
|
|
1210
|
+
"backgroundColor": "#ffffff",
|
|
1211
1211
|
"borderBottomColor": "#F1ECE4",
|
|
1212
1212
|
"borderBottomLeftRadius": 4,
|
|
1213
1213
|
"borderBottomRightRadius": 4,
|
|
@@ -1230,7 +1230,7 @@ exports[`Bumper/Core/Themes Light 1`] = `
|
|
|
1230
1230
|
<View
|
|
1231
1231
|
style={
|
|
1232
1232
|
{
|
|
1233
|
-
"backgroundColor": "#
|
|
1233
|
+
"backgroundColor": "#563B56",
|
|
1234
1234
|
"borderBottomLeftRadius": 2,
|
|
1235
1235
|
"borderBottomRightRadius": 2,
|
|
1236
1236
|
"borderTopLeftRadius": 2,
|
|
@@ -1278,7 +1278,7 @@ exports[`Bumper/Core/Themes Light 1`] = `
|
|
|
1278
1278
|
}
|
|
1279
1279
|
suppressHighlighting={true}
|
|
1280
1280
|
>
|
|
1281
|
-
#
|
|
1281
|
+
#ffffff
|
|
1282
1282
|
</Text>
|
|
1283
1283
|
</View>
|
|
1284
1284
|
<View
|
|
@@ -3119,7 +3119,7 @@ exports[`Bumper/Core/Themes Light 1`] = `
|
|
|
3119
3119
|
style={
|
|
3120
3120
|
{
|
|
3121
3121
|
"alignItems": "center",
|
|
3122
|
-
"backgroundColor": "#
|
|
3122
|
+
"backgroundColor": "#BABABA",
|
|
3123
3123
|
"borderBottomColor": "#F1ECE4",
|
|
3124
3124
|
"borderBottomLeftRadius": 4,
|
|
3125
3125
|
"borderBottomRightRadius": 4,
|
|
@@ -3176,7 +3176,7 @@ exports[`Bumper/Core/Themes Light 1`] = `
|
|
|
3176
3176
|
}
|
|
3177
3177
|
suppressHighlighting={true}
|
|
3178
3178
|
>
|
|
3179
|
-
#
|
|
3179
|
+
#BABABA
|
|
3180
3180
|
</Text>
|
|
3181
3181
|
</View>
|
|
3182
3182
|
<View
|
|
@@ -4023,7 +4023,7 @@ exports[`Bumper/Core/Themes Light 1`] = `
|
|
|
4023
4023
|
style={
|
|
4024
4024
|
{
|
|
4025
4025
|
"alignItems": "center",
|
|
4026
|
-
"backgroundColor": "#
|
|
4026
|
+
"backgroundColor": "#DCDCDC",
|
|
4027
4027
|
"borderBottomColor": "#F1ECE4",
|
|
4028
4028
|
"borderBottomLeftRadius": 4,
|
|
4029
4029
|
"borderBottomRightRadius": 4,
|
|
@@ -4080,7 +4080,7 @@ exports[`Bumper/Core/Themes Light 1`] = `
|
|
|
4080
4080
|
}
|
|
4081
4081
|
suppressHighlighting={true}
|
|
4082
4082
|
>
|
|
4083
|
-
#
|
|
4083
|
+
#DCDCDC
|
|
4084
4084
|
</Text>
|
|
4085
4085
|
</View>
|
|
4086
4086
|
<View
|
|
@@ -363,10 +363,10 @@ exports[`Bumper/Core/Themes Light 1`] = `
|
|
|
363
363
|
class="is_HStack _dsp-flex _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-row _gap-t-space-spa1366020313 _alignItems-center"
|
|
364
364
|
>
|
|
365
365
|
<div
|
|
366
|
-
class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385508 _height-t-size-size1385508 _btlr-t-radius-ra1673638410 _btrr-t-radius-ra1673638410 _bbrr-t-radius-ra1673638410 _bblr-t-radius-ra1673638410 _backgroundColor-
|
|
366
|
+
class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385508 _height-t-size-size1385508 _btlr-t-radius-ra1673638410 _btrr-t-radius-ra1673638410 _bbrr-t-radius-ra1673638410 _bblr-t-radius-ra1673638410 _backgroundColor-ffffff35 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border--bas1360416657 _brc-border--bas1360416657 _borderBottomColor-border--bas1360416657 _borderLeftColor-border--bas1360416657 _alignItems-center _justifyContent-center _borderBottomStyle-solid _borderTopStyle-solid _borderLeftStyle-solid _borderRightStyle-solid"
|
|
367
367
|
>
|
|
368
368
|
<div
|
|
369
|
-
class="_dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385442 _height-t-size-size1385442 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-bg--
|
|
369
|
+
class="_dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385442 _height-t-size-size1385442 _btlr-t-radius-ra1673638416 _btrr-t-radius-ra1673638416 _bbrr-t-radius-ra1673638416 _bblr-t-radius-ra1673638416 _backgroundColor-bg--accent-1633109644"
|
|
370
370
|
/>
|
|
371
371
|
</div>
|
|
372
372
|
<div
|
|
@@ -381,7 +381,7 @@ exports[`Bumper/Core/Themes Light 1`] = `
|
|
|
381
381
|
<span
|
|
382
382
|
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1510 _lh-f-lineHeigh201793153 _ls-f-letterSpa1099960310 _fw-f-weight-re98715119 _textAlign-left _col-content--ba1918259606"
|
|
383
383
|
>
|
|
384
|
-
#
|
|
384
|
+
#ffffff
|
|
385
385
|
</span>
|
|
386
386
|
</div>
|
|
387
387
|
<div
|
|
@@ -913,7 +913,7 @@ exports[`Bumper/Core/Themes Light 1`] = `
|
|
|
913
913
|
class="is_HStack _dsp-flex _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-row _gap-t-space-spa1366020313 _alignItems-center"
|
|
914
914
|
>
|
|
915
915
|
<div
|
|
916
|
-
class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385508 _height-t-size-size1385508 _btlr-t-radius-ra1673638410 _btrr-t-radius-ra1673638410 _bbrr-t-radius-ra1673638410 _bblr-t-radius-ra1673638410 _backgroundColor-
|
|
916
|
+
class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385508 _height-t-size-size1385508 _btlr-t-radius-ra1673638410 _btrr-t-radius-ra1673638410 _bbrr-t-radius-ra1673638410 _bblr-t-radius-ra1673638410 _backgroundColor-BABABA35 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border--bas1360416657 _brc-border--bas1360416657 _borderBottomColor-border--bas1360416657 _borderLeftColor-border--bas1360416657 _alignItems-center _justifyContent-center _borderBottomStyle-solid _borderTopStyle-solid _borderLeftStyle-solid _borderRightStyle-solid"
|
|
917
917
|
/>
|
|
918
918
|
<div
|
|
919
919
|
class="_dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-280px"
|
|
@@ -927,7 +927,7 @@ exports[`Bumper/Core/Themes Light 1`] = `
|
|
|
927
927
|
<span
|
|
928
928
|
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1510 _lh-f-lineHeigh201793153 _ls-f-letterSpa1099960310 _fw-f-weight-re98715119 _textAlign-left _col-content--ba1918259606"
|
|
929
929
|
>
|
|
930
|
-
#
|
|
930
|
+
#BABABA
|
|
931
931
|
</span>
|
|
932
932
|
</div>
|
|
933
933
|
<div
|
|
@@ -1173,7 +1173,7 @@ exports[`Bumper/Core/Themes Light 1`] = `
|
|
|
1173
1173
|
class="is_HStack _dsp-flex _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _fd-row _gap-t-space-spa1366020313 _alignItems-center"
|
|
1174
1174
|
>
|
|
1175
1175
|
<div
|
|
1176
|
-
class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385508 _height-t-size-size1385508 _btlr-t-radius-ra1673638410 _btrr-t-radius-ra1673638410 _bbrr-t-radius-ra1673638410 _bblr-t-radius-ra1673638410 _backgroundColor-
|
|
1176
|
+
class="_dsp-flex _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-t-size-size1385508 _height-t-size-size1385508 _btlr-t-radius-ra1673638410 _btrr-t-radius-ra1673638410 _bbrr-t-radius-ra1673638410 _bblr-t-radius-ra1673638410 _backgroundColor-DCDCDC35 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border--bas1360416657 _brc-border--bas1360416657 _borderBottomColor-border--bas1360416657 _borderLeftColor-border--bas1360416657 _alignItems-center _justifyContent-center _borderBottomStyle-solid _borderTopStyle-solid _borderLeftStyle-solid _borderRightStyle-solid"
|
|
1177
1177
|
/>
|
|
1178
1178
|
<div
|
|
1179
1179
|
class="_dsp-flex _alignItems-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _minHeight-0px _minWidth-0px _flexShrink-0 _width-280px"
|
|
@@ -1187,7 +1187,7 @@ exports[`Bumper/Core/Themes Light 1`] = `
|
|
|
1187
1187
|
<span
|
|
1188
1188
|
class="font_GTStandard _WebkitFontSmoothing-_platformweb_antialiased _dsp-inline _bxs-border-box _ww-break-word _ws-pre-wrap _marginTop-0px _marginRight-0px _marginBottom-0px _marginLeft-0px _ff-f-family _fs-f-size-body1510 _lh-f-lineHeigh201793153 _ls-f-letterSpa1099960310 _fw-f-weight-re98715119 _textAlign-left _col-content--ba1918259606"
|
|
1189
1189
|
>
|
|
1190
|
-
#
|
|
1190
|
+
#DCDCDC
|
|
1191
1191
|
</span>
|
|
1192
1192
|
</div>
|
|
1193
1193
|
<div
|
|
@@ -7,83 +7,83 @@ import type { Theme } from '../types';
|
|
|
7
7
|
// https://github.com/ornikar/kitt/blob/79e367e962c957c016c4df67dbcf515c8f45ff0e/@ornikar/kitt-universal/src/themes/late-ocean/colors.ts#L28
|
|
8
8
|
export const light: Theme = {
|
|
9
9
|
// content
|
|
10
|
-
'content.base.low': deepPurpleColorPalette['grey.5'],
|
|
11
|
-
'content.base.mid': deepPurpleColorPalette['grey.7'],
|
|
12
|
-
'content.base.hi': deepPurpleColorPalette['grey.9'],
|
|
13
|
-
'content.base.onContrasted.low': deepPurpleColorPalette['white-alpha.60'],
|
|
14
|
-
'content.base.onContrasted.mid': deepPurpleColorPalette['white-alpha.80'],
|
|
15
|
-
'content.base.onContrasted.hi': deepPurpleColorPalette['grey.0'],
|
|
16
|
-
'content.accent': deepPurpleColorPalette['deepPurple.8'],
|
|
17
|
-
'content.promo': deepPurpleColorPalette['lightning.9'],
|
|
18
|
-
'content.promo.onContrasted': deepPurpleColorPalette['lightning.5'],
|
|
19
|
-
'content.info': deepPurpleColorPalette['blue.7'],
|
|
20
|
-
'content.success': deepPurpleColorPalette['green.7'],
|
|
21
|
-
'content.warning': deepPurpleColorPalette['yellow.7'],
|
|
22
|
-
'content.danger': deepPurpleColorPalette['red.7'],
|
|
23
|
-
'content.muted': deepPurpleColorPalette['beige.6'],
|
|
24
|
-
'content.disabled': deepPurpleColorPalette['grey.
|
|
25
|
-
'content.disabled.onContrasted': deepPurpleColorPalette['grey.
|
|
10
|
+
'content.base.low': deepPurpleColorPalette['palette.grey.5'],
|
|
11
|
+
'content.base.mid': deepPurpleColorPalette['palette.grey.7'],
|
|
12
|
+
'content.base.hi': deepPurpleColorPalette['palette.grey.9'],
|
|
13
|
+
'content.base.onContrasted.low': deepPurpleColorPalette['palette.white-alpha.60'],
|
|
14
|
+
'content.base.onContrasted.mid': deepPurpleColorPalette['palette.white-alpha.80'],
|
|
15
|
+
'content.base.onContrasted.hi': deepPurpleColorPalette['palette.grey.0'],
|
|
16
|
+
'content.accent': deepPurpleColorPalette['palette.deepPurple.8'],
|
|
17
|
+
'content.promo': deepPurpleColorPalette['palette.lightning.9'],
|
|
18
|
+
'content.promo.onContrasted': deepPurpleColorPalette['palette.lightning.5'],
|
|
19
|
+
'content.info': deepPurpleColorPalette['palette.blue.7'],
|
|
20
|
+
'content.success': deepPurpleColorPalette['palette.green.7'],
|
|
21
|
+
'content.warning': deepPurpleColorPalette['palette.yellow.7'],
|
|
22
|
+
'content.danger': deepPurpleColorPalette['palette.red.7'],
|
|
23
|
+
'content.muted': deepPurpleColorPalette['palette.beige.6'],
|
|
24
|
+
'content.disabled': deepPurpleColorPalette['palette.grey.4'],
|
|
25
|
+
'content.disabled.onContrasted': deepPurpleColorPalette['palette.grey.0'],
|
|
26
26
|
|
|
27
27
|
// backgrounds
|
|
28
|
-
'bg.base.low.default': deepPurpleColorPalette['grey.0'],
|
|
29
|
-
'bg.base.low.pressed': deepPurpleColorPalette['beige.1'],
|
|
30
|
-
'bg.base.mid.default': deepPurpleColorPalette['beige.1'],
|
|
31
|
-
'bg.base.mid.pressed': deepPurpleColorPalette['beige.2'],
|
|
32
|
-
'bg.base.hi.default': deepPurpleColorPalette['beige.2'],
|
|
33
|
-
'bg.base.hi.pressed': deepPurpleColorPalette['beige.3'],
|
|
34
|
-
'bg.accent.default': deepPurpleColorPalette['deepPurple.8'],
|
|
35
|
-
'bg.accent.pressed': deepPurpleColorPalette['deepPurple.7'],
|
|
36
|
-
'bg.promo.mid.default': deepPurpleColorPalette['lightning.5'],
|
|
37
|
-
'bg.promo.mid.pressed': deepPurpleColorPalette['lightning.4'],
|
|
38
|
-
'bg.promo.hi.default': deepPurpleColorPalette['lightning.9'],
|
|
39
|
-
'bg.promo.hi.pressed': deepPurpleColorPalette['lightning.8'],
|
|
40
|
-
'bg.highlight.mid.default': deepPurpleColorPalette['mauve.1'],
|
|
41
|
-
'bg.highlight.mid.pressed': deepPurpleColorPalette['mauve.2'],
|
|
42
|
-
'bg.highlight.hi.default': deepPurpleColorPalette['mauve.3'],
|
|
43
|
-
'bg.highlight.hi.pressed': deepPurpleColorPalette['mauve.4'],
|
|
44
|
-
'bg.info.mid': deepPurpleColorPalette['blue.1'],
|
|
45
|
-
'bg.info.hi': deepPurpleColorPalette['blue.6'],
|
|
46
|
-
'bg.success.mid': deepPurpleColorPalette['green.1'],
|
|
47
|
-
'bg.success.hi': deepPurpleColorPalette['green.6'],
|
|
48
|
-
'bg.warning.mid': deepPurpleColorPalette['yellow.1'],
|
|
49
|
-
'bg.warning.hi': deepPurpleColorPalette['yellow.6'],
|
|
50
|
-
'bg.danger.mid': deepPurpleColorPalette['red.1'],
|
|
51
|
-
'bg.danger.hi': deepPurpleColorPalette['red.6'],
|
|
52
|
-
'bg.disabled.mid': deepPurpleColorPalette['grey.1'],
|
|
53
|
-
'bg.disabled.hi': deepPurpleColorPalette['grey.3'],
|
|
54
|
-
'bg.overlay': deepPurpleColorPalette['grey-alpha.50'],
|
|
28
|
+
'bg.base.low.default': deepPurpleColorPalette['palette.grey.0'],
|
|
29
|
+
'bg.base.low.pressed': deepPurpleColorPalette['palette.beige.1'],
|
|
30
|
+
'bg.base.mid.default': deepPurpleColorPalette['palette.beige.1'],
|
|
31
|
+
'bg.base.mid.pressed': deepPurpleColorPalette['palette.beige.2'],
|
|
32
|
+
'bg.base.hi.default': deepPurpleColorPalette['palette.beige.2'],
|
|
33
|
+
'bg.base.hi.pressed': deepPurpleColorPalette['palette.beige.3'],
|
|
34
|
+
'bg.accent.default': deepPurpleColorPalette['palette.deepPurple.8'],
|
|
35
|
+
'bg.accent.pressed': deepPurpleColorPalette['palette.deepPurple.7'],
|
|
36
|
+
'bg.promo.mid.default': deepPurpleColorPalette['palette.lightning.5'],
|
|
37
|
+
'bg.promo.mid.pressed': deepPurpleColorPalette['palette.lightning.4'],
|
|
38
|
+
'bg.promo.hi.default': deepPurpleColorPalette['palette.lightning.9'],
|
|
39
|
+
'bg.promo.hi.pressed': deepPurpleColorPalette['palette.lightning.8'],
|
|
40
|
+
'bg.highlight.mid.default': deepPurpleColorPalette['palette.mauve.1'],
|
|
41
|
+
'bg.highlight.mid.pressed': deepPurpleColorPalette['palette.mauve.2'],
|
|
42
|
+
'bg.highlight.hi.default': deepPurpleColorPalette['palette.mauve.3'],
|
|
43
|
+
'bg.highlight.hi.pressed': deepPurpleColorPalette['palette.mauve.4'],
|
|
44
|
+
'bg.info.mid': deepPurpleColorPalette['palette.blue.1'],
|
|
45
|
+
'bg.info.hi': deepPurpleColorPalette['palette.blue.6'],
|
|
46
|
+
'bg.success.mid': deepPurpleColorPalette['palette.green.1'],
|
|
47
|
+
'bg.success.hi': deepPurpleColorPalette['palette.green.6'],
|
|
48
|
+
'bg.warning.mid': deepPurpleColorPalette['palette.yellow.1'],
|
|
49
|
+
'bg.warning.hi': deepPurpleColorPalette['palette.yellow.6'],
|
|
50
|
+
'bg.danger.mid': deepPurpleColorPalette['palette.red.1'],
|
|
51
|
+
'bg.danger.hi': deepPurpleColorPalette['palette.red.6'],
|
|
52
|
+
'bg.disabled.mid': deepPurpleColorPalette['palette.grey.1'],
|
|
53
|
+
'bg.disabled.hi': deepPurpleColorPalette['palette.grey.3'],
|
|
54
|
+
'bg.overlay': deepPurpleColorPalette['palette.grey-alpha.50'],
|
|
55
55
|
|
|
56
56
|
// borders
|
|
57
|
-
'border.base.low': deepPurpleColorPalette['beige.2'],
|
|
58
|
-
'border.base.mid': deepPurpleColorPalette['beige.3'],
|
|
59
|
-
'border.base.hi': deepPurpleColorPalette['grey.9'],
|
|
60
|
-
'border.base.onContrasted.mid': deepPurpleColorPalette['white-alpha.20'],
|
|
61
|
-
'border.base.onContrasted.hi': deepPurpleColorPalette['grey.0'],
|
|
62
|
-
'border.base.accent': deepPurpleColorPalette['deepPurple.8'],
|
|
63
|
-
'border.info': deepPurpleColorPalette['blue.6'],
|
|
64
|
-
'border.success': deepPurpleColorPalette['green.6'],
|
|
65
|
-
'border.warning': deepPurpleColorPalette['yellow.6'],
|
|
66
|
-
'border.danger': deepPurpleColorPalette['red.6'],
|
|
67
|
-
'border.disabled': deepPurpleColorPalette['grey.2'],
|
|
68
|
-
'border.highlight': deepPurpleColorPalette['mauve.3'],
|
|
69
|
-
'border.focus': deepPurpleColorPalette['blue.4'],
|
|
70
|
-
'border.transparent': deepPurpleColorPalette.transparent,
|
|
57
|
+
'border.base.low': deepPurpleColorPalette['palette.beige.2'],
|
|
58
|
+
'border.base.mid': deepPurpleColorPalette['palette.beige.3'],
|
|
59
|
+
'border.base.hi': deepPurpleColorPalette['palette.grey.9'],
|
|
60
|
+
'border.base.onContrasted.mid': deepPurpleColorPalette['palette.white-alpha.20'],
|
|
61
|
+
'border.base.onContrasted.hi': deepPurpleColorPalette['palette.grey.0'],
|
|
62
|
+
'border.base.accent': deepPurpleColorPalette['palette.deepPurple.8'],
|
|
63
|
+
'border.info': deepPurpleColorPalette['palette.blue.6'],
|
|
64
|
+
'border.success': deepPurpleColorPalette['palette.green.6'],
|
|
65
|
+
'border.warning': deepPurpleColorPalette['palette.yellow.6'],
|
|
66
|
+
'border.danger': deepPurpleColorPalette['palette.red.6'],
|
|
67
|
+
'border.disabled': deepPurpleColorPalette['palette.grey.2'],
|
|
68
|
+
'border.highlight': deepPurpleColorPalette['palette.mauve.3'],
|
|
69
|
+
'border.focus': deepPurpleColorPalette['palette.blue.4'],
|
|
70
|
+
'border.transparent': deepPurpleColorPalette['palette.transparent'],
|
|
71
71
|
|
|
72
72
|
// Buttons
|
|
73
|
-
'button.bg.primary.default': deepPurpleColorPalette['deepPurple.8'],
|
|
74
|
-
'button.bg.primary.pressed': deepPurpleColorPalette['deepPurple.7'],
|
|
75
|
-
'button.bg.primary.onContrasted.default': deepPurpleColorPalette['grey.0'],
|
|
76
|
-
'button.bg.primary.onContrasted.pressed': deepPurpleColorPalette['white-alpha.80'],
|
|
77
|
-
'button.bg.secondary.default': deepPurpleColorPalette.transparent,
|
|
78
|
-
'button.bg.secondary.pressed': deepPurpleColorPalette['deepPurple-alpha.10'],
|
|
79
|
-
'button.bg.secondary.onContrasted.default': deepPurpleColorPalette.transparent,
|
|
80
|
-
'button.bg.secondary.onContrasted.pressed': deepPurpleColorPalette['white-alpha.10'],
|
|
81
|
-
'button.bg.tertiary.default': deepPurpleColorPalette.transparent,
|
|
82
|
-
'button.bg.tertiary.pressed': deepPurpleColorPalette['deepPurple-alpha.10'],
|
|
83
|
-
'button.bg.tertiary.onContrasted.default': deepPurpleColorPalette.transparent,
|
|
84
|
-
'button.bg.tertiary.onContrasted.pressed': deepPurpleColorPalette['white-alpha.10'],
|
|
85
|
-
'button.bg.danger.default': deepPurpleColorPalette.transparent,
|
|
86
|
-
'button.bg.danger.pressed': deepPurpleColorPalette['red.1'],
|
|
87
|
-
'button.bg.danger.onContrasted.default': deepPurpleColorPalette.white,
|
|
88
|
-
'button.bg.danger.onContrasted.pressed': deepPurpleColorPalette['red.1'],
|
|
73
|
+
'button.bg.primary.default': deepPurpleColorPalette['palette.deepPurple.8'],
|
|
74
|
+
'button.bg.primary.pressed': deepPurpleColorPalette['palette.deepPurple.7'],
|
|
75
|
+
'button.bg.primary.onContrasted.default': deepPurpleColorPalette['palette.grey.0'],
|
|
76
|
+
'button.bg.primary.onContrasted.pressed': deepPurpleColorPalette['palette.white-alpha.80'],
|
|
77
|
+
'button.bg.secondary.default': deepPurpleColorPalette['palette.transparent'],
|
|
78
|
+
'button.bg.secondary.pressed': deepPurpleColorPalette['palette.deepPurple-alpha.10'],
|
|
79
|
+
'button.bg.secondary.onContrasted.default': deepPurpleColorPalette['palette.transparent'],
|
|
80
|
+
'button.bg.secondary.onContrasted.pressed': deepPurpleColorPalette['palette.white-alpha.10'],
|
|
81
|
+
'button.bg.tertiary.default': deepPurpleColorPalette['palette.transparent'],
|
|
82
|
+
'button.bg.tertiary.pressed': deepPurpleColorPalette['palette.deepPurple-alpha.10'],
|
|
83
|
+
'button.bg.tertiary.onContrasted.default': deepPurpleColorPalette['palette.transparent'],
|
|
84
|
+
'button.bg.tertiary.onContrasted.pressed': deepPurpleColorPalette['palette.white-alpha.10'],
|
|
85
|
+
'button.bg.danger.default': deepPurpleColorPalette['palette.transparent'],
|
|
86
|
+
'button.bg.danger.pressed': deepPurpleColorPalette['palette.red.1'],
|
|
87
|
+
'button.bg.danger.onContrasted.default': deepPurpleColorPalette['palette.white'],
|
|
88
|
+
'button.bg.danger.onContrasted.pressed': deepPurpleColorPalette['palette.red.1'],
|
|
89
89
|
};
|