Skip to content

Commit 6632b7d

Browse files
authored
chore(docs): replaced generated theme with built-in tokens (#DS-3925) (#1331)
1 parent 2360305 commit 6632b7d

File tree

20 files changed

+38
-19934
lines changed

20 files changed

+38
-19934
lines changed

apps/docs/scripts/build-tokens.js

Lines changed: 0 additions & 87 deletions
This file was deleted.

apps/docs/src/app/components/anchors/anchors.component.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
@use '../../../styles/koobiq/default-theme/variables' as *;
2-
31
.docs-anchors {
42
position: sticky;
53

6-
top: $size-7xl;
4+
top: var(--kbq-size-7xl);
75

86
display: flex;
97
flex-direction: column;

apps/docs/src/app/components/icons-viewer/icon-preview-modal/icon-preview-modal.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@use '../../../../styles/koobiq/default-theme/variables' as *;
2-
31
.docs-icon-preview-modal .kbq-modal-body {
42
display: flex;
53
flex-direction: column;
@@ -58,8 +56,8 @@
5856
display: flex;
5957
flex-wrap: wrap;
6058

61-
margin-top: $size-xxs;
62-
gap: $size-xxs;
59+
margin-top: var(--kbq-size-xxs);
60+
gap: var(--kbq-size-xxs);
6361

6462
.kbq-badge {
6563
cursor: pointer;

apps/docs/src/app/components/icons-viewer/icons-viewer.scss

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
@use 'components/core/styles/core' as common;
2-
@use '../../../styles/koobiq/default-theme/variables' as *;
3-
41
.docs-icons-viewer {
52
overflow-y: auto;
63

@@ -47,7 +44,7 @@
4744
}
4845

4946
.docs-icons-viewer__table-empty-results {
50-
margin: $size-3xl auto;
47+
margin: var(--kbq-size-3xl) auto;
5148
}
5249

5350
.docs-icons-viewer__table-row-header {
@@ -61,10 +58,10 @@
6158

6259
.docs-icons-viewer__table-row {
6360
display: grid;
64-
column-gap: $size-l;
65-
row-gap: $size-l;
61+
column-gap: var(--kbq-size-l);
62+
row-gap: var(--kbq-size-l);
6663

67-
margin-top: $size-s;
64+
margin-top: var(--kbq-size-s);
6865
}
6966

7067
.docs-icons-viewer__table-row_16 {

apps/docs/src/app/components/navbar/navbar.scss

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
@use '../../../styles/koobiq/default-theme/variables' as *;
2-
31
.docs-navbar {
42
position: sticky;
53

64
display: flex;
75
flex-direction: row;
86
justify-content: space-between;
97

10-
padding: $size-l $size-xxl;
8+
padding: var(--kbq-size-l) var(--kbq-size-xxl);
119
}
1210

1311
.docs-navbar-show-small {
@@ -32,8 +30,8 @@
3230
}
3331

3432
& .kbq-icon {
35-
width: $size-l;
36-
height: $size-l;
33+
width: var(--kbq-size-l);
34+
height: var(--kbq-size-l);
3735
}
3836
}
3937

@@ -55,7 +53,7 @@
5553
}
5654

5755
.docs-navbar {
58-
padding: $size-s $size-xxs $size-s $size-l;
56+
padding: var(--kbq-size-s) var(--kbq-size-xxs) var(--kbq-size-s) var(--kbq-size-l);
5957

6058
.docs-navbar__links {
6159
margin-left: var(--kbq-size-xxs);
@@ -64,8 +62,8 @@
6462

6563
.DocSearch-Button,
6664
.kbq-button-icon {
67-
width: $size-5xl;
68-
height: $size-5xl;
65+
width: var(--kbq-size-5xl);
66+
height: var(--kbq-size-5xl);
6967
}
7068

7169
.docs-navbar__right {

apps/docs/src/app/components/welcome/welcome.component.scss

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@use '../../../styles/koobiq/default-theme/variables' as *;
2-
31
.docs-welcome {
42
display: flex;
53
flex-direction: column;
@@ -22,18 +20,18 @@
2220

2321
.docs-welcome__description {
2422
max-width: 900px;
25-
margin-top: $size-xxl;
23+
margin-top: var(--kbq-size-xxl);
2624
}
2725

2826
.docs-welcome__category {
29-
margin-top: $size-5xl;
27+
margin-top: var(--kbq-size-5xl);
3028
max-width: 1300px;
3129
}
3230

3331
.docs-welcome__category-items {
3432
flex-wrap: wrap;
3533

36-
gap: $size-4xl;
34+
gap: var(--kbq-size-4xl);
3735
}
3836

3937
.docs-welcome__category-item {
@@ -47,31 +45,31 @@
4745
}
4846

4947
.docs-welcome__category-item-title {
50-
margin-top: $size-m;
48+
margin-top: var(--kbq-size-m);
5149
}
5250

5351
@media (width < 768px) {
5452
.docs-welcome {
55-
padding: $size-l $size-l 160px;
53+
padding: var(--kbq-size-l) var(--kbq-size-l) 160px;
5654
}
5755

5856
.docs-welcome__category-items {
59-
gap: $size-l;
57+
gap: var(--kbq-size-l);
6058
}
6159

6260
.docs-welcome__category-item {
63-
width: calc(50% - #{$size-l} / 2);
61+
width: calc(50% - var(--kbq-size-l) / 2);
6462
}
6563
}
6664

6765
@media (768px <= width < 1200px) {
6866
.docs-welcome {
69-
padding: 0 $size-xxl 160px $size-xxl;
67+
padding: 0 var(--kbq-size-xxl) 160px var(--kbq-size-xxl);
7068
}
7169
}
7270

7371
@media (1200px <= width < 1920px) {
7472
.docs-welcome {
75-
padding: 0 $size-7xl 160px $size-7xl;
73+
padding: 0 var(--kbq-size-7xl) 160px var(--kbq-size-7xl);
7674
}
7775
}
Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1-
@forward 'default-theme/css-tokens.css';
2-
@forward 'default-theme/css-tokens-dark.css';
3-
@forward 'default-theme/css-tokens-light.css';
1+
@forward '@koobiq/design-tokens/web/css/size.css';
2+
@forward '@koobiq/design-tokens/web/css/font.css';
3+
@forward '@koobiq/design-tokens/web/css/md-typography.css';
4+
@forward '@koobiq/design-tokens/web/css/typography.css';
5+
6+
@forward '@koobiq/design-tokens/web/css/palette/grey.css';
7+
@forward '@koobiq/design-tokens/web/css/palette/green.css';
8+
@forward '@koobiq/design-tokens/web/css/palette/blue.css';
9+
@forward '@koobiq/design-tokens/web/css/palette/red.css';
10+
@forward '@koobiq/design-tokens/web/css/palette/purple.css';
11+
12+
@forward '@koobiq/design-tokens/web/css/light/semantic-colors.css';
13+
@forward '@koobiq/design-tokens/web/css/light/shadows.css';
14+
15+
@forward '@koobiq/design-tokens/web/css/dark/semantic-colors.css';
16+
@forward '@koobiq/design-tokens/web/css/dark/shadows.css';

0 commit comments

Comments
 (0)