Install
Indy Centerline ships as two npm packages: @indy-center/centerline-tokens, the colors and fonts as CSS custom properties, a Tailwind v4 theme, Sass and JSON; and @indy-center/centerline-svelte, the chrome and patterns as Svelte 5 components on those tokens. A SvelteKit app takes both; any other app takes the tokens alone.
Checklist
Section titled “Checklist”- The app has Svelte 5 and Tailwind v4 already. Install both packages.
- Import the four token files into the app’s stylesheet, in order, and add the
@sourceline for the components. - Add the color-scheme hook to
src/hooks.server.ts, its script tag tosrc/app.html, andsetColorSchemeto the root layout, all withfallback: "dark". - Put
HeaderandFooterin the root layout, around<main id="main">. Chrome says what to pass them. - Follow each package’s README for the details below; they’re the source and this page only points at them.
- An app without Svelte imports
tokens.css(andbase.cssandfonts.cssif it wants them) and nothing else.
SvelteKit apps
Section titled “SvelteKit apps”npm install @indy-center/centerline-svelte @indy-center/centerline-tokensThe app’s stylesheet imports the tokens after Tailwind, then tells Tailwind to read the components’ classes:
@import "tailwindcss";@import "@indy-center/centerline-tokens/tokens.css";@import "@indy-center/centerline-tokens/theme.css";@import "@indy-center/centerline-tokens/base.css";@import "@indy-center/centerline-tokens/fonts.css";/* Relative to this stylesheet. Tailwind skips node_modules unless told, and without this line the components render unstyled. */@source "../node_modules/@indy-center/centerline-svelte";Then the color scheme, which every app serves the same way:
import { colorSchemeHandle } from "@indy-center/centerline-svelte/hooks";
// "dark" until identity stores the choice: nobody's app changes under them// unless they pick light.export const handle = colorSchemeHandle({ fallback: "dark" });The root layout calls setColorScheme({ fallback: "dark" }) with the same fallback, and src/app.html carries the hook’s script tag. The color scheme reference has both, and Tokens explains the order.
The packages’ READMEs cover the rest: Prose for CMS rich text (it needs @tailwindcss/typography), the aviation helpers, and the positions Position and Frequency look up.
Each component’s page on centerline.flyindycenter.com says what to import and pass. Its .md is also in the package, at node_modules/@indy-center/centerline-svelte/dist/<Component>/<Component>.md.
Apps without Svelte
Section titled “Apps without Svelte”The tokens work anywhere CSS does. tokens.css alone gives every brand color, role and font stack as a custom property (--color-card, --font-heading); base.css after it sets page defaults from them; fonts.css loads Source Sans 3, the heading font.
- Payload. Its admin’s SCSS uses
_tokens.scss, which gives each token as itstokens.cssvariable, so loadtokens.cssas well. The tokens README has the@useline. - Canvas and other code that can’t read custom properties.
tokens.jsonholds each scheme’s resolved values.
Why not copy the hex values. The token files are the source of truth for the brand guide’s color tables. A value pasted into an app doesn’t follow a change, and doesn’t switch between light and dark.