Customize
Customize Norio from the source kit. Do not edit compiled maps or scattered hex values.
Colors, type, and spacing
- Open
norio-html-dev/tokens/tokens.json. - Change the value (colors need both
lightanddarkwhen they differ). - Run
npm run tokens(or justnpm run dev/npm run build). - Use the resulting
var(--token-name)in SCSS.
See Design Tokens for the pipeline and Colors / Typography for the public variable names.
Add a page
- Create
src/pages/{name}.htmlwith{% extends "layouts/base.njk" %}. - Set
title,description, andbodyClass. AddcolorSchemeonly to pin a mode. - Include one section per design block inside
{% block content %}. - Link the page from the header / menu overlay JSON if it belongs in navigation.
Vite picks up every src/pages/*.html automatically.
Add a section
src/sections/{group}/{name}.njk— semantic HTML, first child.container.src/assets/scss/sections/{group}/_{name}.scss—@use "../../abstracts" as *;then the block.@forward "{name}";in that folder’s_index.scss.- Include the section from the page.
Layout mixins: @include container;, @include section-space(var(--space-12), var(--space-10));, @include grid-auto(18rem);, @include grid-columns(3);, @include media-up(lg) { … }.
Content data
Add src/data/{key}.json. It becomes {{ key }} / {% for item in key %}. Prefer loops for long lists; hardcoded markup is fine for one-offs.
Images
- Put design assets in
src/assets/imgs/, not indist/. - Prefer optimized
.webpfiles. - Reference them as
assets/imgs/…so the flatdist/output still works from disk.