Hello, Thank You for this wonderful and extermely helpfull design system.
I'm currently facing an issue with changing color set up, after editing color.yml
and doing yarn build:lib. and then importing the new is a npm package to my project, everything stops working and my app comes to a white screen with nothing loading
Steps to reproduce
git clone https://github.com/visualjerk/vue-cion-design-system vuecds && cd vuecds && yarn install
Trying to setup a hot-reload to edit while viewing
Output:
Syntax Error: Error: SyntaxError: ...............
............................................
Syntax Error: Error: SyntaxError:
C:\Users\dev\vuecds\src\system\components\typography\Code\Code.vue: Expecting Unicode escape sequence \uXXXX (11:1)
9 | //
10 | //
> 11 | \r
| ^
12 | /**\r
13 | * The code component is used for displaying lines of code.\r
14 | * @version 1.0.0\r
Syntax Error: Error: SyntaxError: C:\Users\dev\vuecds\src\system\components\typography\Heading\Heading.vue: Expecting Unicode escape sequence \uXXXX (15:1)
13 | //
14 | //
> 15 | \r
| ^
16 | /**\r
17 | * Headings are used as the titles of each major\r
18 | * section of a page in the interface.\r
Syntax Error: Error: SyntaxError: C:\Users\dev\vuecds\src\system\components\typography\Icon\Icon.vue: Expecting Unicode escape sequence \uXXXX (7:1)
5 | //
6 | //
> 7 | \r
| ^
8 | import icons from '@@/icons'\r
9 | /**\r
10 | * Icons are used to add meaning and improve accessibility.\r
Syntax Error: Error: SyntaxError: C:\Users\dev\vuecds\src\system\components\typography\Logo\Logo.vue: Expecting Unicode escape sequence \uXXXX (7:1)
5 | //
6 | //
> 7 | \r
| ^
8 | import svgLogo from '@@/assets/img/logo_cion.svg'\r
9 | /**\r
10 | * This component displays the brand's logo.\r
Syntax Error: Error: SyntaxError: C:\Users\dev\vuecds\src\system\components\typography\Tag\Tag.vue: Expecting Unicode escape sequence \uXXXX (11:1)
9 | //
10 | //
> 11 | \r
| ^
12 | /**\r
13 | * Tags are used for styling and highlighting small pieces of information.\r
14 | * Most of the time they are used for keywords or numbers.\r
Syntax Error: Error: SyntaxError: C:\Users\dev\vuecds\src\system\components\typography\Text\Text.vue: Expecting Unicode escape sequence \uXXXX (16:1)
14 | //
15 | //
> 16 | \r
| ^
17 | /**\r
18 | * Text is used for styling and grouping paragraphs or words.\r
19 | * Defaults to a `p` tag. If nested inside of another text\r
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
Here All I see is white screen and nothing else.
then I just skipped this issue and went for changing the colors directly
vim src/system/tokens/color.yml
edit: Switch secondary color value to primary
- name: color-primary
value: &color-primary "hsla({!purple}, 40%, 1)"
- name: color-primary-active
value: &color-primary-active "hsla({!purple}, 43%, 1)"
- name: color-primary-inverse
value: &color-primary-inverse "hsla({!purple}, 97%, 1)"
- name: color-secondary
value: &color-secondary "hsla({!teal}, 45%, 1)"
- name: color-secondary-active
value: &color-secondary-active "hsla({!teal}, 52%, 1)"
- name: color-secondary-inverse
value: &color-secondary-inverse "hsla({!teal}, 97%, 1)"
Then
Output:
Syntax Error: Error: SyntaxError: ...............
............................................
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
File Size Gzipped
dist\system.umd.min.js 384.21 KiB 103.23 KiB
dist\system.umd.js 816.95 KiB 173.95 KiB
dist\system.common.js 816.58 KiB 173.84 KiB
dist\system.css 60.51 KiB 7.33 KiB
Images and other types of assets omitted.
Webpack Bundle Analyzer saved report to C:\Users\dev\vuecds\dist\report.html
After that I create a new git repo and pushed the repo to it, so I would import it as a package in package.json. And so I did. and nothing is showing.
Is there a way to fix it ? or what I'm doing wrong
Thanks