Skip to content

Commit

Permalink
fix(markdown): fixed markdown tokens initialization (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikGurev committed Sep 17, 2024
1 parent be19c9e commit 3528e93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions packages/components/core/styles/_koobiq-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@use 'theming/scrollbar-theme' as *;

@use '../../link/link-theme' as *;
@use '../../markdown/markdown-theme' as *;
@use '../../progress-bar/progress-bar-theme' as *;
@use '../../progress-spinner/progress-spinner-theme' as *;
@use '../../radio/radio-theme' as *;
Expand All @@ -30,6 +31,7 @@
@include kbq-highlight-theme();
// link is a directive, so styles for it should be applied globally
@include kbq-link-theme();
@include kbq-markdown-theme();
@include kbq-option-theme($theme);
@include kbq-optgroup-theme($theme);
@include kbq-option-action-theme($theme);
Expand All @@ -53,6 +55,7 @@

@include kbq-base-typography();
@include kbq-markdown-base-typography();
@include kbq-markdown-typography();

@include kbq-forms-typography($config);
@include kbq-option-typography($config);
Expand Down
2 changes: 2 additions & 0 deletions packages/components/markdown/_markdown-theme.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@use '../core/styles/common/tokens' as *;

@use './markdown-tokens';

@mixin kbq-markdown-theme() {
.kbq-markdown {
color: kbq-css-variable(foreground-contrast);
Expand Down
5 changes: 0 additions & 5 deletions packages/components/markdown/markdown.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
@use '../core/styles/common/tokens' as *;

@use './markdown-theme' as *;

.kbq-markdown {
display: block;

Expand Down Expand Up @@ -198,6 +196,3 @@
.docs-live-example.kbq-markdown {
margin-bottom: 128px;
}

@include kbq-markdown-theme();
@include kbq-markdown-typography();

0 comments on commit 3528e93

Please sign in to comment.