Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(plasma-web,plasma-b2c,plasma-asdk): Replace tokens for background in storybook to new #1139

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/plasma-asdk/.storybook/decoratorThemes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import {
stylesSalute__dark as stylesSaluteDark,
stylesSalute__light as stylesSaluteLight,
} from '@salutejs/plasma-tokens';
import { link, linkHover, linkActive, surfaceSolid01 } from '@salutejs/plasma-tokens-b2b';
import { link, linkHover, linkActive } from '@salutejs/plasma-tokens-b2b';
import { backgroundPrimary } from '@salutejs/plasma-tokens-b2b/new';

import { standard as standardTypo, compatible as compatibleTypo } from '@salutejs/plasma-typo';
import { b2b as b2bTypo } from '@salutejs/plasma-tokens-b2b';

Expand All @@ -17,7 +19,7 @@ const CompatibleTypoStyle = createGlobalStyle(compatibleTypo);
const DocumentStyle = createGlobalStyle`
html:root {
min-height: 100vh;
background-color: ${surfaceSolid01};
background-color: ${backgroundPrimary};
}
a {
color: ${link};
Expand Down
2 changes: 1 addition & 1 deletion packages/plasma-asdk/.storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}

.sbdocs-preview {
background: var(--plasma-colors-background) !important;
background: var(--background-primary) !important;
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.05) !important;
}

Expand Down
5 changes: 3 additions & 2 deletions packages/plasma-b2c/.storybook/decoratorThemes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ import React from 'react';
import { createGlobalStyle } from 'styled-components';

import { b2c, dark, light } from '@salutejs/plasma-tokens-b2c';
import { link, linkHover, linkActive, surfaceSolid01 } from '@salutejs/plasma-tokens-web';
import { link, linkHover, linkActive } from '@salutejs/plasma-tokens-web';
import { backgroundPrimary } from '@salutejs/plasma-tokens-web/new';
neretin-trike marked this conversation as resolved.
Show resolved Hide resolved
import { standard as standardTypo, compatible as compatibleTypo } from '@salutejs/plasma-typo';

/* stylelint-disable */
const DocumentStyle = createGlobalStyle`
html:root {
min-height: 100vh;
background-color: ${surfaceSolid01};
background-color: ${backgroundPrimary};
}
a {
color: ${link};
Expand Down
2 changes: 1 addition & 1 deletion packages/plasma-b2c/.storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

.sbdocs-preview {
background: var(--plasma-colors-background) !important;
background: var(--background-primary) !important;
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.05) !important;
}

Expand Down
4 changes: 2 additions & 2 deletions packages/plasma-web/.storybook/decoratorThemes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
link,
linkHover,
linkActive,
surfaceSolid01,
} from '@salutejs/plasma-tokens-b2b';
import { backgroundPrimary } from '@salutejs/plasma-tokens-b2b/new';
import { light as b2cLight, dark as b2cDark } from '@salutejs/plasma-tokens-b2c';
import { light as legacyLight, dark as legacyDark } from '@salutejs/plasma-tokens-web';
import { standard as standardTypo, compatible as compatibleTypo } from '@salutejs/plasma-typo';
Expand All @@ -18,7 +18,7 @@ import { standard as standardTypo, compatible as compatibleTypo } from '@salutej
const DocumentStyle = createGlobalStyle`
html:root {
min-height: 100vh;
background-color: ${surfaceSolid01};
background-color: ${backgroundPrimary};
}
a {
color: ${link};
Expand Down
2 changes: 1 addition & 1 deletion packages/plasma-web/.storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}

.sbdocs-preview {
background: var(--plasma-colors-background) !important;
background: var(--background-primary) !important;
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.05) !important;
}

Expand Down
Loading