Weglot Design provides a set of classes allowing you to easily reproduce the Weglot dashboard design.
https://weglot.github.io/design/
Because this package is hosted on GitHub Registry, you need to generate a Personal Access Token with the write:packages
-> read:packages
scope. Keep the token, you'll need it.
Next, create a .npmrc
file in the root of your project folder and past the following code :
# Authentication to Github packages
//npm.pkg.github.com/:_authToken=YOUR_PERSONAL_TOKEN
# Set the registry for "@weglot" packages
@weglot:registry=https://npm.pkg.github.com
Don't forget to replace YOUR_PERSONAL_TOKEN
by your token.
Finally, install the package :
npm install @weglot/design
No need install to use this method, just include dist css file in yout html.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/weglot/design/dist/css/main.css">
// With version
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/weglot/design@1.0.27/dist/css/main.css">
@import "~@weglot/design/scss/main";
To locally run Jekkyl in order to try changes or preview Styleguide run the following in the /styleguide directory:
bundle exec jekyll serve
- To use this command you need to have Ruby, Bundler and Jekyll up to date
- to install Ruby : https://mac.install.guide/ruby/13.html / https://nrogap.medium.com/install-rvm-in-macos-step-by-step-d3b3c236953b
- to install Bundler : https://bundler.io/
- to install Jekyll :
run bundle
Be carefull your ruby version must to be ≤ 3.1.2 and >2.7