Appearance
How to use
Installation
The package is part of this monorepo and is not published. Add it to a workspace package as "@scayla/components": "workspace:*". It has no build: exports point at src/, so the consuming Vite project compiles the components, and component styles load with each component.
Design tokens
Load the colour and typography variables once, in the global stylesheet:
scss
@use "@scayla/components/scss/generated/figma_variables.scss";
@use "@scayla/components/scss/customColors.scss";Fonts
Load the fonts into the project:
scss
$fonts-path: "@scayla/components/fonts/";
@forward "@scayla/components/scss/font-loader";Translation setup
WARNING
WIP
ts
import { translations, normalizeTranslations } from "@scayla/component-library";
import { createGettext } from "vue3-gettext";
import projectTranslations from "./your-project-translations.json";
export const gettext = createGettext({
translations: merge(normalizeTranslations(translations), normalizeTranslations(projectTranslations)),
});Import components
js
import { SCAButton } from "@scayla/components";