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

feat(visual,docs): moved from sass vars to css-vars #296

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
fix(docs): updated docs tokens
  • Loading branch information
NikGurev committed Sep 19, 2024
commit c70634c8a9522f8e6f1c562d34f2637cf3202fed
5 changes: 4 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@
"styles": [
{
"input": "apps/docs/src/main.scss"
}
},
"apps/docs/src/styles/koobiq/default-theme/css-tokens.css",
"apps/docs/src/styles/koobiq/default-theme/css-tokens-dark.css",
"apps/docs/src/styles/koobiq/default-theme/css-tokens-light.css"
],
"scripts": [],
"vendorChunk": true,
Expand Down
6 changes: 4 additions & 2 deletions apps/docs/scripts/build-tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ function buildTokens(themeConfig) {
delete extendedPlatform.platforms.figma;

extendedPlatform.platforms.css.files[0].options.selector = `.${platform.skin}`;
extendedPlatform.platforms.css.files[1].options.selector = `.kbq-theme-light`;
extendedPlatform.platforms.css.files[2].options.selector = `.kbq-theme-dark`;

const StyleDictionaryExtended = StyleDictionary.extend(extendedPlatform);
delete StyleDictionaryExtended.platforms.figma;
Expand All @@ -64,7 +66,7 @@ const themeColorNames = ['default-theme'];

for (const skin of [kbq]) {
const koobiqTokensProps = `node_modules/@koobiq/design-tokens/web/properties/**/*.json5`;
const koobiqTokensComponents = `node_modules/@koobiq/design-tokens/web/components/**/*.json5`;
// const koobiqTokensComponents = `node_modules/@koobiq/design-tokens/web/components/**/*.json5`;

for (const theme of themeColorNames) {
themesConfig.push({
Expand All @@ -73,7 +75,7 @@ for (const skin of [kbq]) {
buildPath: [
koobiqTokensProps,
`apps/docs/src/styles/${skin}/${theme}/properties/**/*.json5`,
koobiqTokensComponents
// koobiqTokensComponents
],
outputPath: `apps/docs/src/styles/${skin}/${theme}/`
});
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/styles/koobiq/default-theme/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ $light-states-icon-visited-hover: hsla(277, 72%, 50%, 100%);
$light-states-icon-visited-active: hsla(277, 72%, 40%, 100%);
$light-states-line-focus: hsla(216, 100%, 50%, 100%);
$light-states-line-focus-theme: hsla(216, 100%, 60%, 100%);
$light-states-line-disabled: hsla(229, 15%, 15%, 32%);
$light-states-line-disabled: hsla(229, 15%, 50%, 32%);
$light-states-line-focus-error: hsla(7, 97%, 45%, 100%);
$light-states-focused-color: hsla(216, 100%, 50%, 100%);
$light-states-focused-color-error: hsla(7, 97%, 50%, 100%);
Expand Down
1,017 changes: 1 addition & 1,016 deletions apps/docs/src/styles/koobiq/default-theme/css-tokens-dark.css

Large diffs are not rendered by default.

794 changes: 0 additions & 794 deletions apps/docs/src/styles/koobiq/default-theme/css-tokens-font.css

This file was deleted.

1,002 changes: 2 additions & 1,000 deletions apps/docs/src/styles/koobiq/default-theme/css-tokens-light.css

Large diffs are not rendered by default.

454 changes: 0 additions & 454 deletions apps/docs/src/styles/koobiq/default-theme/css-tokens.css

Large diffs are not rendered by default.

3,257 changes: 1 addition & 3,256 deletions apps/docs/src/styles/koobiq/default-theme/js/index.js

Large diffs are not rendered by default.