@designfoundry/lucent-angular
v0.8.1
Published
Lucent design system: Angular component kit.
Readme
@designfoundry/lucent-angular
The Angular kit for Lucent, a design system for
dense product interfaces. Every component emits the lucent- class names defined by
@designfoundry/lucent-styles
and ships no CSS of its own.
Install
npm install @designfoundry/lucent-angular @designfoundry/lucent-styles @angular/cdkBoth Lucent packages are always on the same version; install them together.
Set up
Add the stylesheet to the styles array in angular.json. lucent.css is everything;
core.css plus the packs you use is smaller:
"styles": [
"node_modules/@designfoundry/lucent-styles/core.css",
"node_modules/@designfoundry/lucent-styles/packs/temporal.css"
]Load the fonts the tokens name:
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Outfit:[email protected]&family=Roboto+Mono:[email protected]&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />Set data-theme="light" or data-theme="dark" on <html>, or leave it unset to follow the
system.
Use
Components are standalone; import the ones you need:
import { LucentButton } from '@designfoundry/lucent-angular';
@Component({
imports: [LucentButton],
template: `<lucent-button variant="primary">Save changes</lucent-button>`,
})
export class SaveBar {}The component reference is at lucent.designfoundry.app. Changes are listed in the changelog.
