Skip to content

Commit

Permalink
fix(sdds-serv-docs,sdd-dfa-docs): Fix introducing page
Browse files Browse the repository at this point in the history
  • Loading branch information
neretin-trike committed Aug 5, 2024
1 parent 23321e7 commit 444e3ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
5 changes: 1 addition & 4 deletions scaffold/template-docs/docs/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import TabItem from '@theme/TabItem';
```bash
$ npm install --save react react-dom
$ npm install --save styled-components
$ npm install --save @salutejs/{{ name }} @salutejs/plasma-typo @salutejs/{{ vertical }}
$ npm install --save @salutejs/{{ name }} @salutejs/{{ vertical }}
```

## Настройка
Expand All @@ -38,16 +38,13 @@ $ npm install --save @salutejs/{{ name }} @salutejs/plasma-typo @salutejs/{{ ver

```jsx title="GlobalStyle.tsx"
import { createGlobalStyle } from 'styled-components';
import { standard } from '@salutejs/plasma-typo';
import { {{ theme }}__light } from '@salutejs/{{ vertical }}';

const ThemeStyle = createGlobalStyle({{ theme }}__light);
const TypoStyle = createGlobalStyle(standard);

export const GlobalStyle = () => (
<>
<ThemeStyle />
<TypoStyle />
</>
);
```
Expand Down
5 changes: 1 addition & 4 deletions website/sdds-dfa-docs/docs/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import TabItem from '@theme/TabItem';
```bash
$ npm install --save react react-dom
$ npm install --save styled-components
$ npm install --save @salutejs/sdds-dfa @salutejs/plasma-typo @salutejs/sdds-themes
$ npm install --save @salutejs/sdds-dfa @salutejs/sdds-themes
```

## Настройка
Expand All @@ -38,16 +38,13 @@ $ npm install --save @salutejs/sdds-dfa @salutejs/plasma-typo @salutejs/sdds-the

```jsx title="GlobalStyle.tsx"
import { createGlobalStyle } from 'styled-components';
import { standard } from '@salutejs/plasma-typo';
import { sdds_dfa__light } from '@salutejs/sdds-themes';

const ThemeStyle = createGlobalStyle(sdds_dfa__light);
const TypoStyle = createGlobalStyle(standard);

export const GlobalStyle = () => (
<>
<ThemeStyle />
<TypoStyle />
</>
);
```
Expand Down
8 changes: 1 addition & 7 deletions website/sdds-serv-docs/docs/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import TabItem from '@theme/TabItem';

```bash
$ npm install --save react react-dom
$ npm install --save @salutejs/sdds-serv @salutejs/plasma-typo @salutejs/sdds-themes
$ npm install --save @salutejs/sdds-serv @salutejs/sdds-themes
```

Так же надо установить пакет styled-components
Expand All @@ -47,16 +47,13 @@ $ npm install --save @emotion/styled @emotion/react @emotion/css

```jsx title="GlobalStyle.tsx"
import { createGlobalStyle } from 'styled-components';
import { standard } from '@salutejs/plasma-typo';
import { sdds_serv__light } from '@salutejs/sdds-themes';

const ThemeStyle = createGlobalStyle(sdds_serv__light);
const TypoStyle = createGlobalStyle(standard);

export const GlobalStyle = () => (
<>
<ThemeStyle />
<TypoStyle />
</>
);
```
Expand All @@ -67,16 +64,13 @@ export const GlobalStyle = () => (

```jsx title="GlobalStyle.tsx"
import { Global, css } from '@emotion/react';
import { standard } from '@salutejs/plasma-typo';
import { sdds_serv__light } from '@salutejs/sdds-themes';

const themeStyle = css(sdds_serv__light);
const typoStyle = css(standard);

export const GlobalStyle = () => (
<>
<Global styles={themeStyle} />
<Global styles={typoStyle} />
</>
);
```
Expand Down

0 comments on commit 444e3ce

Please sign in to comment.